@megafon/ui-shared 5.2.2 → 5.2.3

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 (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/es/components/ButtonLinkBox/ButtonLinkBox.js +1 -1
  3. package/dist/es/components/Instructions/img/android.png +0 -0
  4. package/dist/es/components/Instructions/img/blackIphone.png +0 -0
  5. package/dist/es/components/Instructions/img/laptop.png +0 -0
  6. package/dist/es/components/Instructions/img/newIphone.png +0 -0
  7. package/dist/es/components/Instructions/img/whiteIphone.png +0 -0
  8. package/dist/es/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  9. package/dist/es/components/StoreBanner/doc/img/qr-code.png +0 -0
  10. package/dist/es/components/StoreBanner/doc/img/screen.png +0 -0
  11. package/dist/es/components/StoreBanner/img/android.png +0 -0
  12. package/dist/es/components/StoreBanner/img/black-iphone.png +0 -0
  13. package/dist/es/components/StoreBanner/img/new-iphone.png +0 -0
  14. package/dist/es/components/StoreBanner/img/white-iphone.png +0 -0
  15. package/dist/es/components/TitleDescriptionBox/TitleDescriptionBox.js +15 -3
  16. package/dist/lib/components/ButtonLinkBox/ButtonLinkBox.js +1 -1
  17. package/dist/lib/components/Instructions/img/android.png +0 -0
  18. package/dist/lib/components/Instructions/img/blackIphone.png +0 -0
  19. package/dist/lib/components/Instructions/img/laptop.png +0 -0
  20. package/dist/lib/components/Instructions/img/newIphone.png +0 -0
  21. package/dist/lib/components/Instructions/img/whiteIphone.png +0 -0
  22. package/dist/lib/components/StoreBanner/doc/img/new-iphone-screen.png +0 -0
  23. package/dist/lib/components/StoreBanner/doc/img/qr-code.png +0 -0
  24. package/dist/lib/components/StoreBanner/doc/img/screen.png +0 -0
  25. package/dist/lib/components/StoreBanner/img/android.png +0 -0
  26. package/dist/lib/components/StoreBanner/img/black-iphone.png +0 -0
  27. package/dist/lib/components/StoreBanner/img/new-iphone.png +0 -0
  28. package/dist/lib/components/StoreBanner/img/white-iphone.png +0 -0
  29. package/dist/lib/components/TitleDescriptionBox/TitleDescriptionBox.js +15 -3
  30. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+ ## [5.2.3](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@5.2.2...@megafon/ui-shared@5.2.3) (2023-11-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **buttonlinkbox:** fixed align prop type ([2853625](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/commit/2853625a89a85f3cdb2f92a642a3331c95e23c4c))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.2.2](https://hq-gitlab.megafon.ru/site-portal/services/megafon-ui/compare/@megafon/ui-shared@5.2.1...@megafon/ui-shared@5.2.2) (2023-11-08)
7
18
 
8
19
 
@@ -86,7 +86,7 @@ ButtonLinkBox.propTypes = {
86
86
  linkUrl: PropTypes.string,
87
87
  linkDownload: PropTypes.bool,
88
88
  linkRel: PropTypes.string,
89
- align: PropTypes.oneOf(['center']),
89
+ align: PropTypes.oneOf(['center', 'left']),
90
90
  onButtonClick: PropTypes.func,
91
91
  onLinkClick: PropTypes.func
92
92
  };
@@ -6,6 +6,7 @@ import { Header, Paragraph, Grid, GridColumn } from '@megafon/ui-core';
6
6
  import { cnCreate, filterDataAttrs } from '@megafon/ui-helpers';
7
7
  import * as PropTypes from 'prop-types';
8
8
  import "./TitleDescriptionBox.css";
9
+ var testIdPrefix = 'TitleDescriptionBox';
9
10
  var cn = cnCreate('mfui-title-description-box');
10
11
 
11
12
  var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
@@ -21,12 +22,18 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
21
22
  return /*#__PURE__*/React.createElement(Paragraph, {
22
23
  className: cn('item'),
23
24
  hasMargin: false,
24
- color: "inherit"
25
+ color: "inherit",
26
+ dataAttrs: {
27
+ root: {
28
+ 'data-testid': "".concat(testIdPrefix, "-description-text")
29
+ }
30
+ }
25
31
  }, description);
26
32
  }
