@megafon/ui-shared 2.0.0-beta.99 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/CHANGELOG.md +1610 -0
  2. package/README.md +0 -5
  3. package/dist/es/components/AccordionBox/AccordionBox.css +13 -0
  4. package/dist/es/components/AccordionBox/AccordionBox.d.ts +16 -1
  5. package/dist/es/components/AccordionBox/AccordionBox.js +29 -13
  6. package/dist/es/components/BannerBox/BannerBox.js +3 -2
  7. package/dist/es/components/BenefitsIcons/BenefitsIcons.d.ts +13 -2
  8. package/dist/es/components/BenefitsIcons/BenefitsIcons.js +82 -17
  9. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.d.ts +2 -1
  10. package/dist/es/components/BenefitsIcons/BenefitsIconsTile.js +15 -14
  11. package/dist/es/components/BenefitsIcons/style/BenefitsIcons.css +3 -3
  12. package/dist/es/components/BenefitsIcons/style/BenefitsIconsTile.css +19 -12
  13. package/dist/es/components/BenefitsIcons/types.d.ts +7 -2
  14. package/dist/es/components/BenefitsIcons/types.js +4 -0
  15. package/dist/es/components/BenefitsPictures/BenefitsPictures.d.ts +10 -1
  16. package/dist/es/components/BenefitsPictures/BenefitsPictures.js +28 -12
  17. package/dist/es/components/BenefitsPictures/BenfitsPictures.css +4 -4
  18. package/dist/es/components/Breadcrumbs/Breadcrumbs.css +46 -0
  19. package/dist/es/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  20. package/dist/es/components/Breadcrumbs/Breadcrumbs.js +49 -0
  21. package/dist/es/components/ButtonBanner/ButtonBanner.css +122 -0
  22. package/dist/es/components/ButtonBanner/ButtonBanner.d.ts +54 -0
  23. package/dist/es/components/ButtonBanner/ButtonBanner.js +107 -0
  24. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.css +3 -3
  25. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.d.ts +22 -2
  26. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +37 -8
  27. package/dist/es/components/Card/Card.css +71 -44
  28. package/dist/es/components/Card/Card.d.ts +33 -3
  29. package/dist/es/components/Card/Card.js +103 -42
  30. package/dist/es/components/CardsBox/CardsBox.d.ts +10 -2
  31. package/dist/es/components/CardsBox/CardsBox.js +26 -13
  32. package/dist/es/components/CarouselBox/CarouselBox.js +3 -2
  33. package/dist/es/components/Container/Container.css +1815 -547
  34. package/dist/es/components/Container/Container.d.ts +11 -1
  35. package/dist/es/components/Container/Container.js +28 -6
  36. package/dist/es/components/DownloadLinks/DownloadLink.css +5 -5
  37. package/dist/es/components/DownloadLinks/DownloadLink.d.ts +7 -0
  38. package/dist/es/components/DownloadLinks/DownloadLink.js +28 -6
  39. package/dist/es/components/DownloadLinks/DownloadLinks.css +9 -6
  40. package/dist/es/components/DownloadLinks/DownloadLinks.d.ts +2 -0
  41. package/dist/es/components/DownloadLinks/DownloadLinks.js +18 -3
  42. package/dist/es/components/Instructions/Instructions.css +189 -130
  43. package/dist/es/components/Instructions/Instructions.d.ts +21 -2
  44. package/dist/es/components/Instructions/Instructions.js +115 -74
  45. package/dist/es/components/Instructions/img/iphone12.png +0 -0
  46. package/dist/es/components/PageTitle/PageTitle.css +80 -0
  47. package/dist/es/components/PageTitle/PageTitle.d.ts +23 -0
  48. package/dist/es/components/PageTitle/PageTitle.js +65 -0
  49. package/dist/es/components/Partners/Partners.css +22 -31
  50. package/dist/es/components/Partners/Partners.d.ts +13 -1
  51. package/dist/es/components/Partners/Partners.js +40 -18
  52. package/dist/es/components/PictureWithDescription/PictureWithDescription.css +25 -10
  53. package/dist/es/components/PictureWithDescription/PictureWithDescription.d.ts +13 -0
  54. package/dist/es/components/PictureWithDescription/PictureWithDescription.js +31 -7
  55. package/dist/es/components/Property/Property.css +79 -71
  56. package/dist/es/components/Property/Property.d.ts +21 -2
  57. package/dist/es/components/Property/Property.js +80 -34
  58. package/dist/es/components/Property/PropertyDescription.css +3 -3
  59. package/dist/es/components/Property/PropertyDescription.js +19 -21
  60. package/dist/es/components/Property/types.d.ts +7 -2
  61. package/dist/es/components/Steps/Steps.css +41 -0
  62. package/dist/es/components/Steps/Steps.d.ts +10 -0
  63. package/dist/es/components/Steps/Steps.js +35 -0
  64. package/dist/es/components/Steps/StepsItem.css +37 -0
  65. package/dist/es/components/Steps/StepsItem.d.ts +10 -0
  66. package/dist/es/components/Steps/StepsItem.js +26 -0
  67. package/dist/es/components/StoreBanner/StoreBanner.css +289 -0
  68. package/dist/es/components/StoreBanner/StoreBanner.d.ts +65 -0
  69. package/dist/es/components/StoreBanner/StoreBanner.js +145 -0
  70. package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  71. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  72. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  73. package/dist/es/components/StoreBanner/img/android.png +0 -0
  74. package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
  75. package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
  76. package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
  77. package/dist/es/components/StoreButton/StoreButton.css +15 -0
  78. package/dist/es/components/StoreButton/StoreButton.d.ts +17 -0
  79. package/dist/es/components/StoreButton/StoreButton.js +37 -0
  80. package/dist/es/components/StoreButton/img/app-store.png +0 -0
  81. package/dist/es/components/StoreButton/img/google-play.png +0 -0
  82. package/dist/es/components/StoreButton/img/huawei-store.png +0 -0
  83. package/dist/es/components/Table/Table.css +67 -67
  84. package/dist/es/components/Table/Table.js +4 -4
  85. package/dist/es/components/Table/TableRow.js +1 -0
  86. package/dist/es/components/TabsBox/TabsBox.d.ts +4 -1
  87. package/dist/es/components/TabsBox/TabsBox.js +24 -3
  88. package/dist/es/components/TextBox/TextBox.css +7 -1
  89. package/dist/es/components/TextBox/TextBox.d.ts +8 -0
  90. package/dist/es/components/TextBox/TextBox.js +37 -5
  91. package/dist/es/components/TextBox/TextBoxPicture.css +24 -0
  92. package/dist/es/components/TextBox/TextBoxPicture.d.ts +17 -0
  93. package/dist/es/components/TextBox/TextBoxPicture.js +32 -0
  94. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.css +15 -4
  95. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +8 -2
  96. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +34 -14
  97. package/dist/es/components/VideoBanner/VideoBanner.css +155 -76
  98. package/dist/es/components/VideoBanner/VideoBanner.d.ts +64 -13
  99. package/dist/es/components/VideoBanner/VideoBanner.js +202 -70
  100. package/dist/es/components/VideoBlock/VideoBlock.css +32 -28
  101. package/dist/es/components/VideoBlock/VideoBlock.d.ts +20 -6
  102. package/dist/es/components/VideoBlock/VideoBlock.js +63 -44
  103. package/dist/es/constants/throttleTime.d.ts +4 -0
  104. package/dist/es/constants/throttleTime.js +3 -0
  105. package/dist/es/index.d.ts +8 -0
  106. package/dist/es/index.js +8 -0
  107. package/dist/lib/components/AccordionBox/AccordionBox.css +13 -0
  108. package/dist/lib/components/AccordionBox/AccordionBox.d.ts +16 -1
  109. package/dist/lib/components/AccordionBox/AccordionBox.js +31 -19
  110. package/dist/lib/components/BannerBox/BannerBox.js +3 -5
  111. package/dist/lib/components/BenefitsIcons/BenefitsIcons.d.ts +13 -2
  112. package/dist/lib/components/BenefitsIcons/BenefitsIcons.js +84 -20
  113. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.d.ts +2 -1
  114. package/dist/lib/components/BenefitsIcons/BenefitsIconsTile.js +15 -16
  115. package/dist/lib/components/BenefitsIcons/style/BenefitsIcons.css +3 -3
  116. package/dist/lib/components/BenefitsIcons/style/BenefitsIconsTile.css +19 -12
  117. package/dist/lib/components/BenefitsIcons/types.d.ts +7 -2
  118. package/dist/lib/components/BenefitsIcons/types.js +7 -2
  119. package/dist/lib/components/BenefitsPictures/BenefitsPictures.d.ts +10 -1
  120. package/dist/lib/components/BenefitsPictures/BenefitsPictures.js +32 -15
  121. package/dist/lib/components/BenefitsPictures/BenfitsPictures.css +4 -4
  122. package/dist/lib/components/Breadcrumbs/Breadcrumbs.css +46 -0
  123. package/dist/lib/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
  124. package/dist/lib/components/Breadcrumbs/Breadcrumbs.js +65 -0
  125. package/dist/lib/components/ButtonBanner/ButtonBanner.css +122 -0
  126. package/dist/lib/components/ButtonBanner/ButtonBanner.d.ts +54 -0
  127. package/dist/lib/components/ButtonBanner/ButtonBanner.js +133 -0
  128. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.css +3 -3
  129. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.d.ts +22 -2
  130. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +45 -11
  131. package/dist/lib/components/Card/Card.css +71 -44
  132. package/dist/lib/components/Card/Card.d.ts +33 -3
  133. package/dist/lib/components/Card/Card.js +118 -59
  134. package/dist/lib/components/CardsBox/CardsBox.d.ts +10 -2
  135. package/dist/lib/components/CardsBox/CardsBox.js +30 -16
  136. package/dist/lib/components/CarouselBox/CarouselBox.js +3 -5
  137. package/dist/lib/components/Container/Container.css +1815 -547
  138. package/dist/lib/components/Container/Container.d.ts +11 -1
  139. package/dist/lib/components/Container/Container.js +32 -11
  140. package/dist/lib/components/DownloadLinks/DownloadLink.css +5 -5
  141. package/dist/lib/components/DownloadLinks/DownloadLink.d.ts +7 -0
  142. package/dist/lib/components/DownloadLinks/DownloadLink.js +32 -11
  143. package/dist/lib/components/DownloadLinks/DownloadLinks.css +9 -6
  144. package/dist/lib/components/DownloadLinks/DownloadLinks.d.ts +2 -0
  145. package/dist/lib/components/DownloadLinks/DownloadLinks.js +20 -6
  146. package/dist/lib/components/Instructions/Instructions.css +189 -130
  147. package/dist/lib/components/Instructions/Instructions.d.ts +21 -2
  148. package/dist/lib/components/Instructions/Instructions.js +148 -104
  149. package/dist/lib/components/Instructions/img/iphone12.png +0 -0
  150. package/dist/lib/components/PageTitle/PageTitle.css +80 -0
  151. package/dist/lib/components/PageTitle/PageTitle.d.ts +23 -0
  152. package/dist/lib/components/PageTitle/PageTitle.js +85 -0
  153. package/dist/lib/components/Partners/Partners.css +22 -31
  154. package/dist/lib/components/Partners/Partners.d.ts +13 -1
  155. package/dist/lib/components/Partners/Partners.js +43 -23
  156. package/dist/lib/components/PictureWithDescription/PictureWithDescription.css +25 -10
  157. package/dist/lib/components/PictureWithDescription/PictureWithDescription.d.ts +13 -0
  158. package/dist/lib/components/PictureWithDescription/PictureWithDescription.js +33 -8
  159. package/dist/lib/components/Property/Property.css +79 -71
  160. package/dist/lib/components/Property/Property.d.ts +21 -2
  161. package/dist/lib/components/Property/Property.js +93 -53
  162. package/dist/lib/components/Property/PropertyDescription.css +3 -3
  163. package/dist/lib/components/Property/PropertyDescription.js +21 -25
  164. package/dist/lib/components/Property/types.d.ts +7 -2
  165. package/dist/lib/components/Steps/Steps.css +41 -0
  166. package/dist/lib/components/Steps/Steps.d.ts +10 -0
  167. package/dist/lib/components/Steps/Steps.js +55 -0
  168. package/dist/lib/components/Steps/StepsItem.css +37 -0
  169. package/dist/lib/components/Steps/StepsItem.d.ts +10 -0
  170. package/dist/lib/components/Steps/StepsItem.js +39 -0
  171. package/dist/lib/components/StoreBanner/StoreBanner.css +289 -0
  172. package/dist/lib/components/StoreBanner/StoreBanner.d.ts +65 -0
  173. package/dist/lib/components/StoreBanner/StoreBanner.js +169 -0
  174. package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  175. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  176. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
  177. package/dist/lib/components/StoreBanner/img/android.png +0 -0
  178. package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
  179. package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
  180. package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
  181. package/dist/lib/components/StoreButton/StoreButton.css +15 -0
  182. package/dist/lib/components/StoreButton/StoreButton.d.ts +17 -0
  183. package/dist/lib/components/StoreButton/StoreButton.js +58 -0
  184. package/dist/lib/components/StoreButton/img/app-store.png +0 -0
  185. package/dist/lib/components/StoreButton/img/google-play.png +0 -0
  186. package/dist/lib/components/StoreButton/img/huawei-store.png +0 -0
  187. package/dist/lib/components/Table/Table.css +67 -67
  188. package/dist/lib/components/Table/Table.js +6 -8
  189. package/dist/lib/components/Table/TableRow.js +1 -0
  190. package/dist/lib/components/TabsBox/TabsBox.d.ts +4 -1
  191. package/dist/lib/components/TabsBox/TabsBox.js +25 -2
  192. package/dist/lib/components/TextBox/TextBox.css +7 -1
  193. package/dist/lib/components/TextBox/TextBox.d.ts +8 -0
  194. package/dist/lib/components/TextBox/TextBox.js +39 -6
  195. package/dist/lib/components/TextBox/TextBoxPicture.css +24 -0
  196. package/dist/lib/components/TextBox/TextBoxPicture.d.ts +17 -0
  197. package/dist/lib/components/TextBox/TextBoxPicture.js +49 -0
  198. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.css +15 -4
  199. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.d.ts +8 -2
  200. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +39 -19
  201. package/dist/lib/components/VideoBanner/VideoBanner.css +155 -76
  202. package/dist/lib/components/VideoBanner/VideoBanner.d.ts +64 -13
  203. package/dist/lib/components/VideoBanner/VideoBanner.js +225 -89
  204. package/dist/lib/components/VideoBlock/VideoBlock.css +32 -28
  205. package/dist/lib/components/VideoBlock/VideoBlock.d.ts +20 -6
  206. package/dist/lib/components/VideoBlock/VideoBlock.js +76 -68
  207. package/dist/lib/constants/throttleTime.d.ts +4 -0
  208. package/dist/lib/constants/throttleTime.js +10 -0
  209. package/dist/lib/index.d.ts +8 -0
  210. package/dist/lib/index.js +64 -0
  211. package/package.json +19 -75
