@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
@@ -1,28 +1,33 @@
1
1
  import "core-js/modules/es.symbol";
2
2
  import "core-js/modules/es.symbol.description";
3
3
  import "core-js/modules/es.array.concat";
4
- import "core-js/modules/es.array.map";
5
4
  import "core-js/modules/es.object.values";
6
- import * as React from 'react';
5
+ import _extends from "@babel/runtime/helpers/extends";
6
+ import React from 'react';
7
+ import { Header, Button, Grid, GridColumn } from '@megafon/ui-core';
8
+ import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
7
9
  import PropTypes from 'prop-types';
8
10
  import "./VideoBlock.css";
9
- import { Header, Button, Paragraph, Grid, GridColumn, cnCreate } from '@megafon/ui-core';
10
11
  export var VideoTypes = {
11
12
  YOUTUBE: 'youtube',
12
13
  VIDEO: 'video'
13
14
  };
14
- var cn = cnCreate('mfui-beta-video-block');
15
+ var cn = cnCreate('mfui-video-block');
15
16
 
16
17
  var VideoBlock = function VideoBlock(_ref) {
17
- var content = _ref.content,
18
+ var dataAttrs = _ref.dataAttrs,
19
+ className = _ref.className,
20
+ _ref$classes = _ref.classes,
21
+ classes = _ref$classes === void 0 ? {} : _ref$classes,
22
+ rootRef = _ref.rootRef,
23
+ content = _ref.content,
18
24
  _ref$videoType = _ref.videoType,
19
25
  videoType = _ref$videoType === void 0 ? 'video' : _ref$videoType,
20
26
  videoSrc = _ref.videoSrc,
21
27
  _ref$isMuted = _ref.isMuted,
22
28
  isMuted = _ref$isMuted === void 0 ? true : _ref$isMuted,
23
29
  _ref$isAutoplay = _ref.isAutoplay,
24
- isAutoplay = _ref$isAutoplay === void 0 ? false : _ref$isAutoplay,
25
- className = _ref.className;
30
+ isAutoplay = _ref$isAutoplay === void 0 ? false : _ref$isAutoplay;
26
31
  var renderVideo = React.useCallback(function () {
27
32
  switch (videoType) {
28
33
  case VideoTypes.YOUTUBE:
@@ -33,22 +38,27 @@ var VideoBlock = function VideoBlock(_ref) {
33
38
  width: "100%",
34
39
  height: "100%",
35
40
  frameBorder: "0",
36
- allow: "autoplay"
41
+ allow: "autoplay",
42
+ title: "iframe"
37
43
  });
38
44
  }
39
45
 
40
46
  case VideoTypes.VIDEO:
41
47
  {
42
- return /*#__PURE__*/React.createElement("video", {
43
- className: cn('video'),
44
- autoPlay: isAutoplay,
45
- muted: isMuted,
46
- controls: !isAutoplay,
47
- loop: true
48
- }, /*#__PURE__*/React.createElement("source", {
49
- src: videoSrc,
50
- type: "video/mp4"
51
- }));
48
+ return (
49
+ /*#__PURE__*/
50
+ // eslint-disable-next-line jsx-a11y/media-has-caption
51
+ React.createElement("video", {
52
+ className: cn('video'),
53
+ autoPlay: isAutoplay,
54
+ muted: isMuted,
55
+ controls: !isAutoplay,
56
+ loop: true
57
+ }, /*#__PURE__*/React.createElement("source", {
58
+ src: videoSrc,
59
+ type: "video/mp4"
60
+ }))
61
+ );
52
62
  }
53
63
 
54
64
  default:
@@ -56,30 +66,28 @@ var VideoBlock = function VideoBlock(_ref) {
56
66
  return null;
57
67
  }
58
68
  }
59
- }, [videoType, videoSrc]);
60
- var renderContent = React.useCallback(function (data) {
61
- var title = data.title,
62
- description = data.description,
63
- href = data.href,
64
- buttonTitle = data.buttonTitle,
65
- onButtonClick = data.onButtonClick;
69
+ }, [isAutoplay, isMuted, videoType, videoSrc]);
70
+ var renderContent = React.useCallback(function (_ref2) {
71
+ var title = _ref2.title,
72
+ description = _ref2.description,
73
+ href = _ref2.href,
74
+ buttonDownload = _ref2.buttonDownload,
75
+ buttonTitle = _ref2.buttonTitle,
76
+ onButtonClick = _ref2.onButtonClick;
66
77
  return /*#__PURE__*/React.createElement("div", {
67
78
  className: cn('content')
68
79
  }, /*#__PURE__*/React.createElement(Header, {
69
- as: "h3",
80
+ as: "h2",
70
81
  className: cn('header')
71
- }, title), /*#__PURE__*/React.createElement("div", null, description && description.map(function (paragraph, i) {
72
- return /*#__PURE__*/React.createElement(Paragraph, {
73
- key: i + paragraph,
74
- className: cn('text'),
75
- hasMargin: false
76
- }, paragraph);
77
- })), /*#__PURE__*/React.createElement(Button, {
78
- className: cn('button'),
82
+ }, title), /*#__PURE__*/React.createElement("div", {
83
+ className: cn('description', [classes.description])
84
+ }, description), /*#__PURE__*/React.createElement(Button, {
85
+ className: cn('button', [classes.button]),
79
86
  href: href,
80
- onClick: onButtonClick
87
+ onClick: onButtonClick,
88
+ download: buttonDownload
81
89
  }, buttonTitle));
82
- }, [content]);
90
+ }, [classes.button, classes.description]);
83
91
  var renderGridColumns = React.useCallback(function () {
84
92
  var columns = [];
85
93
  var columnWidth = content ? '7' : '10';
@@ -91,7 +99,7 @@ var VideoBlock = function VideoBlock(_ref) {
91
99
  mobile: "12",
92
100
  orderTablet: "2",
93
101
  orderMobile: "2",
94
- key: 'column-content'
102
+ key: "column-content"
95
103
  }, renderContent && renderContent(content)));
