@megafon/ui-shared 5.16.0 → 5.17.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.
@@ -40,11 +40,11 @@ h5 {
40
40
  -webkit-box-pack: center;
41
41
  -ms-flex-pack: center;
42
42
  justify-content: center;
43
- max-width: 672px;
44
43
  }
45
44
  @media screen and (min-width: 1024px) {
46
45
  .mfui-image-banner__picture {
47
46
  width: 50%;
47
+ max-width: 672px;
48
48
  height: 100%;
49
49
  }
50
50
  }
@@ -136,14 +136,18 @@ h5 {
136
136
  -ms-flex-wrap: wrap;
137
137
  flex-wrap: wrap;
138
138
  gap: 16px;
139
- -webkit-box-align: center;
140
- -ms-flex-align: center;
141
- align-items: center;
142
139
  -webkit-box-pack: center;
143
140
  -ms-flex-pack: center;
144
141
  justify-content: center;
145
142
  margin-top: 32px;
146
143
  }
144
+ @media screen and (max-width: 767px) {
145
+ .mfui-image-banner__children {
146
+ -webkit-box-align: center;
147
+ -ms-flex-align: center;
148
+ align-items: center;
149
+ }
150
+ }
147
151
  @media screen and (min-width: 768px) {
148
152
  .mfui-image-banner__children {
149
153
  -webkit-box-orient: horizontal;
@@ -44,6 +44,7 @@ export interface IImageBannerProps {
44
44
  badgesContainer?: string;
45
45
  badges?: string;
46
46
  adBlock?: string;
47
+ children?: string;
47
48
  };
48
49
  /** Ссылка на корневой элемент */
49
50
  rootRef?: Ref<HTMLDivElement>;
@@ -166,7 +166,7 @@ var ImageBanner = function ImageBanner(_ref2) {
166
166
  }, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.titleConvertConfig) : description), !!cost && /*#__PURE__*/_react["default"].createElement("div", {
167
167
  className: cn('cost', [classes.cost])
168
168
  }, (0, _uiHelpers.convert)(cost, typographyConfig)), !!children && !!_react["default"].Children.count(children) && /*#__PURE__*/_react["default"].createElement("div", {
169
- className: cn('children')
169
+ className: cn('children', [classes.children])
170
170
  }, children));
171
171
 
172
172
  var renderImage = /*#__PURE__*/_react["default"].createElement("picture", {
@@ -213,7 +213,8 @@ ImageBanner.propTypes = {
213
213
  badgesContainer: PropTypes.string,
214
214
  badges: PropTypes.string,
215
215
  badge: PropTypes.string,
216
- adBlock: PropTypes.string
216
+ adBlock: PropTypes.string,
217
+ children: PropTypes.string
217
218
  }),
218
219
  rootRef: PropTypes.oneOfType([PropTypes.func, PropTypes.oneOfType([PropTypes.shape({
219
220
  current: PropTypes.elementType
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("@megafon/ui-core/dist/lib/components/Grid/GridColumn").IGridColumn>, "all" | "wide" | "mobile" | "desktop" | "tablet">;
2
+ export declare const getColumnConfig: (isFullWidth: boolean) => Pick<React.PropsWithChildren<import("../../../ui-core/dist/lib/components/Grid/GridColumn").IGridColumn>, "all" | "wide" | "mobile" | "desktop" | "tablet">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "5.16.0",
3
+ "version": "5.17.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@babel/runtime": "^7.8.4",
85
- "@megafon/ui-core": "^5.18.0",
85
+ "@megafon/ui-core": "^5.18.1",
86
86
  "@megafon/ui-helpers": "^2.6.0",
87
87
  "core-js": "^3.6.4",
88
88
  "htmr": "^0.9.2",
@@ -90,5 +90,5 @@
90
90
  "prop-types": "^15.7.2",
91
91
  "swiper": "^6.5.6"
92
92
  },
93
- "gitHead": "083ea89de7d915f3d2d74aff90e4ec8213a235f5"
93
+ "gitHead": "e39d4dae5d51999d67300d83f502e1d20293798f"
94
94
  }