@maropost-ui/liquidsky-ui 0.1.3 → 0.1.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useValidation.d.ts","sourceRoot":"","sources":["../../src/composables/useValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,KAAK,kBAAkB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,MAAM,CAAA;AAE3D;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;2BAQrB,MAAM,iBACJ,MAAM,GAAG,IAAI,KAC1B,kBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC;iBAcpB,kBAAkB,CAAC,MAAM,CAAC;wBA0BjB,MAAM,KAAG,OAAO,GAAG,MAAM;kCAUf,MAAM,KAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC;wBAmC5C,MAAM,aAAa,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;wBAvBvE,MAAM,aACH,MAAM,eACL,OAAO,KAClB,kBAAkB,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;0BA+BpB,MAAM,KAAkB,kBAAkB,CAAC,MAAM,CAAC;2BAiBvE,MAAM,cACA,MAAM,KAChB,kBAAkB,CAAC,MAAM,CAAC;2BAiBtB,MAAM,cACA,MAAM,KAChB,kBAAkB,CAAC,MAAM,CAAC;8BAUI,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;4BA+B1D,KAAK,MAAM,KAAG,OAAO,GAAG,MAAM;+BARN,MAAM,KAAG,OAAO;gDAZC,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;qBA4B9D,MAAM,MACpB,KAAK,MAAM;kBA6BX,KAAK,MAAM;wBAnBM,MAAM,MACvB,KAAK,MAAM;yBA8BO,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;EA0BhE"}
1
+ {"version":3,"file":"useValidation.d.ts","sourceRoot":"","sources":["../../src/composables/useValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,KAAK,kBAAkB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,MAAM,CAAA;AAE3D;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;2BAQtB,MAAM,iBACH,MAAM,GAAG,IAAI,KAC1B,kBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC;iBAcpB,kBAAkB,CAAC,MAAM,CAAC;wBA0BjB,MAAM,KAAG,OAAO,GAAG,MAAM;kCAUf,MAAM,KAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC;wBAmC5C,MAAM,aAAa,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;wBAvBvE,MAAM,aACH,MAAM,eACL,OAAO,KAClB,kBAAkB,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;0BA+BpB,MAAM,KAAkB,kBAAkB,CAAC,MAAM,CAAC;2BAiBvE,MAAM,cACA,MAAM,KAChB,kBAAkB,CAAC,MAAM,CAAC;2BAiBtB,MAAM,cACA,MAAM,KAChB,kBAAkB,CAAC,MAAM,CAAC;8BAUI,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;4BA+B1D,KAAK,MAAM,KAAG,OAAO,GAAG,MAAM;+BARN,MAAM,KAAG,OAAO;gDAZC,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;qBA4B9D,MAAM,MACpB,KAAK,MAAM;kBA6BX,KAAK,MAAM;wBAnBM,MAAM,MACvB,KAAK,MAAM;yBA8BO,MAAM,KAAG,kBAAkB,CAAC,MAAM,CAAC;EA0BhE"}
package/dist/index.js CHANGED
@@ -26771,7 +26771,7 @@ function dm() {
26771
26771
  };
26772
26772
  }
26773
26773
  function O4() {
26774
- const e = (C, _ = null) => (V) => V === null || typeof V == "string" && !V.trim() ? _ || `${C} is required.` : !0, t = () => (C) => !C || !C.length ? !0 : C.length > 255 ? "Email address should be less than 255 characters." : /^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*\.[a-zA-Z]{2,}$/.test(C) || "Please enter a valid email address.", n = (C) => /^[A-Za-z ]+$/.test(C) || "Special characters and numbers are not allowed.", a = (C) => (_) => _.length > 0 || `${C} is required.`, l = (C, _, V = !0) => (x) => !V && (x == null || x.toString().trim() === "") ? !0 : x == null ? `${_} is required.` : x.length <= C || `${_} must be less than ${C} characters.`, i = (C, _) => (V) => V.length >= C || `${_} must be at least ${C} characters.`, o = (C = "This field") => {
26774
+ const e = (C = "This field", _ = null) => (V) => V === null || typeof V == "string" && !V.trim() ? _ || `${C} is required.` : !0, t = () => (C) => !C || !C.length ? !0 : C.length > 255 ? "Email address should be less than 255 characters." : /^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*\.[a-zA-Z]{2,}$/.test(C) || "Please enter a valid email address.", n = (C) => /^[A-Za-z ]+$/.test(C) || "Special characters and numbers are not allowed.", a = (C) => (_) => _.length > 0 || `${C} is required.`, l = (C, _, V = !0) => (x) => !V && (x == null || x.toString().trim() === "") ? !0 : x == null ? `${_} is required.` : x.length <= C || `${_} must be less than ${C} characters.`, i = (C, _) => (V) => V.length >= C || `${_} must be at least ${C} characters.`, o = (C = "This field") => {
26775
26775
  const _ = /^\d+$/;
26776
26776
  return (V) => V == null || V === "" ? !0 : _.test(V) || `${C} should be a number.`;
26777
26777
  }, r = (C, _ = "Value") => (V) => (typeof V == "string" && (V = Number(V)), Number.isFinite(V) && V >= C || `${_} must be greater than or equal to ${C}.`), s = (C, _ = "Value") => (V) => Number.isFinite(V) && V <= C || `${_} must be less than or equal to ${C}.`, u = (C) => {
@@ -26878,7 +26878,7 @@ function U4() {
26878
26878
  }, stripEmojis: (a) => {
26879
26879
  if (!a || typeof a != "string") return a;
26880
26880
  try {
26881
- return a.replace(e, "");
26881
+ return a.replace(new RegExp("\\p{Extended_Pictographic}", "gu"), "");
26882
26882
  } catch {
26883
26883
  return a;
26884
26884
  }