@megafon/ui-shared 4.4.0 → 4.5.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.5.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.4.1...@megafon/ui-shared@4.5.0) (2022-11-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **videoblock:** added for title and description render html tags ([d0d2255](https://github.com/MegafonWebLab/megafon-ui/commit/d0d2255abb80e73058151967721a447c8ebc4028))
12
+ * **videoblock:** fixed and ddded tag b for description ([6e7de85](https://github.com/MegafonWebLab/megafon-ui/commit/6e7de853b8ff920f4b0de2ecfd3cdb8538bc727a))
13
+ * **videoblock:** return types and change config for description ([75f18e1](https://github.com/MegafonWebLab/megafon-ui/commit/75f18e10e6cb22779cceaf90f8a6e0e258a92612))
14
+
15
+
16
+
17
+
18
+
19
+ ## [4.4.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.4.0...@megafon/ui-shared@4.4.1) (2022-11-07)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **accordionbox:** add missing margin for group of components ([e20da93](https://github.com/MegafonWebLab/megafon-ui/commit/e20da9336f664b526671e5950d319e8ef4dbd946))
25
+
26
+
27
+
28
+
29
+
6
30
  # [4.4.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.3.0...@megafon/ui-shared@4.4.0) (2022-10-31)
7
31
 
8
32
 
@@ -5,9 +5,11 @@ h4,
5
5
  h5 {
6
6
  margin: 0;
7
7
  }
8
- .mfui-accordion-box + .mfui-accordion-box .mfui-accordion {
9
- border-top: none;
8
+ .mfui-accordion-box + .mfui-accordion-box {
9
+ margin-top: 8px;
10
10
  }
11
- .mfui-accordion-box .mfui-property:first-child {
12
- border-top: none;
11
+ @media screen and (min-width: 768px) {
12
+ .mfui-accordion-box + .mfui-accordion-box {
13
+ margin-top: 12px;
14
+ }
13
15
  }
@@ -47,7 +47,7 @@ var Partners = function Partners(_ref) {
47
47
  alt = item.alt;
48
48
  return /*#__PURE__*/React.createElement(Tile, {
49
49
  href: href,
50
- shadowLevel: "low",
50
+ shadowLevel: "default",
51
51
  isInteractive: !!href,
52
52
  className: cn('tile'),
53
53
  dataAttrs: {
@@ -5,7 +5,7 @@ import "core-js/modules/es.object.values";
5
5
  import _extends from "@babel/runtime/helpers/extends";
6
6
  import React from 'react';
7
7
  import { Header, Button, Grid, GridColumn } from '@megafon/ui-core';
8
- import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
8
+ import { cnCreate, filterDataAttrs, convert, titleConvertConfig, textConvertConfig } from '@megafon/ui-helpers';
9
9
  import PropTypes from 'prop-types';
10
10
  import "./VideoBlock.css";
11
11
  export var VideoTypes = {
@@ -83,9 +83,9 @@ var VideoBlock = function VideoBlock(_ref) {
83
83
  }, /*#__PURE__*/React.createElement(Header, {
84
84
  as: "h2",
85
85
  className: cn('header')
86
- }, title), /*#__PURE__*/React.createElement("div", {
86
+ }, convert(title, titleConvertConfig)), /*#__PURE__*/React.createElement("div", {
87
87
  className: cn('description', [classes.description])
88
- }, description), buttonTitle && /*#__PURE__*/React.createElement(Button, {
88
+ }, typeof description === 'string' ? convert(description, textConvertConfig) : description), buttonTitle && /*#__PURE__*/React.createElement(Button, {
89
89
  dataAttrs: {
90
90
  root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
91
91
  },
@@ -5,9 +5,11 @@ h4,
5
5
  h5 {
6
6
  margin: 0;
7
7
  }
8
- .mfui-accordion-box + .mfui-accordion-box .mfui-accordion {
9
- border-top: none;
8
+ .mfui-accordion-box + .mfui-accordion-box {
9
+ margin-top: 8px;
10
10
  }
11
- .mfui-accordion-box .mfui-property:first-child {
12
- border-top: none;
11
+ @media screen and (min-width: 768px) {
12
+ .mfui-accordion-box + .mfui-accordion-box {
13
+ margin-top: 12px;
14
+ }
13
15
  }
@@ -68,7 +68,7 @@ var Partners = function Partners(_ref) {
68
68
  alt = item.alt;
69
69
  return /*#__PURE__*/React.createElement(_uiCore.Tile, {
70
70
  href: href,
71
- shadowLevel: "low",
71
+ shadowLevel: "default",
72
72
  isInteractive: !!href,
73
73
  className: cn('tile'),
74
74
  dataAttrs: {
@@ -103,9 +103,9 @@ var VideoBlock = function VideoBlock(_ref) {
103
103
  }, /*#__PURE__*/_react["default"].createElement(_uiCore.Header, {
104
104
  as: "h2",
105
105
  className: cn('header')
106
- }, title), /*#__PURE__*/_react["default"].createElement("div", {
106
+ }, (0, _uiHelpers.convert)(title, _uiHelpers.titleConvertConfig)), /*#__PURE__*/_react["default"].createElement("div", {
107
107
  className: cn('description', [classes.description])
108
- }, description), buttonTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.Button, {
108
+ }, typeof description === 'string' ? (0, _uiHelpers.convert)(description, _uiHelpers.textConvertConfig) : description), buttonTitle && /*#__PURE__*/_react["default"].createElement(_uiCore.Button, {
109
109
  dataAttrs: {
110
110
  root: dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.button
111
111
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@babel/runtime": "^7.8.4",
88
- "@megafon/ui-core": "^4.6.0",
88
+ "@megafon/ui-core": "^4.8.0",
89
89
  "@megafon/ui-helpers": "^2.3.0",
90
90
  "core-js": "^3.6.4",
91
91
  "htmr": "^0.9.2",
@@ -93,5 +93,5 @@
93
93
  "prop-types": "^15.7.2",
94
94
  "swiper": "^6.5.6"
95
95
  },
96
- "gitHead": "fd77e756d2591ad3489e94c585d40bfa05e40710"
96
+ "gitHead": "bcae549045e554803fd7e7b64e8d106a9aa6e31d"
97
97
  }