27
33
 
28
34
  return /*#__PURE__*/React.createElement("div", {
29
- className: cn('description')
35
+ className: cn('description'),
36
+ "data-testid": "".concat(testIdPrefix, "-description-node")
30
37
  }, description);
31
38
  }, [description]);
32
39
  return /*#__PURE__*/React.createElement("div", _extends({}, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
@@ -36,7 +43,12 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
36
43
  }, className),
37
44
  ref: rootRef
38
45
  }), /*#__PURE__*/React.createElement(Grid, {
39
- hAlign: align
46
+ hAlign: align,
47
+ dataAttrs: {
48
+ container: {
49
+ 'data-testid': "".concat(testIdPrefix, "-grid")
50
+ }
51
+ }
40
52
  }, /*#__PURE__*/React.createElement(GridColumn, {
41
53
  wide: "8",
42
54
  desktop: "10"
@@ -106,7 +106,7 @@ ButtonLinkBox.propTypes = {
106
106
  linkUrl: PropTypes.string,
107
107
  linkDownload: PropTypes.bool,
108
108
  linkRel: PropTypes.string,
109
- align: PropTypes.oneOf(['center']),
109
+ align: PropTypes.oneOf(['center', 'left']),
110
110
  onButtonClick: PropTypes.func,
111
111
  onLinkClick: PropTypes.func
112
112
  };
@@ -27,6 +27,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
27
27
 
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
29
 
30
+ var testIdPrefix = 'TitleDescriptionBox';
30
31
  var cn = (0, _uiHelpers.cnCreate)('mfui-title-description-box');
31
32
 
32
33
  var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
@@ -42,12 +43,18 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
42
43
  return /*#__PURE__*/React.createElement(_uiCore.Paragraph, {
43
44
  className: cn('item'),
44
45
  hasMargin: false,
45
- color: "inherit"
46
+ color: "inherit",
47
+ dataAttrs: {
48
+ root: {
49
+ 'data-testid': "".concat(testIdPrefix, "-description-text")
50
+ }
51
+ }
46
52
  }, description);
47
53
  }
48
54
 
49
55
  return /*#__PURE__*/React.createElement("div", {
50
- className: cn('description')
56
+ className: cn('description'),
57
+ "data-testid": "".concat(testIdPrefix, "-description-node")
51
58
  }, description);
52
59
  }, [description]);
53
60
  return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, (0, _uiHelpers.filterDataAttrs)(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.root), {
@@ -57,7 +64,12 @@ var TitleDescriptionBox = function TitleDescriptionBox(_ref) {
57
64
  }, className),
58
65
  ref: rootRef
59
66
  }), /*#__PURE__*/React.createElement(_uiCore.Grid, {
60
- hAlign: align
67
+ hAlign: align,
68
+ dataAttrs: {
69
+ container: {
70
+ 'data-testid': "".concat(testIdPrefix, "-grid")
71
+ }
72
+ }
61
73
  }, /*#__PURE__*/React.createElement(_uiCore.GridColumn, {
62
74
  wide: "8",
63
75
  desktop: "10"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -48,7 +48,7 @@
48
48
  "@babel/preset-env": "^7.8.6",
49
49
  "@babel/preset-react": "^7.8.3",
50
50
  "@babel/preset-typescript": "^7.8.3",
51
- "@megafon/ui-icons": "^2.14.1",
51
+ "@megafon/ui-icons": "^2.15.0",
52
52
  "@svgr/core": "^2.4.1",
53
53
  "@testing-library/jest-dom": "5.16.2",
54
54
  "@testing-library/react": "12.1.2",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@babel/runtime": "^7.8.4",
85
- "@megafon/ui-core": "^5.3.0",
85
+ "@megafon/ui-core": "^5.4.0",
86
86
  "@megafon/ui-helpers": "^2.5.3",
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": "0a8f8d140ed863cb8bb9f05e4226edcb7925c74d"
93
+ "gitHead": "e78c7c397c514016ee74020939dc3807e09bf49a"
94
94
  }