@megafon/ui-shared 4.20.1 → 4.20.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.20.3](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.20.2...@megafon/ui-shared@4.20.3) (2023-06-22)
7
+
8
+ **Note:** Version bump only for package @megafon/ui-shared
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.20.2](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.20.1...@megafon/ui-shared@4.20.2) (2023-06-07)
15
+
16
+ **Note:** Version bump only for package @megafon/ui-shared
17
+
18
+
19
+
20
+
21
+
6
22
  ## [4.20.1](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-shared@4.20.0...@megafon/ui-shared@4.20.1) (2023-06-05)
7
23
 
8
24
 
@@ -12,7 +12,7 @@ h5 {
12
12
  color: var(--content);
13
13
  }
14
14
  .mfui-store-banner_theme_green .mfui-store-banner__grid {
15
- border-color: transparent;
15
+ border: 0;
16
16
  background-color: var(--brandGreen);
17
17
  }
18
18
  .mfui-store-banner_theme_green .mfui-store-banner__content {
@@ -101,10 +101,11 @@ h5 {
101
101
  top: 16px;
102
102
  z-index: 1;
103
103
  width: 87%;
104
+ border-radius: 4px;
104
105
  }
105
106
  @media screen and (min-width: 1024px) and (max-width: 1279px) {
106
107
  .mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen {
107
- top: 18px;
108
+ top: 17px;
108
109
  }
109
110
  }
110
111
  @media screen and (min-width: 768px) and (max-width: 1023px) {
@@ -10,10 +10,10 @@ export declare const Theme: {
10
10
  declare type ThemeType = typeof Theme[keyof typeof Theme];
11
11
  export declare const DeviceMask: {
12
12
  readonly ANDROID: "android";
13
- readonly NEW_IPHONE: "new-iphone";
14
13
  readonly BLACK_IPHONE: "black-iphone";
15
- readonly WHITE_IPHONE: "white-iphone";
16
14
  readonly IPHONE_12: "iphone-12";
15
+ readonly NEW_IPHONE: "new-iphone";
16
+ readonly WHITE_IPHONE: "white-iphone";
17
17
  };
18
18
  declare type DeviceMaskType = typeof DeviceMask[keyof typeof DeviceMask];
19
19
  declare type LinkHrefType = StoreButtonPropsType['href'];
@@ -14,10 +14,10 @@ export var Theme = {
14
14
  };
15
15
  export var DeviceMask = {
16
16
  ANDROID: 'android',
17
- NEW_IPHONE: 'new-iphone',
18
17
  BLACK_IPHONE: 'black-iphone',
19
- WHITE_IPHONE: 'white-iphone',
20
- IPHONE_12: 'iphone-12'
18
+ IPHONE_12: 'iphone-12',
19
+ NEW_IPHONE: 'new-iphone',
20
+ WHITE_IPHONE: 'white-iphone'
21
21
  };
22
22
  var cn = cnCreate('mfui-store-banner');
23
23
 
@@ -15,7 +15,6 @@ export { default as Card } from './components/Card/Card';
15
15
  export { default as CardsBox } from './components/CardsBox/CardsBox';
16
16
  export { default as CarouselBox } from './components/CarouselBox/CarouselBox';
17
17
  export { default as Container } from './components/Container/Container';
18
- export { default as DeviceMask } from './components/DeviceMask/DeviceMask';
19
18
  export { default as DownloadLink } from './components/DownloadLinks/DownloadLink';
20
19
  export { default as DownloadLinks } from './components/DownloadLinks/DownloadLinks';
21
20
  export { default as FaqWrapper } from './components/FaqWrapper/FaqWrapper';
package/dist/es/index.js CHANGED
@@ -15,7 +15,6 @@ export { default as Card } from "./components/Card/Card";
15
15
  export { default as CardsBox } from "./components/CardsBox/CardsBox";
16
16
  export { default as CarouselBox } from "./components/CarouselBox/CarouselBox";
17
17
  export { default as Container } from "./components/Container/Container";
18
- export { default as DeviceMask } from "./components/DeviceMask/DeviceMask";
19
18
  export { default as DownloadLink } from "./components/DownloadLinks/DownloadLink";
20
19
  export { default as DownloadLinks } from "./components/DownloadLinks/DownloadLinks";
21
20
  export { default as FaqWrapper } from "./components/FaqWrapper/FaqWrapper";
@@ -12,7 +12,7 @@ h5 {
12
12
  color: var(--content);
13
13
  }
14
14
  .mfui-store-banner_theme_green .mfui-store-banner__grid {
15
- border-color: transparent;
15
+ border: 0;
16
16
  background-color: var(--brandGreen);
17
17
  }
18
18
  .mfui-store-banner_theme_green .mfui-store-banner__content {
@@ -101,10 +101,11 @@ h5 {
101
101
  top: 16px;
102
102
  z-index: 1;
103
103
  width: 87%;
104
+ border-radius: 4px;
104
105
  }
105
106
  @media screen and (min-width: 1024px) and (max-width: 1279px) {
106
107
  .mfui-store-banner_mask_iphone-12 .mfui-store-banner__screen {
107
- top: 18px;
108
+ top: 17px;
108
109
  }
109
110
  }
110
111
  @media screen and (min-width: 768px) and (max-width: 1023px) {
@@ -10,10 +10,10 @@ export declare const Theme: {
10
10
  declare type ThemeType = typeof Theme[keyof typeof Theme];
11
11
  export declare const DeviceMask: {
12
12
  readonly ANDROID: "android";
13
- readonly NEW_IPHONE: "new-iphone";
14
13
  readonly BLACK_IPHONE: "black-iphone";
15
- readonly WHITE_IPHONE: "white-iphone";
16
14
  readonly IPHONE_12: "iphone-12";
15
+ readonly NEW_IPHONE: "new-iphone";
16
+ readonly WHITE_IPHONE: "white-iphone";
17
17
  };
18
18
  declare type DeviceMaskType = typeof DeviceMask[keyof typeof DeviceMask];
19
19
  declare type LinkHrefType = StoreButtonPropsType['href'];
@@ -36,10 +36,10 @@ var Theme = {
36
36
  exports.Theme = Theme;
37
37
  var DeviceMask = {
38
38
  ANDROID: 'android',
39
- NEW_IPHONE: 'new-iphone',
40
39
  BLACK_IPHONE: 'black-iphone',
41
- WHITE_IPHONE: 'white-iphone',
42
- IPHONE_12: 'iphone-12'
40
+ IPHONE_12: 'iphone-12',
41
+ NEW_IPHONE: 'new-iphone',
42
+ WHITE_IPHONE: 'white-iphone'
43
43
  };
44
44
  exports.DeviceMask = DeviceMask;
45
45
  var cn = (0, _uiHelpers.cnCreate)('mfui-store-banner');
@@ -15,7 +15,6 @@ export { default as Card } from './components/Card/Card';
15
15
  export { default as CardsBox } from './components/CardsBox/CardsBox';
16
16
  export { default as CarouselBox } from './components/CarouselBox/CarouselBox';
17
17
  export { default as Container } from './components/Container/Container';
18
- export { default as DeviceMask } from './components/DeviceMask/DeviceMask';
19
18
  export { default as DownloadLink } from './components/DownloadLinks/DownloadLink';
20
19
  export { default as DownloadLinks } from './components/DownloadLinks/DownloadLinks';
21
20
  export { default as FaqWrapper } from './components/FaqWrapper/FaqWrapper';
package/dist/lib/index.js CHANGED
@@ -105,12 +105,6 @@ Object.defineProperty(exports, "Container", {
105
105
  return _Container["default"];
106
106
  }
107
107
  });
108
- Object.defineProperty(exports, "DeviceMask", {
109
- enumerable: true,
110
- get: function get() {
111
- return _DeviceMask["default"];
112
- }
113
- });
114
108
  Object.defineProperty(exports, "DownloadLink", {
115
109
  enumerable: true,
116
110
  get: function get() {
@@ -314,8 +308,6 @@ var _CarouselBox = _interopRequireDefault(require("./components/CarouselBox/Caro
314
308
 
315
309
  var _Container = _interopRequireDefault(require("./components/Container/Container"));
316
310
 
317
- var _DeviceMask = _interopRequireDefault(require("./components/DeviceMask/DeviceMask"));
318
-
319
311
  var _DownloadLink = _interopRequireDefault(require("./components/DownloadLinks/DownloadLink"));
320
312
 
321
313
  var _DownloadLinks = _interopRequireDefault(require("./components/DownloadLinks/DownloadLinks"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megafon/ui-shared",
3
- "version": "4.20.1",
3
+ "version": "4.20.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -52,7 +52,7 @@
52
52
  "@babel/preset-env": "^7.8.6",
53
53
  "@babel/preset-react": "^7.8.3",
54
54
  "@babel/preset-typescript": "^7.8.3",
55
- "@megafon/ui-icons": "^2.11.0",
55
+ "@megafon/ui-icons": "^2.12.0",
56
56
  "@svgr/core": "^2.4.1",
57
57
  "@testing-library/jest-dom": "5.16.2",
58
58
  "@testing-library/react": "12.1.2",
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "dependencies": {
88
88
  "@babel/runtime": "^7.8.4",
89
- "@megafon/ui-core": "^4.16.1",
89
+ "@megafon/ui-core": "^5.0.0",
90
90
  "@megafon/ui-helpers": "^2.5.0",
91
91
  "core-js": "^3.6.4",
92
92
  "htmr": "^0.9.2",
@@ -94,5 +94,5 @@
94
94
  "prop-types": "^15.7.2",
95
95
  "swiper": "^6.5.6"
96
96
  },
97
- "gitHead": "a5c7e2036b6bd896caecea24f7ddab0fd3648309"
97
+ "gitHead": "e915cddf01ba660df8f0b3ce7345cdfdcb871bd0"
98
98
  }
@@ -1,66 +0,0 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-device-mask {
9
- position: relative;
10
- width: 250px;
11
- height: 550px;
12
- overflow: hidden;
13
- background-repeat: no-repeat;
14
- background-size: cover;
15
- }
16
- .mfui-device-mask__screen-content {
17
- position: absolute;
18
- z-index: 0;
19
- width: 214px;
20
- height: 462px;
21
- overflow: hidden;
22
- }
23
- .mfui-device-mask__screen-content_android {
24
- top: 10px;
25
- left: 10px;
26
- width: 228px;
27
- height: 460px;
28
- }
29
- .mfui-device-mask__screen-content_iphone {
30
- top: 16px;
31
- left: 16px;
32
- width: 218px;
33
- height: 469px;
34
- }
35
- .mfui-device-mask__screen-content_black-iphone,
36
- .mfui-device-mask__screen-content_white-iphone {
37
- top: 60px;
38
- left: 17px;
39
- width: 216px;
40
- height: 381px;
41
- }
42
- .mfui-device-mask__screen-content > * {
43
- max-width: 100%;
44
- }
45
- .mfui-device-mask__device {
46
- position: absolute;
47
- top: 0;
48
- left: 0;
49
- z-index: 1;
50
- width: 100%;
51
- height: 100%;
52
- background-repeat: no-repeat;
53
- background-size: 100% auto;
54
- }
55
- .mfui-device-mask__device_android {
56
- background-image: url('./i/android.png');
57
- }
58
- .mfui-device-mask__device_iphone {
59
- background-image: url('./i/iphone.png');
60
- }
61
- .mfui-device-mask__device_black-iphone {
62
- background-image: url('./i/black-iphone.png');
63
- }
64
- .mfui-device-mask__device_white-iphone {
65
- background-image: url('./i/white-iphone.png');
66
- }
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './DeviceMask.less';
3
- export declare const Devices: {
4
- readonly IPHONE: "iphone";
5
- readonly ANDROID: "android";
6
- readonly BLACK_IPHONE: "black-iphone";
7
- readonly WHITE_IPHONE: "white-iphone";
8
- };
9
- declare type DevicesType = typeof Devices[keyof typeof Devices];
10
- export interface IDeviceMaskProps {
11
- device: DevicesType;
12
- screenContent: React.ReactNode;
13
- }
14
- declare const DeviceMask: React.FC<IDeviceMaskProps>;
15
- export default DeviceMask;
@@ -1,25 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import React from 'react';
3
- import { cnCreate } from '@megafon/ui-helpers';
4
- import "./DeviceMask.css";
5
- export var Devices = {
6
- IPHONE: 'iphone',
7
- ANDROID: 'android',
8
- BLACK_IPHONE: 'black-iphone',
9
- WHITE_IPHONE: 'white-iphone'
10
- };
11
- var cn = cnCreate('mfui-device-mask');
12
-
13
- var DeviceMask = function DeviceMask(_ref) {
14
- var device = _ref.device,
15
- screenContent = _ref.screenContent;
16
- return /*#__PURE__*/React.createElement("div", {
17
- className: cn()
18
- }, /*#__PURE__*/React.createElement("div", {
19
- className: cn('screen-content', _defineProperty({}, device, true))
20
- }, screenContent), /*#__PURE__*/React.createElement("div", {
21
- className: cn('device', _defineProperty({}, device, true))
22
- }));
23
- };
24
-
25
- export default DeviceMask;
@@ -1,66 +0,0 @@
1
- h1,
2
- h2,
3
- h3,
4
- h4,
5
- h5 {
6
- margin: 0;
7
- }
8
- .mfui-device-mask {
9
- position: relative;
10
- width: 250px;
11
- height: 550px;
12
- overflow: hidden;
13
- background-repeat: no-repeat;
14
- background-size: cover;
15
- }
16
- .mfui-device-mask__screen-content {
17
- position: absolute;
18
- z-index: 0;
19
- width: 214px;
20
- height: 462px;
21
- overflow: hidden;
22
- }
23
- .mfui-device-mask__screen-content_android {
24
- top: 10px;
25
- left: 10px;
26
- width: 228px;
27
- height: 460px;
28
- }
29
- .mfui-device-mask__screen-content_iphone {
30
- top: 16px;
31
- left: 16px;
32
- width: 218px;
33
- height: 469px;
34
- }
35
- .mfui-device-mask__screen-content_black-iphone,
36
- .mfui-device-mask__screen-content_white-iphone {
37
- top: 60px;
38
- left: 17px;
39
- width: 216px;
40
- height: 381px;
41
- }
42
- .mfui-device-mask__screen-content > * {
43
- max-width: 100%;
44
- }
45
- .mfui-device-mask__device {
46
- position: absolute;
47
- top: 0;
48
- left: 0;
49
- z-index: 1;
50
- width: 100%;
51
- height: 100%;
52
- background-repeat: no-repeat;
53
- background-size: 100% auto;
54
- }
55
- .mfui-device-mask__device_android {
56
- background-image: url('./i/android.png');
57
- }
58
- .mfui-device-mask__device_iphone {
59
- background-image: url('./i/iphone.png');
60
- }
61
- .mfui-device-mask__device_black-iphone {
62
- background-image: url('./i/black-iphone.png');
63
- }
64
- .mfui-device-mask__device_white-iphone {
65
- background-image: url('./i/white-iphone.png');
66
- }
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './DeviceMask.less';
3
- export declare const Devices: {
4
- readonly IPHONE: "iphone";
5
- readonly ANDROID: "android";
6
- readonly BLACK_IPHONE: "black-iphone";
7
- readonly WHITE_IPHONE: "white-iphone";
8
- };
9
- declare type DevicesType = typeof Devices[keyof typeof Devices];
10
- export interface IDeviceMaskProps {
11
- device: DevicesType;
12
- screenContent: React.ReactNode;
13
- }
14
- declare const DeviceMask: React.FC<IDeviceMaskProps>;
15
- export default DeviceMask;
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.Devices = void 0;
7
-
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _uiHelpers = require("@megafon/ui-helpers");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- var Devices = {
17
- IPHONE: 'iphone',
18
- ANDROID: 'android',
19
- BLACK_IPHONE: 'black-iphone',
20
- WHITE_IPHONE: 'white-iphone'
21
- };
22
- exports.Devices = Devices;
23
- var cn = (0, _uiHelpers.cnCreate)('mfui-device-mask');
24
-
25
- var DeviceMask = function DeviceMask(_ref) {
26
- var device = _ref.device,
27
- screenContent = _ref.screenContent;
28
- return /*#__PURE__*/_react["default"].createElement("div", {
29
- className: cn()
30
- }, /*#__PURE__*/_react["default"].createElement("div", {
31
- className: cn('screen-content', (0, _defineProperty2["default"])({}, device, true))
32
- }, screenContent), /*#__PURE__*/_react["default"].createElement("div", {
33
- className: cn('device', (0, _defineProperty2["default"])({}, device, true))
34
- }));
35
- };
36
-
37
- var _default = DeviceMask;
38
- exports["default"] = _default;