ecomlab-components-next 0.1.195 → 0.1.196

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 (value.length < 1) {
148
+ if ('tel') {
149
149
  error[id] = 'Неверный телефон';
150
150
  isValid = false;
151
151
  }
@@ -229,8 +229,9 @@ var ModalBitrixFormV2 = function ModalBitrixFormV2(_ref) {
229
229
  isValid = false;
230
230
  }
231
231
  } else if (inputType === 'tel') {
232
- var regex = /^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;
233
- if (!regex.test(value)) {
232
+ // const regex = /^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;
233
+ // if (!regex.test(value)) {
234
+ if (value !== null && value !== void 0 && value.length) {
234
235
  isValid = false;
235
236
  }
236
237
  } else if (inputType === 'dropdown') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecomlab-components-next",
3
- "version": "0.1.195",
3
+ "version": "0.1.196",
4
4
  "description": "A set of common and reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "files": [