96
104
  }
97
105
 
@@ -99,7 +107,7 @@ var VideoBlock = function VideoBlock(_ref) {
99
107
  all: columnWidth,
100
108
  tablet: "12",
101
109
  mobile: "12",
102
- key: 'column-video'
110
+ key: "column-video"
103
111
  }, /*#__PURE__*/React.createElement("div", {
104
112
  className: cn('video-wrapper', {
105
113
  'with-content': !!content
@@ -107,26 +115,37 @@ var VideoBlock = function VideoBlock(_ref) {
107
115
  }, renderVideo())));
108
116
  return columns;
109
117
  }, [renderContent, renderVideo, content]);
110
- return /*#__PURE__*/React.createElement("div", {
111
- className: cn([className])
112
- }, /*#__PURE__*/React.createElement(Grid, {
118
+ return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs), {
119
+ className: cn([className, classes.root]),
120
+ ref: rootRef
121
+ }), /*#__PURE__*/React.createElement(Grid, {
113
122
  hAlign: "center",
114
123
  className: cn('grid')
115
124
  }, renderGridColumns()));
116
125
  };
117
126
 
118
127
  VideoBlock.propTypes = {
128
+ dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
129
+ className: PropTypes.string,
130
+ classes: PropTypes.shape({
131
+ root: PropTypes.string,
132
+ button: PropTypes.string,
133
+ description: PropTypes.string
134
+ }),
135
+ rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
136
+ current: PropTypes.elementType
137
+ }), PropTypes.any])]),
119
138
  content: PropTypes.shape({
120
139
  title: PropTypes.string.isRequired,
121
- description: PropTypes.array.isRequired,
140
+ description: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
122
141
  href: PropTypes.string,
123
142
  buttonTitle: PropTypes.string.isRequired,
143
+ buttonDownload: PropTypes.bool,
124
144
  onButtonClick: PropTypes.func
125
145
  }),
126
146
  videoType: PropTypes.oneOf(Object.values(VideoTypes)),
127
147
  videoSrc: PropTypes.string.isRequired,
128
148
  isMuted: PropTypes.bool,
129
- isAutoplay: PropTypes.bool,
130
- className: PropTypes.string
149
+ isAutoplay: PropTypes.bool
131
150
  };
132
151
  export default VideoBlock;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ resize: number;
3
+ };
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default {
2
+ resize: 300
3
+ };
@@ -3,6 +3,8 @@ export { default as BannerBox } from './components/BannerBox/BannerBox';
3
3
  export { default as BenefitsIcons } from './components/BenefitsIcons/BenefitsIcons';
