ecomlab-components-next 0.1.196 → 0.1.199

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') {
@@ -239,7 +239,7 @@ var ModalBitrixFormV2 = function ModalBitrixFormV2(_ref) {
239
239
  isValid = false;
240
240
  }
241
241
  } else if (inputType === 'text') {
242
- if ((value === null || value === void 0 ? void 0 : value.length) < 1) {
242
+ if (!(value !== null && value !== void 0 && value.length) < 1) {
243
243
  isValid = false;
244
244
  }
245
245
  } else if (inputType === 'name') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.196",
3
+ "version": "0.1.199",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [