@verifiedinc-public/shared-ui-elements 3.3.1 → 3.4.1
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,22 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
import { SxProps } from '@mui/material';
|
3
|
+
interface ChartDataPoint {
|
4
|
+
date: number;
|
5
|
+
value: number;
|
6
|
+
}
|
7
|
+
interface SeriesChartData {
|
8
|
+
uuid: string;
|
9
|
+
name: string;
|
10
|
+
color: string;
|
11
|
+
chartData: ChartDataPoint[];
|
12
|
+
}
|
13
|
+
interface SeriesChartProps {
|
14
|
+
label: string;
|
15
|
+
data: SeriesChartData[];
|
16
|
+
filter: {
|
17
|
+
timezone: string;
|
18
|
+
};
|
19
|
+
sx?: SxProps;
|
20
|
+
}
|
21
|
+
export declare function SeriesChart(props: SeriesChartProps): ReactElement;
|
22
|
+
export {};
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as n,f as i,p as u,B as
|
1
|
+
"use strict";import{A as n,f as i,p as u,B as m,q as l,C as c,m as d,D as h,j as g,E as p,n as S,F as D,I as f,e as y,L as k,O as P,a as w,b,P as C,i as B,d as T,Q as I,R as N,g as Y,S as R,h as v,o as x,T as L,k as M,c as U,V as A,l as F,W as G,r as W,t as E,v as O,y as V,s as j,w as H,u as q,x as z}from"./shared/index-CmfEgJAn.mjs";import{c as Q,a as $,e as K,b as X,k as Z,u as _,f as J,d as aa,g as sa,h as ea,i as ta,j as ra}from"./shared/useIntersectionObserver-BX_TdOtC.mjs";import{a as oa,b as na,u as ia}from"./shared/useOnClickOutside-1j2klMbE.mjs";import{u as ua}from"./shared/useCounter-BV32zXDQ.mjs";import{b as ma,a as la,v as ca,e as da,d as ha,p as ga,u as pa,h as Sa,j as Da,g as fa,o as ya,s as ka,m as Pa,c as wa,l as ba,n as Ca,q as Ba,f as Ta,i as Ia,r as Na,z as Ya,t as Ra,x as va,k as xa,w as La,y as Ma}from"./shared/shadows-Dhd7FrwF.mjs";import{masks as Ua}from"./utils/masks/index.mjs";import{M as Aa,S as Fa,U as Ga,d as Wa,e as Ea,f as Oa,g as Va,a as ja,s as Ha}from"./shared/unix.schema-CMYTtXco.mjs";import{p as qa}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as za}from"notistack";async function Qa(s){try{return[await s,null]}catch(a){return[null,a]}}const $a=s=>{let a=new Date(Number(s));if(!s){const e=new Date;a=new Date(e.getFullYear(),e.getMonth(),e.getDate())}const t=String(a.getDate()).padStart(2,"0"),r=String(a.getMonth()+1).padStart(2,"0"),o=a.getFullYear();return[r,t,o].join("/")},Ka=s=>{const a=new Date(s);return a.setUTCHours(12),String(+a)},Xa=(s,a)=>new Date(Number(s)).toLocaleDateString("en-US",{month:"short",day:"numeric",hour12:!1,...a}),Za=(s,a)=>new Date(Number(s)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...a}),_a=s=>s.replace(/(\d{3})-?(\d{2})-?(\d{4})/,"\u2022\u2022\u2022-\u2022\u2022-$3");export{n as AcceptTermsNotice,i as Alert,u as Backdrop,m as Banner,l as Button,c as CredentialRequestsEditor,d as CustomAlertComponent,h as DateInput,g as DateRangeInput,p as EmailInput,S as ExactBirthdayBanner,D as FullWidthAlert,f as Image,y as LegalLink,k as LinkButton,Aa as MaskedAndUnmaskedSSNSchema,P as OTPInput,w as PageHeader,b as PageSectionHeader,C as Paragraph,B as PhoneInput,T as PrivacyPolicyNotice,I as QRCodeDisplay,N as ResendPhoneBanner,Y as SSNInput,Fa as SSNSchema,R as SectionHeader,v as SelectInput,za as SnackbarProvider,x as TestPhoneNumbersBanner,L as TextButton,M as TimezoneInput,U as Typography,Ga as USDateSchema,A as VerifiedImage,F as VerifiedIncLogo,G as When,ma as black,la as blue,ca as colors,W as countries,da as darkBlue,ha as darkGreen,ga as darkGrey,pa as darkGreyContrast,Sa as darkRed,Da as darkYellow,Wa as descriptionSchema,Ea as emailSchema,Oa as fieldSchema,$a as formatDateMMDDYYYY,Xa as formatDateMMYY,Ka as formatDateToTimestamp,Za as formatExtendedDate,Va as getDateSchemaWithPastValidation,E as getPhoneData,O as getPhoneDataByFieldName,ja as getUnixSchema,fa as green,ya as grey,ka as greyContrast,Pa as infoContrast,wa as lightBlue,ba as lightGreen,Ca as lightGrey,Ba as lightGreyContrast,Ta as lightRed,Ia as lightYellow,Ua as masks,V as omitProperties,j as parseToPhoneNational,qa as phoneSchema,Na as red,Ya as shadows,H as sortByCountryName,_a as ssnFormatter,Ha as stateSchema,Ra as textDisabled,va as theme,Q as useCallbackRef,$ as useCopyToClipboard,ua as useCounter,K as useDebounceValue,X as useDisclosure,Z as useIntersectionObserver,_ as useLocalStorage,oa as useOnClickOutside,na as usePrevious,ia as useQRCode,J as useScript,aa as useSearchParams,q as useSnackbar,sa as useThrottle,ea as useToggle,ta as useWindowScroll,ra as useWindowSize,z as validatePhone,xa as warningContrast,La as white,Qa as wrapPromise,Ma as yellow};
|
package/dist/utils/date.d.ts
CHANGED
@@ -5,3 +5,17 @@
|
|
5
5
|
*/
|
6
6
|
export declare const formatDateMMDDYYYY: (timestamp?: string) => string;
|
7
7
|
export declare const formatDateToTimestamp: (dateValue: number | string | Date) => string;
|
8
|
+
/**
|
9
|
+
* Formats a timestamp into a pretty format of MM/YY.
|
10
|
+
* @param date - date to format
|
11
|
+
* @param options - Intl.DateTimeFormatOptions
|
12
|
+
* @returns formatted date
|
13
|
+
*/
|
14
|
+
export declare const formatDateMMYY: (date: number | string, options?: Intl.DateTimeFormatOptions) => string;
|
15
|
+
/**
|
16
|
+
* Formats a date into an extended format including weekday, year, month, day, hour, and minute.
|
17
|
+
* @param date - date to format
|
18
|
+
* @param options - Intl.DateTimeFormatOptions
|
19
|
+
* @returns formatted date in extended format
|
20
|
+
*/
|
21
|
+
export declare const formatExtendedDate: (date: number | string, options?: Intl.DateTimeFormatOptions) => string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@verifiedinc-public/shared-ui-elements",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.4.1",
|
4
4
|
"description": "A set of UI components, utilities that is shareable with the core apps.",
|
5
5
|
"private": false,
|
6
6
|
"keywords": [],
|
@@ -115,6 +115,7 @@
|
|
115
115
|
"@mona-health/react-input-mask": "^3.0.3",
|
116
116
|
"@mui/icons-material": "^5 || ^6",
|
117
117
|
"@mui/material": "^5 || ^6",
|
118
|
+
"decimal.js": ">=10.4.3",
|
118
119
|
"framer-motion": ">=11.15.0",
|
119
120
|
"libphonenumber-js": "^1.11.11",
|
120
121
|
"notistack": "^3.0.1",
|
@@ -125,6 +126,7 @@
|
|
125
126
|
"react-dom": "^18",
|
126
127
|
"react-hook-form": "^7.52.1",
|
127
128
|
"react-imask": "^7.6.1",
|
129
|
+
"recharts": ">=2.15.0",
|
128
130
|
"zod": "^3.23.8"
|
129
131
|
}
|
130
132
|
}
|