4
4
  export { default as BenefitsIconsTile } from './components/BenefitsIcons/BenefitsIconsTile';
5
5
  export { default as BenefitsPictures } from './components/BenefitsPictures/BenefitsPictures';
6
+ export { default as Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs';
7
+ export { default as ButtonBanner } from './components/ButtonBanner/ButtonBanner';
6
8
  export { default as ButtonLinkBox } from './components/ButtonLinkBox/ButtonLinkBox';
7
9
  export { default as Card } from './components/Card/Card';
8
10
  export { default as CardsBox } from './components/CardsBox/CardsBox';
@@ -11,16 +13,22 @@ export { default as Container } from './components/Container/Container';
11
13
  export { default as DownloadLink } from './components/DownloadLinks/DownloadLink';
12
14
  export { default as DownloadLinks } from './components/DownloadLinks/DownloadLinks';
13
15
  export { default as Instructions } from './components/Instructions/Instructions';
16
+ export { default as PageTitle } from './components/PageTitle/PageTitle';
14
17
  export { default as Partners } from './components/Partners/Partners';
15
18
  export { default as PictureWithDescription } from './components/PictureWithDescription/PictureWithDescription';
16
19
  export { default as Property } from './components/Property/Property';
17
20
  export { default as PropertyDescription } from './components/Property/PropertyDescription';
21
+ export { default as Steps } from './components/Steps/Steps';
22
+ export { default as StepsItem } from './components/Steps/StepsItem';
23
+ export { default as StoreBanner } from './components/StoreBanner/StoreBanner';
24
+ export { default as StoreButton } from './components/StoreButton/StoreButton';
18
25
  export { default as TabBox } from './components/TabsBox/TabBox';
19
26
  export { default as Table } from './components/Table/Table';
20
27
  export { default as TableCell } from './components/Table/TableCell';
21
28
  export { default as TableRow } from './components/Table/TableRow';
22
29
  export { default as TabsBox } from './components/TabsBox/TabsBox';
23
30
  export { default as TextBox } from './components/TextBox/TextBox';
31
+ export { default as TextBoxPicture } from './components/TextBox/TextBoxPicture';
24
32
  export { default as TitleDescriptionBox } from './components/TitleDescriptionBox/TitleDescriptionBox';
25
33
  export { default as VideoBanner } from './components/VideoBanner/VideoBanner';
26
34
  export { default as VideoBlock } from './components/VideoBlock/VideoBlock';
package/dist/es/index.js CHANGED
@@ -3,6 +3,8 @@ export { default as BannerBox } from "./components/BannerBox/BannerBox";
3
3
  export { default as BenefitsIcons } from "./components/BenefitsIcons/BenefitsIcons";
4
4
  export { default as BenefitsIconsTile } from "./components/BenefitsIcons/BenefitsIconsTile";
5
5
  export { default as BenefitsPictures } from "./components/BenefitsPictures/BenefitsPictures";
6
+ export { default as Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
7
+ export { default as ButtonBanner } from "./components/ButtonBanner/ButtonBanner";
6
8
  export { default as ButtonLinkBox } from "./components/ButtonLinkBox/ButtonLinkBox";
7
9
  export { default as Card } from "./components/Card/Card";
8
10
  export { default as CardsBox } from "./components/CardsBox/CardsBox";
@@ -11,16 +13,22 @@ export { default as Container } from "./components/Container/Container";
11
13
  export { default as DownloadLink } from "./components/DownloadLinks/DownloadLink";
12
14
  export { default as DownloadLinks } from "./components/DownloadLinks/DownloadLinks";
13
15
  export { default as Instructions } from "./components/Instructions/Instructions";
16
+ export { default as PageTitle } from "./components/PageTitle/PageTitle";
14
17
  export { default as Partners } from "./components/Partners/Partners";
15
18
  export { default as PictureWithDescription } from "./components/PictureWithDescription/PictureWithDescription";
16
19
  export { default as Property } from "./components/Property/Property";
17
20
  export { default as PropertyDescription } from "./components/Property/PropertyDescription";
21
+ export { default as Steps } from "./components/Steps/Steps";
22
+ export { default as StepsItem } from "./components/Steps/StepsItem";
23
+ export { default as StoreBanner } from "./components/StoreBanner/StoreBanner";
24
+ export { default as StoreButton } from "./components/StoreButton/StoreButton";
18
25
  export { default as TabBox } from "./components/TabsBox/TabBox";
19
26
  export { default as Table } from "./components/Table/Table";
20
27
  export { default as TableCell } from "./components/Table/TableCell";
21
28
  export { default as TableRow } from "./components/Table/TableRow";
22
29
  export { default as TabsBox } from "./components/TabsBox/TabsBox";
23
30
  export { default as TextBox } from "./components/TextBox/TextBox";
31
+ export { default as TextBoxPicture } from "./components/TextBox/TextBoxPicture";
24
32
  export { default as TitleDescriptionBox } from "./components/TitleDescriptionBox/TitleDescriptionBox";
25
33
  export { default as VideoBanner } from "./components/VideoBanner/VideoBanner";
26
34
  export { default as VideoBlock } from "./components/VideoBlock/VideoBlock";
@@ -0,0 +1,13 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5 {
6
+ margin: 0;
7
+ }
8
+ .mfui-accordion-box + .mfui-accordion-box .mfui-accordion {
9
+ border-top: none;
10
+ }
11
+ .mfui-accordion-box .mfui-property:first-child {
12
+ border-top: none;
13
+ }
@@ -1,15 +1,30 @@
1
1
  import * as React from 'react';
2
+ import './AccordionBox.less';
2
3
  export interface IAccordionBox {
4
+ /** Дата атрибуты для корневого элемента */
5
+ dataAttrs?: {
6
+ [key: string]: string;
7
+ };
8
+ /** Ссылка на корневой элемент */
9
+ rootRef?: React.Ref<HTMLDivElement>;
3
10
  /** Заголовок аккордеона */
4
11
  title: string;
5
12
  /** Состояние аккордеона, заданное извне */
6
13
  isOpened?: boolean;
14
+ /** Отключить ограничение ширины */
15
+ isFullWidth?: boolean;
7
16
  /** Центрирование по горизонтали для расширения 1280+ */
8
17
  hCenterAlignWide?: boolean;
9
- /** Внешние классы для аккордеона и внутренних компонентов */
18
+ /** Вертикальные отступы */
19
+ hasVerticalPaddings?: boolean;
20
+ /** Дополнительный класс для корнеовго элемента */
21
+ className?: string;
22
+ /** Дополнительные классы для корневого и внутренних элементов */
10
23
  classes?: {
24
+ openedClass?: string;
11
25
  root?: string;
12
26
  collapse?: string;
27
+ titleWrap?: string;
13
28
  };
14
29
  /** Обработчик клика */
15
30
  onClickAccordion?: (isOpened: boolean, title: string) => void;
@@ -2,10 +2,6 @@
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
4
 
5
- require("core-js/modules/es.symbol");
6
-
7
- require("core-js/modules/es.array.index-of");
8
-
9
5
  Object.defineProperty(exports, "__esModule", {
10
6
  value: true
11
7
  });
@@ -17,10 +13,12 @@ require("core-js/modules/es.array.index-of");
17
13
 
18
14
  var React = _interopRequireWildcard(require("react"));
19
15
 
20
- var PropTypes = _interopRequireWildcard(require("prop-types"));
21
-
22
16
  var _uiCore = require("@megafon/ui-core");
23
17
 
18
+ var _uiHelpers = require("@megafon/ui-helpers");
19
+
20
+ var PropTypes = _interopRequireWildcard(require("prop-types"));
21
+
24
22
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
25
23
 
26
24
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -38,31 +36,45 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
38
36
  return t;
39
37
  };
40
38
 
41
- var cn = (0, _uiCore.cnCreate)('mfui-beta-accordion-box');
39
+ var cn = (0, _uiHelpers.cnCreate)('mfui-accordion-box');
42
40
 
43
41
  var AccordionBox = function AccordionBox(_a) {
44
42
  var _a$hCenterAlignWide = _a.hCenterAlignWide,
45
43
  hCenterAlignWide = _a$hCenterAlignWide === void 0 ? false : _a$hCenterAlignWide,
46
- props = __rest(_a, ["hCenterAlignWide"]);
47
-
48
- return /*#__PURE__*/React.createElement("div", {
49
- className: cn()
50
- }, /*#__PURE__*/React.createElement(_uiCore.Grid, {
51
- hAlign: hCenterAlignWide ? 'center' : 'left'
52
- }, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
53
- wide: "8"
54
- }, /*#__PURE__*/React.createElement(_uiCore.Accordion, props))));
44
+ _a$isFullWidth = _a.isFullWidth,
45
+ isFullWidth = _a$isFullWidth === void 0 ? false : _a$isFullWidth,
46
+ restProps = __rest(_a, ["hCenterAlignWide", "isFullWidth"]);
47
+
48
+ var renderAccordionWithGrid = React.useCallback(function () {
49
+ return /*#__PURE__*/React.createElement("div", {
50
+ className: cn()
51
+ }, /*#__PURE__*/React.createElement(_uiCore.Grid, {
52
+ hAlign: hCenterAlignWide ? 'center' : 'left'
53
+ }, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
54
+ wide: "8"
55
+ }, /*#__PURE__*/React.createElement(_uiCore.Accordion, restProps))));
56
+ }, [restProps, hCenterAlignWide]);
57
+ return isFullWidth ? /*#__PURE__*/React.createElement(_uiCore.Accordion, restProps) : renderAccordionWithGrid();
55
58
  };
