@verifiedinc-public/shared-ui-elements 3.0.1 → 3.0.2-beta.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/buttons/LinkButton.d.ts +12 -0
- package/dist/components/buttons/TextButton.d.ts +2 -0
- package/dist/components/buttons/index.d.ts +2 -0
- package/dist/components/form/EmailInput.d.ts +13 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.mjs +1 -1
- package/dist/components/terms/LegalLink.d.ts +1 -2
- package/dist/components/terms/PrivacyPolicyNotice.d.ts +1 -0
- package/dist/components/terms/index.d.ts +3 -0
- package/dist/components/typographies/Paragraph.d.ts +6 -0
- package/dist/components/typographies/SectionHeader.d.ts +6 -0
- package/dist/components/typographies/index.d.ts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/index-C0DniEr8.mjs +105 -0
- package/package.json +1 -1
- package/dist/shared/index-w5CoDyk5.mjs +0 -105
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ButtonProps } from '@mui/material';
|
2
|
+
/**
|
3
|
+
* A button designed to look like a link
|
4
|
+
* indicates an action that is available, but that we don't want to emphasize.
|
5
|
+
*
|
6
|
+
* LinkButton is an abstraction over the MUI Button component
|
7
|
+
* encapsulating props shared by buttons of this type.
|
8
|
+
* See the Button component docs for props, options, etc. https://mui.com/components/buttons/
|
9
|
+
*
|
10
|
+
* @param {ButtonProps} props LinkButton takes the same props as the MUI button component
|
11
|
+
*/
|
12
|
+
export declare const LinkButton: ({ children, type, variant, size, color, ...props }: ButtonProps) => import("react").JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { TextFieldProps } from '@mui/material';
|
3
|
+
/**
|
4
|
+
* An input for email addresses
|
5
|
+
*
|
6
|
+
* EmailInput is an abstraction over the MUI TextField component
|
7
|
+
* encapsulating props shared by inputs of this type.
|
8
|
+
* See the TextField component docs for additional props, options, etc. https://mui.com/components/text-fields/
|
9
|
+
*
|
10
|
+
* @param {TextFieldProps} props EmailInput takes the same props as the MUI TextField component
|
11
|
+
* with default values for name ('email'), type ('email'), id ('email') and label ('Email')
|
12
|
+
*/
|
13
|
+
export declare const EmailInput: FC<TextFieldProps>;
|
@@ -1,13 +1,15 @@
|
|
1
|
-
export * from './
|
1
|
+
export * from './buttons';
|
2
|
+
export * from './typographies';
|
2
3
|
export * from './Typography';
|
3
4
|
export * from './CredentialRequestsEditor';
|
4
|
-
export * from './terms
|
5
|
+
export * from './terms';
|
5
6
|
export * from './When';
|
6
7
|
export * from './Alert';
|
7
8
|
export * from './Image';
|
8
|
-
export * from './form
|
9
|
+
export * from './form';
|
9
10
|
export * from './verified';
|
10
11
|
export * from './QRCodeDisplay';
|
11
12
|
export * from './Snackbar';
|
12
13
|
export * from './Banners';
|
13
14
|
export * from './Backdrop';
|
15
|
+
export * from './Button';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,
|
1
|
+
"use strict";import{A as a,d as s,l as e,B as t,m as n,C as r,i as o,D as i,E as p,j as c,F as u,I as d,c as l,L as m,O as B,P as I,g as h,b as P,Q as S,R as k,e as g,S as y,f as T,k as b,T as f,a as A,V as C,h as L,W as E,u as N}from"../shared/index-C0DniEr8.mjs";import{SnackbarProvider as R}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,t as Banner,n as Button,r as CredentialRequestsEditor,o as CustomAlertComponent,i as DateInput,p as EmailInput,c as ExactBirthdayBanner,u as FullWidthAlert,d as Image,l as LegalLink,m as LinkButton,B as OTPInput,I as Paragraph,h as PhoneInput,P as PrivacyPolicyNotice,S as QRCodeDisplay,k as ResendPhoneBanner,g as SSNInput,y as SectionHeader,T as SelectInput,R as SnackbarProvider,b as TestPhoneNumbersBanner,f as TextButton,A as Typography,C as VerifiedImage,L as VerifiedIncLogo,E as When,N as useSnackbar};
|
@@ -3,5 +3,4 @@ import { LinkProps } from '@mui/material';
|
|
3
3
|
* A component which renders a link syled following advice from our legal counsel for linking to legal documents
|
4
4
|
* like terms of use, privacy policy, etc
|
5
5
|
*/
|
6
|
-
declare const LegalLink: ({ sx, ...props }: LinkProps) => import("react").JSX.Element;
|
7
|
-
export default LegalLink;
|
6
|
+
export declare const LegalLink: ({ sx, ...props }: LinkProps) => import("react").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const PrivacyPolicyNotice: () => import("react").JSX.Element;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
2
|
+
/**
|
3
|
+
* A typography component for paragraph text
|
4
|
+
* The primary text component, intended for use for most body content text.
|
5
|
+
*/
|
6
|
+
export declare const Paragraph: ({ children, sx, ...props }: TypographyProps) => import("react").JSX.Element;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
2
|
+
/**
|
3
|
+
* A typography component for section header text
|
4
|
+
* A secondary header, it is intended for use with sections within a page, below the PageHeader
|
5
|
+
*/
|
6
|
+
export declare const SectionHeader: ({ children, ...props }: TypographyProps) => import("react").JSX.Element;
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as n,
|
1
|
+
"use strict";import{A as n,d as i,l,B as m,m as u,C as c,i as d,D as h,E as p,j as g,F as S,I as f,c as k,L as y,O as D,P,g as C,b,Q as w,R as B,e as T,S as I,f as N,k as R,T as Y,a as v,V as x,h as A,W as F,n as G,o as L,q as M,r as W,p as V,s as E,u as U,v as j}from"./shared/index-C0DniEr8.mjs";import{c as O,a as Q,e as q,b as z,k as H,u as $,f as K,d as Z,g as J,h as X,i as _,j as aa}from"./shared/useIntersectionObserver-BX_TdOtC.mjs";import{u as sa}from"./shared/useQRCode-DXiPIj-D.mjs";import{u as ea}from"./shared/useCounter-BV32zXDQ.mjs";import{b as ta,a as ra,v as oa,e as na,d as ia,p as la,u as ma,h as ua,j as ca,g as da,o as ha,s as pa,m as ga,c as Sa,l as fa,n as ka,q as ya,f as Da,i as Pa,r as Ca,z as ba,t as wa,x as Ba,k as Ta,w as Ia,y as Na}from"./shared/shadows-CNjkm81P.mjs";import{masks as Ra}from"./utils/masks/index.mjs";import{M as Ya,S as va,U as xa,d as Aa,e as Fa,f as Ga,g as La,a as Ma,s as Wa}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Va}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as Ea}from"notistack";async function Ua(s){try{return[await s,null]}catch(a){return[null,a]}}const ja=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("/")},Oa=s=>{const a=new Date(s);return a.setUTCHours(12),String(+a)},Qa=s=>s.replace(/(\d{3})-?(\d{2})-?(\d{4})/,"\u2022\u2022\u2022-\u2022\u2022-$3");export{n as AcceptTermsNotice,i as Alert,l as Backdrop,m as Banner,u as Button,c as CredentialRequestsEditor,d as CustomAlertComponent,h as DateInput,p as EmailInput,g as ExactBirthdayBanner,S as FullWidthAlert,f as Image,k as LegalLink,y as LinkButton,Ya as MaskedAndUnmaskedSSNSchema,D as OTPInput,P as Paragraph,C as PhoneInput,b as PrivacyPolicyNotice,w as QRCodeDisplay,B as ResendPhoneBanner,T as SSNInput,va as SSNSchema,I as SectionHeader,N as SelectInput,Ea as SnackbarProvider,R as TestPhoneNumbersBanner,Y as TextButton,v as Typography,xa as USDateSchema,x as VerifiedImage,A as VerifiedIncLogo,F as When,ta as black,ra as blue,oa as colors,G as countries,na as darkBlue,ia as darkGreen,la as darkGrey,ma as darkGreyContrast,ua as darkRed,ca as darkYellow,Aa as descriptionSchema,Fa as emailSchema,Ga as fieldSchema,ja as formatDateMMDDYYYY,Oa as formatDateToTimestamp,La as getDateSchemaWithPastValidation,L as getPhoneData,M as getPhoneDataByFieldName,Ma as getUnixSchema,da as green,ha as grey,pa as greyContrast,ga as infoContrast,Sa as lightBlue,fa as lightGreen,ka as lightGrey,ya as lightGreyContrast,Da as lightRed,Pa as lightYellow,Ra as masks,W as omitProperties,V as parseToPhoneNational,Va as phoneSchema,Ca as red,ba as shadows,E as sortByCountryName,Qa as ssnFormatter,Wa as stateSchema,wa as textDisabled,Ba as theme,O as useCallbackRef,Q as useCopyToClipboard,ea as useCounter,q as useDebounceValue,z as useDisclosure,H as useIntersectionObserver,$ as useLocalStorage,sa as useQRCode,K as useScript,Z as useSearchParams,U as useSnackbar,J as useThrottle,X as useToggle,_ as useWindowScroll,aa as useWindowSize,j as validatePhone,Ta as warningContrast,Ia as white,Ua as wrapPromise,Na as yellow};
|