@megafon/ui-core 9.0.0-alpha.2 → 9.0.0-alpha.21

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 (337) hide show
  1. package/dist/es/components/Accordion/Accordion.css +1 -1
  2. package/dist/es/components/Accordion/Accordion.d.ts +3 -1
  3. package/dist/es/components/Accordion/Accordion.js +3 -3
  4. package/dist/es/components/Avatar/Avatar.css +1 -1
  5. package/dist/es/components/Avatar/Avatar.d.ts +1 -1
  6. package/dist/es/components/Badges/CounterBadge/CounterBadge.js +1 -2
  7. package/dist/es/components/Badges/InfoBadge/InfoBadge.css +1 -0
  8. package/dist/es/components/Badges/InfoBadge/InfoBadge.d.ts +52 -0
  9. package/dist/es/components/Badges/InfoBadge/InfoBadge.js +226 -0
  10. package/dist/es/components/Badges/PriceBadge/PriceBadge.d.ts +1 -0
  11. package/dist/es/components/Badges/PriceBadge/PriceBadge.js +53 -13
  12. package/dist/es/components/Badges/PromoBadge/PromoBadge.css +1 -1
  13. package/dist/es/components/Badges/PromoBadge/PromoBadge.d.ts +1 -11
  14. package/dist/es/components/Badges/PromoBadge/PromoBadge.js +6 -16
  15. package/dist/es/components/Badges/StatusBadge/StatusBadge.css +1 -1
  16. package/dist/es/components/Badges/StatusBadge/StatusBadge.js +16 -7
  17. package/dist/es/components/Badges/TimerBadge/TimerBadge.d.ts +2 -0
  18. package/dist/es/components/Badges/TimerBadge/TimerBadge.js +6 -2
  19. package/dist/es/components/Buttons/Button/Button.css +1 -0
  20. package/dist/es/components/{Button → Buttons/Button}/Button.d.ts +5 -0
  21. package/dist/es/components/{Button → Buttons/Button}/Button.js +38 -12
  22. package/dist/es/components/Buttons/ButtonClose/ButtonClose.css +1 -0
  23. package/dist/es/components/Buttons/ButtonClose/ButtonClose.d.ts +34 -0
  24. package/dist/es/components/Buttons/ButtonClose/ButtonClose.js +69 -0
  25. package/dist/es/components/Calendar/components/_Month/Month.js +2 -6
  26. package/dist/es/components/Carousel/Carousel.css +1 -1
  27. package/dist/es/components/Carousel/Carousel.d.ts +9 -0
  28. package/dist/es/components/Carousel/Carousel.js +14 -2
  29. package/dist/es/components/Checkbox/Checkbox.css +1 -1
  30. package/dist/es/components/Checkbox/Checkbox.js +3 -2
  31. package/dist/es/components/Chips/Chips/Chip.css +1 -1
  32. package/dist/es/components/Chips/Chips/Chip.d.ts +9 -1
  33. package/dist/es/components/Chips/Chips/Chip.js +12 -7
  34. package/dist/es/components/Chips/Chips/Chips.d.ts +16 -1
  35. package/dist/es/components/Chips/Chips/Chips.js +28 -6
  36. package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.css +1 -1
  37. package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +12 -4
  38. package/dist/es/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.js +55 -47
  39. package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +10 -1
  40. package/dist/es/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +12 -7
  41. package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.css +1 -1
  42. package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.d.ts +7 -0
  43. package/dist/es/components/Chips/ChipsSuggest/ChipSuggest.js +7 -0
  44. package/dist/es/components/Chips/ChipsSuggest/ChipsSuggest.d.ts +4 -2
  45. package/dist/es/components/Chips/ChipsSuggest/ChipsSuggest.js +3 -0
  46. package/dist/es/components/ContentArea/ContentArea.css +1 -1
  47. package/dist/es/components/ContentArea/ContentArea.d.ts +3 -2
  48. package/dist/es/components/ContentArea/ContentArea.js +5 -0
  49. package/dist/es/components/ContentView/ContentView.css +1 -1
  50. package/dist/es/components/ContentView/ContentView.d.ts +15 -4
  51. package/dist/es/components/ContentView/ContentView.js +17 -4
  52. package/dist/es/components/Counter/Counter.css +1 -1
  53. package/dist/es/components/Counter/Counter.d.ts +2 -0
  54. package/dist/es/components/Counter/Counter.js +6 -3
  55. package/dist/es/components/Dropdown/Dropdown.css +1 -1
  56. package/dist/es/components/Dropdown/Dropdown.d.ts +6 -2
  57. package/dist/es/components/Dropdown/Dropdown.js +31 -22
  58. package/dist/es/components/ErrorLoad/ErrorLoad.css +1 -1
  59. package/dist/es/components/ErrorLoad/ErrorLoad.d.ts +1 -1
  60. package/dist/es/components/ErrorLoad/ErrorLoad.js +2 -4
  61. package/dist/es/components/Link/Link.css +1 -0
  62. package/dist/es/components/Link/Link.d.ts +1 -0
  63. package/dist/es/components/Link/Link.js +4 -2
  64. package/dist/es/components/ListData/ListData.css +1 -1
  65. package/dist/es/components/ListData/ListData.d.ts +9 -1
  66. package/dist/es/components/ListData/ListData.js +20 -14
  67. package/dist/es/components/ListData/components/ListDataSortable.css +1 -1
  68. package/dist/es/components/ListData/components/ListDataSortable.js +1 -3
  69. package/dist/es/components/Modal/Modal.css +1 -1
  70. package/dist/es/components/Modal/Modal.d.ts +23 -9
  71. package/dist/es/components/Modal/Modal.js +34 -23
  72. package/dist/es/components/Modal/_ModalContent/ModalContent.css +1 -1
  73. package/dist/es/components/Modal/_ModalContent/ModalContent.js +37 -39
  74. package/dist/es/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
  75. package/dist/es/components/Modal/_ModalMobile/ModalMobile.css +1 -0
  76. package/dist/es/components/Modal/{_ModalMobileBottom/ModalMobileBottom.d.ts → _ModalMobile/ModalMobile.d.ts} +6 -5
  77. package/dist/es/components/Modal/{_ModalMobileBottom/ModalMobileBottom.js → _ModalMobile/ModalMobile.js} +35 -26
  78. package/dist/es/components/Modal/mocks.js +0 -1
  79. package/dist/es/components/Modal/types.d.ts +1 -2
  80. package/dist/es/components/NavArrow/NavArrow.css +1 -1
  81. package/dist/es/components/NavArrow/NavArrow.js +4 -4
  82. package/dist/es/components/Notification/Notification.css +1 -1
  83. package/dist/es/components/Notification/Notification.d.ts +0 -11
  84. package/dist/es/components/Notification/Notification.js +19 -38
  85. package/dist/es/components/Pagination/Pagination.css +1 -1
  86. package/dist/es/components/Pagination/Pagination.d.ts +1 -3
  87. package/dist/es/components/Pagination/Pagination.js +4 -13
  88. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
  89. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.d.ts +1 -2
  90. package/dist/es/components/Pagination/components/PaginationButton/PaginationButton.js +0 -2
  91. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -1
  92. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +1 -3
  93. package/dist/es/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -16
  94. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +1 -2
  95. package/dist/es/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +4 -4
  96. package/dist/es/components/Pagination/types.d.ts +1 -11
  97. package/dist/es/components/Pagination/types.js +1 -4
  98. package/dist/es/components/Pagination/usePagination.d.ts +2 -2
  99. package/dist/es/components/Pagination/usePagination.js +11 -29
  100. package/dist/es/components/Parameter/Parameter.d.ts +0 -3
  101. package/dist/es/components/Parameter/Parameter.js +3 -4
  102. package/dist/es/components/RadioButton/RadioButton.css +1 -1
  103. package/dist/es/components/Row/Row.css +1 -1
  104. package/dist/es/components/Row/Row.js +6 -4
  105. package/dist/es/components/ScrollBar/ScrollBar.d.ts +2 -0
  106. package/dist/es/components/ScrollBar/ScrollBar.js +6 -1
  107. package/dist/es/components/Search/Search.css +1 -1
  108. package/dist/es/components/Search/Search.d.ts +2 -2
  109. package/dist/es/components/Search/Search.js +72 -68
  110. package/dist/es/components/Select/Select.css +1 -1
  111. package/dist/es/components/Select/Select.d.ts +11 -20
  112. package/dist/es/components/Select/Select.js +40 -88
  113. package/dist/es/components/Select/reducer/selectReducer.js +1 -1
  114. package/dist/es/components/Selector/Selector.css +1 -1
  115. package/dist/es/components/Sliders/Slider/Slider.css +1 -1
  116. package/dist/es/components/Sliders/Slider/Slider.d.ts +12 -0
  117. package/dist/es/components/Sliders/Slider/Slider.js +26 -7
  118. package/dist/es/components/Sliders/SliderRange/SliderRange.css +1 -1
  119. package/dist/es/components/Sliders/SliderRange/SliderRange.d.ts +3 -0
  120. package/dist/es/components/Sliders/SliderRange/SliderRange.js +4 -1
  121. package/dist/es/components/Sliders/SliderRatio/SliderRatio.css +1 -1
  122. package/dist/es/components/Sliders/components/SliderScale/SliderScale.css +1 -1
  123. package/dist/es/components/Sliders/components/SliderScale/SliderScale.d.ts +6 -0
  124. package/dist/es/components/Sliders/components/SliderScale/SliderScale.js +8 -1
  125. package/dist/es/components/Sliders/helpers.d.ts +1 -0
  126. package/dist/es/components/Sliders/helpers.js +7 -0
  127. package/dist/es/components/Snackbar/Snackbar.css +1 -1
  128. package/dist/es/components/Snackbar/Snackbar.js +20 -21
  129. package/dist/es/components/Stepper/Stepper.css +1 -0
  130. package/dist/es/components/Stepper/Stepper.d.ts +52 -0
  131. package/dist/es/components/Stepper/Stepper.js +159 -0
  132. package/dist/es/components/Stepper/StepperItem.css +1 -0
  133. package/dist/es/components/Stepper/StepperItem.d.ts +57 -0
  134. package/dist/es/components/Stepper/StepperItem.js +101 -0
  135. package/dist/es/components/Stepper/img/separator-mobile.png +0 -0
  136. package/dist/es/components/Stepper/img/separator-vertical.png +0 -0
  137. package/dist/es/components/Stepper/img/separator.png +0 -0
  138. package/dist/es/components/Switcher/Switcher.css +1 -1
  139. package/dist/es/components/Switcher/Switcher.d.ts +5 -0
  140. package/dist/es/components/Switcher/Switcher.js +22 -10
  141. package/dist/es/components/Tabs/Tabs.css +1 -1
  142. package/dist/es/components/Tabs/Tabs.d.ts +2 -0
  143. package/dist/es/components/Tabs/Tabs.js +64 -55
  144. package/dist/es/components/TextField/TextField.css +1 -1
  145. package/dist/es/components/TextField/TextField.d.ts +2 -2
  146. package/dist/es/components/TextField/TextField.js +16 -9
  147. package/dist/es/components/Tooltip/Tooltip.css +1 -1
  148. package/dist/es/components/Tooltip/Tooltip.d.ts +9 -0
  149. package/dist/es/components/Tooltip/Tooltip.js +22 -17
  150. package/dist/es/components/UploadForm/UploadField/UploadField.css +1 -1
  151. package/dist/es/components/UploadForm/UploadField/UploadField.d.ts +4 -1
  152. package/dist/es/components/UploadForm/UploadField/UploadField.js +8 -2
  153. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +1 -1
  154. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +3 -1
  155. package/dist/es/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +30 -5
  156. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
  157. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +3 -1
  158. package/dist/es/components/UploadForm/UploadFileItem/UploadFileItem.js +9 -6
  159. package/dist/es/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.js +6 -0
  160. package/dist/es/hooks/useResolution.js +15 -23
  161. package/dist/es/index.d.ts +6 -3
  162. package/dist/es/index.js +6 -3
  163. package/dist/lib/components/Accordion/Accordion.css +1 -1
  164. package/dist/lib/components/Accordion/Accordion.d.ts +3 -1
  165. package/dist/lib/components/Accordion/Accordion.js +3 -3
  166. package/dist/lib/components/Avatar/Avatar.css +1 -1
  167. package/dist/lib/components/Avatar/Avatar.d.ts +1 -1
  168. package/dist/lib/components/Badges/CounterBadge/CounterBadge.js +1 -2
  169. package/dist/lib/components/Badges/InfoBadge/InfoBadge.css +1 -0
  170. package/dist/lib/components/Badges/InfoBadge/InfoBadge.d.ts +52 -0
  171. package/dist/lib/components/Badges/InfoBadge/InfoBadge.js +235 -0
  172. package/dist/lib/components/Badges/PriceBadge/PriceBadge.d.ts +1 -0
  173. package/dist/lib/components/Badges/PriceBadge/PriceBadge.js +54 -13
  174. package/dist/lib/components/Badges/PromoBadge/PromoBadge.css +1 -1
  175. package/dist/lib/components/Badges/PromoBadge/PromoBadge.d.ts +1 -11
  176. package/dist/lib/components/Badges/PromoBadge/PromoBadge.js +7 -17
  177. package/dist/lib/components/Badges/StatusBadge/StatusBadge.css +1 -1
  178. package/dist/lib/components/Badges/StatusBadge/StatusBadge.js +16 -7
  179. package/dist/lib/components/Badges/TimerBadge/TimerBadge.d.ts +2 -0
  180. package/dist/lib/components/Badges/TimerBadge/TimerBadge.js +6 -2
  181. package/dist/lib/components/Buttons/Button/Button.css +1 -0
  182. package/dist/lib/components/{Button → Buttons/Button}/Button.d.ts +5 -0
  183. package/dist/lib/components/{Button → Buttons/Button}/Button.js +38 -12
  184. package/dist/lib/components/Buttons/ButtonClose/ButtonClose.css +1 -0
  185. package/dist/lib/components/Buttons/ButtonClose/ButtonClose.d.ts +34 -0
  186. package/dist/lib/components/Buttons/ButtonClose/ButtonClose.js +78 -0
  187. package/dist/lib/components/Calendar/components/_Month/Month.js +2 -6
  188. package/dist/lib/components/Carousel/Carousel.css +1 -1
  189. package/dist/lib/components/Carousel/Carousel.d.ts +9 -0
  190. package/dist/lib/components/Carousel/Carousel.js +15 -3
  191. package/dist/lib/components/Checkbox/Checkbox.css +1 -1
  192. package/dist/lib/components/Checkbox/Checkbox.js +3 -2
  193. package/dist/lib/components/Chips/Chips/Chip.css +1 -1
  194. package/dist/lib/components/Chips/Chips/Chip.d.ts +9 -1
  195. package/dist/lib/components/Chips/Chips/Chip.js +13 -8
  196. package/dist/lib/components/Chips/Chips/Chips.d.ts +16 -1
  197. package/dist/lib/components/Chips/Chips/Chips.js +28 -6
  198. package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.css +1 -1
  199. package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.d.ts +12 -4
  200. package/dist/lib/components/Chips/Chips/components/ChipsDropdown/ChipsDropdown.js +55 -47
  201. package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.d.ts +10 -1
  202. package/dist/lib/components/Chips/Chips/components/ChipsScrollPanel/ChipsScrollPanel.js +11 -6
  203. package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.css +1 -1
  204. package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.d.ts +7 -0
  205. package/dist/lib/components/Chips/ChipsSuggest/ChipSuggest.js +8 -1
  206. package/dist/lib/components/Chips/ChipsSuggest/ChipsSuggest.d.ts +4 -2
  207. package/dist/lib/components/Chips/ChipsSuggest/ChipsSuggest.js +3 -0
  208. package/dist/lib/components/ContentArea/ContentArea.css +1 -1
  209. package/dist/lib/components/ContentArea/ContentArea.d.ts +3 -2
  210. package/dist/lib/components/ContentArea/ContentArea.js +5 -0
  211. package/dist/lib/components/ContentView/ContentView.css +1 -1
  212. package/dist/lib/components/ContentView/ContentView.d.ts +15 -4
  213. package/dist/lib/components/ContentView/ContentView.js +17 -4
  214. package/dist/lib/components/Counter/Counter.css +1 -1
  215. package/dist/lib/components/Counter/Counter.d.ts +2 -0
  216. package/dist/lib/components/Counter/Counter.js +6 -3
  217. package/dist/lib/components/Dropdown/Dropdown.css +1 -1
  218. package/dist/lib/components/Dropdown/Dropdown.d.ts +6 -2
  219. package/dist/lib/components/Dropdown/Dropdown.js +31 -22
  220. package/dist/lib/components/ErrorLoad/ErrorLoad.css +1 -1
  221. package/dist/lib/components/ErrorLoad/ErrorLoad.d.ts +1 -1
  222. package/dist/lib/components/ErrorLoad/ErrorLoad.js +2 -4
  223. package/dist/lib/components/Link/Link.css +1 -0
  224. package/dist/lib/components/Link/Link.d.ts +1 -0
  225. package/dist/lib/components/Link/Link.js +2 -1
  226. package/dist/lib/components/ListData/ListData.css +1 -1
  227. package/dist/lib/components/ListData/ListData.d.ts +9 -1
  228. package/dist/lib/components/ListData/ListData.js +20 -14
  229. package/dist/lib/components/ListData/components/ListDataSortable.css +1 -1
  230. package/dist/lib/components/ListData/components/ListDataSortable.js +1 -3
  231. package/dist/lib/components/Modal/Modal.css +1 -1
  232. package/dist/lib/components/Modal/Modal.d.ts +23 -9
  233. package/dist/lib/components/Modal/Modal.js +35 -24
  234. package/dist/lib/components/Modal/_ModalContent/ModalContent.css +1 -1
  235. package/dist/lib/components/Modal/_ModalContent/ModalContent.js +37 -39
  236. package/dist/lib/components/Modal/_ModalDesktop/ModalDesktop.css +1 -1
  237. package/dist/lib/components/Modal/_ModalMobile/ModalMobile.css +1 -0
  238. package/dist/lib/components/Modal/{_ModalMobileBottom/ModalMobileBottom.d.ts → _ModalMobile/ModalMobile.d.ts} +6 -5
  239. package/dist/lib/components/Modal/{_ModalMobileBottom/ModalMobileBottom.js → _ModalMobile/ModalMobile.js} +34 -25
  240. package/dist/lib/components/Modal/mocks.js +0 -1
  241. package/dist/lib/components/Modal/types.d.ts +1 -2
  242. package/dist/lib/components/NavArrow/NavArrow.css +1 -1
  243. package/dist/lib/components/NavArrow/NavArrow.js +4 -4
  244. package/dist/lib/components/Notification/Notification.css +1 -1
  245. package/dist/lib/components/Notification/Notification.d.ts +0 -11
  246. package/dist/lib/components/Notification/Notification.js +18 -37
  247. package/dist/lib/components/Pagination/Pagination.css +1 -1
  248. package/dist/lib/components/Pagination/Pagination.d.ts +1 -3
  249. package/dist/lib/components/Pagination/Pagination.js +4 -13
  250. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.css +1 -1
  251. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.d.ts +1 -2
  252. package/dist/lib/components/Pagination/components/PaginationButton/PaginationButton.js +0 -2
  253. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.css +1 -1
  254. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.d.ts +1 -3
  255. package/dist/lib/components/Pagination/components/PaginationButtons/PaginationButtons.js +5 -16
  256. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.d.ts +1 -2
  257. package/dist/lib/components/Pagination/components/PaginationNavigation/PaginationNavigation.js +4 -4
  258. package/dist/lib/components/Pagination/types.d.ts +1 -11
  259. package/dist/lib/components/Pagination/types.js +1 -6
  260. package/dist/lib/components/Pagination/usePagination.d.ts +2 -2
  261. package/dist/lib/components/Pagination/usePagination.js +11 -29
  262. package/dist/lib/components/Parameter/Parameter.d.ts +0 -3
  263. package/dist/lib/components/Parameter/Parameter.js +3 -4
  264. package/dist/lib/components/RadioButton/RadioButton.css +1 -1
  265. package/dist/lib/components/Row/Row.css +1 -1
  266. package/dist/lib/components/Row/Row.js +5 -3
  267. package/dist/lib/components/ScrollBar/ScrollBar.d.ts +2 -0
  268. package/dist/lib/components/ScrollBar/ScrollBar.js +6 -1
  269. package/dist/lib/components/Search/Search.css +1 -1
  270. package/dist/lib/components/Search/Search.d.ts +2 -2
  271. package/dist/lib/components/Search/Search.js +72 -68
  272. package/dist/lib/components/Select/Select.css +1 -1
  273. package/dist/lib/components/Select/Select.d.ts +11 -20
  274. package/dist/lib/components/Select/Select.js +40 -88
  275. package/dist/lib/components/Select/reducer/selectReducer.js +1 -1
  276. package/dist/lib/components/Selector/Selector.css +1 -1
  277. package/dist/lib/components/Sliders/Slider/Slider.css +1 -1
  278. package/dist/lib/components/Sliders/Slider/Slider.d.ts +12 -0
  279. package/dist/lib/components/Sliders/Slider/Slider.js +25 -6
  280. package/dist/lib/components/Sliders/SliderRange/SliderRange.css +1 -1
  281. package/dist/lib/components/Sliders/SliderRange/SliderRange.d.ts +3 -0
  282. package/dist/lib/components/Sliders/SliderRange/SliderRange.js +4 -1
  283. package/dist/lib/components/Sliders/SliderRatio/SliderRatio.css +1 -1
  284. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.css +1 -1
  285. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.d.ts +6 -0
  286. package/dist/lib/components/Sliders/components/SliderScale/SliderScale.js +9 -2
  287. package/dist/lib/components/Sliders/helpers.d.ts +1 -0
  288. package/dist/lib/components/Sliders/helpers.js +8 -1
  289. package/dist/lib/components/Snackbar/Snackbar.css +1 -1
  290. package/dist/lib/components/Snackbar/Snackbar.js +20 -21
  291. package/dist/lib/components/Stepper/Stepper.css +1 -0
  292. package/dist/lib/components/Stepper/Stepper.d.ts +52 -0
  293. package/dist/lib/components/Stepper/Stepper.js +168 -0
  294. package/dist/lib/components/Stepper/StepperItem.css +1 -0
  295. package/dist/lib/components/Stepper/StepperItem.d.ts +57 -0
  296. package/dist/lib/components/Stepper/StepperItem.js +110 -0
  297. package/dist/lib/components/Stepper/img/separator-mobile.png +0 -0
  298. package/dist/lib/components/Stepper/img/separator-vertical.png +0 -0
  299. package/dist/lib/components/Stepper/img/separator.png +0 -0
  300. package/dist/lib/components/Switcher/Switcher.css +1 -1
  301. package/dist/lib/components/Switcher/Switcher.d.ts +5 -0
  302. package/dist/lib/components/Switcher/Switcher.js +21 -9
  303. package/dist/lib/components/Tabs/Tabs.css +1 -1
  304. package/dist/lib/components/Tabs/Tabs.d.ts +2 -0
  305. package/dist/lib/components/Tabs/Tabs.js +64 -55
  306. package/dist/lib/components/TextField/TextField.css +1 -1
  307. package/dist/lib/components/TextField/TextField.d.ts +2 -2
  308. package/dist/lib/components/TextField/TextField.js +16 -9
  309. package/dist/lib/components/Tooltip/Tooltip.css +1 -1
  310. package/dist/lib/components/Tooltip/Tooltip.d.ts +9 -0
  311. package/dist/lib/components/Tooltip/Tooltip.js +23 -18
  312. package/dist/lib/components/UploadForm/UploadField/UploadField.css +1 -1
  313. package/dist/lib/components/UploadForm/UploadField/UploadField.d.ts +4 -1
  314. package/dist/lib/components/UploadForm/UploadField/UploadField.js +8 -2
  315. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.css +1 -1
  316. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.d.ts +3 -1
  317. package/dist/lib/components/UploadForm/UploadField/components/_UploadFieldDropArea/UploadFieldDropArea.js +30 -5
  318. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.css +1 -1
  319. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.d.ts +3 -1
  320. package/dist/lib/components/UploadForm/UploadFileItem/UploadFileItem.js +9 -6
  321. package/dist/lib/components/UploadForm/UploadFileItem/components/_UploadFileItemIcon/UploadFileItemIcon.js +6 -0
  322. package/dist/lib/hooks/useResolution.js +15 -23
  323. package/dist/lib/index.d.ts +6 -3
  324. package/dist/lib/index.js +32 -11
  325. package/package.json +5 -5
  326. package/styles/base.scss +54 -0
  327. package/styles/colors.css +14 -0
  328. package/dist/es/components/Button/Button.css +0 -1
  329. package/dist/es/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  330. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  331. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  332. package/dist/es/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -56
  333. package/dist/lib/components/Button/Button.css +0 -1
  334. package/dist/lib/components/Modal/_ModalMobileBottom/ModalMobileBottom.css +0 -1
  335. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.css +0 -1
  336. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.d.ts +0 -8
  337. package/dist/lib/components/Modal/_ModalMobileFullScreen/ModalMobileFullScreen.js +0 -65
