@megafon/ui-shared 5.15.0 → 6.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/es/components/AccordionBox/AccordionBox.css +1 -15
  2. package/dist/es/components/AccordionBox/AccordionBox.d.ts +2 -2
  3. package/dist/es/components/AccordionBox/AccordionBox.js +6 -49
  4. package/dist/es/components/AudioPlayer/AudioPlayer.d.ts +2 -2
  5. package/dist/es/components/AudioPlayer/AudioPlayer.js +11 -27
  6. package/dist/es/components/AudioPlayer/AudioProgress.d.ts +1 -1
  7. package/dist/es/components/AudioPlayer/AudioProgress.js +10 -22
  8. package/dist/es/components/AudioPlayer/AudioRange.d.ts +1 -1
  9. package/dist/es/components/AudioPlayer/AudioRange.js +8 -10
  10. package/dist/es/components/AudioPlayer/AudioVolume.d.ts +1 -1
  11. package/dist/es/components/AudioPlayer/AudioVolume.js +3 -12
  12. package/dist/es/components/AudioPlayer/hooks/useTrackDuration.js +4 -10
  13. package/dist/es/components/AudioPlayer/style/AudioPlayer.css +1 -58
  14. package/dist/es/components/AudioPlayer/style/AudioProgress.css +1 -35
  15. package/dist/es/components/AudioPlayer/style/AudioRange.css +1 -68
  16. package/dist/es/components/AudioPlayer/style/AudioVolume.css +1 -34
  17. package/dist/es/components/AudioPlayer/timerFormatUtil.js +1 -9
  18. package/dist/es/components/BannerBox/BannerBox.d.ts +1 -1
  19. package/dist/es/components/BannerBox/BannerBox.js +3 -12
  20. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
  21. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +23 -64
  22. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
  23. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +9 -36
  24. package/dist/es/components/BenefitsIcons/helpers.d.ts +3 -3
  25. package/dist/es/components/BenefitsIcons/helpers.js +6 -20
  26. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
  27. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
  28. package/dist/es/components/BenefitsIcons/types.d.ts +5 -5
  29. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
  30. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +19 -49
  31. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +1 -43
  32. package/dist/es/components/BenefitsPictures/helpers.d.ts +2 -2
  33. package/dist/es/components/BenefitsPictures/helpers.js +0 -14
  34. package/dist/es/components/BenefitsPictures/types.d.ts +3 -3
  35. package/dist/es/components/BenefitsPictures/types.js +1 -0
  36. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +1 -43
  37. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  38. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +10 -39
  39. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
  40. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
  41. package/dist/es/components/Breadcrumbs/components/BreadcrumbsItem.js +11 -36
  42. package/dist/es/components/ButtonBanner/ButtonBanner.css +1 -122
  43. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +7 -7
  44. package/dist/es/components/ButtonBanner/ButtonBanner.js +22 -53
  45. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
  46. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
  47. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +20 -51
  48. package/dist/es/components/Card/Card.css +1 -308
  49. package/dist/es/components/Card/Card.d.ts +3 -3
  50. package/dist/es/components/Card/Card.js +20 -109
  51. package/dist/es/components/Card/types.d.ts +9 -9
  52. package/dist/es/components/Card/types.js +1 -0
  53. package/dist/es/components/CardsBox/CardsBox.js +3 -14
  54. package/dist/es/components/CardsBox/helpers.d.ts +2 -2
  55. package/dist/es/components/CardsBox/helpers.js +0 -4
  56. package/dist/es/components/CarouselBox/CarouselBox.d.ts +2 -2
  57. package/dist/es/components/CarouselBox/CarouselBox.js +11 -24
  58. package/dist/es/components/Container/Container.css +1 -3101
  59. package/dist/es/components/Container/Container.d.ts +7 -5
  60. package/dist/es/components/Container/Container.js +10 -25
  61. package/dist/es/components/DownloadLinks/DownloadLink.css +1 -37
  62. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +1 -1
  63. package/dist/es/components/DownloadLinks/DownloadLink.js +13 -44
  64. package/dist/es/components/DownloadLinks/DownloadLinks.css +1 -36
  65. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +3 -3
  66. package/dist/es/components/DownloadLinks/DownloadLinks.js +2 -13
  67. package/dist/es/components/FaqWrapper/FaqWrapper.d.ts +5 -2
  68. package/dist/es/components/FaqWrapper/FaqWrapper.js +1 -3
  69. package/dist/es/components/ImageBanner/ImageBanner.css +1 -239
  70. package/dist/es/components/ImageBanner/ImageBanner.d.ts +14 -16
  71. package/dist/es/components/ImageBanner/ImageBanner.js +41 -111
  72. package/dist/es/components/Instructions/Instructions.css +1 -790
  73. package/dist/es/components/Instructions/Instructions.d.ts +11 -11
  74. package/dist/es/components/Instructions/Instructions.js +41 -94
  75. package/dist/es/components/NotificationBox/NotificationBox.css +1 -0
  76. package/dist/es/components/NotificationBox/NotificationBox.d.ts +4 -4
  77. package/dist/es/components/NotificationBox/NotificationBox.js +5 -19
  78. package/dist/es/components/PageTitle/PageTitle.css +1 -80
  79. package/dist/es/components/PageTitle/PageTitle.d.ts +2 -2
  80. package/dist/es/components/PageTitle/PageTitle.js +12 -37
  81. package/dist/es/components/Partners/Partners.css +1 -53
  82. package/dist/es/components/Partners/Partners.d.ts +2 -2
  83. package/dist/es/components/Partners/Partners.js +17 -48
  84. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +1 -80
  85. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
  86. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +10 -28
  87. package/dist/es/components/Property/Property.css +1 -156
  88. package/dist/es/components/Property/Property.d.ts +4 -4
  89. package/dist/es/components/Property/Property.js +37 -81
  90. package/dist/es/components/Property/PropertyDescription.css +1 -17
  91. package/dist/es/components/Property/PropertyDescription.d.ts +3 -3
  92. package/dist/es/components/Property/PropertyDescription.js +8 -28
  93. package/dist/es/components/Property/types.d.ts +7 -5
  94. package/dist/es/components/Property/types.js +1 -0
  95. package/dist/es/components/Steps/Steps.css +1 -41
  96. package/dist/es/components/Steps/Steps.d.ts +2 -1
  97. package/dist/es/components/Steps/Steps.js +4 -19
  98. package/dist/es/components/Steps/StepsItem.css +1 -42
  99. package/dist/es/components/Steps/StepsItem.d.ts +2 -2
  100. package/dist/es/components/Steps/StepsItem.js +2 -9
  101. package/dist/es/components/StoreBanner/StoreBanner.css +1 -346
  102. package/dist/es/components/StoreBanner/StoreBanner.d.ts +5 -5
  103. package/dist/es/components/StoreBanner/StoreBanner.js +41 -97
  104. package/dist/es/components/StoreButton/StoreButton.css +1 -327
  105. package/dist/es/components/StoreButton/StoreButton.d.ts +3 -3
  106. package/dist/es/components/StoreButton/StoreButton.js +13 -44
  107. package/dist/es/components/Table/Table.css +1 -157
  108. package/dist/es/components/Table/Table.d.ts +1 -1
  109. package/dist/es/components/Table/Table.js +31 -51
  110. package/dist/es/components/Table/TableCell.js +0 -6
  111. package/dist/es/components/Table/TableRow.js +1 -10
  112. package/dist/es/components/TabsBox/TabsBox.d.ts +1 -1
  113. package/dist/es/components/TabsBox/TabsBox.js +4 -13
  114. package/dist/es/components/TextBox/TextBox.css +1 -25
  115. package/dist/es/components/TextBox/TextBox.d.ts +2 -1
  116. package/dist/es/components/TextBox/TextBox.js +8 -23
  117. package/dist/es/components/TextBox/TextBoxPicture.css +1 -27
  118. package/dist/es/components/TextBox/TextBoxPicture.d.ts +2 -2
  119. package/dist/es/components/TextBox/TextBoxPicture.js +5 -14
  120. package/dist/es/components/TextWithIcon/TextWithIcon.css +1 -10
  121. package/dist/es/components/TextWithIcon/TextWithIcon.d.ts +1 -1
  122. package/dist/es/components/TextWithIcon/TextWithIcon.js +6 -24
  123. package/dist/es/components/TextWithIcon/TextWithIconItem.css +1 -31
  124. package/dist/es/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
  125. package/dist/es/components/TextWithIcon/TextWithIconItem.js +6 -21
  126. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
  127. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
  128. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +6 -23
  129. package/dist/es/components/VideoBanner/VideoBanner.css +1 -225
  130. package/dist/es/components/VideoBanner/VideoBanner.d.ts +7 -7
  131. package/dist/es/components/VideoBanner/VideoBanner.js +47 -110
  132. package/dist/es/components/VideoBlock/VideoBlock.css +1 -106
  133. package/dist/es/components/VideoBlock/VideoBlock.d.ts +4 -4
  134. package/dist/es/components/VideoBlock/VideoBlock.js +35 -75
  135. package/dist/es/helpers/getColumnConfig.d.ts +5 -1
  136. package/dist/lib/components/AccordionBox/AccordionBox.css +1 -15
  137. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +2 -2
  138. package/dist/lib/components/AccordionBox/AccordionBox.js +10 -66
  139. package/dist/lib/components/AudioPlayer/AudioPlayer.d.ts +2 -2
  140. package/dist/lib/components/AudioPlayer/AudioPlayer.js +32 -56
  141. package/dist/lib/components/AudioPlayer/AudioProgress.d.ts +1 -1
  142. package/dist/lib/components/AudioPlayer/AudioProgress.js +12 -43
  143. package/dist/lib/components/AudioPlayer/AudioRange.d.ts +1 -1
  144. package/dist/lib/components/AudioPlayer/AudioRange.js +9 -17
  145. package/dist/lib/components/AudioPlayer/AudioVolume.d.ts +1 -1
  146. package/dist/lib/components/AudioPlayer/AudioVolume.js +4 -23
  147. package/dist/lib/components/AudioPlayer/hooks/useTrackDuration.js +5 -16
  148. package/dist/lib/components/AudioPlayer/style/AudioPlayer.css +1 -58
  149. package/dist/lib/components/AudioPlayer/style/AudioProgress.css +1 -35
  150. package/dist/lib/components/AudioPlayer/style/AudioRange.css +1 -68
  151. package/dist/lib/components/AudioPlayer/style/AudioVolume.css +1 -34
  152. package/dist/lib/components/AudioPlayer/timerFormatUtil.js +2 -13
  153. package/dist/lib/components/BannerBox/BannerBox.d.ts +1 -1
  154. package/dist/lib/components/BannerBox/BannerBox.js +7 -25
  155. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +1 -1
  156. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +26 -86
  157. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +1 -1
  158. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +13 -53
  159. package/dist/lib/components/BenefitsIcons/helpers.d.ts +3 -3
  160. package/dist/lib/components/BenefitsIcons/helpers.js +10 -37
  161. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +1 -38
  162. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +1 -90
  163. package/dist/lib/components/BenefitsIcons/types.d.ts +5 -5
  164. package/dist/lib/components/BenefitsIcons/types.js +5 -8
  165. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +1 -1
  166. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +24 -71
  167. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +1 -43
  168. package/dist/lib/components/BenefitsPictures/helpers.d.ts +2 -2
  169. package/dist/lib/components/BenefitsPictures/helpers.js +9 -40
  170. package/dist/lib/components/BenefitsPictures/types.d.ts +3 -3
  171. package/dist/lib/components/BenefitsPictures/types.js +5 -1
  172. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +1 -43
  173. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  174. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +18 -60
  175. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.css +1 -16
  176. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.d.ts +4 -4
  177. package/dist/lib/components/Breadcrumbs/components/BreadcrumbsItem.js +22 -55
  178. package/dist/lib/components/ButtonBanner/ButtonBanner.css +1 -122
  179. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +7 -7
  180. package/dist/lib/components/ButtonBanner/ButtonBanner.js +40 -89
  181. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +1 -19
  182. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +3 -3
  183. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +29 -72
  184. package/dist/lib/components/Card/Card.css +1 -308
  185. package/dist/lib/components/Card/Card.d.ts +3 -3
  186. package/dist/lib/components/Card/Card.js +58 -154
  187. package/dist/lib/components/Card/types.d.ts +9 -9
  188. package/dist/lib/components/Card/types.js +5 -1
  189. package/dist/lib/components/CardsBox/CardsBox.js +7 -31
  190. package/dist/lib/components/CardsBox/helpers.d.ts +2 -2
  191. package/dist/lib/components/CardsBox/helpers.js +1 -8
  192. package/dist/lib/components/CarouselBox/CarouselBox.d.ts +2 -2
  193. package/dist/lib/components/CarouselBox/CarouselBox.js +15 -39
  194. package/dist/lib/components/Container/Container.css +1 -3101
  195. package/dist/lib/components/Container/Container.d.ts +7 -5
  196. package/dist/lib/components/Container/Container.js +17 -39
  197. package/dist/lib/components/DownloadLinks/DownloadLink.css +1 -37
  198. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +1 -1
  199. package/dist/lib/components/DownloadLinks/DownloadLink.js +17 -60
  200. package/dist/lib/components/DownloadLinks/DownloadLinks.css +1 -36
  201. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +3 -3
  202. package/dist/lib/components/DownloadLinks/DownloadLinks.js +8 -33
  203. package/dist/lib/components/FaqWrapper/FaqWrapper.d.ts +5 -2
  204. package/dist/lib/components/FaqWrapper/FaqWrapper.js +6 -9
  205. package/dist/lib/components/ImageBanner/ImageBanner.css +1 -239
  206. package/dist/lib/components/ImageBanner/ImageBanner.d.ts +14 -16
  207. package/dist/lib/components/ImageBanner/ImageBanner.js +64 -161
  208. package/dist/lib/components/Instructions/Instructions.css +1 -790
  209. package/dist/lib/components/Instructions/Instructions.d.ts +11 -11
  210. package/dist/lib/components/Instructions/Instructions.js +103 -186
  211. package/dist/lib/components/NotificationBox/NotificationBox.css +1 -0
  212. package/dist/lib/components/NotificationBox/NotificationBox.d.ts +4 -4
  213. package/dist/lib/components/NotificationBox/NotificationBox.js +9 -37
  214. package/dist/lib/components/PageTitle/PageTitle.css +1 -80
  215. package/dist/lib/components/PageTitle/PageTitle.d.ts +2 -2
  216. package/dist/lib/components/PageTitle/PageTitle.js +15 -52
  217. package/dist/lib/components/Partners/Partners.css +1 -53
  218. package/dist/lib/components/Partners/Partners.d.ts +2 -2
  219. package/dist/lib/components/Partners/Partners.js +21 -65
  220. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +1 -80
  221. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +4 -2
  222. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +16 -46
  223. package/dist/lib/components/Property/Property.css +1 -156
  224. package/dist/lib/components/Property/Property.d.ts +4 -4
  225. package/dist/lib/components/Property/Property.js +60 -120
  226. package/dist/lib/components/Property/PropertyDescription.css +1 -17
  227. package/dist/lib/components/Property/PropertyDescription.d.ts +3 -3
  228. package/dist/lib/components/Property/PropertyDescription.js +15 -46
  229. package/dist/lib/components/Property/types.d.ts +7 -5
  230. package/dist/lib/components/Property/types.js +5 -1
  231. package/dist/lib/components/Steps/Steps.css +1 -41
  232. package/dist/lib/components/Steps/Steps.d.ts +2 -1
  233. package/dist/lib/components/Steps/Steps.js +8 -35
  234. package/dist/lib/components/Steps/StepsItem.css +1 -42
  235. package/dist/lib/components/Steps/StepsItem.d.ts +2 -2
  236. package/dist/lib/components/Steps/StepsItem.js +11 -23
  237. package/dist/lib/components/StoreBanner/StoreBanner.css +1 -346
  238. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +5 -5
  239. package/dist/lib/components/StoreBanner/StoreBanner.js +47 -118
  240. package/dist/lib/components/StoreButton/StoreButton.css +1 -327
  241. package/dist/lib/components/StoreButton/StoreButton.d.ts +3 -3
  242. package/dist/lib/components/StoreButton/StoreButton.js +17 -63
  243. package/dist/lib/components/Table/Table.css +1 -157
  244. package/dist/lib/components/Table/Table.d.ts +1 -1
  245. package/dist/lib/components/Table/Table.js +35 -68
  246. package/dist/lib/components/Table/TableCell.js +4 -16
  247. package/dist/lib/components/Table/TableRow.js +5 -19
  248. package/dist/lib/components/TabsBox/TabBox.js +1 -4
  249. package/dist/lib/components/TabsBox/TabsBox.d.ts +1 -1
  250. package/dist/lib/components/TabsBox/TabsBox.js +8 -26
  251. package/dist/lib/components/TextBox/TextBox.css +1 -25
  252. package/dist/lib/components/TextBox/TextBox.d.ts +2 -1
  253. package/dist/lib/components/TextBox/TextBox.js +12 -36
  254. package/dist/lib/components/TextBox/TextBoxPicture.css +1 -27
  255. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +2 -2
  256. package/dist/lib/components/TextBox/TextBoxPicture.js +11 -29
  257. package/dist/lib/components/TextWithIcon/TextWithIcon.css +1 -10
  258. package/dist/lib/components/TextWithIcon/TextWithIcon.d.ts +1 -1
  259. package/dist/lib/components/TextWithIcon/TextWithIcon.js +10 -39
  260. package/dist/lib/components/TextWithIcon/TextWithIconItem.css +1 -31
  261. package/dist/lib/components/TextWithIcon/TextWithIconItem.d.ts +1 -1
  262. package/dist/lib/components/TextWithIcon/TextWithIconItem.js +10 -37
  263. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +1 -31
  264. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +1 -1
  265. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +10 -40
  266. package/dist/lib/components/VideoBanner/VideoBanner.css +1 -225
  267. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +7 -7
  268. package/dist/lib/components/VideoBanner/VideoBanner.js +83 -176
  269. package/dist/lib/components/VideoBlock/VideoBlock.css +1 -106
  270. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +4 -4
  271. package/dist/lib/components/VideoBlock/VideoBlock.js +58 -114
  272. package/dist/lib/constants/throttleTime.js +2 -3
  273. package/dist/lib/helpers/getColumnConfig.d.ts +5 -1
  274. package/dist/lib/helpers/getColumnConfig.js +2 -5
  275. package/dist/lib/index.js +10 -57
  276. package/package.json +89 -92
  277. package/CHANGELOG.md +0 -3962
  278. package/dist/es/components/NotificationBox/style/NotificationBox.css +0 -28
  279. package/dist/es/components/StoreBanner/doc/img/android-screen.png +0 -0
  280. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  281. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  282. package/dist/lib/components/NotificationBox/style/NotificationBox.css +0 -28
  283. package/dist/lib/components/StoreBanner/doc/img/android-screen.png +0 -0
  284. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  285. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
@@ -1,5 +1,5 @@
1
- import React, { Ref } from 'react';
2
- import './Container.less';
1
+ import * as React from 'react';
2
+ import './Container.scss';
3
3
  export declare const BackgroundColors: {
4
4
  readonly DEFAULT: "default";
5
5
  readonly LIGHT_GRAY: "light-gray";
@@ -7,12 +7,12 @@ export declare const BackgroundColors: {
7
7
  readonly GREEN: "green";
8
8
  readonly PURPLE: "purple";
9
9
  };
10
- declare type BackgroundColorType = typeof BackgroundColors[keyof typeof BackgroundColors];
11
- declare type Props = {
10
+ type BackgroundColorType = (typeof BackgroundColors)[keyof typeof BackgroundColors];
11
+ type Props = {
12
12
  /** Атрибут корневого тега */
13
13
  id?: string;
14
14
  /** Ссылка на корневой элемент */
15
- rootRef?: Ref<HTMLDivElement>;
15
+ rootRef?: React.Ref<HTMLDivElement>;
16
16
  /** Дополнительный класс корневого элемента */
17
17
  className?: string;
18
18
  /** Цвет фона */
@@ -23,6 +23,8 @@ declare type Props = {
23
23
  disablePaddingBottom?: boolean;
24
24
  /** Включить тень в нижней части компонента */
25
25
  bottomShadow?: boolean;
26
+ /** Дочерние элементы */
27
+ children?: React.ReactNode;
26
28
  };
27
29
  declare const Container: React.FC<Props>;
28
30
  export default Container;
@@ -1,8 +1,6 @@
1
- import "core-js/modules/es.object.values.js";
2
- import React from 'react';
1
+ import * as React from 'react';
3
2
  import { ContentArea } from '@megafon/ui-core';
4
3
  import { cnCreate } from '@megafon/ui-helpers';
5
- import PropTypes from 'prop-types';
6
4
  import "./Container.css";
7
5
  export var BackgroundColors = {
8
6
  DEFAULT: 'default',
@@ -12,18 +10,17 @@ export var BackgroundColors = {
12
10
  PURPLE: 'purple'
13
11
  };
14
12
  var cn = cnCreate('mfui-container');
15
-
16
13
  var Container = function Container(_ref) {
17
14
  var _ref$backgroundColor = _ref.backgroundColor,
18
- backgroundColor = _ref$backgroundColor === void 0 ? 'default' : _ref$backgroundColor,
19
- rootRef = _ref.rootRef,
20
- id = _ref.id,
21
- className = _ref.className,
22
- children = _ref.children,
23
- disablePaddingTop = _ref.disablePaddingTop,
24
- disablePaddingBottom = _ref.disablePaddingBottom,
25
- _ref$bottomShadow = _ref.bottomShadow,
26
- bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow;
15
+ backgroundColor = _ref$backgroundColor === void 0 ? 'default' : _ref$backgroundColor,
16
+ rootRef = _ref.rootRef,
17
+ id = _ref.id,
18
+ className = _ref.className,
19
+ children = _ref.children,
20
+ disablePaddingTop = _ref.disablePaddingTop,
21
+ disablePaddingBottom = _ref.disablePaddingBottom,
22
+ _ref$bottomShadow = _ref.bottomShadow,
23
+ bottomShadow = _ref$bottomShadow === void 0 ? false : _ref$bottomShadow;
27
24
  return /*#__PURE__*/React.createElement("div", {
28
25
  className: cn({
29
26
  'bg-color': backgroundColor,
@@ -35,16 +32,4 @@ var Container = function Container(_ref) {
35
32
  id: id
36
33
  }, /*#__PURE__*/React.createElement(ContentArea, null, children));
37
34
  };
38
-
39
- Container.propTypes = {
40
- id: PropTypes.string,
41
- className: PropTypes.string,
42
- backgroundColor: PropTypes.oneOf(Object.values(BackgroundColors)),
43
- rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
44
- current: PropTypes.elementType
45
- }), PropTypes.any])]),
46
- disablePaddingTop: PropTypes.bool,
47
- disablePaddingBottom: PropTypes.bool,
48
- bottomShadow: PropTypes.bool
49
- };
50
35
  export default Container;
@@ -1,37 +1 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-download-link {
9
- display: -webkit-box;
10
- display: -ms-flexbox;
11
- display: flex;
12
- }
13
- .mfui-download-link__icon {
14
- -ms-flex-negative: 0;
15
- flex-shrink: 0;
16
- width: 40px;
17
- height: 40px;
18
- margin-right: 22px;
19
- fill: var(--content);
20
- }
21
- @media screen and (max-width: 1023px) {
22
- .mfui-download-link__icon {
23
- width: 32px;
24
- height: 32px;
25
- }
26
- }
27
- .mfui-download-link__icon-svg {
28
- width: inherit;
29
- height: inherit;
30
- }
31
- .mfui-download-link__info {
32
- margin: 0;
33
- font-size: 12px;
34
- line-height: 18px;
35
- color: var(--spbSky3);
36
- text-transform: uppercase;
37
- }
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-download-link{display:-webkit-box;display:-ms-flexbox;display:flex}.mfui-download-link__icon{-ms-flex-negative:0;flex-shrink:0;height:40px;margin-right:22px;width:40px;fill:var(--content)}@media screen and (max-width:1023px){.mfui-download-link__icon{height:32px;width:32px}}.mfui-download-link__icon-svg{height:inherit;width:inherit}.mfui-download-link__info{color:var(--spbSky3);font-size:12px;line-height:18px;margin:0;text-transform:uppercase}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import './DownloadLink.less';
2
+ import './DownloadLink.scss';
3
3
  export interface IDownloadLink {
4
4
  /** Дополнительные data атрибуты к внутренним элементам */
5
5
  dataAttrs?: {
@@ -1,12 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import "core-js/modules/es.string.link.js";
3
2
  import "core-js/modules/es.array.concat.js";
3
+ import "core-js/modules/es.string.link.js";
4
4
  import * as React from 'react';
5
5
  import { TextLink } from '@megafon/ui-core';
6
6
  import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
7
- import * as PropTypes from 'prop-types';
8
7
  import "./DownloadLink.css";
9
-
10
8
  var DownloadIcon = function DownloadIcon(props) {
11
9
  return /*#__PURE__*/React.createElement("svg", _extends({
12
10
  viewBox: "0 0 40 40"
@@ -14,36 +12,30 @@ var DownloadIcon = function DownloadIcon(props) {
14
12
  d: "M21 6v14l2.68-4 1.65 1-4.44 6.74h-1.77L14.68 17l1.65-1L19 20V6zM8 20H6a14 14 0 0028 0h-2a12 12 0 01-24 0z"
15
13
  }));
16
14
  };
17
-
18
15
  var cn = cnCreate('mfui-download-link');
19
-
20
16
  var DownloadLink = function DownloadLink(_ref) {
21
17
  var href = _ref.href,
22
- text = _ref.text,
23
- extension = _ref.extension,
24
- fileSize = _ref.fileSize,
25
- onClick = _ref.onClick,
26
- className = _ref.className,
27
- _ref$classes = _ref.classes,
28
- classes = _ref$classes === void 0 ? {} : _ref$classes,
29
- rootRef = _ref.rootRef,
30
- dataAttrs = _ref.dataAttrs,
31
- disableDownload = _ref.disableDownload,
32
- target = _ref.target,
33
- rel = _ref.rel;
34
-
18
+ text = _ref.text,
19
+ extension = _ref.extension,
20
+ fileSize = _ref.fileSize,
21
+ onClick = _ref.onClick,
22
+ className = _ref.className,
23
+ _ref$classes = _ref.classes,
24
+ classes = _ref$classes === void 0 ? {} : _ref$classes,
25
+ rootRef = _ref.rootRef,
26
+ dataAttrs = _ref.dataAttrs,
27
+ disableDownload = _ref.disableDownload,
28
+ target = _ref.target,
29
+ rel = _ref.rel;
35
30
  var setRelAttribute = function setRelAttribute() {
36
31
  if (rel) {
37
32
  return rel;
38
33
  }
39
-
40
34
  if (target && target !== '_self') {
41
35
  return 'noreferrer noopener';
42
36
  }
43
-
44
37
  return undefined;
45
38
  };
46
-
47
39
  return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
48
40
  className: cn([className, classes.root]),
49
41
  ref: rootRef
@@ -66,27 +58,4 @@ var DownloadLink = function DownloadLink(_ref) {
66
58
  className: cn('info')
67
59
  }, "".concat(extension).concat(extension && fileSize ? ', ' : '').concat(fileSize))));
68
60
  };
69
-
70
- DownloadLink.propTypes = {
71
- dataAttrs: PropTypes.shape({
72
- root: PropTypes.objectOf(PropTypes.string.isRequired),
73
- link: PropTypes.objectOf(PropTypes.string.isRequired)
74
- }),
75
- rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
76
- current: PropTypes.elementType
77
- }), PropTypes.any])]),
78
- href: PropTypes.string.isRequired,
79
- text: PropTypes.string.isRequired,
80
- extension: PropTypes.string.isRequired,
81
- fileSize: PropTypes.string.isRequired,
82
- className: PropTypes.string,
83
- classes: PropTypes.shape({
84
- root: PropTypes.string,
85
- link: PropTypes.string
86
- }),
87
- onClick: PropTypes.func,
88
- disableDownload: PropTypes.bool,
89
- target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
90
- rel: PropTypes.string
91
- };
92
61
  export default DownloadLink;