56
59
 
57
60
  AccordionBox.propTypes = {
61
+ dataAttrs: PropTypes.objectOf(PropTypes.string.isRequired),
62
+ rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
63
+ current: PropTypes.elementType
64
+ }), PropTypes.any])]),
58
65
  title: PropTypes.string.isRequired,
66
+ isFullWidth: PropTypes.bool,
59
67
  isOpened: PropTypes.bool,
68
+ hCenterAlignWide: PropTypes.bool,
69
+ hasVerticalPaddings: PropTypes.bool,
70
+ className: PropTypes.string,
60
71
  classes: PropTypes.shape({
72
+ openedClass: PropTypes.string,
61
73
  root: PropTypes.string,
62
- collapse: PropTypes.string
74
+ collapse: PropTypes.string,
75
+ titleWrap: PropTypes.string
63
76
  }),
64
- onClickAccordion: PropTypes.func,
65
- hCenterAlignWide: PropTypes.bool
77
+ onClickAccordion: PropTypes.func
66
78
  };
67
79
  var _default = AccordionBox;
68
80
  exports["default"] = _default;
@@ -2,10 +2,6 @@
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
4
 
5
- require("core-js/modules/es.symbol");
6
-
7
- require("core-js/modules/es.array.index-of");
8
-
9
5
  Object.defineProperty(exports, "__esModule", {
10
6
  value: true
11
7
  });