@@ -1 +1 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-9-status-badge__container{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;line-height:18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--content);font-weight:400;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-status-badge__text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfui-9-status-badge__arrow,.mfui-9-status-badge__icon{height:20px;width:20px}.mfui-9-status-badge__icon{margin-right:2px}@media screen and (min-width:1024px){.mfui-9-status-badge_adaptive .mfui-9-status-badge__container{font-size:15px;line-height:24px}}.mfui-9-status-badge_tooltip .mfui-9-status-badge__container{cursor:pointer}.mfui-9-status-badge__tooltip{width:288px}.mfui-9-status-badge_view_dot .mfui-9-status-badge__container{gap:8px}.mfui-9-status-badge_view_dot .mfui-9-status-badge__container:before{border-radius:50%;content:"";height:8px;width:8px}.mfui-9-status-badge_view_dot.mfui-9-status-badge_tooltip .mfui-9-status-badge__text{-webkit-text-decoration:underline dashed var(--spbSky3);text-decoration:underline dashed var(--spbSky3);text-decoration-thickness:1px;text-underline-offset:3px;-webkit-transition:-webkit-text-decoration .3s ease-out;transition:-webkit-text-decoration .3s ease-out;transition:text-decoration .3s ease-out;transition:text-decoration .3s ease-out,-webkit-text-decoration .3s ease-out}@media (pointer:fine){.mfui-9-status-badge_view_dot.mfui-9-status-badge_tooltip .mfui-9-status-badge__container:hover .mfui-9-status-badge__text{-webkit-text-decoration:underline dashed var(--content);text-decoration:underline dashed var(--content);text-decoration-thickness:1px}.mfui-9-status-badge_view_dot.mfui-9-status-badge_tooltip .mfui-9-status-badge__container:hover:before{-webkit-animation:pulse .8s ease-out;animation:pulse .8s ease-out}}@media screen and (min-width:1024px){.mfui-9-status-badge_view_dot.mfui-9-status-badge_adaptive.mfui-9-status-badge_tooltip .mfui-9-status-badge__text{text-underline-offset:5px}}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_green .mfui-9-status-badge__container:before{background-color:var(--brandGreen)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_blue .mfui-9-status-badge__container:before{background-color:var(--sky)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_gray .mfui-9-status-badge__container:before{background-color:var(--spbSky3)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_orange .mfui-9-status-badge__container:before{background-color:var(--137C)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_red .mfui-9-status-badge__container:before{background-color:var(--fury)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_background_dark .mfui-9-status-badge__container,.mfui-9-status-badge_view_dot.mfui-9-status-badge_background_light .mfui-9-status-badge__container{background-color:var(--base);border:none}.mfui-9-status-badge_view_icon .mfui-9-status-badge__container{border:1px solid var(--spbSky1);border-radius:8px;padding:1px 7px 1px 1px}.mfui-9-status-badge_view_icon .mfui-9-status-badge__arrow{rotate:180deg;-webkit-transition:rotate .3s ease-out,fill .3s ease-out;transition:rotate .3s ease-out,fill .3s ease-out;fill:var(--spbSky3)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_opened .mfui-9-status-badge__arrow{rotate:1turn}@media (pointer:fine){.mfui-9-status-badge_view_icon .mfui-9-status-badge__container:hover .mfui-9-status-badge__arrow{fill:var(--content)}}.mfui-9-status-badge_view_icon.mfui-9-status-badge_tooltip .mfui-9-status-badge__container{padding-right:1px}@media screen and (min-width:1024px){.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive .mfui-9-status-badge__container{border-radius:12px;padding:3px 10px 3px 5px}.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive .mfui-9-status-badge__icon{margin-right:4px}.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive .mfui-9-status-badge__text{margin-top:-1px}.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive.mfui-9-status-badge_tooltip .mfui-9-status-badge__container{padding-right:5px}}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_green .mfui-9-status-badge__icon{fill:var(--brandGreen)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_blue .mfui-9-status-badge__icon{fill:var(--sky)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_gray .mfui-9-status-badge__icon{fill:var(--spbSky3)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_orange .mfui-9-status-badge__icon{fill:var(--137C)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_red .mfui-9-status-badge__icon{fill:var(--fury)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_background_dark .mfui-9-status-badge__container,.mfui-9-status-badge_view_icon.mfui-9-status-badge_background_light .mfui-9-status-badge__container{background-color:var(--base);border:none}@-webkit-keyframes pulse{0%{opacity:1;scale:1}30%{opacity:.7}50%{opacity:1;scale:1.3}70%{opacity:.7}to{opacity:1;scale:1}}@keyframes pulse{0%{opacity:1;scale:1}30%{opacity:.7}50%{opacity:1;scale:1.3}70%{opacity:.7}to{opacity:1;scale:1}}
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-status-badge__container{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;line-height:18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--content);font-weight:400;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-status-badge__container:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-status-badge__container:focus{outline:none}.mfui-9-status-badge__text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfui-9-status-badge__arrow,.mfui-9-status-badge__icon{height:20px;width:20px}.mfui-9-status-badge__icon{margin-right:2px}@media screen and (min-width:1024px){.mfui-9-status-badge_adaptive .mfui-9-status-badge__container{font-size:15px;line-height:24px}}.mfui-9-status-badge_tooltip .mfui-9-status-badge__container{border-radius:8px;cursor:pointer}.mfui-9-status-badge__tooltip{width:288px}.mfui-9-status-badge_view_dot .mfui-9-status-badge__container{gap:8px}.mfui-9-status-badge_view_dot .mfui-9-status-badge__container:before{border-radius:50%;content:"";height:8px;width:8px}.mfui-9-status-badge_view_dot.mfui-9-status-badge_tooltip .mfui-9-status-badge__text{-webkit-text-decoration:underline dashed var(--spbSky3);text-decoration:underline dashed var(--spbSky3);text-decoration-thickness:1px;text-underline-offset:3px;-webkit-transition:-webkit-text-decoration .3s ease-out;transition:-webkit-text-decoration .3s ease-out;transition:text-decoration .3s ease-out;transition:text-decoration .3s ease-out,-webkit-text-decoration .3s ease-out}@media (pointer:fine){.mfui-9-status-badge_view_dot.mfui-9-status-badge_tooltip .mfui-9-status-badge__container:hover .mfui-9-status-badge__text{-webkit-text-decoration:underline dashed var(--content);text-decoration:underline dashed var(--content);text-decoration-thickness:1px}.mfui-9-status-badge_view_dot.mfui-9-status-badge_tooltip .mfui-9-status-badge__container:hover:before{-webkit-animation:pulse .8s ease-out;animation:pulse .8s ease-out}}@media screen and (min-width:1024px){.mfui-9-status-badge_view_dot.mfui-9-status-badge_adaptive.mfui-9-status-badge_tooltip .mfui-9-status-badge__text{text-underline-offset:5px}}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_green .mfui-9-status-badge__container:before{background-color:var(--brandGreen)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_blue .mfui-9-status-badge__container:before{background-color:var(--sky)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_gray .mfui-9-status-badge__container:before{background-color:var(--spbSky3)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_orange .mfui-9-status-badge__container:before{background-color:var(--137C)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_theme_red .mfui-9-status-badge__container:before{background-color:var(--fury)}.mfui-9-status-badge_view_dot.mfui-9-status-badge_background_dark .mfui-9-status-badge__container,.mfui-9-status-badge_view_dot.mfui-9-status-badge_background_light .mfui-9-status-badge__container{background-color:var(--base);border:none}.mfui-9-status-badge_view_icon .mfui-9-status-badge__container{border:1px solid var(--spbSky1);border-radius:8px;padding:1px 7px 1px 1px}.mfui-9-status-badge_view_icon .mfui-9-status-badge__arrow{rotate:180deg;-webkit-transition:rotate .3s ease-out,fill .3s ease-out;transition:rotate .3s ease-out,fill .3s ease-out;fill:var(--spbSky3)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_opened .mfui-9-status-badge__arrow{rotate:1turn}@media (pointer:fine){.mfui-9-status-badge_view_icon .mfui-9-status-badge__container:hover .mfui-9-status-badge__arrow{fill:var(--content)}}.mfui-9-status-badge_view_icon.mfui-9-status-badge_tooltip .mfui-9-status-badge__container{padding-right:1px}@media screen and (min-width:1024px){.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive .mfui-9-status-badge__container{border-radius:12px;padding:3px 10px 3px 5px}.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive .mfui-9-status-badge__icon{margin-right:4px}.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive .mfui-9-status-badge__text{margin-top:-1px}.mfui-9-status-badge_view_icon.mfui-9-status-badge_adaptive.mfui-9-status-badge_tooltip .mfui-9-status-badge__container{padding-right:5px}}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_green .mfui-9-status-badge__icon{fill:var(--brandGreen)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_blue .mfui-9-status-badge__icon{fill:var(--sky)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_gray .mfui-9-status-badge__icon{fill:var(--spbSky3)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_orange .mfui-9-status-badge__icon{fill:var(--137C)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_theme_red .mfui-9-status-badge__icon{fill:var(--fury)}.mfui-9-status-badge_view_icon.mfui-9-status-badge_background_dark .mfui-9-status-badge__container,.mfui-9-status-badge_view_icon.mfui-9-status-badge_background_light .mfui-9-status-badge__container{background-color:var(--base);border:none}@-webkit-keyframes pulse{0%{opacity:1;scale:1}30%{opacity:.7}50%{opacity:1;scale:1.3}70%{opacity:.7}to{opacity:1;scale:1}}@keyframes pulse{0%{opacity:1;scale:1}30%{opacity:.7}50%{opacity:1;scale:1.3}70%{opacity:.7}to{opacity:1;scale:1}}
@@ -8,21 +8,23 @@ var ProfileFullIcon = function ProfileFullIcon(props) {
8
8
  return /*#__PURE__*/React.createElement("svg", _extends({
9
9
  viewBox: "0 0 20 20"
10
10
  }, props), /*#__PURE__*/React.createElement("path", {
11
- d: "M5.22 18h9.55L16 13.47A8.28 8.28 0 0010 11a8.302 8.302 0 00-6 2.5L5.22 18zM14 6a4 4 0 10-8 0 4 4 0 008 0z"
11
+ d: "M15.034 9c.552 0 1.004.45.963 1-.334 4.5-2.892 8-5.997 8-3.106 0-5.664-3.5-5.997-8-.041-.55.41-1 .962-1h10.069zM10 2a3.008 3.008 0 013.017 3c0 1.657-1.35 3-3.017 3a3.008 3.008 0 01-3.017-3c0-1.657 1.35-3 3.017-3z"
12
12
  }));
13
13
  };
14
14
  var ArrowIcon = function ArrowIcon(props) {
15
15
  return /*#__PURE__*/React.createElement("svg", _extends({
16
16
  viewBox: "0 0 20 20"
17
17
  }, props), /*#__PURE__*/React.createElement("path", {
18
- d: "M13 12l-3-3-3 3-1-1 4-4 4 4z"
18
+ d: "M9.03 4.892a1.396 1.396 0 011.94 0l3.726 3.61a1 1 0 01-1.392 1.436l-2.297-2.225V14.5a1 1 0 01-2 0V7.7l-2.31 2.238a1 1 0 01-1.393-1.436l3.726-3.61z"
19
19
  }));
20
20
  };
21
21
  var AttentionIcon = function AttentionIcon(props) {
22
22
  return /*#__PURE__*/React.createElement("svg", _extends({
23
23
  viewBox: "0 0 20 20"
24
24
  }, props), /*#__PURE__*/React.createElement("path", {
25
- d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 13c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7s-.1-.5-.3-.7c-.2-.2-.5-.3-.7-.3s-.5.1-.7.3c-.2.2-.3.4-.3.7s.1.5.3.7.5.3.7.3zM9 5v6h2V5H9z"
25
+ fillRule: "evenodd",
26
+ clipRule: "evenodd",
27
+ d: "M8.249 3.014a1.96 1.96 0 013.45-.006l6.045 10.973c.739 1.342-.213 2.999-1.724 2.999H3.979c-1.508 0-2.46-1.651-1.727-2.993L8.25 3.014zM9.999 13a1 1 0 100 2 1 1 0 000-2zm0-7a1 1 0 00-1 1v4a1 1 0 002 0V7a1 1 0 00-1-1z"
26
28
  }));
27
29
  };
28
30
  var CheckInvertIcon = function CheckInvertIcon(props) {
@@ -31,14 +33,16 @@ var CheckInvertIcon = function CheckInvertIcon(props) {
31
33
  }, props), /*#__PURE__*/React.createElement("path", {
32
34
  fillRule: "evenodd",
33
35
  clipRule: "evenodd",
34
- d: "M10 18a8 8 0 100-16 8 8 0 000 16zM7.295 9.467l1.77 1.77 3.66-5.22 1.31.918-4.745 6.79-3.126-3.127 1.131-1.13z"
36
+ d: "M10 1.5a8.5 8.5 0 110 17 8.5 8.5 0 010-17zm4.312 5.688a.625.625 0 00-.9.005l-4.079 4.23-2.247-2.304a.626.626 0 00-.9 0 .664.664 0 000 .922l2.7 2.769a.628.628 0 00.902-.003l4.528-4.696a.665.665 0 00-.005-.923z"
35
37
  }));
36
38
  };
37
39
  var InfoIcon = function InfoIcon(props) {
38
40
  return /*#__PURE__*/React.createElement("svg", _extends({
39
41
  viewBox: "0 0 20 20"
40
42
  }, props), /*#__PURE__*/React.createElement("path", {
41
- d: "M10 2c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 5c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm1 8V9H9v6h2z"
43
+ fillRule: "evenodd",
44
+ clipRule: "evenodd",
45
+ d: "M10 1.5a8.5 8.5 0 110 17 8.5 8.5 0 010-17zm0 6.553a1 1 0 00-1 1v5a1 1 0 002 0v-5a1 1 0 00-1-1zM9.898 4.88a1 1 0 100 2 1 1 0 000-2z"
42
46
  }));
43
47
  };
44
48
  var PriceIcon = function PriceIcon(props) {
@@ -47,7 +51,7 @@ var PriceIcon = function PriceIcon(props) {
47
51
  }, props), /*#__PURE__*/React.createElement("path", {
48
52
  fillRule: "evenodd",
49
53
  clipRule: "evenodd",
50
- d: "M10 18a8 8 0 100-16 8 8 0 000 16zM7.75 5.75H11a2.75 2.75 0 010 5.5H9.25V12h3v1.5h-3v1.75h-1.5V13.5h-1V12h1v-.75h-1v-1.5h1v-4zM11 7.25H9.25v2.5H11a1.25 1.25 0 000-2.5z"
54
+ d: "M9.873 1.498l5.685.58a1.97 1.97 0 011.759 1.76l.582 5.686a1.97 1.97 0 01-.567 1.593l-6.793 6.793a1.97 1.97 0 01-2.786 0l-6.267-6.267a1.97 1.97 0 010-2.786l6.793-6.793a1.971 1.971 0 011.594-.566zm-4 9.61a.5.5 0 00-.706.707l2.828 2.828a.5.5 0 00.707-.707l-2.828-2.828zm8.734-6.058a1 1 0 10-1.414 1.415 1 1 0 001.414-1.415z"
51
55
  }));
52
56
  };
53
57
  var TimerIcon = function TimerIcon(props) {
@@ -56,7 +60,9 @@ var TimerIcon = function TimerIcon(props) {
56
60
  }, props), /*#__PURE__*/React.createElement("path", {
57
61
  fillRule: "evenodd",
58
62
  clipRule: "evenodd",
59
- d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-8.414V5H9v5.414l3 3L13.414 12 11 9.586z"
63
+ d: "M10.006 3.998c3.857 0 7 3.127 7 6.985 0 3.857-3.143 6.984-7 6.984s-7-3.127-7.001-6.984c0-3.858 3.143-6.985 7-6.985zM10 7.004a.5.5 0 00-.5.5v3.501H7a.5.5 0 000 1h3a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5z"
64
+ }), /*#__PURE__*/React.createElement("path", {
65
+ d: "M14.594 3.124a.514.514 0 01.715 0l2.15 2.105a.487.487 0 010 .7.515.515 0 01-.714 0l-2.15-2.105a.487.487 0 010-.7zM4.92 3.109a.515.515 0 01.716.005.487.487 0 01-.005.698l-2.165 2.09a.514.514 0 01-.715-.004.487.487 0 01.005-.7l2.164-2.09z"
60
66
  }));
61
67
  };
62
68
  var statusIconsMap = {
@@ -118,6 +124,9 @@ var StatusBadge = function StatusBadge(_ref) {
118
124
  }), /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.container), {
119
125
  className: cn('container', [classes === null || classes === void 0 ? void 0 : classes.container]),
120
126
  ref: triggerRef
127
+ }, !!tooltip && {
128
+ tabIndex: 0,
129
+ role: 'button'
121
130
  }), showIcon && /*#__PURE__*/React.createElement(StatusIconElement, _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.icon), {
122
131
  className: cn('icon')
123
132
  })), /*#__PURE__*/React.createElement("div", {
@@ -12,6 +12,8 @@ export interface ITimerBadgeProps {
12
12
  countdownText?: string;
13
13
  /** Текст перед таймером в режиме даты. Появляется при hasPrefix=true. */
14
14
  expirationDateText?: string;
15
+ /** Кастомный текст после окончания обратного отсчета */
16
+ countdownEndText?: string;
15
17
  /** Дополнительный класс корневого элемента */
16
18
  className?: string;
17
19
  /** Дополнительные data-атрибуты к внутренним элементам */
@@ -12,7 +12,9 @@ var TimerIcon = function TimerIcon(props) {
12
12
  }, props), /*#__PURE__*/React.createElement("path", {
13
13
  fillRule: "evenodd",
14
14
  clipRule: "evenodd",
15
- d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-8.414V5H9v5.414l3 3L13.414 12 11 9.586z"
15
+ d: "M10.006 3.998c3.857 0 7 3.127 7 6.985 0 3.857-3.143 6.984-7 6.984s-7-3.127-7.001-6.984c0-3.858 3.143-6.985 7-6.985zM10 7.004a.5.5 0 00-.5.5v3.501H7a.5.5 0 000 1h3a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5z"
16
+ }), /*#__PURE__*/React.createElement("path", {
17
+ d: "M14.594 3.124a.514.514 0 01.715 0l2.15 2.105a.487.487 0 010 .7.515.515 0 01-.714 0l-2.15-2.105a.487.487 0 010-.7zM4.92 3.109a.515.515 0 01.716.005.487.487 0 01-.005.698l-2.165 2.09a.514.514 0 01-.715-.004.487.487 0 01.005-.7l2.164-2.09z"
16
18
  }));
17
19
  };
18
20
  var SECONDS_IN_HOUR = 3600;
@@ -33,6 +35,8 @@ var TimerBadge = function TimerBadge(_ref) {
33
35
  countdownText = _ref$countdownText === void 0 ? 'Закончится через' : _ref$countdownText,
34
36
  _ref$expirationDateTe = _ref.expirationDateText,
35
37
  expirationDateText = _ref$expirationDateTe === void 0 ? 'Воспользуйтесь до' : _ref$expirationDateTe,
38
+ _ref$countdownEndText = _ref.countdownEndText,
39
+ countdownEndText = _ref$countdownEndText === void 0 ? 'Время действия истекло' : _ref$countdownEndText,
36
40
  className = _ref.className,
37
41
  dataAttrs = _ref.dataAttrs;
38
42
  var remainingTime = (expirationDate.getTime() - Date.now()) / MS_IN_SECOND;
@@ -74,7 +78,7 @@ var TimerBadge = function TimerBadge(_ref) {
74
78
  className: cn('icon')
75
79
  })), /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text), {
76
80
  className: cn('text')
77
- }), isTimeExpired ? 'Время действия истекло' : /*#__PURE__*/React.createElement(Timer, {
81
+ }), isTimeExpired ? countdownEndText : /*#__PURE__*/React.createElement(Timer, {
78
82
  additionalText: hasPrefix ? additionalText : undefined,
79
83
  showCountdown: showCountdown,
80
84
  expirationDate: expirationDate,
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid transparent;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 31px;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-9-button:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-button:focus{outline:none}.mfui-9-button svg{display:block;-webkit-transition:fill .3s;transition:fill .3s}.mfui-9-button_size-all_extra-small{border-radius:8px;font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 15px}.mfui-9-button_size-all_extra-small .mfui-9-button__icon,.mfui-9-button_size-all_extra-small .mfui-9-button__icon-arrow,.mfui-9-button_size-all_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:20px;width:20px}.mfui-9-button_size-all_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{margin-right:2px}.mfui-9-button_size-all_extra-small .mfui-9-button__icon-arrow{margin-left:0}.mfui-9-button_size-all_small{border-radius:12px;height:40px;min-width:40px;padding:0 23px}.mfui-9-button_size-all_small .mfui-9-button__icon,.mfui-9-button_size-all_small .mfui-9-button__icon-arrow{height:20px;width:20px}.mfui-9-button_size-all_small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-all_medium{border-radius:16px;height:52px;min-width:52px}.mfui-9-button_size-all_medium .mfui-9-button__icon,.mfui-9-button_size-all_medium .mfui-9-button__icon-arrow,.mfui-9-button_size-all_medium.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-all_large{border-radius:16px;height:60px;min-width:60px}.mfui-9-button_size-all_large .mfui-9-button__icon,.mfui-9-button_size-all_large .mfui-9-button__icon-arrow,.mfui-9-button_size-all_large.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-all_extra-small.mfui-9-buttonhas-arrow{padding:0 7px}.mfui-9-button_size-all_extra-small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:12px}.mfui-9-button_size-all_large.mfui-9-buttonhas-arrow,.mfui-9-button_size-all_medium.mfui-9-buttonhas-arrow{padding:0 23px}.mfui-9-button_size-all_large.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-all_medium.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-all_small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:16px}.mfui-9-button_size-all_large.mfui-9-button_has-subtext{height:60px}.mfui-9-button_has-subtext .mfui-9-button__inner{height:100%}.mfui-9-button_type_text{border:none;padding:0}@media screen and (min-width:1024px){.mfui-9-button_size-desktop_extra-small{border-radius:8px;font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 15px}.mfui-9-button_size-desktop_extra-small .mfui-9-button__icon,.mfui-9-button_size-desktop_extra-small .mfui-9-button__icon-arrow,.mfui-9-button_size-desktop_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:20px;width:20px}.mfui-9-button_size-desktop_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{margin-right:2px}.mfui-9-button_size-desktop_extra-small .mfui-9-button__icon-arrow{margin-left:0}.mfui-9-button_size-desktop_small{border-radius:12px;height:40px;min-width:40px;padding:0 23px}.mfui-9-button_size-desktop_small .mfui-9-button__icon,.mfui-9-button_size-desktop_small .mfui-9-button__icon-arrow{height:20px;width:20px}.mfui-9-button_size-desktop_small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-desktop_medium{border-radius:16px;height:52px;min-width:52px}.mfui-9-button_size-desktop_medium .mfui-9-button__icon,.mfui-9-button_size-desktop_medium .mfui-9-button__icon-arrow,.mfui-9-button_size-desktop_medium.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-desktop_large{border-radius:16px;height:60px;min-width:60px}.mfui-9-button_size-desktop_large .mfui-9-button__icon,.mfui-9-button_size-desktop_large .mfui-9-button__icon-arrow,.mfui-9-button_size-desktop_large.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-desktop_extra-small.mfui-9-buttonhas-arrow{padding:0 7px}.mfui-9-button_size-desktop_extra-small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:12px}.mfui-9-button_size-desktop_large.mfui-9-buttonhas-arrow,.mfui-9-button_size-desktop_medium.mfui-9-buttonhas-arrow{padding:0 23px}.mfui-9-button_size-desktop_large.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-desktop_medium.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-desktop_small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:16px}.mfui-9-button_size-desktop_large.mfui-9-button_has-subtext{height:60px}.mfui-9-button_has-subtext .mfui-9-button__inner{height:100%}.mfui-9-button_type_text{border:none;padding:0}}@media screen and (min-width:1280px){.mfui-9-button_size-wide_extra-small{border-radius:8px;font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 15px}.mfui-9-button_size-wide_extra-small .mfui-9-button__icon,.mfui-9-button_size-wide_extra-small .mfui-9-button__icon-arrow,.mfui-9-button_size-wide_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:20px;width:20px}.mfui-9-button_size-wide_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{margin-right:2px}.mfui-9-button_size-wide_extra-small .mfui-9-button__icon-arrow{margin-left:0}.mfui-9-button_size-wide_small{border-radius:12px;height:40px;min-width:40px;padding:0 23px}.mfui-9-button_size-wide_small .mfui-9-button__icon,.mfui-9-button_size-wide_small .mfui-9-button__icon-arrow{height:20px;width:20px}.mfui-9-button_size-wide_small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-wide_medium{border-radius:16px;height:52px;min-width:52px}.mfui-9-button_size-wide_medium .mfui-9-button__icon,.mfui-9-button_size-wide_medium .mfui-9-button__icon-arrow,.mfui-9-button_size-wide_medium.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-wide_large{border-radius:16px;height:60px;min-width:60px}.mfui-9-button_size-wide_large .mfui-9-button__icon,.mfui-9-button_size-wide_large .mfui-9-button__icon-arrow,.mfui-9-button_size-wide_large.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-wide_extra-small.mfui-9-buttonhas-arrow{padding:0 7px}.mfui-9-button_size-wide_extra-small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:12px}.mfui-9-button_size-wide_large.mfui-9-buttonhas-arrow,.mfui-9-button_size-wide_medium.mfui-9-buttonhas-arrow{padding:0 23px}.mfui-9-button_size-wide_large.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-wide_medium.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-wide_small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:16px}.mfui-9-button_size-wide_large.mfui-9-button_has-subtext{height:60px}.mfui-9-button_has-subtext .mfui-9-button__inner{height:100%}.mfui-9-button_type_text{border:none;padding:0}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-button_size-tablet_extra-small{border-radius:8px;font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 15px}.mfui-9-button_size-tablet_extra-small .mfui-9-button__icon,.mfui-9-button_size-tablet_extra-small .mfui-9-button__icon-arrow,.mfui-9-button_size-tablet_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:20px;width:20px}.mfui-9-button_size-tablet_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{margin-right:2px}.mfui-9-button_size-tablet_extra-small .mfui-9-button__icon-arrow{margin-left:0}.mfui-9-button_size-tablet_small{border-radius:12px;height:40px;min-width:40px;padding:0 23px}.mfui-9-button_size-tablet_small .mfui-9-button__icon,.mfui-9-button_size-tablet_small .mfui-9-button__icon-arrow{height:20px;width:20px}.mfui-9-button_size-tablet_small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-tablet_medium{border-radius:16px;height:52px;min-width:52px}.mfui-9-button_size-tablet_medium .mfui-9-button__icon,.mfui-9-button_size-tablet_medium .mfui-9-button__icon-arrow,.mfui-9-button_size-tablet_medium.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-tablet_large{border-radius:16px;height:60px;min-width:60px}.mfui-9-button_size-tablet_large .mfui-9-button__icon,.mfui-9-button_size-tablet_large .mfui-9-button__icon-arrow,.mfui-9-button_size-tablet_large.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-tablet_extra-small.mfui-9-buttonhas-arrow{padding:0 7px}.mfui-9-button_size-tablet_extra-small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:12px}.mfui-9-button_size-tablet_large.mfui-9-buttonhas-arrow,.mfui-9-button_size-tablet_medium.mfui-9-buttonhas-arrow{padding:0 23px}.mfui-9-button_size-tablet_large.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-tablet_medium.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-tablet_small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:16px}.mfui-9-button_size-tablet_large.mfui-9-button_has-subtext{height:60px}.mfui-9-button_has-subtext .mfui-9-button__inner{height:100%}.mfui-9-button_type_text{border:none;padding:0}}@media screen and (max-width:767px){.mfui-9-button_size-mobile_extra-small{border-radius:8px;font-size:12px;height:24px;line-height:14px;min-width:24px;padding:0 15px}.mfui-9-button_size-mobile_extra-small .mfui-9-button__icon,.mfui-9-button_size-mobile_extra-small .mfui-9-button__icon-arrow,.mfui-9-button_size-mobile_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:20px;width:20px}.mfui-9-button_size-mobile_extra-small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{margin-right:2px}.mfui-9-button_size-mobile_extra-small .mfui-9-button__icon-arrow{margin-left:0}.mfui-9-button_size-mobile_small{border-radius:12px;height:40px;min-width:40px;padding:0 23px}.mfui-9-button_size-mobile_small .mfui-9-button__icon,.mfui-9-button_size-mobile_small .mfui-9-button__icon-arrow{height:20px;width:20px}.mfui-9-button_size-mobile_small.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-mobile_medium{border-radius:16px;height:52px;min-width:52px}.mfui-9-button_size-mobile_medium .mfui-9-button__icon,.mfui-9-button_size-mobile_medium .mfui-9-button__icon-arrow,.mfui-9-button_size-mobile_medium.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-mobile_large{border-radius:16px;height:60px;min-width:60px}.mfui-9-button_size-mobile_large .mfui-9-button__icon,.mfui-9-button_size-mobile_large .mfui-9-button__icon-arrow,.mfui-9-button_size-mobile_large.mfui-9-button_content-type_icon-text .mfui-9-button__icon{height:32px;width:32px}.mfui-9-button_size-mobile_extra-small.mfui-9-buttonhas-arrow{padding:0 7px}.mfui-9-button_size-mobile_extra-small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:12px}.mfui-9-button_size-mobile_large.mfui-9-buttonhas-arrow,.mfui-9-button_size-mobile_medium.mfui-9-buttonhas-arrow{padding:0 23px}.mfui-9-button_size-mobile_large.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-mobile_medium.mfui-9-buttonhas-arrow .mfui-9-button__content,.mfui-9-button_size-mobile_small.mfui-9-buttonhas-arrow .mfui-9-button__content{padding-left:16px}.mfui-9-button_size-mobile_large.mfui-9-button_has-subtext{height:60px}.mfui-9-button_has-subtext .mfui-9-button__inner{height:100%}.mfui-9-button_type_text{border:none;padding:0}}.mfui-9-button:hover{text-decoration:none;-webkit-transition:background-color .3s,color .3s;transition:background-color .3s,color .3s}.mfui-9-button:hover svg{-webkit-transition:fill .3s;transition:fill .3s}.mfui-9-button_disabled{cursor:default}.mfui-9-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-9-button__text{margin-bottom:2px}.mfui-9-button__subtext{font-size:12px;line-height:14px}.mfui-9-button__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-9-button__content_ellipsis{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;width:inherit}.mfui-9-button__content_ellipsis .mfui-9-button__subtext,.mfui-9-button__content_ellipsis .mfui-9-button__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mfui-9-button__content_show-loader{visibility:hidden}.mfui-9-button__preloader{position:absolute}.mfui-9-button__icon-arrow{height:32px;margin-left:4px;width:32px}.mfui-9-button__text-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%}.mfui-9-button__text-content .mfui-9-button__text{margin-bottom:0}.mfui-9-button_content-type_icon{padding:0}.mfui-9-button_content-type_icon-text .mfui-9-button__icon,.mfui-9-button_content-type_icon-text:not(.mfui-9-button_type_text) .mfui-9-button__text{margin-right:4px}.mfui-9-button_type_text.mfui-9-button_theme_green{background-color:transparent;color:var(--brandGreen);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-button_type_text.mfui-9-button_theme_green svg{fill:var(--brandGreen)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_green:not(.mfui-9-button_loading):hover{color:var(--buttonHoverGreen)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_green:not(.mfui-9-button_loading):hover svg{fill:var(--buttonHoverGreen)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_green:not(.mfui-9-button_loading):active{color:var(--buttonDown)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_green:not(.mfui-9-button_loading):active svg{fill:var(--buttonDown)}.mfui-9-button_type_text.mfui-9-button_theme_purple{background-color:transparent;color:var(--brandPurple);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-button_type_text.mfui-9-button_theme_purple svg{fill:var(--brandPurple)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_purple:not(.mfui-9-button_loading):hover{color:var(--buttonHoverPurple)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_purple:not(.mfui-9-button_loading):hover svg{fill:var(--buttonHoverPurple)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_purple:not(.mfui-9-button_loading):active{color:var(--buttonDown)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_purple:not(.mfui-9-button_loading):active svg{fill:var(--buttonDown)}.mfui-9-button_type_text.mfui-9-button_theme_white{background-color:transparent;color:var(--stcWhite);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-button_type_text.mfui-9-button_theme_white svg{fill:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white:not(.mfui-9-button_loading):hover{color:var(--buttonHoverGrey)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white:not(.mfui-9-button_loading):hover svg{fill:var(--buttonHoverGrey)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white:not(.mfui-9-button_loading):active{color:var(--buttonDown)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white:not(.mfui-9-button_loading):active svg{fill:var(--buttonDown)}.mfui-9-button_type_text.mfui-9-button_theme_black{background-color:transparent;color:var(--stcBlack);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-button_type_text.mfui-9-button_theme_black svg{fill:var(--stcBlack)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_black{--stcBlack7:#818181}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_black:not(.mfui-9-button_loading):hover{color:var(--stcBlack7)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_black:not(.mfui-9-button_loading):hover svg{fill:var(--stcBlack7)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_black:not(.mfui-9-button_loading):active{color:var(--buttonDown)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_black:not(.mfui-9-button_loading):active svg{fill:var(--buttonDown)}.mfui-9-button_type_text.mfui-9-button_theme_danger{background-color:transparent;color:var(--fury);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.mfui-9-button_type_text.mfui-9-button_theme_danger svg{fill:var(--fury)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_danger:not(.mfui-9-button_loading):hover{color:var(--fury80)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_danger:not(.mfui-9-button_loading):hover svg{fill:var(--fury80)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_danger:not(.mfui-9-button_loading):active{color:var(--buttonDown)}.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_danger:not(.mfui-9-button_loading):active svg{fill:var(--buttonDown)}.mfui-9-button_type_primary.mfui-9-button_theme_green{background-color:var(--brandGreen);color:var(--stcWhite)}.mfui-9-button_type_primary.mfui-9-button_theme_green svg{fill:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_green:not(.mfui-9-button_loading):hover{background-color:var(--buttonHoverGreen)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_green:not(.mfui-9-button_loading):active{background-color:var(--buttonDown)}.mfui-9-button_type_primary.mfui-9-button_theme_green-soft{background-color:var(--brandGreen20);border:1px solid rgba(0,185,86,.2);color:var(--brandGreen)}.mfui-9-button_type_primary.mfui-9-button_theme_green-soft svg{fill:var(--brandGreen)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_green-soft:not(.mfui-9-button_loading):hover{background-color:var(--buttonHoverGreenSoft)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_green-soft:not(.mfui-9-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_green-soft:not(.mfui-9-button_loading):active svg{fill:var(--stcWhite)}.mfui-9-button_type_primary.mfui-9-button_theme_purple{background-color:var(--brandPurple);color:var(--stcWhite)}.mfui-9-button_type_primary.mfui-9-button_theme_purple svg{fill:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_purple:not(.mfui-9-button_loading):hover{background-color:var(--buttonHoverPurple)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_purple:not(.mfui-9-button_loading):active{background-color:var(--buttonDown)}.mfui-9-button_type_primary.mfui-9-button_theme_purple-soft{background-color:var(--brandPurple20);border:1px solid rgba(115,25,130,.2);color:var(--brandPurple)}.mfui-9-button_type_primary.mfui-9-button_theme_purple-soft svg{fill:var(--brandPurple)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_purple-soft:not(.mfui-9-button_loading):hover{background-color:var(--buttonHoverPurpleSoft)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_purple-soft:not(.mfui-9-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_purple-soft:not(.mfui-9-button_loading):active svg{fill:var(--stcWhite)}.mfui-9-button_type_primary.mfui-9-button_theme_white{background-color:var(--stcWhite);color:var(--stcBlack)}.mfui-9-button_type_primary.mfui-9-button_theme_white svg{fill:var(--stcBlack)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_white:not(.mfui-9-button_loading):hover{background-color:var(--buttonHoverGrey);color:var(--stcBlack)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_white:not(.mfui-9-button_loading):hover svg{fill:var(--stcBlack)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_white:not(.mfui-9-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_white:not(.mfui-9-button_loading):active svg{fill:var(--stcWhite)}.mfui-9-button_type_primary.mfui-9-button_theme_gray{background-color:var(--spbSky0);color:var(--content)}.mfui-9-button_type_primary.mfui-9-button_theme_gray svg{fill:var(--content)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_gray:not(.mfui-9-button_loading):hover{background-color:var(--spbSky1)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_gray:not(.mfui-9-button_loading):hover svg{fill:var(--content)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_gray:not(.mfui-9-button_loading):active{background-color:var(--spbSky2)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_gray:not(.mfui-9-button_loading):active svg{fill:var(--content)}.mfui-9-button_type_primary.mfui-9-button_theme_base{background-color:var(--base);color:var(--content)}.mfui-9-button_type_primary.mfui-9-button_theme_base svg{fill:var(--content)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_base:not(.mfui-9-button_loading):hover{background-color:var(--spbSky1)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_base:not(.mfui-9-button_loading):hover svg{fill:var(--content)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_base:not(.mfui-9-button_loading):active{background-color:var(--buttonDown);color:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_theme_base:not(.mfui-9-button_loading):active svg{fill:var(--stcWhite)}.mfui-9-button_type_outline.mfui-9-button_theme_green{background-color:transparent;border:1px solid var(--brandGreen);color:var(--brandGreen)}.mfui-9-button_type_outline.mfui-9-button_theme_green svg{fill:var(--brandGreen)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_green{--brandGreen7:rgba(0,185,86,.07);--brandGreen14:rgba(0,185,86,.14)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_green:not(.mfui-9-button_loading):hover{background-color:var(--brandGreen7)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_green:not(.mfui-9-button_loading):active{background-color:var(--brandGreen14)}.mfui-9-button_type_outline.mfui-9-button_theme_green-soft{background-color:transparent;color:var(--brandGreen)}.mfui-9-button_type_outline.mfui-9-button_theme_green-soft svg{fill:var(--brandGreen)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_green-soft{--brandGreen7:rgba(0,185,86,.07);--brandGreen14:rgba(0,185,86,.14)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_green-soft:not(.mfui-9-button_loading):hover{background-color:var(--brandGreen7)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_green-soft:not(.mfui-9-button_loading):active{background-color:var(--brandGreen14)}.mfui-9-button_type_outline.mfui-9-button_theme_purple{background-color:transparent;border:1px solid var(--brandPurple);color:var(--brandPurple)}.mfui-9-button_type_outline.mfui-9-button_theme_purple svg{fill:var(--brandPurple)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_purple{--brandPurple7:rgba(115,25,130,.07);--brandPurple14:rgba(115,25,130,.14)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_purple:not(.mfui-9-button_loading):hover{background-color:var(--brandPurple7)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_purple:not(.mfui-9-button_loading):active{background-color:var(--brandPurple14)}.mfui-9-button_type_outline.mfui-9-button_theme_white{background-color:transparent;border:1px solid var(--stcWhite);color:var(--stcWhite)}.mfui-9-button_type_outline.mfui-9-button_theme_white svg{fill:var(--stcWhite)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white{--stcWhite7:hsla(0,0%,100%,.07);--stcWhite14:hsla(0,0%,100%,.14)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white:not(.mfui-9-button_loading):hover{background-color:var(--stcWhite7)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white:not(.mfui-9-button_loading):active{background-color:var(--stcWhite14)}.mfui-9-button_type_outline.mfui-9-button_theme_black{background-color:transparent;border:1px solid var(--stcBlack);color:var(--stcBlack)}.mfui-9-button_type_outline.mfui-9-button_theme_black svg{fill:var(--stcBlack)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_black{--stcBlack7:rgba(51,51,51,.07);--stcBlack14:rgba(51,51,51,.14)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_black:not(.mfui-9-button_loading):hover{background-color:var(--stcBlack7)}.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_black:not(.mfui-9-button_loading):active{background-color:var(--stcBlack14)}.mfui-9-button_full-width{display:block;width:100%}@media screen and (max-width:767px){.mfui-9-button_full-width-mobile{display:block;width:100%}}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_disabled,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_disabled:active,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_disabled:hover,.mfui-9-button.mfui-9-button_type_primary.mfui-9-button_disabled{background-color:var(--spbSky1);border:1px solid var(--spbSky2);color:var(--spbSky3)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_disabled svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_disabled:active svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_primary.mfui-9-button_disabled:hover svg,.mfui-9-button.mfui-9-button_type_primary.mfui-9-button_disabled svg{fill:var(--spbSky3)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled:active,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled:hover,.mfui-9-button.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled{background-color:transparent;border:1px solid var(--stcWhite);color:var(--stcWhite50)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled:active svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled:hover svg,.mfui-9-button.mfui-9-button_type_outline.mfui-9-button_theme_white.mfui-9-button_disabled svg{fill:var(--stcWhite50)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_disabled,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_disabled:active,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_disabled:hover,.mfui-9-button.mfui-9-button_type_outline.mfui-9-button_disabled{background-color:transparent;border:1px solid var(--spbSky2);color:var(--spbSky3)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_disabled svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_disabled:active svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_outline.mfui-9-button_disabled:hover svg,.mfui-9-button.mfui-9-button_type_outline.mfui-9-button_disabled svg{fill:var(--spbSky3)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_disabled,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_disabled:active,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_disabled:hover,.mfui-9-button.mfui-9-button_type_text.mfui-9-button_disabled{color:var(--spbSky3)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_disabled svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_disabled:active svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_disabled:hover svg,.mfui-9-button.mfui-9-button_type_text.mfui-9-button_disabled svg{fill:var(--spbSky3)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled:active,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled:hover,.mfui-9-button.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled{background-color:transparent;color:var(--stcWhite)}.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled:active svg,.mfui-9-button.mfui-9-button_no-touch.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled:hover svg,.mfui-9-button.mfui-9-button_type_text.mfui-9-button_theme_white.mfui-9-button_disabled svg{fill:var(--stcWhite)}
@@ -14,6 +14,8 @@ export declare const ButtonThemes: {
14
14
  readonly WHITE: "white";
15
15
  readonly BLACK: "black";
16
16
  readonly DANGER: "danger";
17
+ readonly GRAY: "gray";
18
+ readonly BASE: "base";
17
19
  };
18
20
  type ButtonThemesType = (typeof ButtonThemes)[keyof typeof ButtonThemes];
19
21
  export declare const ButtonSizes: {
@@ -43,6 +45,7 @@ export interface IButtonProps extends Omit<ButtonLinkCommonAttributes, 'classNam
43
45
  inner?: Record<string, string>;
44
46
  loader?: Record<string, string>;
45
47
  text?: Record<string, string>;
48
+ subtext?: Record<string, string>;
46
49
  arrow?: Record<string, string>;
47
50
  };
48
51
  /** Тема компонента */
@@ -85,6 +88,8 @@ export interface IButtonProps extends Omit<ButtonLinkCommonAttributes, 'classNam
85
88
  buttonRef?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
86
89
  /** Обрезать текст при недостаточной ширине и добавлять многоточие */
87
90
  ellipsis?: boolean;
91
+ /** Дополнительный текст */
92
+ subtext?: string;
88
93
  children?: React.ReactNode;
89
94
  /** Обработчик клика по кнопке */
90
95
  onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
@@ -5,6 +5,8 @@ import "core-js/modules/es.symbol.js";
5
5
  import "core-js/modules/es.array.concat.js";
6
6
  import "core-js/modules/es.array.index-of.js";
7
7
  import "core-js/modules/es.array.is-array.js";
8
+ import "core-js/modules/es.array.some.js";
9
+ import "core-js/modules/es.object.to-string.js";
8
10
  var __rest = this && this.__rest || function (s, e) {
9
11
  var t = {};
10
12
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -15,13 +17,13 @@ var __rest = this && this.__rest || function (s, e) {
15
17
  };
16
18
  import * as React from 'react';
17
19
  import { cnCreate, detectTouch, filterDataAttrs } from '@megafon/ui-helpers';
18
- import Preloader, { PreloaderColors } from "../Preloader/Preloader";
20
+ import Preloader, { PreloaderColors } from "../../Preloader/Preloader";
19
21
  import "./Button.css";
20
22
  var Arrow = function Arrow(props) {
21
23
  return /*#__PURE__*/React.createElement("svg", _extends({
22
24
  viewBox: "0 0 40 40"
23
25
  }, props), /*#__PURE__*/React.createElement("path", {
24
- d: "M16 26l6-6-6-6 2-2 8 8-8 8z"
26
+ d: "M19.996 10.594a1.972 1.972 0 012.79-.032l7.633 7.465a2.759 2.759 0 010 3.946l-7.634 7.465a1.972 1.972 0 11-2.756-2.822l4.732-4.628H10.223a1.973 1.973 0 010-3.947H24.79l-4.761-4.657a1.974 1.974 0 01-.033-2.79z"
25
27
  }));
26
28
  };
27
29
  export var ButtonTypes = {
@@ -36,7 +38,9 @@ export var ButtonThemes = {
36
38
  PURPLE_SOFT: 'purple-soft',
37
39
  WHITE: 'white',
38
40
  BLACK: 'black',
39
- DANGER: 'danger'
41
+ DANGER: 'danger',
42
+ GRAY: 'gray',
43
+ BASE: 'base'
40
44
  };
41
45
  export var ButtonSizes = {
42
46
  EXTRA_SMALL: 'extra-small',
@@ -88,19 +92,25 @@ var Button = function Button(_a) {
88
92
  showArrow = _a$showArrow === void 0 ? false : _a$showArrow,
89
93
  icon = _a.icon,
90
94
  disabled = _a.disabled,
95
+ subtext = _a.subtext,
91
96
  children = _a.children,
92
97
  _a$ellipsis = _a.ellipsis,
93
98
  ellipsis = _a$ellipsis === void 0 ? false : _a$ellipsis,
94
99
  onClick = _a.onClick,
95
100
  dataAttrs = _a.dataAttrs,
96
101
  buttonRef = _a.buttonRef,
97
- rest = __rest(_a, ["classes", "className", "theme", "type", "href", "download", "target", "rel", "actionType", "sizeAll", "sizeWide", "sizeDesktop", "sizeTablet", "sizeMobile", "fullWidth", "fullWidthMobile", "showLoader", "showArrow", "icon", "disabled", "children", "ellipsis", "onClick", "dataAttrs", "buttonRef"]);
102
+ rest = __rest(_a, ["classes", "className", "theme", "type", "href", "download", "target", "rel", "actionType", "sizeAll", "sizeWide", "sizeDesktop", "sizeTablet", "sizeMobile", "fullWidth", "fullWidthMobile", "showLoader", "showArrow", "icon", "disabled", "subtext", "children", "ellipsis", "onClick", "dataAttrs", "buttonRef"]);
98
103
  var _React$useState = React.useState(false),
99
104
  _React$useState2 = _slicedToArray(_React$useState, 2),
100
105
  isTouch = _React$useState2[0],
101
106
  setTouch = _React$useState2[1];
102
107
  var ElementType = href ? 'a' : 'button';
103
108
  var displayArrow = showArrow && !icon;
109
+ var sizesArray = [sizeAll, sizeWide, sizeDesktop, sizeTablet, sizeMobile];
110
+ var onlyLargeSize = !sizesArray.some(function (size) {
111
+ return size === ButtonSizes.SMALL || size === ButtonSizes.EXTRA_SMALL || size === ButtonSizes.MEDIUM;
112
+ });
113
+ var displaySubtext = onlyLargeSize && !!subtext && !!children && !showArrow && !icon && type !== ButtonTypes.TEXT;
104
114
  var handleClick = React.useCallback(function (e) {
105
115
  if (disabled) {
106
116
  e.preventDefault();
@@ -109,7 +119,10 @@ var Button = function Button(_a) {
109
119
  onClick === null || onClick === void 0 ? void 0 : onClick(e);
110
120
  }, [disabled, onClick]);
111
121
  var currentTheme = React.useMemo(function () {
112
- return type === ButtonTypes.PRIMARY && theme === ButtonThemes.BLACK ? ButtonThemes.GREEN : theme;
122
+ if (type === ButtonTypes.PRIMARY && theme === ButtonThemes.BLACK || type !== ButtonTypes.PRIMARY && theme === ButtonThemes.BASE) {
123
+ return ButtonThemes.GREEN;
124
+ }
125
+ return theme;
113
126
  }, [type, theme]);
114
127
  var loaderWhite = React.useMemo(function () {
115
128
  return type === ButtonTypes.PRIMARY && theme === ButtonThemes.GREEN || type === ButtonTypes.PRIMARY && theme === ButtonThemes.PURPLE || type === ButtonTypes.OUTLINE && theme === ButtonThemes.WHITE || type === ButtonTypes.TEXT && theme === ButtonThemes.WHITE;
@@ -124,6 +137,22 @@ var Button = function Button(_a) {
124
137
  return PreloaderColors.DEFAULT;
125
138
  }
126
139
  }, [type, theme, loaderWhite]);
140
+ var renderedTextContent = React.useMemo(function () {
141
+ if (!children) {
142
+ return null;
143
+ }
144
+ var renderedText = /*#__PURE__*/React.createElement("span", _extends({
145
+ className: cn('text')
146
+ }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text)), children);
147
+ if (displaySubtext) {
148
+ return /*#__PURE__*/React.createElement("div", {
149
+ className: cn('text-content')
150
+ }, renderedText, /*#__PURE__*/React.createElement("span", _extends({
151
+ className: cn('subtext')
152
+ }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.subtext)), subtext));
153
+ }
154
+ return renderedText;
155
+ }, [children, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.subtext, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text, displaySubtext, subtext]);
127
156
  var renderedContent = React.useMemo(function () {
128
157
  if (!children && !icon) {
129
158
  return null;
@@ -135,14 +164,10 @@ var Button = function Button(_a) {
135
164
  }, contentClassName)
136
165
  }), icon && /*#__PURE__*/React.createElement("div", {
137
166
  className: cn('icon')
138
- }, icon), children && /*#__PURE__*/React.createElement("span", _extends({
139
- className: cn('text', {
140
- ellipsis: ellipsis
141
- })
142
- }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text)), children), displayArrow && /*#__PURE__*/React.createElement(Arrow, _extends({
167
+ }, icon), renderedTextContent, displayArrow && /*#__PURE__*/React.createElement(Arrow, _extends({
143
168
  className: cn('icon-arrow')
144
169
  }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrow))));
145
- }, [children, icon, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.content, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrow, ellipsis, showLoader, contentClassName, displayArrow]);
170
+ }, [children, icon, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.content, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrow, ellipsis, showLoader, contentClassName, renderedTextContent, displayArrow]);
146
171
  var contentType = React.useMemo(function () {
147
172
  switch (true) {
148
173
  case icon && !children:
@@ -199,7 +224,8 @@ var Button = function Button(_a) {
199
224
  loading: showLoader,
200
225
  'no-touch': !isTouch,
201
226
  'content-type': contentType,
202
- 'has-arrow': displayArrow
227
+ 'has-arrow': displayArrow,
228
+ 'has-subtext': displaySubtext
203
229
  }, classNameValue),
204
230
  href: href,
205
231
  download: !!href && download,
@@ -0,0 +1 @@
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-button-close{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;background-color:transparent;border:none;border-radius:8px;cursor:pointer;height:44px;justify-content:center;outline:none;overflow:hidden;text-decoration:none;width:44px;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.mfui-9-button-close:focus-visible{-webkit-animation:focus-outline-shrink .3s linear forwards;animation:focus-outline-shrink .3s linear forwards;outline-offset:2px}@-webkit-keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}@keyframes focus-outline-shrink{0%{outline:0 solid var(--137C)}to{outline:4px solid var(--137C)}}.mfui-9-button-close:focus{outline:none}.mfui-9-button-close__inner{position:relative;-webkit-transition:background-color .3s,color .3s;transition:background-color .3s,color .3s}.mfui-9-button-close__inner:before{border-radius:inherit;content:"";height:100%;left:0;position:absolute;top:0;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-property:background-color,color,opacity;transition-property:background-color,color,opacity;width:100%}.mfui-9-button-close_size_small .mfui-9-button-close__inner{border-radius:8px}.mfui-9-button-close_size_small .mfui-9-button-close__icon{height:24px;min-width:24px}.mfui-9-button-close_size_medium .mfui-9-button-close__inner{border-radius:12px}.mfui-9-button-close_size_medium .mfui-9-button-close__icon{height:32px;min-width:32px}.mfui-9-button-close_theme_white .mfui-9-button-close__inner{background-color:var(--spbSky0)}.mfui-9-button-close_theme_white .mfui-9-button-close__inner svg{fill:var(--spbSky3)}.mfui-9-button-close_theme_white:hover .mfui-9-button-close__inner{background-color:var(--spbSky1)}.mfui-9-button-close_theme_white:active .mfui-9-button-close__inner{background-color:var(--spbSky2)}.mfui-9-button-close_theme_gray .mfui-9-button-close__inner{background-color:var(--base)}.mfui-9-button-close_theme_gray .mfui-9-button-close__inner svg{fill:var(--spbSky3)}.mfui-9-button-close_theme_gray:hover .mfui-9-button-close__inner{background-color:var(--spbSky1)}.mfui-9-button-close_theme_gray:active .mfui-9-button-close__inner{background-color:var(--spbSky2)}.mfui-9-button-close_theme_soft .mfui-9-button-close__inner svg{opacity:.5;fill:var(--content)}.mfui-9-button-close_theme_soft .mfui-9-button-close__inner:before{background-color:var(--content);opacity:.05}.mfui-9-button-close_theme_soft:hover .mfui-9-button-close__inner:before{background-color:var(--content);opacity:.1}.mfui-9-button-close_theme_soft:active .mfui-9-button-close__inner:before{background-color:var(--content);opacity:.2}.mfui-9-button-close_theme_color .mfui-9-button-close__inner{background-color:var(--stcWhite20)}.mfui-9-button-close_theme_color .mfui-9-button-close__inner svg{fill:var(--stcWhite)}.mfui-9-button-close_theme_color:hover .mfui-9-button-close__inner{background-color:var(--stcWhite50)}.mfui-9-button-close_theme_color:active .mfui-9-button-close__inner{background:hsla(0,0%,100%,.8)}.mfui-9-button-close_theme_black .mfui-9-button-close__inner:before{background-color:var(--base);opacity:.1}.mfui-9-button-close_theme_black .mfui-9-button-close__inner svg{fill:var(--spbSky3)}.mfui-9-button-close_theme_black:hover .mfui-9-button-close__inner:before{background-color:var(--base);opacity:.2}.mfui-9-button-close_theme_black:active .mfui-9-button-close__inner:before{background-color:var(--base);opacity:.5}.mfui-9-button-close_theme_black:active .mfui-9-button-close__inner svg{fill:var(--base)}
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ import './ButtonClose.scss';
3
+ export declare const ButtonCloseThemes: {
4
+ readonly WHITE: "white";
5
+ readonly GRAY: "gray";
6
+ readonly SOFT: "soft";
7
+ readonly COLOR: "color";
8
+ readonly BLACK: "black";
9
+ };
10
+ type ButtonCloseThemesType = (typeof ButtonCloseThemes)[keyof typeof ButtonCloseThemes];
11
+ export declare const ButtonCloseSizes: {
12
+ readonly SMALL: "small";
13
+ readonly MEDIUM: "medium";
14
+ };
15
+ type ButtonCloseSizesType = (typeof ButtonCloseSizes)[keyof typeof ButtonCloseSizes];
16
+ type ButtonCloseAttributes = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof React.ButtonHTMLAttributes<HTMLButtonElement>>;
17
+ export interface IButtonCloseProps extends Omit<ButtonCloseAttributes, 'className'> {
18
+ /** Дополнительный класс корневого элемента */
19
+ className?: string | string[];
20
+ /** Дополнительные data атрибуты к внутренним элементам */
21
+ dataAttrs?: Record<string, string>;
22
+ /** Тема компонента */
23
+ theme?: ButtonCloseThemesType;
24
+ /** Размер компонента */
25
+ size?: ButtonCloseSizesType;
26
+ /** Отключение кнопки */
27
+ disabled?: boolean;
28
+ /** Ссылка на элемент */
29
+ buttonRef?: React.Ref<HTMLButtonElement>;
30
+ /** Обработчик клика по кнопке */
31
+ onClick?: (e: React.SyntheticEvent<EventTarget>) => void;
32
+ }
33
+ declare const ButtonClose: React.FC<IButtonCloseProps>;
34
+ export default ButtonClose;
@@ -0,0 +1,69 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import "core-js/modules/es.symbol.js";
3
+ import "core-js/modules/es.array.index-of.js";
4
+ var __rest = this && this.__rest || function (s, e) {
5
+ var t = {};
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
7
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import * as React from 'react';
13
+ import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
14
+ import "./ButtonClose.css";
15
+ var CancelIcon = function CancelIcon(props) {
16
+ return /*#__PURE__*/React.createElement("svg", _extends({
17
+ viewBox: "0 0 32 32"
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M9.405 9.402a1.558 1.558 0 012.201 0l4.348 4.344 4.337-4.333a1.555 1.555 0 112.201 2.2l-4.338 4.331 4.339 4.335a1.555 1.555 0 11-2.201 2.2l-4.34-4.336-4.348 4.346a1.554 1.554 0 11-2.2-2.2l4.348-4.344L9.405 11.6a1.554 1.554 0 010-2.2z"
20
+ }));
21
+ };
22
+ export var ButtonCloseThemes = {
23
+ WHITE: 'white',
24
+ GRAY: 'gray',
25
+ SOFT: 'soft',
26
+ COLOR: 'color',
27
+ BLACK: 'black'
28
+ };
29
+ export var ButtonCloseSizes = {
30
+ SMALL: 'small',
31
+ MEDIUM: 'medium'
32
+ };
33
+ var cn = cnCreate('mfui-9-button-close');
34
+ var ButtonClose = function ButtonClose(_a) {
35
+ var _a$className = _a.className,
36
+ className = _a$className === void 0 ? '' : _a$className,
37
+ _a$theme = _a.theme,
38
+ theme = _a$theme === void 0 ? 'white' : _a$theme,
39
+ _a$size = _a.size,
40
+ size = _a$size === void 0 ? 'small' : _a$size,
41
+ disabled = _a.disabled,
42
+ onClick = _a.onClick,
43
+ dataAttrs = _a.dataAttrs,
44
+ buttonRef = _a.buttonRef,
45
+ rest = __rest(_a, ["className", "theme", "size", "disabled", "onClick", "dataAttrs", "buttonRef"]);
46
+ var handleClick = React.useCallback(function (e) {
47
+ if (disabled) {
48
+ e.preventDefault();
49
+ return;
50
+ }
51
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
52
+ }, [disabled, onClick]);
53
+ return /*#__PURE__*/React.createElement("button", _extends({
54
+ type: "button",
55
+ className: cn({
56
+ size: size,
57
+ theme: theme,
58
+ disabled: disabled
59
+ }, className),
60
+ onClick: handleClick,
61
+ disabled: disabled,
62
+ ref: buttonRef
63
+ }, filterDataAttrs(dataAttrs), rest), /*#__PURE__*/React.createElement("div", {
64
+ className: cn('inner')
65
+ }, /*#__PURE__*/React.createElement("div", {
66
+ className: cn('icon')
67
+ }, /*#__PURE__*/React.createElement(CancelIcon, null))));
68
+ };
69
+ export default ButtonClose;
@@ -11,18 +11,14 @@ var ArrowLeft = function ArrowLeft(props) {
11
11
  return /*#__PURE__*/React.createElement("svg", _extends({
12
12
  viewBox: "0 0 20 20"
13
13
  }, props), /*#__PURE__*/React.createElement("path", {
14
- d: "M12 6v8l-5-4z",
15
- fillRule: "evenodd",
16
- clipRule: "evenodd"
14
+ d: "M8.202 10.465a.609.609 0 010-.907l2.547-2.371c.44-.41 1.251-.1 1.251.476v4.679c0 .575-.811.879-1.25.47l-2.548-2.347z"
17
15
  }));
18
16
  };
19
17
  var ArrowRight = function ArrowRight(props) {
20
18
  return /*#__PURE__*/React.createElement("svg", _extends({
21
19
  viewBox: "0 0 20 20"
22
20
  }, props), /*#__PURE__*/React.createElement("path", {
23
- d: "M8 14V6l5 4z",
24
- fillRule: "evenodd",
25
- clipRule: "evenodd"
21
+ d: "M11.798 9.535a.61.61 0 010 .907L9.25 12.813c-.44.41-1.251.1-1.251-.476V7.658c0-.576.811-.879 1.25-.47l2.548 2.347z"
26
22
  }));
27
23
  };
28
24
  var formatDate = function formatDate(date, pattern) {
@@ -1 +1 @@
1
- h1,h2,h3,h4,h5{margin:0}.mfui-9-carousel,.mfui-9-carousel__swiper{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.mfui-9-carousel__swiper{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-20px 0 -25px;overflow:hidden;padding:20px 0 25px}@media screen and (min-width:1024px){.mfui-9-carousel__swiper{margin-left:-20px!important;margin-right:-20px!important;padding-left:20px!important;padding-right:20px!important}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-carousel__swiper_default-inner-indents{margin-left:-48px;margin-right:-48px;padding-left:48px;padding-right:48px}}@media screen and (max-width:767px){.mfui-9-carousel__swiper_default-inner-indents{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}}.mfui-9-carousel__swiper_gradient:after,.mfui-9-carousel__swiper_gradient:before{bottom:0;content:"";position:absolute;top:0;width:var(--gap);z-index:5}.mfui-9-carousel__swiper_gradient:before{background:-webkit-gradient(linear,right top,left top,from(transparent),to(var(--gradientColor)));background:linear-gradient(270deg,transparent 0,var(--gradientColor) 100%);left:0}.mfui-9-carousel__swiper_gradient:after{background:-webkit-gradient(linear,right top,left top,from(var(--gradientColor)),to(transparent));background:linear-gradient(270deg,var(--gradientColor) 0,transparent 100%);right:0}.mfui-9-carousel__swiper_gradient-color_default{--gradientColor:var(--background)}.mfui-9-carousel__swiper_gradient-color_green{--gradientColor:var(--brandGreen)}.mfui-9-carousel__swiper_gradient-color_black{--gradientColor:var(--stcBlack)}.mfui-9-carousel__swiper_gradient-color_spbSky0{--gradientColor:var(--spbSky0)}.mfui-9-carousel__swiper_gradient-color_spbSky1{--gradientColor:var(--spbSky1)}.mfui-9-carousel__swiper_gradient-color_spbSky2{--gradientColor:var(--spbSky2)}.mfui-9-carousel .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;z-index:1}.mfui-9-carousel__slide{-ms-flex-negative:0;flex-shrink:0}@media screen and (min-width:1024px){.mfui-9-carousel__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.mfui-9-carousel .swiper-slide-visible{opacity:1;-webkit-transition:opacity .4s;transition:opacity .4s}}.mfui-9-carousel__arrow{position:absolute;top:50%;-webkit-transform:translateY(calc(-50% - 20px));transform:translateY(calc(-50% - 20px));z-index:6}@media screen and (max-width:1023px){.mfui-9-carousel__arrow{display:none}}.mfui-9-carousel__arrow_prev{right:calc(100% + 12px)}@media screen and (min-width:1280px){.mfui-9-carousel__arrow_prev{right:calc(100% + 20px)}}.mfui-9-carousel__arrow_next{left:calc(100% + 12px)}@media screen and (min-width:1280px){.mfui-9-carousel__arrow_next{left:calc(100% + 20px)}}.mfui-9-carousel__arrow_locked{display:none}.mfui-9-carousel .swiper-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;justify-self:center;-webkit-box-ordinal-group:3;-ms-flex-order:2;border-radius:12px;order:2;padding-top:32px;width:100%}.mfui-9-carousel .swiper-pagination.swiper-pagination-lock{display:none}.mfui-9-carousel .swiper-pagination-bullet{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:8px;justify-content:center;-webkit-transition:width .5s,background-color .3s;transition:width .5s,background-color .3s;width:8px}.mfui-9-carousel .swiper-pagination-bullet:before{border-radius:50%;content:"";display:block;height:100%;-webkit-transition:border-radius .5s;transition:border-radius .5s;width:100%}.mfui-9-carousel_nav-theme_green .swiper-pagination-bullet:before{background-color:var(--stcWhite50)}.mfui-9-carousel_nav-theme_light .swiper-pagination-bullet:before{background-color:var(--spbSky2)}.mfui-9-carousel .swiper-pagination-bullet-active{cursor:default;width:20px}.mfui-9-carousel .swiper-pagination-bullet-active:before{border-radius:4px}.mfui-9-carousel_nav-theme_green .swiper-pagination-bullet-active:before{background-color:var(--base)}.mfui-9-carousel_nav-theme_light .swiper-pagination-bullet-active:before{background-color:var(--brandGreen)}
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-9-carousel,.mfui-9-carousel__swiper{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.mfui-9-carousel__swiper{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-20px 0 -25px;overflow:hidden;padding:20px 0 25px}@media screen and (min-width:1024px){.mfui-9-carousel__swiper{margin-left:-20px!important;margin-right:-20px!important;padding-left:20px!important;padding-right:20px!important}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-9-carousel__swiper_default-inner-indents{margin-left:-48px;margin-right:-48px;padding-left:48px;padding-right:48px}}@media screen and (max-width:767px){.mfui-9-carousel__swiper_default-inner-indents{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:32px}}.mfui-9-carousel__swiper_gradient:after,.mfui-9-carousel__swiper_gradient:before{bottom:0;content:"";position:absolute;top:0;width:var(--gap);z-index:5}.mfui-9-carousel__swiper_gradient:before{background:-webkit-gradient(linear,right top,left top,from(rgba(var(--gradientColorRGB),0)),to(var(--gradientColor)));background:linear-gradient(270deg,rgba(var(--gradientColorRGB),0) 0,var(--gradientColor) 100%);left:0}.mfui-9-carousel__swiper_gradient:after{background:-webkit-gradient(linear,right top,left top,from(var(--gradientColor)),to(rgba(var(--gradientColorRGB),0)));background:linear-gradient(270deg,var(--gradientColor) 0,rgba(var(--gradientColorRGB),0) 100%);right:0}.mfui-9-carousel__swiper_gradient-color_default{--gradientColor:var(--background);--gradientColorRGB:var(--background-rgb)}.mfui-9-carousel__swiper_gradient-color_green{--gradientColor:var(--brandGreen);--gradientColorRGB:var(--brandGreen-rgb)}.mfui-9-carousel__swiper_gradient-color_black{--gradientColor:var(--stcBlack);--gradientColorRGB:var(--stcBlack-rgb)}.mfui-9-carousel__swiper_gradient-color_spbSky0{--gradientColor:var(--spbSky0);--gradientColorRGB:var(--spbSky0-rgb)}.mfui-9-carousel__swiper_gradient-color_spbSky1{--gradientColor:var(--spbSky1);--gradientColorRGB:var(--spbSky1-rgb)}.mfui-9-carousel__swiper_gradient-color_spbSky2{--gradientColor:var(--spbSky2);--gradientColorRGB:var(--spbSky2-rgb)}.mfui-9-carousel .swiper-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;z-index:1}.mfui-9-carousel__slide{-ms-flex-negative:0;flex-shrink:0}@media screen and (min-width:1024px){.mfui-9-carousel__slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}}.mfui-9-carousel__slide:focus{outline:none}@media screen and (min-width:1024px){.mfui-9-carousel .swiper-slide-visible{opacity:1;-webkit-transition:opacity .4s;transition:opacity .4s}}.mfui-9-carousel__arrow{position:absolute;top:50%;-webkit-transform:translateY(calc(-50% - 20px));transform:translateY(calc(-50% - 20px));z-index:6}@media screen and (max-width:1023px){.mfui-9-carousel__arrow{display:none}}.mfui-9-carousel__arrow_prev{right:calc(100% + 12px)}@media screen and (min-width:1280px){.mfui-9-carousel__arrow_prev{right:calc(100% + 20px)}}.mfui-9-carousel__arrow_next{left:calc(100% + 12px)}@media screen and (min-width:1280px){.mfui-9-carousel__arrow_next{left:calc(100% + 20px)}}.mfui-9-carousel__arrow_locked{display:none}.mfui-9-carousel .swiper-pagination{display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;justify-self:center;-webkit-box-ordinal-group:3;-ms-flex-order:2;border-radius:12px;order:2;padding-top:32px;width:100%}.mfui-9-carousel .swiper-pagination.swiper-pagination-lock{display:none}.mfui-9-carousel .swiper-pagination-bullet{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:8px;justify-content:center;-webkit-transition:all .5s,background-color .3s;transition:all .5s,background-color .3s;width:8px}.mfui-9-carousel .swiper-pagination-bullet:before{border-radius:50%;content:"";display:block;height:100%;-webkit-transition:border-radius .5s;transition:border-radius .5s;width:100%}.mfui-9-carousel_nav-theme_green .swiper-pagination-bullet:before{background-color:var(--stcWhite50)}.mfui-9-carousel_nav-theme_light .swiper-pagination-bullet:before{background-color:var(--spbSky2)}.mfui-9-carousel .swiper-pagination-bullet-active{cursor:default;-webkit-transform:scaleX(2.3);transform:scaleX(2.3)}.mfui-9-carousel .swiper-pagination-bullet-active:before{border-radius:40%}.mfui-9-carousel_nav-theme_green .swiper-pagination-bullet-active:before{background-color:var(--base)}.mfui-9-carousel_nav-theme_light .swiper-pagination-bullet-active:before{background-color:var(--brandGreen)}.mfui-9-carousel_arrow-position_inside .mfui-9-carousel__arrow_prev{right:calc(100% - 20px)}@media screen and (min-width:1280px){.mfui-9-carousel_arrow-position_inside .mfui-9-carousel__arrow_prev{right:calc(100% - 20px)}}.mfui-9-carousel_arrow-position_inside .mfui-9-carousel__arrow_next{left:calc(100% - 20px)}@media screen and (min-width:1280px){.mfui-9-carousel_arrow-position_inside .mfui-9-carousel__arrow_next{left:calc(100% - 20px)}}
@@ -22,10 +22,15 @@ declare const GradientTheme: {
22
22
  readonly SPB_SKY_1: "spbSky1";
23
23
  readonly SPB_SKY_2: "spbSky2";
24
24
  };
25
+ export declare const ArrowPosition: {
26
+ readonly OUTSIDE: "outside";
27
+ readonly INSIDE: "inside";
28
+ };
25
29
  type SlidesPerViewType = (typeof SlidesPerView)[keyof typeof SlidesPerView];
26
30
  type NavThemeType = (typeof NavTheme)[keyof typeof NavTheme];
27
31
  type EffectThemeType = (typeof EffectTheme)[keyof typeof EffectTheme];
28
32
  type GradientThemeType = (typeof GradientTheme)[keyof typeof GradientTheme];
33
+ type ArrowPositionType = (typeof ArrowPosition)[keyof typeof ArrowPosition];
29
34
  export type SlidesSettingsType = {
30
35
  [key: number]: {
31
36
  slidesPerView: number | SlidesPerViewType;
@@ -84,6 +89,8 @@ export interface ICarouselProps {
84
89
  disableArrows?: boolean;
85
90
  /** Тема стрелок */
86
91
  arrowTheme?: ArrowThemeType;
92
+ /** Позиционирование стрелок */
93
+ arrowPosition?: ArrowPositionType;
87
94
  /** Css селектор элемента, при перетаскивании которого не будет происходить смена слайдов */
88
95
  noSwipingSelector?: string;
89
96
  /** Свайп к слайду, по которому произведен клик */
@@ -100,6 +107,8 @@ export interface ICarouselProps {
100
107
  gradient?: boolean;
101
108
  /** Цвет градиента */
102
109
  gradientColor?: GradientThemeType;
110
+ /** Отключить переключение слайдов при фокусе на дочерних элементах */
111
+ disableChildFocusPropagation?: boolean;
103
112
  children?: React.ReactNode;
104
113
  }
105
114
  declare const Carousel: React.FC<ICarouselProps>;
@@ -70,6 +70,10 @@ var GradientTheme = {
70
70
  SPB_SKY_1: 'spbSky1',
71
71
  SPB_SKY_2: 'spbSky2'
72
72
  };
73
+ export var ArrowPosition = {
74
+ OUTSIDE: 'outside',
75
+ INSIDE: 'inside'
76
+ };
73
77
  var getAutoPlayConfig = function getAutoPlayConfig(delay) {
74
78
  return {
75
79
  delay: delay,
@@ -127,6 +131,7 @@ var Carousel = function Carousel(_ref) {
127
131
  disableArrows = _ref$disableArrows === void 0 ? false : _ref$disableArrows,
128
132
  _ref$arrowTheme = _ref.arrowTheme,
129
133
  arrowTheme = _ref$arrowTheme === void 0 ? ArrowTheme.PURPLE : _ref$arrowTheme,
134
+ arrowPosition = _ref.arrowPosition,
130
135
  noSwipingSelector = _ref.noSwipingSelector,
131
136
  children = _ref.children,
132
137
  pagination = _ref.pagination,
@@ -139,7 +144,9 @@ var Carousel = function Carousel(_ref) {
139
144
  _ref$gradient = _ref.gradient,
140
145
  gradient = _ref$gradient === void 0 ? false : _ref$gradient,
141
146
  _ref$gradientColor = _ref.gradientColor,
142
- gradientColor = _ref$gradientColor === void 0 ? 'default' : _ref$gradientColor;
147
+ gradientColor = _ref$gradientColor === void 0 ? 'default' : _ref$gradientColor,
148
+ _ref$disableChildFocu = _ref.disableChildFocusPropagation,
149
+ disableChildFocusPropagation = _ref$disableChildFocu === void 0 ? false : _ref$disableChildFocu;
143
150
  var _React$useState = React.useState(),
144
151
  _React$useState2 = _slicedToArray(_React$useState, 2),
145
152
  swiperInstance = _React$useState2[0],
@@ -252,6 +259,9 @@ var Carousel = function Carousel(_ref) {
252
259
  var handleSlideFocus = function handleSlideFocus(index) {
253
260
  return function (e) {
254
261
  var _a;
262
+ if (disableChildFocusPropagation && e.target !== e.currentTarget) {
263
+ return;
264
+ }
255
265
  if (loop) {
256
266
  // for correctly scroll the looped carousel to the focused element, we need to get its real index in the DOM-collection of slides
257
267
  // because swiper does not provide this, only data-swiper-slide-index, whose values are in the range from 0 to children.length - 1,
@@ -308,7 +318,8 @@ var Carousel = function Carousel(_ref) {
308
318
  return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
309
319
  ref: rootRef,
310
320
  className: cn({
311
- 'nav-theme': navTheme
321
+ 'nav-theme': navTheme,
322
+ 'arrow-position': arrowPosition
312
323
  }, [className, rootClass]),
313
324
  onClick: handleRootClick,
314
325
  style: gradientStyles
@@ -352,6 +363,7 @@ var Carousel = function Carousel(_ref) {
352
363
  return /*#__PURE__*/React.createElement(SwiperSlide, _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.slide, i + 1), {
353
364
  key: i,
354
365
  className: cn('slide', slideClass),
366
+ tabIndex: disableChildFocusPropagation ? 0 : undefined,
355
367
  onFocus: handleSlideFocus(i),
356
368
  onMouseDown: disableFocusOnSlideClick
357
369
  }), child);