@@ -5,35 +5,35 @@ h4,
5
5
  h5 {
6
6
  margin: 0;
7
7
  }
8
- .mfui-beta-instructions__title_resolution_mobile {
9
- text-align: center;
8
+ .mfui-instructions__title_resolution_mobile {
10
9
  margin-bottom: 32px;
10
+ text-align: center;
11
11
  }
12
12
  @media screen and (min-width: 768px) and (max-width: 1023px) {
13
- .mfui-beta-instructions__title_resolution_mobile {
13
+ .mfui-instructions__title_resolution_mobile {
14
14
  margin-bottom: 56px;
15
15
  }
16
16
  }
17
17
  @media screen and (min-width: 1024px) {
18
- .mfui-beta-instructions__title_resolution_mobile {
18
+ .mfui-instructions__title_resolution_mobile {
19
19
  display: none;
20
20
  }
21
21
  }
22
- .mfui-beta-instructions__title_resolution_desktop {
22
+ .mfui-instructions__title_resolution_desktop {
23
23
  margin-bottom: 40px;
24
24
  }
25
25
  @media screen and (max-width: 1023px) {
26
- .mfui-beta-instructions__title_resolution_desktop {
26
+ .mfui-instructions__title_resolution_desktop {
27
27
  display: none;
28
28
  }
29
29
  }
30
- .mfui-beta-instructions .swiper-wrapper {
30
+ .mfui-instructions .swiper-wrapper {
31
31
  display: -webkit-box;
32
32
  display: -ms-flexbox;
33
33
  display: flex;
34
34
  }
35
35
  @media screen and (min-width: 1024px) {
36
- .mfui-beta-instructions__wrapper {
36
+ .mfui-instructions__wrapper {
37
37
  display: -webkit-box;
38
38
  display: -ms-flexbox;
39
39
  display: flex;
@@ -45,52 +45,54 @@ h5 {
45
45
  justify-content: center;
46
46
  }
47
47
  }
48
- .mfui-beta-instructions__picture {
48
+ @media screen and (max-width: 1023px) {
49
+ .mfui-instructions__text {
50
+ text-align: center;
51
+ }
52
+ }
53
+ .mfui-instructions__picture {
49
54
  max-width: 530px;
50
55
  max-height: 490px;
51
56
  overflow: hidden;
52
57
  }
53
58
  @media screen and (max-width: 1023px) {
54
- .mfui-beta-instructions__picture {
59
+ .mfui-instructions__picture {
55
60
  margin: 0 auto 32px;
56
61
  }
57
62
  }
58
63
  @media screen and (min-width: 768px) and (max-width: 1023px) {
59
- .mfui-beta-instructions__picture {
64
+ .mfui-instructions__picture {
60
65
  margin: 0 auto 48px;
61
66
  }
62
67
  }
63
68
  @media screen and (min-width: 1024px) {
64
- .mfui-beta-instructions__picture {
65
- width: 50%;
69
+ .mfui-instructions__picture {
66
70
  -webkit-box-ordinal-group: 3;
67
71
  -ms-flex-order: 2;
68
72
  order: 2;
73
+ width: 50%;
69
74
  }
70
75
  }
71
76
  @media screen and (min-width: 1024px) {
72
- .mfui-beta-instructions__picture_align_left {
77
+ .mfui-instructions__picture_align_left {
73
78
  -webkit-box-ordinal-group: 1;
74
79
  -ms-flex-order: 0;
75
80
  order: 0;
76
81
  margin-right: 40px;
77
82
  }
78
83
  }
79
- .mfui-beta-instructions_mask_none .mfui-beta-instructions__swiper-img {
80
- width: auto;
81
- height: auto;
82
- margin: auto;
83
- }
84
- .mfui-beta-instructions_mask_none .mfui-beta-instructions__slide {
84
+ .mfui-instructions_mask_none .mfui-instructions__slide {
85
85
  display: -webkit-box;
86
86
  display: -ms-flexbox;
87
87
  display: flex;
88
88
  }
89
- .mfui-beta-instructions__swiper-img {
89
+ .mfui-instructions__swiper-img {
90
90
  width: 100%;
91
91
  height: 100%;
92
+ -webkit-filter: brightness(108.5%);
93
+ filter: brightness(108.5%);
92
94
  }
93
- .mfui-beta-instructions__img-wrapper {
95
+ .mfui-instructions__img-wrapper {
94
96
  position: relative;
95
97
  display: -webkit-box;
96
98
  display: -ms-flexbox;
@@ -98,112 +100,153 @@ h5 {
98
100
  height: 490px;
99
101
  }
100
102
  @media screen and (max-width: 1023px) {
101
- .mfui-beta-instructions__img-wrapper:before {
103
+ .mfui-instructions__img-wrapper:before {
102
104
  content: '';
103
105
  position: absolute;
104
- display: block;
106
+ right: 0;
105
107
  bottom: 0;
106
108
  left: 0;
107
- right: 0;
109
+ z-index: 2;
110
+ display: block;
108
111
  width: 324px;
109
112
  height: 1px;
110
113
  margin: 0 auto;
111
114
  background: #D8D8D8;
112
- z-index: 2;
113
115
  }
114
116
  }
115
- .mfui-beta-instructions__device-screen {
117
+ .mfui-instructions__device-screen {
116
118
  overflow: hidden;
117
119
  }
118
120
  @media screen and (max-width: 1023px) {
119
- .mfui-beta-instructions_mask_black-iphone,
120
- .mfui-beta-instructions_mask_white-iphone,
121
- .mfui-beta-instructions_mask_android {
122
- height: 423px;
121
+ .mfui-instructions_mask_black-iphone .mfui-instructions__img-wrapper,
122
+ .mfui-instructions_mask_white-iphone .mfui-instructions__img-wrapper,
123
+ .mfui-instructions_mask_android .mfui-instructions__img-wrapper {
124
+ height: 421px;
123
125
  }
124
126
  }
125
- .mfui-beta-instructions_mask_black-iphone .mfui-beta-instructions__device-screen,
126
- .mfui-beta-instructions_mask_white-iphone .mfui-beta-instructions__device-screen,
127
- .mfui-beta-instructions_mask_android .mfui-beta-instructions__device-screen {
127
+ .mfui-instructions_mask_black-iphone .mfui-instructions__device-screen,
128
+ .mfui-instructions_mask_white-iphone .mfui-instructions__device-screen,
129
+ .mfui-instructions_mask_android .mfui-instructions__device-screen {
128
130
  width: 100%;
129
131
  height: 490px;
130
132
  margin: auto;
131
133
  }
132
- .mfui-beta-instructions_mask_black-iphone .mfui-beta-instructions__swiper,
133
- .mfui-beta-instructions_mask_white-iphone .mfui-beta-instructions__swiper,
134
- .mfui-beta-instructions_mask_android .mfui-beta-instructions__swiper {
134
+ .mfui-instructions_mask_black-iphone .mfui-instructions__swiper,
135
+ .mfui-instructions_mask_white-iphone .mfui-instructions__swiper,
136
+ .mfui-instructions_mask_android .mfui-instructions__swiper {
135
137
  position: absolute;
136
138
  top: 59px;
137
- left: 0;
138
139
  right: 0;
140
+ left: 0;
139
141
  width: 204px;
140
142
  height: 363px;
141
143
  margin: auto;
142
144
  overflow: hidden;
143
145
  }
144
- .mfui-beta-instructions_mask_black-iphone .mfui-beta-instructions__device-screen {
146
+ .mfui-instructions_mask_black-iphone .mfui-instructions__device-screen {
145
147
  background: url('./img/blackIphone.png') 50% no-repeat;
146
148
  background-size: contain;
147
149
  }
148
- .mfui-beta-instructions_mask_white-iphone .mfui-beta-instructions__device-screen {
150
+ .mfui-instructions_mask_white-iphone .mfui-instructions__device-screen {
149
151
  background: url('./img/whiteIphone.png') 50% no-repeat;
150
152
  background-size: contain;
151
153
  }
152
154
  @media screen and (max-width: 1023px) {
153
- .mfui-beta-instructions_mask_android {
154
- height: 430px;
155
+ .mfui-instructions_mask_android .mfui-instructions__img-wrapper {
156
+ height: 424px;
155
157
  }
156
158
  }
157
- .mfui-beta-instructions_mask_android .mfui-beta-instructions__device-screen {
159
+ .mfui-instructions_mask_android .mfui-instructions__device-screen {
158
160
  background: url('./img/android.png') 50% no-repeat;
159
161
  background-size: contain;
160
162
  }
161
- .mfui-beta-instructions_mask_android .mfui-beta-instructions__swiper {
163
+ .mfui-instructions_mask_android .mfui-instructions__swiper {
162
164
  width: 206px;
163
165
  height: 370px;
164
166
  }
165
167
  @media screen and (max-width: 1023px) {
166
- .mfui-beta-instructions_mask_new-iphone {
168
+ .mfui-instructions_mask_new-iphone .mfui-instructions__img-wrapper {
167
169
  height: 460px;
168
170
  }
169
171
  }
170
- .mfui-beta-instructions_mask_new-iphone .mfui-beta-instructions__device-screen {
172
+ .mfui-instructions_mask_new-iphone .mfui-instructions__device-screen {
171
173
  position: relative;
174
+ z-index: 2;
172
175
  width: 100%;
173
176
  height: 490px;
174
177
  margin: auto;
175
178
  background: url('./img/newIphone.png') 50% no-repeat;
176
179
  background-size: contain;
177
- z-index: 2;
178
180
  }
179
- .mfui-beta-instructions_mask_new-iphone .mfui-beta-instructions__swiper {
181
+ .mfui-instructions_mask_new-iphone .mfui-instructions__swiper {
180
182
  position: absolute;
181
183
  top: 14px;
182
- left: 0;
183
184
  right: 0;
185
+ left: 0;
186
+ z-index: 1;
184
187
  width: 214px;
185
188
  height: 462px;
186
189
  margin: auto;
187
- overflow: hidden;
188
190
  border-radius: 20px;
191
+ overflow: hidden;
192
+ }
193
+ @media screen and (max-width: 1023px) {
194
+ .mfui-instructions_mask_iphone-12 .mfui-instructions__img-wrapper:before {
195
+ display: none;
196
+ }
197
+ }
198
+ .mfui-instructions_mask_iphone-12 .mfui-instructions__device-screen {
199
+ position: relative;
200
+ z-index: 2;
201
+ width: 100%;
202
+ height: 490px;
203
+ margin: auto;
204
+ background: url('./img/iphone12.png') 50% no-repeat;
205
+ background-size: contain;
206
+ }
207
+ .mfui-instructions_mask_iphone-12 .mfui-instructions__swiper {
208
+ position: absolute;
209
+ top: 14px;
210
+ right: 0;
211
+ left: 0;
189
212
  z-index: 1;
213
+ width: 214px;
214
+ height: 462px;
215
+ margin: auto;
216
+ border-radius: 20px;
217
+ overflow: hidden;
190
218
  }
191
219
  @media screen and (min-width: 768px) and (max-width: 1023px) {
192
- .mfui-beta-instructions_mask_laptop {
220
+ .mfui-instructions_mask_laptop .mfui-instructions__img-wrapper {
193
221
  height: 283px;
194
222
  }
195
223
  }
196
224
  @media screen and (min-width: 480px) and (max-width: 767px) {
197
- .mfui-beta-instructions_mask_laptop {
198
- height: 241px;
225
+ .mfui-instructions_mask_laptop .mfui-instructions__img-wrapper {
226
+ height: 208px;
199
227
  }
200
228
  }
201
229
  @media screen and (max-width: 479px) {
202
- .mfui-beta-instructions_mask_laptop {
203
- height: 145px;
230
+ .mfui-instructions_mask_laptop .mfui-instructions__img-wrapper {
231
+ height: 115px;
232
+ }
233
+ }
234
+ @media screen and (max-width: 479px) {
235
+ .mfui-instructions_mask_laptop .mfui-instructions__img-wrapper:before {
236
+ width: 310px;
204
237
  }
205
238
  }
206
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__device-screen {
239
+ @media screen and (min-width: 480px) and (max-width: 767px) {
240
+ .mfui-instructions_mask_laptop .mfui-instructions__img-wrapper:before {
241
+ width: 460px;
242
+ }
243
+ }
244
+ @media screen and (min-width: 768px) and (max-width: 1023px) {
245
+ .mfui-instructions_mask_laptop .mfui-instructions__img-wrapper:before {
246
+ width: 590px;
247
+ }
248
+ }
249
+ .mfui-instructions_mask_laptop .mfui-instructions__device-screen {
207
250
  position: relative;
208
251
  width: 100%;
209
252
  height: 100%;
@@ -212,31 +255,31 @@ h5 {
212
255
  background-size: 100%;
213
256
  }
214
257
  @media screen and (min-width: 768px) and (max-width: 1023px) {
215
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__device-screen {
258
+ .mfui-instructions_mask_laptop .mfui-instructions__device-screen {
216
259
  width: 530px;
217
260
  }
218
261
  }
219
262
  @media screen and (min-width: 480px) and (max-width: 767px) {
220
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__device-screen {
263
+ .mfui-instructions_mask_laptop .mfui-instructions__device-screen {
221
264
  width: 450px;
222
265
  }
223
266
  }
224
267
  @media screen and (max-width: 479px) {
225
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__device-screen {
268
+ .mfui-instructions_mask_laptop .mfui-instructions__device-screen {
226
269
  width: 270px;
227
270
  }
228
271
  }
229
272
  @media screen and (min-width: 1024px) {
230
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__device-screen {
273
+ .mfui-instructions_mask_laptop .mfui-instructions__device-screen {
231
274
  background: url('./img/laptop.png') 50% no-repeat;
232
275
  background-size: contain;
233
276
  }
234
277
  }
235
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__swiper {
278
+ .mfui-instructions_mask_laptop .mfui-instructions__swiper {
236
279
  position: absolute;
237
280
  top: 50%;
238
- left: 50%;
239
281
  right: 0;
282
+ left: 50%;
240
283
  width: 78%;
241
284
  margin: auto;
242
285
  overflow: hidden;
@@ -244,131 +287,139 @@ h5 {
244
287
  transform: translate(-50%, -50%);
245
288
  }
246
289
  @media screen and (min-width: 480px) and (max-width: 767px) {
247
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__swiper {
248
- width: 345px;
249
- height: 225px;
290
+ .mfui-instructions_mask_laptop .mfui-instructions__swiper {
291
+ max-width: 345px;
292
+ height: 190px;
250
293
  }
251
294
  }
252
295
  @media screen and (max-width: 479px) {
253
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__swiper {
254
- width: 210px;
255
- height: 135px;
296
+ .mfui-instructions_mask_laptop .mfui-instructions__swiper {
297
+ max-width: 210px;
298
+ height: 105px;
256
299
  }
257
300
  }
258
301
  @media screen and (min-width: 1024px) {
259
- .mfui-beta-instructions_mask_laptop .mfui-beta-instructions__swiper {
302
+ .mfui-instructions_mask_laptop .mfui-instructions__swiper {
260
303
  -webkit-transform: translate(-50%, -53%);
261
304
  transform: translate(-50%, -53%);
262
305
  }
263
306
  }
264
- @media screen and (max-width: 1023px) {
265
- .mfui-beta-instructions_mask_laptop:before {
266
- width: 590px;
267
- }
268
- }
269
- @media screen and (min-width: 480px) and (max-width: 767px) {
270
- .mfui-beta-instructions_mask_laptop:before {
271
- width: 460px;
272
- }
273
- }
274
- @media screen and (max-width: 479px) {
275
- .mfui-beta-instructions_mask_laptop:before {
276
- width: 310px;
277
- }
278
- }
279
- .mfui-beta-instructions__slide {
307
+ .mfui-instructions__slide {
280
308
  -ms-flex-negative: 0;
281
309
  flex-shrink: 0;
310
+ height: 100%;
282
311
  }
283
312
  @media screen and (min-width: 1024px) {
284
- .mfui-beta-instructions__articles {
285
- width: 50%;
313
+ .mfui-instructions__articles {
286
314
  -webkit-box-ordinal-group: 2;
287
315
  -ms-flex-order: 1;
288
316
  order: 1;
317
+ width: 50%;
289
318
  }
290
319
  }
291
320
  @media screen and (min-width: 1024px) {
292
- .mfui-beta-instructions__articles_align_right {
321
+ .mfui-instructions__articles_align_right {
293
322
  margin-right: 40px;
294
323
  }
295
324
  }
296
- .mfui-beta-instructions__articles-list {
297
- list-style-type: none;
298
- padding: 0;
325
+ .mfui-instructions__articles-list {
299
326
  margin: 0;
327
+ padding: 0;
328
+ list-style-type: none;
300
329
  }
301
- .mfui-beta-instructions__articles-item {
302
- opacity: 0.5;
330
+ .mfui-instructions__articles-list_text-after {
331
+ margin-bottom: 48px;
332
+ }
333
+ @media screen and (min-width: 1024px) {
334
+ .mfui-instructions__articles-list_mobile {
335
+ display: none;
336
+ }
337
+ }
338
+ @media screen and (max-width: 1023px) {
339
+ .mfui-instructions__articles-list_desktop {
340
+ display: none;
341
+ }
342
+ }
343
+ .mfui-instructions__articles-item {
303
344
  position: relative;
345
+ opacity: 0.5;
304
346
  }
305
347
  @media screen and (min-width: 1024px) {
306
- .mfui-beta-instructions__articles-item {
307
- margin-bottom: 56px;
348
+ .mfui-instructions__articles-item {
349
+ margin-bottom: 48px;
308
350
  }
309
351
  }
310
- .mfui-beta-instructions__articles-item:hover,
311
- .mfui-beta-instructions__articles-item_active {
352
+ .mfui-instructions__articles-item:hover,
353
+ .mfui-instructions__articles-item_active {
312
354
  opacity: 1;
313
355
  }
314
- .mfui-beta-instructions__articles-item:hover .mfui-beta-instructions__articles-item-dot,
315
- .mfui-beta-instructions__articles-item_active .mfui-beta-instructions__articles-item-dot {
356
+ .mfui-instructions__articles-item:hover .mfui-instructions__articles-item-dot,
357
+ .mfui-instructions__articles-item_active .mfui-instructions__articles-item-dot {
316
358
  color: #FFFFFF;
317
359
  }
318
- .mfui-beta-instructions__articles-item:hover .mfui-beta-instructions__articles-item-dot:before,
319
- .mfui-beta-instructions__articles-item_active .mfui-beta-instructions__articles-item-dot:before {
360
+ .mfui-instructions__articles-item:hover .mfui-instructions__articles-item-dot:before,
361
+ .mfui-instructions__articles-item_active .mfui-instructions__articles-item-dot:before {
320
362
  top: 0;
321
- left: 0;
322
363
  right: 0;
323
364
  bottom: 0;
365
+ left: 0;
324
366
  background: #00B956;
325
367
  }
326
368
  @media screen and (min-width: 1024px) {
327
- .mfui-beta-instructions__articles-item:last-child {
369
+ .mfui-instructions__articles-item:last-child {
328
370
  margin-bottom: 0;
329
371
  }
330
372
  }
331
- .mfui-beta-instructions__articles-item-dot,
332
- .mfui-beta-instructions__articles-dot {
373
+ .mfui-instructions__articles-item-dot,
374
+ .mfui-instructions__articles-dot {
333
375
  position: absolute;
334
376
  display: inline-block;
335
377
  width: 40px;
336
378
  height: 40px;
379
+ border-radius: 50%;
380
+ font-weight: 500;
337
381
  font-size: 15px;
338
382
  line-height: 40px;
339
- font-weight: 500;
340
383
  text-align: center;
341
- border-radius: 50%;
342
384
  -webkit-box-shadow: inset 0 0 0 1px #B2B2B2;
343
385
  box-shadow: inset 0 0 0 1px #B2B2B2;
344
386
  cursor: pointer;
345
387
  }
346
- .mfui-beta-instructions__articles-item-dot:before,
347
- .mfui-beta-instructions__articles-dot:before {
388
+ @media screen and (max-width: 479px) {
389
+ .mfui-instructions__articles-item-dot,
390
+ .mfui-instructions__articles-dot {
391
+ min-width: 40px;
392
+ }
393
+ }
394
+ .mfui-instructions__articles-item-dot:before,
395
+ .mfui-instructions__articles-dot:before {
348
396
  content: '';
349
397
  position: absolute;
350
398
  top: 50%;
351
- left: 50%;
352
399
  right: 50%;
353
400
  bottom: 50%;
401
+ left: 50%;
402
+ border-radius: 50%;
354
403
  -webkit-transition: all 0.3s ease;
355
404
  transition: all 0.3s ease;
356
- border-radius: 50%;
357
405
  }
358
- .mfui-beta-instructions__articles-item-dot-number,
359
- .mfui-beta-instructions__articles-dot-number {
406
+ .mfui-instructions__articles-item-dot-number,
407
+ .mfui-instructions__articles-dot-number {
360
408
  position: relative;
361
409
  }
362
- .mfui-beta-instructions__articles-item-title {
410
+ .mfui-instructions__articles-item-title {
411
+ font-size: 15px;
412
+ line-height: 24px;
413
+ font-weight: 400;
363
414
  display: inline-block;
364
415
  cursor: pointer;
365
416
  }
366
417
  @media screen and (min-width: 1024px) {
367
- .mfui-beta-instructions__articles-item-title {
418
+ .mfui-instructions__articles-item-title {
368
419
  padding: 4px 0 0 56px;
369
420
  }
370
421
  }
371
- .mfui-beta-instructions__articles-dots {
422
+ .mfui-instructions__articles-dots {
372
423
  position: relative;
373
424
  display: -webkit-box;
374
425
  display: -ms-flexbox;
@@ -376,55 +427,63 @@ h5 {
376
427
  -webkit-box-pack: center;
377
428
  -ms-flex-pack: center;
378
429
  justify-content: center;
379
- padding: 0;
380
430
  margin: 0;
431
+ padding: 0;
381
432
  list-style-type: none;
382
433
  }
383
- .mfui-beta-instructions__articles-dot {
434
+ .mfui-instructions__articles-dots_text-after {
435
+ margin-bottom: 48px;
436
+ }
437
+ .mfui-instructions__articles-dot {
384
438
  position: relative;
385
439
  }
386
440
  @media screen and (max-width: 767px) {
387
- .mfui-beta-instructions__articles-dot {
441
+ .mfui-instructions__articles-dot {
388
442
  margin-right: 20px;
389
443
  }
390
444
  }
391
445
  @media screen and (min-width: 768px) and (max-width: 1023px) {
392
- .mfui-beta-instructions__articles-dot {
446
+ .mfui-instructions__articles-dot {
393
447
  margin-right: 40px;
394
448
  }
395
449
  }
396
- .mfui-beta-instructions__articles-dot:hover,
397
- .mfui-beta-instructions__articles-dot_active {
450
+ .mfui-instructions__articles-dot:hover,
451
+ .mfui-instructions__articles-dot_active {
398
452
  color: #FFFFFF;
399
453
  }
400
- .mfui-beta-instructions__articles-dot:hover:before,
401
- .mfui-beta-instructions__articles-dot_active:before {
454
+ .mfui-instructions__articles-dot:hover:before,
455
+ .mfui-instructions__articles-dot_active:before {
402
456
  top: 0;
403
- left: 0;
404
457
  right: 0;
405
458
  bottom: 0;
459
+ left: 0;
406
460
  background: #00B956;
407
461
  }
408
- .mfui-beta-instructions__articles-dot:last-child {
462
+ .mfui-instructions__articles-dot:last-child {
409
463
  margin-right: 0;
410
464
  }
411
- .mfui-beta-instructions__articles-title-block {
465
+ .mfui-instructions__articles-title-block {
412
466
  text-align: center;
413
467
  }
414
468
  @media screen and (max-width: 767px) {
415
- .mfui-beta-instructions__articles-title-block {
469
+ .mfui-instructions__articles-title-block {
416
470
  width: 55%;
417
471
  margin: 0 auto 24px;
418
472
  }
419
473
  }
420
474
  @media screen and (max-width: 479px) {
421
- .mfui-beta-instructions__articles-title-block {
475
+ .mfui-instructions__articles-title-block {
422
476
  width: 100%;
423
477
  }
424
478
  }
425
479
  @media screen and (min-width: 768px) and (max-width: 1023px) {
426
- .mfui-beta-instructions__articles-title-block {
480
+ .mfui-instructions__articles-title-block {
427
481
  width: 55%;
428
482
  margin: 0 auto 32px;
429
483
  }
430
484
  }
485
+ .mfui-instructions__articles-title {
486
+ font-size: 15px;
487
+ line-height: 24px;
488
+ font-weight: 400;
489
+ }
@@ -1,4 +1,5 @@
1
- import * as React from 'react';
1
+ import React, { Ref } from 'react';
2
+ import SwiperCore from 'swiper';
2
3
  import './Instructions.less';
3
4
  export declare const pictureAlignTypes: {
4
5
  readonly LEFT: "left";
@@ -10,24 +11,42 @@ export declare const pictureMaskTypes: {
10
11
  readonly BLACK_IPHONE: "black-iphone";
11
12
  readonly WHITE_IPHONE: "white-iphone";
12
13
  readonly LAPTOP: "laptop";
14
+ readonly IPHONE_12: "iphone-12";
13
15
  readonly NONE: "none";
14
16
  };
15
17
  declare type PictureAlignTypesType = typeof pictureAlignTypes[keyof typeof pictureAlignTypes];
16
18
  declare type PictureMaskTypesType = typeof pictureMaskTypes[keyof typeof pictureMaskTypes];
17
19
  export declare type InstructionItemType = {
18
- title: string;
20
+ title: string | React.ReactNode | React.ReactNode[];
19
21
  mediaUrl: string;
20
22
  isVideo: boolean;
21
23
  };
22
24
  export interface IInstructionsProps {
25
+ /** Ссылка на корневой элемент */
26
+ rootRef?: Ref<HTMLDivElement>;
27
+ /** Дополнительные классы для внутренних элементов */
28
+ classes?: {
29
+ instructionItem?: string;
30
+ desktopInstructionItem?: string;
31
+ mobileInstructionItem?: string;
32
+ activeInstructionItem?: string;
33
+ desktopItemTitle?: string;
34
+ mobileItemTitle?: string;
35
+ instructionItemImg?: string;
36
+ additionalText?: string;
37
+ };
23
38
  /** Заголовок инструкции */
24
39
  title: string;
25
40
  /** Пункты инструкции */
26
41
  instructionItems: InstructionItemType[];
42
+ /** Описание после инструкции */
43
+ additionalText?: string;
27
44
  /** Расположение изображения */
28
45
  pictureAlign?: PictureAlignTypesType;
29
46
  /** Маска изображения */
30
47
  pictureMask?: PictureMaskTypesType;
48
+ /** Ref на swiper */
49
+ getSwiper?: (instance: SwiperCore) => void;
31
50
  }
32
51
  declare const Instructions: React.FC<IInstructionsProps>;
33
52
  export default Instructions;