ecomlab-components-next 0.1.197 → 0.1.200

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.
@@ -145,7 +145,7 @@ var ModalBitrixFormV2 = function ModalBitrixFormV2(_ref) {
145
145
  } else if (inputType === 'tel') {
146
146
  // const regex = /^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;
147
147
  // if (!regex.test(value)) {
148
- if ('tel') {
148
+ if (value.length < 1) {
149
149
  error[id] = 'Неверный телефон';
150
150
  isValid = false;
151
151
  }
@@ -231,7 +231,7 @@ var ModalBitrixFormV2 = function ModalBitrixFormV2(_ref) {
231
231
  } else if (inputType === 'tel') {
232
232
  // const regex = /^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;
233
233
  // if (!regex.test(value)) {
234
- if (value !== null && value !== void 0 && value.length) {
234
+ if (!(value !== null && value !== void 0 && value.length)) {
235
235
  isValid = false;
236
236
  }
237
237
  } else if (inputType === 'dropdown') {
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.LogoBox = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _link = _interopRequireDefault(require("next/link"));
10
+ require("./Logo.scss");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ var LogoBox = exports.LogoBox = function LogoBox() {
13
+ return /*#__PURE__*/_react["default"].createElement("div", {
14
+ className: "logo",
15
+ onClick: function onClick(e) {
16
+ window.scrollTo(0, 0);
17
+ }
18
+ }, /*#__PURE__*/_react["default"].createElement(_link["default"], {
19
+ className: "logo__link",
20
+ href: "/"
21
+ }, "DOTASK.RU"));
22
+ };
@@ -0,0 +1,15 @@
1
+ .logo {
2
+ display: flex;
3
+ gap: 10px;
4
+ align-items: center;
5
+
6
+ &__link {
7
+ color: #333;
8
+ text-align: center;
9
+ font-family: "Golos Text";
10
+ font-size: 24px;
11
+ font-style: normal;
12
+ font-weight: 500;
13
+ line-height: 32px;
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Default = void 0;
7
+ var _Logo = _interopRequireDefault(require("./Logo"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ var Default = exports.Default = {
10
+ render: function render(args) {
11
+ return /*#__PURE__*/React.createElement(_Logo["default"], null);
12
+ }
13
+ };