@@ -19,6 +15,8 @@ var React = _interopRequireWildcard(require("react"));
19
15
 
20
16
  var _uiCore = require("@megafon/ui-core");
21
17
 
18
+ var _uiHelpers = require("@megafon/ui-helpers");
19
+
22
20
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
23
21
 
24
22
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -36,7 +34,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
36
34
  return t;
37
35
  };
38
36
 
39
- var cn = (0, _uiCore.cnCreate)('mfui-beta-banner-box');
37
+ var cn = (0, _uiHelpers.cnCreate)('mfui-banner-box');
40
38
 
41
39
  var BannerBox = function BannerBox(_a) {
42
40
  var children = _a.children,
@@ -1,13 +1,24 @@
1
1
  import * as React from 'react';
2
- import './style/BenefitsIcons.less';
3
2
  import { IconPosition, IBenefit } from './types';
3
+ import './style/BenefitsIcons.less';
4
4
  export interface IBenefitsIcons {
5
+ /** Ссылка на корневой элемент */
6
+ rootRef?: React.Ref<HTMLDivElement>;
5
7
  /** Позиция иконки */
6
8
  iconPosition?: IconPosition;
9
+ /** Выстраивать бенефиты в одну колонку вне зависимости от количества */
10
+ inOneColumn?: boolean;
7
11
  /** Список бенефитов */
8
12
  items: IBenefit[];
9
- /** Дополнительный класс корневого элемента */
13
+ /** Дополнительный css класс для корневого элемента */
10
14
  className?: string;
15
+ /** Дополнительные css классы для корневого и внутренних элементов */
16
+ classes?: {
17
+ root?: string;
18
+ item?: string;
19
+ grid?: string;
20
+ gridColumn?: string;
21
+ };
11
22
  }
12
23
  declare const BenefitsIcons: React.FC<IBenefitsIcons>;
13
24
  export default BenefitsIcons;
@@ -2,10 +2,6 @@
2
2
 
3
3
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
4
 
5
- require("core-js/modules/es.array.map");
6
-
7
- require("core-js/modules/es.object.values");
8
-
9
5
  Object.defineProperty(exports, "__esModule", {
10
6
  value: true
11
7
  });
@@ -15,13 +11,21 @@ require("core-js/modules/es.array.map");
15
11
 
16
12
  require("core-js/modules/es.object.values");
17
13
 
14
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
+
18
16
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
19
17
 
20
18
  var React = _interopRequireWildcard(require("react"));
21
19
 
20
+ var _uiCore = require("@megafon/ui-core");
21
+
22
+ var _uiHelpers = require("@megafon/ui-helpers");
23
+
24
+ var _lodash = _interopRequireDefault(require("lodash.throttle"));
25
+
22
26
  var _propTypes = _interopRequireDefault(require("prop-types"));
23
27
 
24
- var _uiCore = require("@megafon/ui-core");
28
+ var _throttleTime = _interopRequireDefault(require("../../constants/throttleTime"));
25
29
 
26
30
  var _BenefitsIconsTile = _interopRequireDefault(require("./BenefitsIconsTile"));
27
31
 
@@ -33,7 +37,6 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
33
37
 
34
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
39
 
36
- // left-aligned column with left side icon,
37
40
  var getLeftSideConfig = function getLeftSideConfig(count, index) {
38
41
  var everySecondWithoutOffset = index % 2 ? '1' : undefined;
39
42
  var columnSize = {
@@ -120,7 +123,19 @@ var getCenterTopConfig = function getCenterTopConfig(count, index) {
120
123
  }
121
124
  };
122
125
 
123
- var getColumnConfig = function getColumnConfig(iconPosition, count, index) {
126
+ var getOneColumnConfig = function getOneColumnConfig(iconPosition) {
127
+ return iconPosition !== _types.IconPositionEnum.CENTER_TOP ? {
128
+ wide: '10',
129
+ desktop: '10',
130
+ tablet: '10'
131
+ } : {
132
+ wide: '12',
133
+ desktop: '12',
134
+ tablet: '12'
135
+ };
136
+ };
137
+
138
+ var getMultiColumnConfig = function getMultiColumnConfig(iconPosition, count, index) {
124
139
  switch (iconPosition) {
125
140
  case _types.IconPositionEnum.LEFT_TOP:
126
141
  return getLeftTopConfig(count, index);
@@ -133,44 +148,93 @@ var getColumnConfig = function getColumnConfig(iconPosition, count, index) {
133
148
  }
134
149
  };
135
150
 
136
- var cn = (0, _uiCore.cnCreate)('mfui-beta-benefits-icons');
151
+ var cn = (0, _uiHelpers.cnCreate)('mfui-benefits-icons');
137
152
 
138
153
  var BenefitsIcons = function BenefitsIcons(_ref) {
139
- var _ref$iconPosition = _ref.iconPosition,
140
- iconPosition = _ref$iconPosition === void 0 ? 'left-top' : _ref$iconPosition,
154
+ var rootRef = _ref.rootRef,
155
+ _ref$iconPosition = _ref.iconPosition,
156
+ iconPosition = _ref$iconPosition === void 0 ? _types.IconPositionEnum.LEFT_TOP : _ref$iconPosition,
157
+ _ref$inOneColumn = _ref.inOneColumn,
158
+ inOneColumn = _ref$inOneColumn === void 0 ? false : _ref$inOneColumn,
141
159
  items = _ref.items,
142
- className = _ref.className;
143
- var hAlign = iconPosition === _types.IconPositionEnum.CENTER_TOP ? 'center' : 'left';
160
+ className = _ref.className,
161
+ _ref$classes = _ref.classes,
162
+ classes = _ref$classes === void 0 ? {} : _ref$classes;
163
+
164
+ var _React$useState = React.useState(iconPosition === _types.IconPositionEnum.CENTER_TOP ? 'center' : 'left'),
165
+ _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
166
+ itemsAlign = _React$useState2[0],
167
+ setItemsAlign = _React$useState2[1];
168
+
169
+ var _React$useState3 = React.useState(iconPosition),
170
+ _React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
171
+ localIconPosition = _React$useState4[0],
172
+ setLocalIconPosition = _React$useState4[1];
173
+
174
+ var resizeHandler = React.useCallback(function () {
175
+ if (window.innerWidth <= _uiHelpers.breakpoints.MOBILE_MIDDLE_END) {
176
+ setItemsAlign(_types.ItemsAlignEnum.CENTER);
177
+ setLocalIconPosition(_types.IconPositionEnum.CENTER_TOP);
178
+ } else {
179
+ setItemsAlign(_types.ItemsAlignEnum.LEFT);
180
+ setLocalIconPosition(iconPosition);
181
+ }
182
+ }, [iconPosition]);
183
+ React.useEffect(function () {
184
+ var resizeHandlerThrottled = (0, _lodash["default"])(resizeHandler, _throttleTime["default"].resize);
185
+
186
+ if (inOneColumn) {
187
+ resizeHandler();
188
+ window.addEventListener('resize', resizeHandlerThrottled);
189
+ }
190
+
191
+ return function () {
192
+ window.removeEventListener('resize', resizeHandlerThrottled);
193
+ };
194
+ }, [iconPosition, inOneColumn, resizeHandler]);
144
195
  return /*#__PURE__*/React.createElement("div", {
145
- className: cn(className)
196
+ className: cn([className, classes.root]),
197
+ ref: rootRef
146
198
  }, /*#__PURE__*/React.createElement("div", {
147
199
  className: cn('inner')
148
200
  }, /*#__PURE__*/React.createElement(_uiCore.Grid, {
201
+ className: classes.grid,
149
202
  guttersLeft: "medium",
150
- hAlign: hAlign
203
+ hAlign: itemsAlign
151
204
  }, items.map(function (_ref2, i) {
152
205
  var title = _ref2.title,
153
206
  text = _ref2.text,
154
207
  icon = _ref2.icon;
155
- return /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({}, getColumnConfig(iconPosition, items.length, i), {
208
+ var columnConfig = inOneColumn ? getOneColumnConfig(iconPosition) : getMultiColumnConfig(iconPosition, items.length, i);
209
+ return /*#__PURE__*/React.createElement(_uiCore.GridColumn, (0, _extends2["default"])({
210
+ className: classes.gridColumn,
156
211
  key: i
157
- }), /*#__PURE__*/React.createElement(_BenefitsIconsTile["default"], {
212
+ }, columnConfig), /*#__PURE__*/React.createElement(_BenefitsIconsTile["default"], {
213
+ className: classes.item,
158
214
  title: title,
159
215
  text: text,
160
216
  icon: icon,
161
- iconPosition: iconPosition
217
+ iconPosition: localIconPosition
162
218
  }));
163
219
  }))));
164
220
  };
165
221
 
166
222
  BenefitsIcons.propTypes = {
223
+ rootRef: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].oneOfType([_propTypes["default"].shape({
224
+ current: _propTypes["default"].elementType
225
+ }), _propTypes["default"].any])]),
167
226
  iconPosition: _propTypes["default"].oneOf(Object.values(_types.IconPositionEnum)),
227
+ inOneColumn: _propTypes["default"].bool,
168
228
  items: _propTypes["default"].arrayOf(_propTypes["default"].shape({
169
- title: _propTypes["default"].string,
170
- text: _propTypes["default"].string,
229
+ title: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
230
+ text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node, _propTypes["default"].arrayOf(_propTypes["default"].node)]),
171
231
  icon: _propTypes["default"].node.isRequired
172
232
  }).isRequired).isRequired,
173
- className: _propTypes["default"].string
233
+ className: _propTypes["default"].string,
234
+ classes: _propTypes["default"].shape({
235
+ root: _propTypes["default"].string,
236
+ item: _propTypes["default"].string
237
+ })
174
238
  };
175
239
  var _default = BenefitsIcons;
176
240
  exports["default"] = _default;
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
- import './style/BenefitsIconsTile.less';
3
2
  import { IBenefit, IconPosition } from './types';
3
+ import './style/BenefitsIconsTile.less';
4
4
  export interface IBenefitsIconsTile extends IBenefit {
5
5
  iconPosition?: IconPosition;
6
+ className?: string;
6
7
  }
7
8
  declare const BenefitsIconsTile: React.FC<IBenefitsIconsTile>;
8
9
  export default BenefitsIconsTile;