@@ -1,36 +1 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- @media screen and (min-width: 1024px) {
9
- .mfui-download-links__column:nth-child(n + 4) {
10
- margin-top: 24px;
11
- }
12
- }
13
- @media screen and (min-width: 768px) and (max-width: 1023px) {
14
- .mfui-download-links__column:nth-child(n + 3) {
15
- margin-top: 24px;
16
- }
17
- }
18
- @media screen and (max-width: 767px) {
19
- .mfui-download-links__column:not(:first-child) {
20
- margin-top: 24px;
21
- }
22
- }
23
- @media screen and (min-width: 768px) {
24
- .mfui-download-links_count_2 .mfui-download-links__column:nth-child(n + 2) {
25
- margin-top: 24px;
26
- }
27
- }
28
- @media screen and (min-width: 768px) {
29
- .mfui-download-links_count_3 .mfui-download-links__column:nth-child(n + 3),
30
- .mfui-download-links_count_4 .mfui-download-links__column:nth-child(n + 3) {
31
- margin-top: 24px;
32
- }
33
- }
34
- .mfui-download-links__item:not(:first-child) {
35
- margin-top: 24px;
36
- }
1
+ h1,h2,h3,h4,h5{margin:0}@media screen and (min-width:1024px){.mfui-download-links__column:nth-child(n+4){margin-top:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-download-links__column:nth-child(n+3){margin-top:24px}}@media screen and (max-width:767px){.mfui-download-links__column:not(:first-child){margin-top:24px}}@media screen and (min-width:768px){.mfui-download-links_count_2 .mfui-download-links__column:nth-child(n+2),.mfui-download-links_count_3 .mfui-download-links__column:nth-child(n+3),.mfui-download-links_count_4 .mfui-download-links__column:nth-child(n+3){margin-top:24px}}.mfui-download-links__item:not(:first-child){margin-top:24px}
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { GridColumn } from '@megafon/ui-core';
3
- import './DownloadLinks.less';
3
+ import './DownloadLinks.scss';
4
4
  import { IDownloadLink } from './DownloadLink';
5
- declare type GridColumnType = React.ComponentProps<typeof GridColumn>;
6
- declare type ColumnConfig = {
5
+ type GridColumnType = React.ComponentProps<typeof GridColumn>;
6
+ type ColumnConfig = {
7
7
  wide?: GridColumnType['wide'];
8
8
  desktop?: GridColumnType['desktop'];
9
9
  tablet?: GridColumnType['tablet'];
@@ -3,7 +3,6 @@ import "core-js/modules/es.array.map.js";
3
3
  import * as React from 'react';
4
4
  import { Grid, GridColumn } from '@megafon/ui-core';
5
5
  import { cnCreate } from '@megafon/ui-helpers';
6
- import * as PropTypes from 'prop-types';
7
6
  import "./DownloadLinks.css";
8
7
  export var getColumnConfig = function getColumnConfig(itemsCount) {
9
8
  switch (true) {
@@ -14,7 +13,6 @@ export var getColumnConfig = function getColumnConfig(itemsCount) {
14
13
  mobile: '12'
15
14
  };
16
15
  }
17
-
18
16
  case itemsCount <= 4:
19
17
  {
20
18
  return {
@@ -22,7 +20,6 @@ export var getColumnConfig = function getColumnConfig(itemsCount) {
22
20
  mobile: '12'
23
21
  };
24
22
  }
25
-
26
23
  default:
27
24
  {
28
25
  return {
@@ -36,12 +33,10 @@ export var getColumnConfig = function getColumnConfig(itemsCount) {
36
33
  };
37
34
  var testIdPrefix = 'DownloadLinks';
38
35
  var cn = cnCreate('mfui-download-links');
39
-
40
36
  var DownloadLinks = function DownloadLinks(_ref) {
41
37
  var _ref$inOneColumn = _ref.inOneColumn,
42
- inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
43
- children = _ref.children;
44
-
38
+ inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
39
+ children = _ref.children;
45
40
  if (inOneColumn) {
46
41
  return /*#__PURE__*/React.createElement("div", {
47
42
  className: cn(),
@@ -52,7 +47,6 @@ var DownloadLinks = function DownloadLinks(_ref) {
52
47
  }, child);
53
48
  }));
54
49
  }
55
-
56
50
  var itemsCount = React.Children.count(children);
57
51
  var columnConfig = getColumnConfig(itemsCount);
58
52
  return /*#__PURE__*/React.createElement("div", {
@@ -67,9 +61,4 @@ var DownloadLinks = function DownloadLinks(_ref) {
67
61
  }), child);
68
62
  })));
69
63
  };
70
-
71
- DownloadLinks.propTypes = {
72
- inOneColumn: PropTypes.bool,
73
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element.isRequired), PropTypes.element]).isRequired
74
- };
75
64
  export default DownloadLinks;
