@ahmadmubarak98/namozaj 1.6.5 → 1.6.7

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/main.d.ts CHANGED
@@ -269,7 +269,7 @@ export declare type HelperTextConfig = {
269
269
  color?: BaseColors | string;
270
270
  };
271
271
 
272
- export declare type InputRestriction = "alpha" | "alphanumeric" | "numeric" | "alpha-with-spaces" | "alphanumeric-with-spaces" | "numeric-with-spaces" | RegExp;
272
+ export declare type InputRestriction = "alpha" | "alphanumeric" | "numeric" | "alpha-with-spaces" | "alphanumeric-with-spaces" | "numeric-with-spaces" | 'email' | RegExp;
273
273
 
274
274
  export declare type ModalSize = "small" | "medium" | "large" | "full";
275
275
 
package/dist/namozaj.js CHANGED
@@ -4582,6 +4582,8 @@ const getDefaultValue = (e) => {
4582
4582
  return /^[\p{L}\0-9\s]*$/u;
4583
4583
  case "numeric-with-spaces":
4584
4584
  return /^[0-9\s]*$/;
4585
+ case "email":
4586
+ return /^[a-zA-Z0-9._@-]*$/;
4585
4587
  default:
4586
4588
  return /.*/;
4587
4589
  }
@@ -80980,7 +80982,7 @@ const ConfirmationDialog = ({
80980
80982
  control: b,
80981
80983
  name: a,
80982
80984
  keyName: "_id"
80983
- }), [g, m] = useState(!1), [y, C] = useState(null), [v, w] = useState(!1), S = d.removeDialogTitle || `${t.meta.removeBtn || "Remove"} ${d.label}`, x = d.removeDialogDescription || `Are you sure you want to remove this ${d.label}?`, L = t.meta.addBtn || `Add ${d.label}`, D = t.meta.removeBtn || "Remove", N = t.meta.cancelBtn || "Cancel", I = d.minEntries ?? void 0, k = d.maxEntries ?? void 0, H = k ? h.fields.length < k : d.canAdd ?? !0, G = I ? h.fields.length > I : d.canRemove ?? !0, Y = (be) => {
80985
+ }), [g, m] = useState(!1), [y, C] = useState(null), [v, w] = useState(!1), S = d.removeDialogTitle || `${t.meta.removeBtn || "Remove"} ${d.label}`, x = d.removeDialogDescription || `Are you sure you want to remove this ${d.label}?`, L = t.meta.addBtn || `Add ${d.label}`, D = t.meta.removeBtn || "Remove", N = t.meta.cancelBtn || "Cancel", I = d.minEntries ?? void 0, k = d.maxEntries ?? void 0, H = k ? h.fields.length < k : d.canAdd ? d.canAdd : !0, G = I ? h.fields.length > I : d.canRemove ? d.canRemove : !0, Y = (be) => {
80984
80986
  be.preventDefault(), be.stopPropagation(), h.append({
80985
80987
  ...d.fields.reduce((ve, Re) => (ve[Re.name] = getDefaultValue(Re), ve), {})
80986
80988
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.6.5",
4
+ "version": "1.6.7",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",