@verifiedinc-public/shared-ui-elements 5.20.0 → 5.20.2

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.
@@ -0,0 +1 @@
1
+ "use strict";import*as i from"zod";import{z as t}from"zod";const r=i.string().refine(s=>/\+1\d{3}\d{3}\d{4}/.test(s),"Phone is invalid"),e=/^(?!666|9\d{2})\d{3}(?!00)\d{2}(?!0{4})\d{4}$/,d=t.string().regex(e),n=t.string().refine(s=>/^•••-••-(\d{4})$/.test(s)||e.test(s),{message:"Invalid SSN"});export{n as M,d as S,r as p};
@@ -0,0 +1 @@
1
+ "use strict";import*as e from"zod";import{z as t}from"zod";const n=e.string().refine(s=>{if(/^\d{2}\/\d{2}\/\d{4}$/.test(s)){const i=Date.parse(String(new Date(s)));return!isNaN(i)}return!1},"Date is invalid"),a=s=>e.date().refine(i=>i.getTime()<Date.now(),{message:s}),r=e.string().min(3,"Must have enough description"),m=t.string().email(),g=t.string().min(1),o=t.string().min(2).max(2),d=(s="Invalid Unix string timestamp")=>t.string().refine(i=>/^\d+$/.test(i)&&!isNaN(Number(i))&&i.length>=10&&i.length<=13,s);export{n as U,d as a,r as d,m as e,g as f,a as g,o as s};
@@ -1 +1 @@
1
- "use strict";import{M as a,S as s,U as e,d as m,e as S,f as t,g as h,a as c,s as i}from"../shared/unix.schema-CMYTtXco.mjs";import{p as o}from"../shared/phone.schema-XBbyizhq.mjs";export{a as MaskedAndUnmaskedSSNSchema,s as SSNSchema,e as USDateSchema,m as descriptionSchema,S as emailSchema,t as fieldSchema,h as getDateSchemaWithPastValidation,c as getUnixSchema,o as phoneSchema,i as stateSchema};
1
+ "use strict";import{U as a,d as s,e,f as m,g as S,a as t,s as h}from"../shared/unix.schema-CM7mF14M.mjs";import{M as c,S as i,p as o}from"../shared/ssn.schema-CX80CpX4.mjs";export{c as MaskedAndUnmaskedSSNSchema,i as SSNSchema,a as USDateSchema,s as descriptionSchema,e as emailSchema,m as fieldSchema,S as getDateSchemaWithPastValidation,t as getUnixSchema,o as phoneSchema,h as stateSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "5.20.0",
3
+ "version": "5.20.2",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -1 +0,0 @@
1
- "use strict";import*as o from"zod";const r=o.string().refine(i=>/\+1\d{3}\d{3}\d{4}/.test(i),"Phone is invalid");export{r as p};
@@ -1 +0,0 @@
1
- "use strict";import*as n from"zod";import{z as t}from"zod";const r=n.string().refine(s=>{if(/^\d{2}\/\d{2}\/\d{4}$/.test(s)){const e=Date.parse(String(new Date(s)));return!isNaN(e)}return!1},"Date is invalid"),a=s=>n.date().refine(e=>e.getTime()<Date.now(),{message:s}),d=n.string().min(3,"Must have enough description"),g=t.string().email(),m=t.string().min(1),o=t.string().regex(/^(?!666|000|9\d{2})\d{3}(?!00)\d{2}(?!0{4})\d{4}$/),f=t.string().refine(s=>{const e=/^•••-••-(\d{4})$/,i=/^(?!666|000|9\d{2})\d{3}(?!00)\d{2}(?!0{4})\d{4}$/;return e.test(s)||i.test(s)},{message:"Invalid SSN"}),l=t.string().min(2).max(2),p=(s="Invalid Unix string timestamp")=>t.string().refine(e=>/^\d+$/.test(e)&&!isNaN(Number(e))&&e.length>=10&&e.length<=13,s);export{f as M,o as S,r as U,p as a,d,g as e,m as f,a as g,l as s};