@@ -1,3 +1,6 @@
1
- import React from 'react';
2
- declare const FaqWrapper: React.FC;
1
+ import * as React from 'react';
2
+ interface IFaqWrapper {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare const FaqWrapper: React.FC<IFaqWrapper>;
3
6
  export default FaqWrapper;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
-
1
+ import * as React from 'react';
3
2
  var FaqWrapper = function FaqWrapper(_ref) {
4
3
  var children = _ref.children;
5
4
  return /*#__PURE__*/React.createElement("div", {
@@ -7,5 +6,4 @@ var FaqWrapper = function FaqWrapper(_ref) {
7
6
  itemType: "http://schema.org/FAQPage"
8
7
  }, children);
9
8
  };
10
-
11
9
  export default FaqWrapper;
@@ -1,239 +1 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-image-banner {
9
- position: relative;
10
- display: -webkit-box;
11
- display: -ms-flexbox;
12
- display: flex;
13
- -webkit-box-orient: vertical;
14
- -webkit-box-direction: normal;
15
- -ms-flex-direction: column;
16
- flex-direction: column;
17
- -webkit-box-pack: justify;
18
- -ms-flex-pack: justify;
19
- justify-content: space-between;
20
- overflow: hidden;
21
- }
22
- @media screen and (min-width: 1024px) {
23
- .mfui-image-banner {
24
- -webkit-box-orient: horizontal;
25
- -webkit-box-direction: normal;
26
- -ms-flex-direction: row;
27
- flex-direction: row;
28
- -webkit-box-align: center;
29
- -ms-flex-align: center;
30
- align-items: center;
31
- height: 420px;
32
- padding: 0 80px;
33
- }
34
- }
35
- .mfui-image-banner__picture {
36
- display: -webkit-box;
37
- display: -ms-flexbox;
38
- display: flex;
39
- -ms-flex-negative: 0;
40
- flex-shrink: 0;
41
- -webkit-box-pack: center;
42
- -ms-flex-pack: center;
43
- justify-content: center;
44
- }
45
- @media screen and (min-width: 1024px) {
46
- .mfui-image-banner__picture {
47
- width: 356px;
48
- height: 100%;
49
- }
50
- }
51
- @media screen and (min-width: 1280px) {
52
- .mfui-image-banner__picture {
53
- width: 408px;
54
- }
55
- }
56
- .mfui-image-banner__picture_v-align_top {
57
- -webkit-box-align: start;
58
- -ms-flex-align: start;
59
- align-items: flex-start;
60
- }
61
- .mfui-image-banner__picture_v-align_center {
62
- -webkit-box-align: center;
63
- -ms-flex-align: center;
64
- align-items: center;
65
- }
66
- .mfui-image-banner__picture_v-align_bottom {
67
- -webkit-box-align: end;
68
- -ms-flex-align: end;
69
- align-items: flex-end;
70
- }
71
- .mfui-image-banner__background-image {
72
- display: block;
73
- max-width: 100%;
74
- max-height: 150px;
75
- }
76
- @media screen and (min-width: 768px) and (max-width: 1023px) {
77
- .mfui-image-banner__background-image {
78
- max-height: 230px;
79
- }
80
- }
81
- @media screen and (min-width: 1024px) {
82
- .mfui-image-banner__background-image {
83
- max-height: 100%;
84
- -o-object-fit: contain;
85
- object-fit: contain;
86
- }
87
- }
88
- .mfui-image-banner__content {
89
- z-index: 1;
90
- }
91
- @media screen and (max-width: 1023px) {
92
- .mfui-image-banner__content {
93
- padding: 24px;
94
- }
95
- }
96
- @media screen and (min-width: 768px) and (max-width: 1023px) {
97
- .mfui-image-banner__content {
98
- text-align: center;
99
- }
100
- }
101
- .mfui-image-banner__description {
102
- margin-top: 16px;
103
- white-space: pre-wrap;
104
- }
105
- .mfui-image-banner__cost {
106
- font-size: 15px;
107
- line-height: 24px;
108
- font-weight: 500;
109
- margin-top: 16px;
110
- }
111
- .mfui-image-banner__value {
112
- display: inline;
113
- margin: 0 4px;
114
- }
115
- @media screen and (max-width: 1023px), screen and (min-width: 1024px) and (max-width: 1279px) {
116
- .mfui-image-banner__value {
117
- line-height: 21px;
118
- }
119
- }
120
- .mfui-image-banner__title,
121
- .mfui-image-banner__text {
122
- white-space: pre-wrap;
123
- }
124
- .mfui-image-banner__children {
125
- display: -webkit-box;
126
- display: -ms-flexbox;
127
- display: flex;
128
- -webkit-box-orient: vertical;
129
- -webkit-box-direction: normal;
130
- -ms-flex-direction: column;
131
- flex-direction: column;
132
- -ms-flex-wrap: wrap;
133
- flex-wrap: wrap;
134
- gap: 16px;
135
- -webkit-box-align: center;
136
- -ms-flex-align: center;
137
- align-items: center;
138
- -webkit-box-pack: center;
139
- -ms-flex-pack: center;
140
- justify-content: center;
141
- margin-top: 32px;
142
- }
143
- @media screen and (min-width: 768px) {
144
- .mfui-image-banner__children {
145
- -webkit-box-orient: horizontal;
146
- -webkit-box-direction: normal;
147
- -ms-flex-direction: row;
148
- flex-direction: row;
149
- }
150
- }
151
- @media screen and (min-width: 1024px) {
152
- .mfui-image-banner__children {
153
- -webkit-box-pack: start;
154
- -ms-flex-pack: start;
155
- justify-content: flex-start;
156
- }
157
- }
158
- @media screen and (max-width: 1023px) {
159
- .mfui-image-banner__badges-container {
160
- display: -webkit-box;
161
- display: -ms-flexbox;
162
- display: flex;
163
- gap: 8px;
164
- }
165
- }
166
- .mfui-image-banner__badges {
167
- display: -webkit-box;
168
- display: -ms-flexbox;
169
- display: flex;
170
- -webkit-box-flex: 1;
171
- -ms-flex-positive: 1;
172
- flex-grow: 1;
173
- -ms-flex-wrap: wrap;
174
- flex-wrap: wrap;
175
- gap: 8px;
176
- margin-bottom: 16px;
177
- }
178
- .mfui-image-banner__ad-block {
179
- margin: 0 0 16px auto;
180
- }
181
- @media screen and (min-width: 1024px) {
182
- .mfui-image-banner__ad-block {
183
- position: absolute;
184
- top: 24px;
185
- right: 24px;
186
- }
187
- }
188
- .mfui-image-banner_radius_rounded {
189
- border-radius: 24px;
190
- }
191
- @media screen and (min-width: 1024px) {
192
- .mfui-image-banner_auto-height .mfui-image-banner__content {
193
- padding: 48px 0;
194
- }
195
- }
196
- @media screen and (min-width: 1024px) {
197
- .mfui-image-banner_auto-height {
198
- height: auto;
199
- }
200
- }
201
- @media screen and (min-width: 1024px) {
202
- .mfui-image-banner_full-width .mfui-image-banner__background-image {
203
- position: absolute;
204
- right: 0;
205
- bottom: 0;
206
- display: block;
207
- max-width: unset;
208
- }
209
- }
210
- @media screen and (min-width: 1024px) {
211
- .mfui-image-banner_full-width.mfui-image-banner_auto-height .mfui-image-banner__background-image {
212
- width: 100%;
213
- height: 100%;
214
- -o-object-fit: cover;
215
- object-fit: cover;
216
- }
217
- }
218
- .mfui-image-banner_background-color_green {
219
- background-color: var(--brandGreen);
220
- }
221
- .mfui-image-banner_background-color_purple {
222
- background-color: var(--brandPurple);
223
- }
224
- .mfui-image-banner_background-color_gradient {
225
- background: -webkit-gradient(linear, right top, left top, from(#ADA6BA), to(#F6F2F9));
226
- background: linear-gradient(270deg, #ADA6BA 0%, #F6F2F9 100%);
227
- }
228
- .mfui-image-banner_background-color_light {
229
- background-color: #F6F2F9;
230
- }
231
- .mfui-image-banner_background-color_spbSky0 {
232
- background-color: var(--spbSky0);
233
- }
234
- .mfui-image-banner_text-color_light .mfui-image-banner__content {
235
- color: var(--stcWhite);
236
- }
237
- .mfui-image-banner_text-color_dark .mfui-image-banner__content {
238
- color: var(--stcBlack);
239
- }
1
+ h1,h2,h3,h4,h5{margin:0}.mfui-image-banner{overflow:hidden;position:relative}@media screen and (min-width:1024px){.mfui-image-banner{height:420px;padding:0 80px}.mfui-image-banner__wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;height:100%;justify-content:space-between}}.mfui-image-banner__picture{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media screen and (min-width:1024px){.mfui-image-banner__picture{height:100%;width:356px}}@media screen and (min-width:1280px){.mfui-image-banner__picture{width:408px}}.mfui-image-banner__picture_v-align_top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.mfui-image-banner__picture_v-align_center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mfui-image-banner__picture_v-align_bottom{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.mfui-image-banner__background-image{display:block;max-height:250px;max-width:100%}@media screen and (min-width:768px) and (max-width:1023px){.mfui-image-banner__background-image{max-height:280px}}@media screen and (min-width:1024px){.mfui-image-banner__background-image{max-height:100%;-o-object-fit:contain;object-fit:contain}}.mfui-image-banner__content{z-index:1}@media screen and (max-width:1023px){.mfui-image-banner__content{padding:24px}}@media screen and (min-width:768px) and (max-width:1023px){.mfui-image-banner__content{text-align:center}}@media screen and (max-width:1023px){.mfui-image-banner_bottom-offset .mfui-image-banner__content{padding-bottom:72px}}.mfui-image-banner__description{margin-top:16px;white-space:pre-wrap}.mfui-image-banner__cost{font-size:15px;font-weight:500;line-height:24px;margin-top:16px}.mfui-image-banner__value{display:inline;margin:0 4px}@media screen and (max-width:1023px),screen and (min-width:1024px) and (max-width:1279px){.mfui-image-banner__value{line-height:21px}}.mfui-image-banner__text,.mfui-image-banner__title{white-space:pre-wrap}.mfui-image-banner__children{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:32px}@media screen and (min-width:768px){.mfui-image-banner__children{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}@media screen and (min-width:1024px){.mfui-image-banner__children{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}@media screen and (max-width:1023px){.mfui-image-banner__badges-container{display:-webkit-box;display:-ms-flexbox;display:flex;gap:8px}}.mfui-image-banner__badges{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px;margin-bottom:16px}.mfui-image-banner__ad-block{margin:0 0 16px auto}@media screen and (min-width:1024px){.mfui-image-banner__ad-block{position:absolute;right:24px;top:24px}}.mfui-image-banner_radius_rounded{border-radius:24px}@media screen and (min-width:1024px){.mfui-image-banner_auto-height .mfui-image-banner__content{padding:48px 0}.mfui-image-banner_auto-height{height:auto}.mfui-image-banner_full-width .mfui-image-banner__background-image{bottom:0;display:block;max-width:unset;position:absolute;right:0}.mfui-image-banner_full-width.mfui-image-banner_auto-height .mfui-image-banner__background-image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}}.mfui-image-banner_background-color_green{background-color:var(--brandGreen)}.mfui-image-banner_background-color_purple{background-color:var(--brandPurple)}.mfui-image-banner_background-color_gradient{background:-webkit-gradient(linear,right top,left top,from(#ada6ba),to(#f6f2f9));background:linear-gradient(270deg,#ada6ba,#f6f2f9)}.mfui-image-banner_background-color_light{background-color:#f6f2f9}.mfui-image-banner_background-color_spbSky0{background-color:var(--spbSky0)}.mfui-image-banner_text-color_light .mfui-image-banner__content{color:var(--stcWhite)}.mfui-image-banner_text-color_dark .mfui-image-banner__content{color:var(--stcBlack)}
@@ -1,6 +1,6 @@
1
- import React, { Ref } from 'react';
1
+ import * as React from 'react';
2
2
  import { PriceBadge } from '@megafon/ui-core';
3
- import './ImageBanner.less';
3
+ import './ImageBanner.scss';
4
4
  export declare const BackgroundColor: {
5
5
  readonly TRANSPARENT: "transparent";
6
6
  readonly GREEN: "green";
@@ -9,25 +9,25 @@ export declare const BackgroundColor: {
9
9
  readonly GRADIENT: "gradient";
10
10
  readonly LIGHT: "light";
11
11
  };
12
- export declare type BackgroundColorType = typeof BackgroundColor[keyof typeof BackgroundColor];
12
+ export type BackgroundColorType = (typeof BackgroundColor)[keyof typeof BackgroundColor];
13
13
  export declare const Radius: {
14
14
  readonly CORNERS: "corners";
15
15
  readonly ROUNDED: "rounded";
16
16
  };
17
- export declare type RadiusType = typeof Radius[keyof typeof Radius];
17
+ export type RadiusType = (typeof Radius)[keyof typeof Radius];
18
18
  export declare const NavTheme: {
19
19
  readonly LIGHT: "light";
20
20
  readonly DARK: "dark";
21
21
  };
22
- export declare type NavThemeType = typeof NavTheme[keyof typeof NavTheme];
22
+ export type NavThemeType = (typeof NavTheme)[keyof typeof NavTheme];
23
23
  export declare const ImageVerticalAlign: {
24
24
  readonly TOP: "top";
25
25
  readonly CENTER: "center";
26
26
  readonly BOTTOM: "bottom";
27
27
  };
28
- export declare type ImageVerticalAlignType = typeof ImageVerticalAlign[keyof typeof ImageVerticalAlign];
29
- declare type PriceBadgeTypes = React.ComponentProps<typeof PriceBadge>;
30
- export declare type PriceBadgePropsType = Pick<PriceBadgeTypes, 'iconType'> & {
28
+ export type ImageVerticalAlignType = (typeof ImageVerticalAlign)[keyof typeof ImageVerticalAlign];
29
+ type PriceBadgeTypes = React.ComponentProps<typeof PriceBadge>;
30
+ export type PriceBadgePropsType = Pick<PriceBadgeTypes, 'iconType'> & {
31
31
  /** Текст бейджа */
32
32
  text: string;
33
33
  };
@@ -52,17 +52,13 @@ export interface IImageBannerProps {
52
52
  adBlock?: string;
53
53
  };
54
54
  /** Ссылка на корневой элемент */
55
- rootRef?: Ref<HTMLDivElement>;
55
+ rootRef?: React.Ref<HTMLDivElement>;
56
56
  /** Заголовок */
57
- title?: string | React.ReactNode | React.ReactNode[];
57
+ title: string | React.ReactNode | React.ReactNode[];
58
58
  /** Текст-описание */
59
59
  description?: string | React.ReactNode | React.ReactNode[];
60
60
  /** Строка со стоимостью услуги */
61
61
  cost?: string;
62
- /** Тег заголовка на разрешении экрана 0-767 */
63
- headerLevelMobile?: 'h1' | 'h2';
64
- /** Тег заголовка на разрешении экрана 768+ */
65
- headerLevel?: 'h1' | 'h2';
66
62
  /** Фоновый цвет */
67
63
  backgroundColor?: BackgroundColorType;
68
64
  /** Радиус границы */
@@ -85,8 +81,10 @@ export interface IImageBannerProps {
85
81
  isImageFullWidth?: boolean;
86
82
  /** Данные для блока с бейджами */
87
83
  badges?: PriceBadgePropsType[];
84
+ /** Дополнительный отступ снизу при использовании в баннере */
85
+ hasBottomOffset?: boolean;
88
86
  /** Элемент блока с рекламой */
89
- adBlock?: JSX.Element | null;
87
+ adBlock?: JSX.Element;
90
88
  }
91
- declare const ImageBanner: React.FC<IImageBannerProps>;
89
+ declare const ImageBanner: React.FC<React.PropsWithChildren<IImageBannerProps>>;
92
90
  export default ImageBanner;