@verifiedinc-public/shared-ui-elements 5.9.1 → 5.9.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/form/DateInput/index.d.ts +1 -1
- package/dist/components/form/OneClickForm/components/DataField/index.d.ts +1 -0
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldPhoneInput.d.ts +2 -1
- package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldSSNInput.d.ts +2 -1
- package/dist/components/form/OneClickForm/contexts/one-click-form-options.context.d.ts +3 -2
- package/dist/components/form/PhoneInput.d.ts +6 -2
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/index-5lnLgIgV.mjs +88 -0
- package/dist/shared/phone-eqP--V9t.mjs +1 -0
- package/dist/shared/{shadows-DpONhygS.mjs → shadows-q9E-lLz0.mjs} +1 -1
- package/dist/styles/index.mjs +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/phone/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/components/form/OneClickForm/components/shared/PhoneInput.d.ts +0 -22
- package/dist/shared/index-D9rPRjCc.mjs +0 -88
- package/dist/shared/phone-DVFDc4Vz.mjs +0 -1
@@ -8,7 +8,7 @@ interface DateInputProps extends Omit<TextFieldProps, 'onBlur' | 'onChange'> {
|
|
8
8
|
onChange?: (value: string) => void;
|
9
9
|
onBlur?: ChangeEventHandler<HTMLInputElement>;
|
10
10
|
pickerDefaultSelectedDate?: Date;
|
11
|
-
pickerClickOutsideBoundaryElement?: HTMLElement;
|
11
|
+
pickerClickOutsideBoundaryElement?: HTMLElement | null;
|
12
12
|
pickerInputOverflow?: boolean;
|
13
13
|
inputMaskProps?: Readonly<Partial<InputMaskProps>>;
|
14
14
|
}
|
package/dist/components/form/OneClickForm/components/DataField/inputs/DataFieldPhoneInput.d.ts
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
export declare function DataFieldPhoneInput(): ReactElement;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
2
|
type OneClickOptionFeatures = {
|
3
|
-
googlePlacesApiKey?: string;
|
4
3
|
selectableCredentials?: boolean;
|
5
4
|
phoneCredentialWhitelist?: string[];
|
6
5
|
phoneCredentialRegexWhitelist?: string;
|
7
6
|
/** Array of field names that can be filled by query params. Use '*' to allow all fields. */
|
8
7
|
fillEmptyByQueryParam?: string[];
|
8
|
+
/** Element that the date picker should be detached from when clicking outside of it. */
|
9
|
+
datePickerClickOutsideBoundaryElement?: HTMLElement | null;
|
9
10
|
};
|
10
11
|
type OneClickOptionServicePaths = {
|
11
12
|
credentialImagePath: string;
|
@@ -16,7 +17,7 @@ type OneClickOptionApiKeys = {
|
|
16
17
|
export type OneClickFormOptions = {
|
17
18
|
features: OneClickOptionFeatures;
|
18
19
|
servicePaths: OneClickOptionServicePaths;
|
19
|
-
apiKeys
|
20
|
+
apiKeys?: OneClickOptionApiKeys;
|
20
21
|
};
|
21
22
|
type OneClickFormOptionsContext = {
|
22
23
|
options: OneClickFormOptions;
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
1
2
|
import { InputProps } from '@mui/material';
|
2
3
|
import { TextFieldProps } from '../TextField';
|
3
4
|
export interface PhoneInputProps {
|
4
|
-
label?:
|
5
|
+
label?: ReactNode;
|
5
6
|
name?: string;
|
6
7
|
helperText?: string;
|
7
8
|
initialValue?: string;
|
@@ -14,6 +15,7 @@ export interface PhoneInputProps {
|
|
14
15
|
shouldHaveSelectCountryButton?: boolean;
|
15
16
|
shouldHaveClearButton?: boolean;
|
16
17
|
variant?: TextFieldProps['variant'];
|
18
|
+
size?: TextFieldProps['size'];
|
17
19
|
autoFocus?: boolean;
|
18
20
|
disabled?: boolean;
|
19
21
|
InputProps?: InputProps;
|
@@ -36,5 +38,7 @@ export interface PhoneInputProps {
|
|
36
38
|
* @param shouldHaveSelectCountryButton - Whether to show the country selector button. Defaults to true.
|
37
39
|
* @param shouldHaveClearButton - Whether to show the clear button. Defaults to false.
|
38
40
|
* @param disabled - Whether the phone input is disabled. Defaults to false.
|
41
|
+
* @param size - The size of the phone input. Defaults to 'small'.
|
42
|
+
* @param variant - The variant of the phone input. Defaults to 'outlined'.
|
39
43
|
*/
|
40
|
-
export declare function PhoneInput({ label, name, helperText, onChange, onBlur, onValidPhone, initialValue, error, handleChangeCountry, value: valueProp, autoFocus, InputProps, shouldHaveSelectCountryButton, shouldHaveClearButton, disabled, }: Readonly<PhoneInputProps>): React.JSX.Element;
|
44
|
+
export declare function PhoneInput({ label, name, helperText, onChange, onBlur, onValidPhone, initialValue, error, handleChangeCountry, value: valueProp, autoFocus, InputProps, shouldHaveSelectCountryButton, shouldHaveClearButton, disabled, size, }: Readonly<PhoneInputProps>): React.JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,c as s,m as e,B as r,o as t,n,C as i,D as o,f as p,E as c,k as d,F as m,I as u,b as h,L as C,O as l,h as S,j as g,e as P,P as B,Q as k,R as I,S as b,d as O,l as T,T as y,g as L,a as f,V as R,i as v,t as E,u as D}from"../shared/index-
|
1
|
+
"use strict";import{A as a,c as s,m as e,B as r,o as t,n,C as i,D as o,f as p,E as c,k as d,F as m,I as u,b as h,L as C,O as l,h as S,j as g,e as P,P as B,Q as k,R as I,S as b,d as O,l as T,T as y,g as L,a as f,V as R,i as v,t as E,u as D}from"../shared/index-5lnLgIgV.mjs";import{a as N,b as F,P as A,S as M}from"../shared/PageSectionHeader-DdpDhBZG.mjs";import{B as V,C as w,i as x,E as W,L as j,j as H,M as Q,g as q,O as z,P as U,R as G,e as J,d as K,S as X,a as Y,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"../shared/SignupBigNumbers-BO1JJl6G.mjs";import{SnackbarProvider as na}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,V as BigNumber,t as BrandFilterInput,n as Button,i as CredentialRequestsEditor,w as CustomAlertComponent,o as DateInput,p as DateRangeInput,c as EmailInput,x as EmptyChartSection,W as ErrorCodesChart,d as ExactBirthdayBanner,m as FullWidthAlert,u as Image,h as LegalLink,C as LinkButton,j as LoadingChartSection,H as MetricLastUpdated,Q as MonthlySignupsOverviewTable,l as OTPInput,S as OneClickForm,q as OneClickOverTimeChart,z as OneClickPercentageChart,g as OneClickPoweredByVerified,N as PageHeader,F as PageSectionHeader,A as Paragraph,P as PhoneInput,U as PieChart,B as PrivacyPolicyNotice,k as QRCodeDisplay,G as ReasonCodesChart,I as ResendPhoneBanner,J as RiskScoreBarChart,K as RiskScorePieChart,b as SSNInput,M as SectionHeader,O as SelectInput,X as SeriesChart,Y as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,na as SnackbarProvider,T as TestPhoneNumbersBanner,y as TextButton,L as TimezoneInput,f as Typography,R as VerifiedImage,v as VerifiedIncLogo,sa as When,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,E as toOption,D as useBrandFilterInput,ta as useSnackbar};
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,c as s,m as e,B as r,o as t,n as o,C as i,D as n,f as m,E as l,k as u,F as p,I as c,b as d,L as h,O as S,h as C,j as g,e as f,P as k,Q as P,R as b,S as y,d as B,l as T,T as D,g as I,a as O,V as v,i as w,t as R,u as N}from"./shared/index-
|
1
|
+
"use strict";import{A as a,c as s,m as e,B as r,o as t,n as o,C as i,D as n,f as m,E as l,k as u,F as p,I as c,b as d,L as h,O as S,h as C,j as g,e as f,P as k,Q as P,R as b,S as y,d as B,l as T,T as D,g as I,a as O,V as v,i as w,t as R,u as N}from"./shared/index-5lnLgIgV.mjs";import{a as L,b as M,P as E,S as Y}from"./shared/PageSectionHeader-DdpDhBZG.mjs";import{B as F,C as x,i as A,E as V,L as W,j as z,M as G,g as U,O as H,P as j,R as Q,e as q,d as J,S as K,a as X,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"./shared/SignupBigNumbers-BO1JJl6G.mjs";import{b as oa,k as ia,a as na,i as ma,u as la,j as ua,d as pa,c as ca,e as da,f as ha,g as Sa,h as Ca}from"./shared/useDebounceCallback-CO7X29ng.mjs";import{u as ga,a as fa}from"./shared/usePrevious-DG_IMu2h.mjs";import{a as ka,b as Pa,u as ba}from"./shared/useOnClickOutside-DgJxDzLx.mjs";import{u as ya}from"./shared/useCounter-BV32zXDQ.mjs";import{u as Ba}from"./shared/useResizeObserver-D434c1uN.mjs";import{b as Ta,a as Da,v as Ia,e as Oa,d as va,p as wa,u as Ra,h as Na,j as La,g as Ma,o as Ea,s as Ya,m as Fa,c as xa,l as Aa,n as Va,q as Wa,f as za,i as Ga,r as Ua,z as Ha,t as ja,x as Qa,k as qa,w as Ja,y as Ka}from"./shared/shadows-q9E-lLz0.mjs";import{wrapPromise as Xa}from"./utils/wrapPromise/index.mjs";import{f as Za,b as _a,a as $a,c as as,u as ss}from"./shared/uuidColor-LRbEKYAZ.mjs";import{c as es,g as rs,a as ts,p as os,s as is,v as ns}from"./shared/phone-eqP--V9t.mjs";import{masks as ms}from"./utils/masks/index.mjs";import{o as ls}from"./shared/omitProperty-DZYdN2vK.mjs";import{s as us}from"./shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as ps,toSentenceCase as cs}from"./utils/string/index.mjs";import{k as ds}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{M as hs,S as Ss,U as Cs,d as gs,e as fs,f as ks,g as Ps,a as bs,s as ys}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Bs}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as Ts}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,F as BigNumber,t as BrandFilterInput,o as Button,i as CredentialRequestsEditor,x as CustomAlertComponent,n as DateInput,m as DateRangeInput,l as EmailInput,A as EmptyChartSection,V as ErrorCodesChart,u as ExactBirthdayBanner,p as FullWidthAlert,c as Image,d as LegalLink,h as LinkButton,W as LoadingChartSection,hs as MaskedAndUnmaskedSSNSchema,z as MetricLastUpdated,G as MonthlySignupsOverviewTable,S as OTPInput,C as OneClickForm,U as OneClickOverTimeChart,H as OneClickPercentageChart,g as OneClickPoweredByVerified,L as PageHeader,M as PageSectionHeader,E as Paragraph,f as PhoneInput,j as PieChart,k as PrivacyPolicyNotice,P as QRCodeDisplay,Q as ReasonCodesChart,b as ResendPhoneBanner,q as RiskScoreBarChart,J as RiskScorePieChart,y as SSNInput,Ss as SSNSchema,Y as SectionHeader,B as SelectInput,K as SeriesChart,X as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,Ts as SnackbarProvider,T as TestPhoneNumbersBanner,D as TextButton,I as TimezoneInput,O as Typography,Cs as USDateSchema,v as VerifiedImage,w as VerifiedIncLogo,sa as When,Ta as black,Da as blue,Ia as colors,es as countries,Oa as darkBlue,va as darkGreen,wa as darkGrey,Ra as darkGreyContrast,Na as darkRed,La as darkYellow,gs as descriptionSchema,fs as emailSchema,ks as fieldSchema,Za as formatDateMMDDYYYY,_a as formatDateMMYY,$a as formatDateToTimestamp,as as formatExtendedDate,Ps as getDateSchemaWithPastValidation,rs as getPhoneData,ts as getPhoneDataByFieldName,bs as getUnixSchema,Ma as green,Ea as grey,Ya as greyContrast,Fa as infoContrast,ds as kebabCaseToPretty,xa as lightBlue,Aa as lightGreen,Va as lightGrey,Wa as lightGreyContrast,za as lightRed,Ga as lightYellow,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,ms as masks,ls as omitProperties,os as parseToPhoneNational,Bs as phoneSchema,Ua as red,Ha as shadows,is as sortByCountryName,us as ssnFormatter,ys as stateSchema,ja as textDisabled,Qa as theme,ps as toCapitalize,R as toOption,cs as toSentenceCase,N as useBrandFilterInput,oa as useCallbackRef,ga as useCopyToClipboard,ya as useCounter,ia as useDebounceCallback,ka as useDebounceValue,na as useDisclosure,ma as useIntersectionObserver,la as useLocalStorage,ua as useNavigatorOnline,Pa as useOnClickOutside,fa as usePrevious,ba as useQRCode,Ba as useResizeObserver,pa as useScript,ca as useSearchParams,ta as useSnackbar,da as useThrottle,ha as useToggle,Sa as useWindowScroll,Ca as useWindowSize,ss as uuidToHashedColor,ns as validatePhone,qa as warningContrast,Ja as white,Xa as wrapPromise,Ka as yellow};
|