x-ui-design 0.5.13 → 0.5.14

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/dist/index.esm.js CHANGED
@@ -741,6 +741,7 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
741
741
  if ((typeof value === 'string' || typeof value === 'number' || Array.isArray(value)) && rule.max !== undefined && String(value).length > rule.max) {
742
742
  fieldErrors.push(rule.message || `Must be at most ${rule.max} characters`);
743
743
  }
744
+ debugger;
744
745
  if (value !== undefined && rule.pattern && !rule.pattern.test(String(value))) {
745
746
  fieldErrors.push(rule.message || 'Invalid format');
746
747
  }
@@ -755,7 +756,6 @@ const useForm = (initialValues = {}, onFieldsChange, onValuesChange, scrollToFir
755
756
  }
756
757
  }
757
758
  }));
758
- console.log(fieldErrors);
759
759
  setErrors(prev => ({
760
760
  ...prev,
761
761
  [name]: fieldErrors