@verifiedinc-public/shared-ui-elements 3.4.1 → 3.4.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.
- package/dist/components/animation/index.mjs +1 -1
- package/dist/components/chart/index.mjs +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/date-Cq0LS2Mr.mjs +1 -0
- package/dist/shared/{index-CmfEgJAn.mjs → index-D9z1h2Xm.mjs} +16 -16
- package/dist/shared/index-DXnwpTEF.mjs +1 -0
- package/dist/shared/motions-CpxgbzKX.mjs +1 -0
- package/dist/shared/useCopyToClipboard-BALOSYVW.mjs +1 -0
- package/dist/shared/useIntersectionObserver-CbpWuEs0.mjs +1 -0
- package/dist/shared/useOnClickOutside-P5GTcgh8.mjs +1 -0
- package/dist/shared/usePrevious-A8he0cAZ.mjs +1 -0
- package/package.json +1 -1
- package/dist/shared/useIntersectionObserver-BX_TdOtC.mjs +0 -1
- package/dist/shared/useOnClickOutside-1j2klMbE.mjs +0 -1
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{
|
1
|
+
"use strict";import{C as o,M as a,f as s,a as t,d as n,c as i,b as M,e}from"../../shared/motions-CpxgbzKX.mjs";export{o as Counter,a as MotionBox,s as MotionButton,t as MotionStack,n as MotionTableCell,i as MotionTableRow,M as MotionTbody,e as MotionTypography};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";import{j as e}from"../../shared/jsx-runtime-jmtevAuS.mjs";import{useCallback as m,useMemo as j,createElement as S}from"react";import{Stack as c,Box as g,Typography as u,useTheme as M}from"@mui/material";import{ResponsiveContainer as A,LineChart as F,CartesianGrid as R,XAxis as z,YAxis as K,Label as T,Tooltip as U,Legend as W,Line as I}from"recharts";import{b as O,c as Z}from"../../shared/date-Cq0LS2Mr.mjs";import{Decimal as p}from"decimal.js";import{AnimatePresence as q}from"framer-motion";import{u as B}from"../../shared/useCopyToClipboard-BALOSYVW.mjs";import"qrcode";import{u as v}from"../../shared/usePrevious-A8he0cAZ.mjs";import{a as E,C as b}from"../../shared/motions-CpxgbzKX.mjs";import{u as P}from"../../shared/index-DXnwpTEF.mjs";function Y({entry:a,payload:i}){const t=m(r=>{var s,o,l;return console.log(r),(l=(o=(s=r.payload)==null?void 0:s.data)==null?void 0:o.reduce)==null?void 0:l.call(o,(n,d)=>n+d.value,0)},[]),x=m(r=>{const s=new p(t(r)||0),o=i?.reduce((d,N)=>d+t(N),0)||0,l=new p(o),n=Number(s.div(l).times(100).toFixed(2,p.ROUND_DOWN));return isNaN(n)||!isFinite(n)?0:n},[t,i]),h=j(()=>t(a),[a,t]),C=v(h),y=j(()=>Number(x(a)),[a,x]),w=v(y),f=m(r=>Math.floor(r).toLocaleString(),[]),L=B({type:"text/plain"}),D=P();return e.jsxs(E,{component:"li",direction:"row",spacing:1,sx:{marginRight:"10px",color:a.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[e.jsx(g,{sx:{width:"3px",height:"100%",backgroundColor:a.color,borderRadius:3}}),e.jsxs(c,{children:[e.jsxs(u,{component:"p",variant:"caption",children:[e.jsx(c,{component:"span",display:"inline-flex",mr:.5,children:e.jsx(b,{from:C??0,to:h,map:f,children:"0"})}),e.jsxs(c,{component:"span",direction:"row",display:"inline-flex",children:["(",e.jsx(b,{from:w??0,to:y,map:f,children:"0"}),"%)"]})]}),e.jsx(u,{variant:"body1",children:a.value}),a.payload.uuid&&e.jsxs(u,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{L.copy(a.payload.uuid).catch(()=>{}),D.enqueueSnackbar("UUID copied to clipboard","success")},children:[a.payload.uuid.slice(0,5),"..."]})]})]})}function k(a){const{payload:i}=a;return e.jsx(c,{direction:"row",component:"ul",spacing:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center"},children:e.jsx(q,{children:i?.map(t=>e.jsx(Y,{entry:t,payload:i},`item-${t.value}`))})})}function G(a){const i=M();return e.jsx(g,{sx:{width:"100%",height:"100%",...a.sx},children:e.jsx(A,{children:e.jsxs(F,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[e.jsx(R,{vertical:!1}),e.jsx(z,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:t=>O(t,{timeZone:a.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),e.jsx(K,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:t=>Number(t).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:a.label&&e.jsx(T,{value:a.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),e.jsx(U,{cursor:{stroke:i.palette.neutral.main,strokeWidth:1},formatter:t=>Number(t).toLocaleString(),labelFormatter:t=>Z(t,{timeZone:a.filter.timezone,hour12:!1})}),e.jsx(W,{content:e.jsx(k,{})}),a.data.map(t=>S(I,{uuid:t.uuid,key:t.uuid,name:t.name,dataKey:"value",data:t.chartData,type:"monotone",stroke:t.color,strokeWidth:2}))]})})})}export{G as SeriesChart,k as SeriesChartLegend};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,f as s,
|
1
|
+
"use strict";import{A as a,f as s,o as e,B as t,p as n,C as r,D as o,j as i,E as p,m as u,F as c,I as d,e as m,L as l,O as I,a as P,b as g,P as B,i as h,d as S,Q as k,R as T,g as f,S as y,h as C,n as b,T as A,k as L,c as R,V as D,l as E}from"../shared/index-D9z1h2Xm.mjs";import{C as N,W as v,u as x}from"../shared/index-DXnwpTEF.mjs";import{SnackbarProvider as V}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,t as Banner,n as Button,r as CredentialRequestsEditor,N as CustomAlertComponent,o as DateInput,i as DateRangeInput,p as EmailInput,u as ExactBirthdayBanner,c as FullWidthAlert,d as Image,m as LegalLink,l as LinkButton,I as OTPInput,P as PageHeader,g as PageSectionHeader,B as Paragraph,h as PhoneInput,S as PrivacyPolicyNotice,k as QRCodeDisplay,T as ResendPhoneBanner,f as SSNInput,y as SectionHeader,C as SelectInput,V as SnackbarProvider,b as TestPhoneNumbersBanner,A as TextButton,L as TimezoneInput,R as Typography,D as VerifiedImage,E as VerifiedIncLogo,v as When,x as useSnackbar};
|
package/dist/hooks/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{
|
1
|
+
"use strict";import{b as s,d as a,a as e,j as o,u,e as r,c as i,f as t,g as l,h as m,i as c}from"../shared/useIntersectionObserver-CbpWuEs0.mjs";import{u as p}from"../shared/useCopyToClipboard-BALOSYVW.mjs";import{a as f,u as n}from"../shared/useOnClickOutside-P5GTcgh8.mjs";import{u as b}from"../shared/useCounter-BV32zXDQ.mjs";import{u as d}from"../shared/usePrevious-A8he0cAZ.mjs";export{s as useCallbackRef,p as useCopyToClipboard,b as useCounter,a as useDebounceValue,e as useDisclosure,o as useIntersectionObserver,u as useLocalStorage,f as useOnClickOutside,d as usePrevious,n as useQRCode,r as useScript,i as useSearchParams,t as useThrottle,l as useToggle,m as useWindowScroll,c as useWindowSize};
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as
|
1
|
+
"use strict";import{A as e,f as t,o as r,B as o,p as n,C as i,D as m,j as u,E as l,m as c,F as d,I as p,e as h,L as S,O as g,a as f,b as k,P,i as y,d as C,Q as D,R as b,g as B,S as I,h as T,n as w,T as N,k as R,c as v,V as Y,l as x,q as A,s as G,t as L,w as M,r as W,u as E,v as O}from"./shared/index-D9z1h2Xm.mjs";import{C as V,W as F,u as j}from"./shared/index-DXnwpTEF.mjs";import{b as z,d as H,a as U,j as q,u as Q,e as K,c as X,f as Z,g as _,h as $,i as J}from"./shared/useIntersectionObserver-CbpWuEs0.mjs";import{u as aa}from"./shared/useCopyToClipboard-BALOSYVW.mjs";import{a as sa,u as ea}from"./shared/useOnClickOutside-P5GTcgh8.mjs";import{u as ta}from"./shared/useCounter-BV32zXDQ.mjs";import{u as ra}from"./shared/usePrevious-A8he0cAZ.mjs";import{b as oa,a as na,v as ia,e as ma,d as ua,p as la,u as ca,h as da,j as pa,g as ha,o as Sa,s as ga,m as fa,c as ka,l as Pa,n as ya,q as Ca,f as Da,i as ba,r as Ba,z as Ia,t as Ta,x as wa,k as Na,w as Ra,y as va}from"./shared/shadows-Dhd7FrwF.mjs";import{f as Ya,b as xa,a as Aa,c as Ga}from"./shared/date-Cq0LS2Mr.mjs";import{masks as La}from"./utils/masks/index.mjs";import{M as Ma,S as Wa,U as Ea,d as Oa,e as Va,f as Fa,g as ja,a as za,s as Ha}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Ua}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as qa}from"notistack";async function Qa(a){try{return[await a,null]}catch(s){return[null,s]}}const Ka=a=>a.replace(/(\d{3})-?(\d{2})-?(\d{4})/,"\u2022\u2022\u2022-\u2022\u2022-$3");export{e as AcceptTermsNotice,t as Alert,r as Backdrop,o as Banner,n as Button,i as CredentialRequestsEditor,V as CustomAlertComponent,m as DateInput,u as DateRangeInput,l as EmailInput,c as ExactBirthdayBanner,d as FullWidthAlert,p as Image,h as LegalLink,S as LinkButton,Ma as MaskedAndUnmaskedSSNSchema,g as OTPInput,f as PageHeader,k as PageSectionHeader,P as Paragraph,y as PhoneInput,C as PrivacyPolicyNotice,D as QRCodeDisplay,b as ResendPhoneBanner,B as SSNInput,Wa as SSNSchema,I as SectionHeader,T as SelectInput,qa as SnackbarProvider,w as TestPhoneNumbersBanner,N as TextButton,R as TimezoneInput,v as Typography,Ea as USDateSchema,Y as VerifiedImage,x as VerifiedIncLogo,F as When,oa as black,na as blue,ia as colors,A as countries,ma as darkBlue,ua as darkGreen,la as darkGrey,ca as darkGreyContrast,da as darkRed,pa as darkYellow,Oa as descriptionSchema,Va as emailSchema,Fa as fieldSchema,Ya as formatDateMMDDYYYY,xa as formatDateMMYY,Aa as formatDateToTimestamp,Ga as formatExtendedDate,ja as getDateSchemaWithPastValidation,G as getPhoneData,L as getPhoneDataByFieldName,za as getUnixSchema,ha as green,Sa as grey,ga as greyContrast,fa as infoContrast,ka as lightBlue,Pa as lightGreen,ya as lightGrey,Ca as lightGreyContrast,Da as lightRed,ba as lightYellow,La as masks,M as omitProperties,W as parseToPhoneNational,Ua as phoneSchema,Ba as red,Ia as shadows,E as sortByCountryName,Ka as ssnFormatter,Ha as stateSchema,Ta as textDisabled,wa as theme,z as useCallbackRef,aa as useCopyToClipboard,ta as useCounter,H as useDebounceValue,U as useDisclosure,q as useIntersectionObserver,Q as useLocalStorage,sa as useOnClickOutside,ra as usePrevious,ea as useQRCode,K as useScript,X as useSearchParams,j as useSnackbar,Z as useThrottle,_ as useToggle,$ as useWindowScroll,J as useWindowSize,O as validatePhone,Na as warningContrast,Ra as white,Qa as wrapPromise,va as yellow};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const u=t=>{let e=new Date(Number(t));if(!t){const n=new Date;e=new Date(n.getFullYear(),n.getMonth(),n.getDate())}const a=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear();return[r,a,o].join("/")},c=t=>{const e=new Date(t);return e.setUTCHours(12),String(+e)},g=(t,e)=>new Date(Number(t)).toLocaleDateString("en-US",{month:"short",day:"numeric",hour12:!1,...e}),i=(t,e)=>new Date(Number(t)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...e});export{c as a,g as b,i as c,u as f};
|