ecomlab-components-next 0.1.244 → 0.1.246

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.
@@ -5,8 +5,8 @@
5
5
  padding: 96px 48px;
6
6
  background: #FFFFFF;
7
7
 
8
- * {
9
- font-family: 'Manrope', 'Golos Text', sans-serif;
8
+ * {
9
+ font-family: 'Manrope', 'Golos Text', sans-serif !important;
10
10
  }
11
11
 
12
12
  // Заголовок секции
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -17,7 +18,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
17
18
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
18
19
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19
20
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } // FormV2.jsx — альтернативная версия с кастомной кнопкой, если ButtonBasic не гибкий
21
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
22
  // DOTASK (токены без изменений)
22
23
  var token_DOTASK = 'gAAAAABopIEPlTICTdgD52GgH_GRFS30Tou2Ok2ICeC3ECQ8_aSQMMjTqU0HS7y9krbifcKbXroyR0iMmN6UXq1KL4xP0UtjYg==';
23
24
  var url_DOTASK = "https://apps0.ecomru.ru:4447/api/crm/deals/create?step_id=167&token=".concat(token_DOTASK, "&author=546&responsible=546");
@@ -124,13 +125,13 @@ var FormV2 = function FormV2(_ref) {
124
125
  setIsModal: setIsModal,
125
126
  formTitle: 'Желаемый способ связи'
126
127
  }, currentProps())), /*#__PURE__*/_react["default"].createElement("section", {
127
- className: "form-with-btn"
128
+ className: "form-with-btn2"
128
129
  }, /*#__PURE__*/_react["default"].createElement("h2", {
129
- className: "form-with-btn__title"
130
+ className: "form-with-btn2__title"
130
131
  }, title), /*#__PURE__*/_react["default"].createElement("p", {
131
- className: "form-with-btn__description"
132
+ className: "form-with-btn2__description"
132
133
  }, description), /*#__PURE__*/_react["default"].createElement("button", {
133
- className: "form-with-btn__button",
134
+ className: "form-with-btn2__button",
134
135
  onClick: function onClick() {
135
136
  return setIsModal(true);
136
137
  }
@@ -1,7 +1,7 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
2
2
  @import '../variables.scss';
3
3
 
4
- .form-with-btn {
4
+ .form-with-btn2 {
5
5
  background: linear-gradient(135deg, $green-forest 0%, $green-light 100%);
6
6
  padding: 48px 40px;
7
7
  text-align: center;
@@ -98,7 +98,7 @@
98
98
 
99
99
  // Мобильная адаптация
100
100
  @media (max-width: 768px) {
101
- .form-with-btn {
101
+ .form-with-btn2 {
102
102
  padding: 36px 24px;
103
103
  border-radius: 20px;
104
104
 
@@ -123,7 +123,7 @@
123
123
  }
124
124
 
125
125
  @media (max-width: 480px) {
126
- .form-with-btn {
126
+ .form-with-btn2 {
127
127
  padding: 28px 20px;
128
128
 
129
129
  &__title {
@@ -143,7 +143,7 @@
143
143
  }
144
144
 
145
145
  @media (min-width: 769px) and (max-width: 1024px) {
146
- .form-with-btn {
146
+ .form-with-btn2 {
147
147
  padding: 42px 32px;
148
148
 
149
149
  &__title {
@@ -23,6 +23,7 @@ var _ArticlesBlockV = _interopRequireDefault(require("../ArticlesBlockV2/Article
23
23
  var _MainContainer = _interopRequireDefault(require("./MainContainer"));
24
24
  var _CardsServicesV = _interopRequireDefault(require("../CardsServicesV2/CardsServicesV2"));
25
25
  var _PointsListV = _interopRequireDefault(require("../PointsListV2/PointsListV2"));
26
+ var _VideoBlockV = _interopRequireDefault(require("../VideoBlockV2/VideoBlockV2"));
26
27
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
28
  var cards_list = [{
28
29
  sum: 'Аналитика повышает продажи',
@@ -195,5 +196,7 @@ var MainContainerTest = exports.MainContainerTest = function MainContainerTest()
195
196
  list: point_list,
196
197
  title: 'Возможности нашего сервиса',
197
198
  className: 'max-items-3'
199
+ }), /*#__PURE__*/_react["default"].createElement(_VideoBlockV["default"], {
200
+ src: "https://dl.ecomru.ru:9001/redactor-videos/ecomru_1.mp4"
198
201
  }));
199
202
  };
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  @media (max-width: 1000px) {
37
- .section-marquee {
37
+ .section-marquee2 {
38
38
  gap: 24px;
39
39
 
40
40
  &__title {
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  @media (max-width: 430px) {
53
- .section-marquee {
53
+ .section-marquee2 {
54
54
  gap: 16px;
55
55
 
56
56
  &__title {
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
5
  Object.defineProperty(exports, "__esModule", {
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ require("./VideoBlockV2.scss");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ var VideoBlockV2 = function VideoBlockV2(_ref) {
12
+ var src = _ref.src,
13
+ hideTitle = _ref.hideTitle;
14
+ return /*#__PURE__*/_react["default"].createElement("section", {
15
+ className: "video-block-v2"
16
+ }, !hideTitle && /*#__PURE__*/_react["default"].createElement("h2", {
17
+ className: "video-block-v2__title"
18
+ }, "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0432\u0438\u0434\u0435\u043E \u043E \u043D\u0430\u0441"), /*#__PURE__*/_react["default"].createElement("div", {
19
+ className: "video-block-v2__video-box"
20
+ }, /*#__PURE__*/_react["default"].createElement("video", {
21
+ className: "video-block-v2__video",
22
+ src: src,
23
+ controls: true
24
+ }, /*#__PURE__*/_react["default"].createElement("source", {
25
+ src: src,
26
+ type: "video/mp4"
27
+ }))));
28
+ };
29
+ var _default = exports["default"] = VideoBlockV2;
@@ -0,0 +1,82 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
2
+ @import '../variables.scss';
3
+
4
+ $text: #1A1A2E;
5
+ $white: #FFFFFF;
6
+ $border: #E5E7EB;
7
+
8
+ .video-block-v2 {
9
+ font-family: 'Manrope', sans-serif;
10
+ background: $white;
11
+ width: 100%;
12
+ padding: 96px 48px;
13
+
14
+ * {
15
+ font-family: 'Manrope', 'Golos Text', sans-serif !important;
16
+ }
17
+
18
+ &__title {
19
+ text-align: center;
20
+ font-size: 30px;
21
+ font-weight: 800;
22
+ letter-spacing: -0.5px;
23
+ color: $text;
24
+ margin: 0 0 48px 0;
25
+ }
26
+
27
+ &__video-box {
28
+ width: 100%;
29
+ max-width: 1280px;
30
+ margin: 0 auto;
31
+ border-radius: 20px;
32
+ overflow: hidden;
33
+ box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
34
+ }
35
+
36
+ &__video {
37
+ width: 100%;
38
+ height: auto;
39
+ display: block;
40
+ border-radius: 20px;
41
+ }
42
+
43
+ // Адаптация как в референсе
44
+ @media (max-width: 1024px) {
45
+ padding: 72px 32px;
46
+ }
47
+
48
+ @media (max-width: 900px) {
49
+ padding: 60px 24px;
50
+
51
+ &__title {
52
+ font-size: 26px;
53
+ margin-bottom: 40px;
54
+ }
55
+ }
56
+
57
+ @media (max-width: 768px) {
58
+ padding: 48px 24px;
59
+
60
+ &__title {
61
+ font-size: 24px;
62
+ }
63
+ }
64
+
65
+ @media (max-width: 500px) {
66
+ padding: 40px 16px;
67
+
68
+ &__title {
69
+ font-size: 22px;
70
+ margin-bottom: 32px;
71
+ }
72
+ }
73
+
74
+ @media (max-width: 375px) {
75
+ padding: 32px 12px;
76
+
77
+ &__title {
78
+ font-size: 20px;
79
+ margin-bottom: 24px;
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = exports.VideoBlockV2Test = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _VideoBlockV = _interopRequireDefault(require("./VideoBlockV2"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ var _default = exports["default"] = {
11
+ title: 'VideoBlockV2',
12
+ component: _VideoBlockV["default"]
13
+ };
14
+ var VideoBlockV2Test = exports.VideoBlockV2Test = function VideoBlockV2Test() {
15
+ return /*#__PURE__*/_react["default"].createElement(_VideoBlockV["default"], {
16
+ src: "https://dl.ecomru.ru:9001/redactor-videos/ecomru_1.mp4"
17
+ });
18
+ };
package/dist/index.js CHANGED
@@ -363,6 +363,12 @@ Object.defineProperty(exports, "VideoBlock", {
363
363
  return _VideoBlock["default"];
364
364
  }
365
365
  });
366
+ Object.defineProperty(exports, "VideoBlockV2", {
367
+ enumerable: true,
368
+ get: function get() {
369
+ return _VideoBlockV["default"];
370
+ }
371
+ });
366
372
  Object.defineProperty(exports, "ViewSwitch", {
367
373
  enumerable: true,
368
374
  get: function get() {
@@ -389,6 +395,7 @@ var _Questions = _interopRequireDefault(require("./components/ConstructorCompone
389
395
  var _QuestionsV = _interopRequireDefault(require("./components/ConstructorComponents/QuestionsV2/QuestionsV2"));
390
396
  var _TariffPlan = _interopRequireDefault(require("./components/ConstructorComponents/Tariff/TariffPlan"));
391
397
  var _VideoBlock = _interopRequireDefault(require("./components/ConstructorComponents/VideoBlock/VideoBlock"));
398
+ var _VideoBlockV = _interopRequireDefault(require("./components/ConstructorComponents/VideoBlockV2/VideoBlockV2"));
392
399
  var _ArticlesBlock = _interopRequireDefault(require("./components/ConstructorComponents/ArticlesBlock/ArticlesBlock"));
393
400
  var _ArticlesBlock2 = _interopRequireDefault(require("./components/ConstructorComponents/ArticlesBlock2/ArticlesBlock2"));
394
401
  var _ArticlesBlockV = _interopRequireDefault(require("./components/ConstructorComponents/ArticlesBlockV2/ArticlesBlockV2"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.244",
3
+ "version": "0.1.246",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [