@verifiedinc-public/shared-ui-elements 6.8.2 → 7.0.0
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/chart/index.mjs +1 -1
- package/dist/components/form/AddressInput/hook.d.ts +1 -3
- package/dist/components/form/AddressInput/index.d.ts +1 -1
- package/dist/components/form/NewOneClickForm/core/declarations.d.ts +4 -0
- package/dist/components/form/NewOneClickForm/core/fields/address.d.ts +185 -0
- package/dist/components/form/NewOneClickForm/core/fields/birthDate.d.ts +21 -0
- package/dist/components/form/NewOneClickForm/core/fields/constants.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/fields/driversLicense.d.ts +291 -0
- package/dist/components/form/NewOneClickForm/core/fields/fullName.d.ts +94 -0
- package/dist/components/form/NewOneClickForm/core/fields/index.d.ts +563 -0
- package/dist/components/form/NewOneClickForm/core/fields/phone.d.ts +20 -0
- package/dist/components/form/NewOneClickForm/core/fields/sex.d.ts +29 -0
- package/dist/components/form/NewOneClickForm/core/fields/ssn.d.ts +21 -0
- package/dist/components/form/NewOneClickForm/core/fields/types.d.ts +62 -0
- package/dist/components/form/NewOneClickForm/core/form/form.d.ts +9 -0
- package/dist/components/form/NewOneClickForm/core/form/formBuilder.d.ts +11 -0
- package/dist/components/form/NewOneClickForm/core/form/formField.d.ts +50 -0
- package/dist/components/form/NewOneClickForm/core/form/formFieldBuilder.d.ts +14 -0
- package/dist/components/form/NewOneClickForm/core/form/index.d.ts +4 -0
- package/dist/components/form/NewOneClickForm/core/form/utils.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/formats/address.format.d.ts +8 -0
- package/dist/components/form/NewOneClickForm/core/formats/date.format.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/core/formats/index.d.ts +4 -0
- package/dist/components/form/NewOneClickForm/core/formats/ssn.format.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/core/formats/state.format.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/core/mappers/create-patch.map.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/mappers/index.d.ts +2 -0
- package/dist/components/form/NewOneClickForm/core/mappers/share.map.d.ts +4 -0
- package/dist/components/form/NewOneClickForm/core/shared/us-states.d.ts +73 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.d.ts +37 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/index.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/state.schema.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.d.ts +7 -0
- package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.d.ts +69 -0
- package/dist/components/form/NewOneClickForm/core/validations/driversLicense/index.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/core/validations/index.d.ts +4 -0
- package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.d.ts +14 -0
- package/dist/components/form/NewOneClickForm/core/validations/name/index.d.ts +4 -0
- package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/birthDate.schema.d.ts +2 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/date.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/index.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/phone.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.d.ts +19 -0
- package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.d.ts +6 -0
- package/dist/components/form/NewOneClickForm/index.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/core/field.hook.d.ts +83 -0
- package/dist/components/form/NewOneClickForm/react/core/form.context.d.ts +25 -0
- package/dist/components/form/NewOneClickForm/react/index.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/address.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/clear-field-adornment.d.ts +8 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/date.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/field.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/label.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/select.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/ssn.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/input/text.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/field.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/multi.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/single.field.d.ts +3 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/shared.d.ts +17 -0
- package/dist/components/form/NewOneClickForm/react/ui/fields/style.d.ts +28 -0
- package/dist/components/form/NewOneClickForm/react/ui/form-content.d.ts +9 -0
- package/dist/components/form/NewOneClickForm/react/ui/form.context.d.ts +29 -0
- package/dist/components/form/NewOneClickForm/react/ui/form.d.ts +17 -0
- package/dist/components/form/NewOneClickForm/react/ui/index.d.ts +1 -0
- package/dist/components/form/NewOneClickForm/types.d.ts +14 -0
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/ContentWithLoader-DZt02ZR9.mjs +155 -0
- package/dist/shared/{SignupBigNumbers-Bfd44o0C.mjs → SignupBigNumbers-D7VQsFhd.mjs} +1 -1
- package/dist/shared/makeGoogleFont-Dj4rOqZX.mjs +1 -0
- package/dist/shared/{omitProperty-CgN5EPAy.mjs → omitProperty-Dw6AqKH-.mjs} +1 -1
- package/dist/shared/uuidColor-IahzMgLw.mjs +20 -0
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/ssn.d.ts +1 -0
- package/dist/utils/string/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/shared/ContentWithLoader-DRXoEKwC.mjs +0 -155
- package/dist/shared/makeGoogleFont-DJFPTTVt.mjs +0 -1
- package/dist/shared/toSentenceCase-C6ZGgmg7.mjs +0 -1
- package/dist/shared/uuidColor-DxkgIjlu.mjs +0 -20
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { FormField } from '../../core/form';
|
|
2
|
+
import { FieldValueDefinitions } from '../../core/declarations';
|
|
3
|
+
export interface UseFieldOptions {
|
|
4
|
+
key: string;
|
|
5
|
+
validateOnChange?: boolean;
|
|
6
|
+
validateOnBlur?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface UseFieldReturn<TFieldKey extends keyof FieldValueDefinitions = keyof FieldValueDefinitions> {
|
|
9
|
+
field: FormField<TFieldKey> | undefined;
|
|
10
|
+
value: FieldValueDefinitions[TFieldKey];
|
|
11
|
+
setValue: (value: FieldValueDefinitions[TFieldKey]) => void;
|
|
12
|
+
setChildValue: (childKey: string, value: any) => void;
|
|
13
|
+
error: string | null;
|
|
14
|
+
isDirty: boolean;
|
|
15
|
+
isValid: boolean;
|
|
16
|
+
isTouched: boolean;
|
|
17
|
+
setTouched: (touched: boolean) => void;
|
|
18
|
+
validate: () => boolean;
|
|
19
|
+
reset: () => void;
|
|
20
|
+
clear: (options?: {
|
|
21
|
+
ignoreKeys?: string[];
|
|
22
|
+
}) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const useField: <TFieldKey extends keyof FieldValueDefinitions = keyof FieldValueDefinitions>({ key, validateOnChange, validateOnBlur, }: UseFieldOptions) => UseFieldReturn<TFieldKey>;
|
|
25
|
+
export declare const useFieldInput: <TFieldKey extends keyof FieldValueDefinitions = keyof FieldValueDefinitions>(fieldOptions: UseFieldOptions) => {
|
|
26
|
+
inputProps: {
|
|
27
|
+
id: string;
|
|
28
|
+
value: string | FieldValueDefinitions[TFieldKey];
|
|
29
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => void;
|
|
30
|
+
onBlur: () => void;
|
|
31
|
+
'aria-invalid': boolean;
|
|
32
|
+
'aria-describedby': string | undefined;
|
|
33
|
+
};
|
|
34
|
+
field: FormField<TFieldKey> | undefined;
|
|
35
|
+
value: FieldValueDefinitions[TFieldKey];
|
|
36
|
+
setValue: (value: FieldValueDefinitions[TFieldKey]) => void;
|
|
37
|
+
setChildValue: (childKey: string, value: any) => void;
|
|
38
|
+
error: string | null;
|
|
39
|
+
isDirty: boolean;
|
|
40
|
+
isValid: boolean;
|
|
41
|
+
isTouched: boolean;
|
|
42
|
+
setTouched: (touched: boolean) => void;
|
|
43
|
+
validate: () => boolean;
|
|
44
|
+
reset: () => void;
|
|
45
|
+
clear: (options?: {
|
|
46
|
+
ignoreKeys?: string[];
|
|
47
|
+
}) => void;
|
|
48
|
+
};
|
|
49
|
+
export declare const useFormField: <TFieldKey extends keyof FieldValueDefinitions = keyof FieldValueDefinitions>(options: UseFieldOptions) => {
|
|
50
|
+
fieldProps: {
|
|
51
|
+
label: string | undefined;
|
|
52
|
+
placeholder: string | undefined;
|
|
53
|
+
required: boolean | undefined;
|
|
54
|
+
disabled: boolean | undefined;
|
|
55
|
+
description: string | undefined;
|
|
56
|
+
error: string | null;
|
|
57
|
+
isDirty: boolean;
|
|
58
|
+
isValid: boolean;
|
|
59
|
+
isTouched: boolean;
|
|
60
|
+
};
|
|
61
|
+
inputProps: {
|
|
62
|
+
id: string;
|
|
63
|
+
value: string | FieldValueDefinitions[TFieldKey];
|
|
64
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => void;
|
|
65
|
+
onBlur: () => void;
|
|
66
|
+
'aria-invalid': boolean;
|
|
67
|
+
'aria-describedby': string | undefined;
|
|
68
|
+
};
|
|
69
|
+
field: FormField<TFieldKey> | undefined;
|
|
70
|
+
value: FieldValueDefinitions[TFieldKey];
|
|
71
|
+
setValue: (value: FieldValueDefinitions[TFieldKey]) => void;
|
|
72
|
+
setChildValue: (childKey: string, value: any) => void;
|
|
73
|
+
error: string | null;
|
|
74
|
+
isDirty: boolean;
|
|
75
|
+
isValid: boolean;
|
|
76
|
+
isTouched: boolean;
|
|
77
|
+
setTouched: (touched: boolean) => void;
|
|
78
|
+
validate: () => boolean;
|
|
79
|
+
reset: () => void;
|
|
80
|
+
clear: (options?: {
|
|
81
|
+
ignoreKeys?: string[];
|
|
82
|
+
}) => void;
|
|
83
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { Form, FormField } from '../../core/form';
|
|
3
|
+
export interface FormState {
|
|
4
|
+
form: Form;
|
|
5
|
+
isSubmitting: boolean;
|
|
6
|
+
isSubmitSuccess: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface FormContextValue {
|
|
9
|
+
state: FormState;
|
|
10
|
+
setForm: (form: Form) => void;
|
|
11
|
+
updateFieldValue: (path: string, value: any) => void;
|
|
12
|
+
setFieldTouched: (path: string, touched: boolean) => void;
|
|
13
|
+
getField: (path: string) => FormField | undefined;
|
|
14
|
+
validateForm: () => boolean;
|
|
15
|
+
resetForm: () => void;
|
|
16
|
+
submitForm: () => Promise<void>;
|
|
17
|
+
replaceFieldWithVariant: (fieldPath: string, variantId: string) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const useForm: () => FormContextValue;
|
|
20
|
+
export interface FormProviderProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
form: Form;
|
|
23
|
+
onSubmit?: (form: Form) => Promise<void> | void;
|
|
24
|
+
}
|
|
25
|
+
export declare const FormProvider: React.FC<FormProviderProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ClearFieldAdornmentProps = Readonly<{
|
|
2
|
+
fieldKey: string;
|
|
3
|
+
ignoreKeys?: string[];
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function ClearFieldAdornment({ fieldKey, ignoreKeys, onClick, disabled, }: ClearFieldAdornmentProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function EditFields(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ReadonlyFields(): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormField } from '../../../core/form';
|
|
2
|
+
/**
|
|
3
|
+
* Makes attributes for a field.
|
|
4
|
+
* @param field The field to make attributes for.
|
|
5
|
+
* @returns The attributes for the field.
|
|
6
|
+
*/
|
|
7
|
+
export declare const makeAttributes: (field: FormField | undefined) => {
|
|
8
|
+
role: string;
|
|
9
|
+
'aria-label': string | undefined;
|
|
10
|
+
'data-testid': string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Returns the autocomplete attribute value based on the type of the field.
|
|
14
|
+
* @param key The type of the field.
|
|
15
|
+
* @returns The autocomplete attribute value.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getAutoCompleteAttributeValue(key: string): "off" | "tel" | "address-line2" | "family-name" | "given-name" | "street-address address-level2 address-level1 postal-code";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
export declare function FieldLabel({ fieldKey, sx, }: {
|
|
3
|
+
fieldKey: string;
|
|
4
|
+
sx?: SxProps;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function FieldValue({ fieldKey }: {
|
|
7
|
+
fieldKey: string;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function FieldDescription({ fieldKey }: {
|
|
10
|
+
fieldKey: string;
|
|
11
|
+
}): import("react").JSX.Element | null;
|
|
12
|
+
export declare function FieldRowContainer({ fieldKey, children, spacing, }: {
|
|
13
|
+
fieldKey: string;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
spacing?: number;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
export declare function FieldRow({ fieldKey, children, }: {
|
|
18
|
+
fieldKey: string;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export declare function FieldSectionTitle({ fieldKey }: {
|
|
22
|
+
fieldKey: string;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
export declare function FieldSectionContent({ children, spacing, sx, }: {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
spacing?: number;
|
|
27
|
+
sx?: SxProps;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { FormContextValue } from '../core/form.context';
|
|
3
|
+
type OneClickFormContentProps = {
|
|
4
|
+
FooterComponent?: ComponentType<{
|
|
5
|
+
form: FormContextValue;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
export declare function OneClickFormContent({ FooterComponent, }: OneClickFormContentProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { FormContextValue } from '../core/form.context';
|
|
4
|
+
type OneClickOptionFeatures = {
|
|
5
|
+
/** Element that the date picker should be detached from when clicking outside of it. */
|
|
6
|
+
datePickerClickOutsideBoundaryElement?: HTMLElement | null;
|
|
7
|
+
};
|
|
8
|
+
type OneClickOptionServicePaths = {
|
|
9
|
+
googlePlacesAutocompletePlaces?: (input: string, signal?: AbortSignal) => Promise<unknown>;
|
|
10
|
+
googlePlacesGetPlace?: (placeId: string, signal?: AbortSignal) => Promise<unknown>;
|
|
11
|
+
};
|
|
12
|
+
export type OneClickFormOptions = {
|
|
13
|
+
features: OneClickOptionFeatures;
|
|
14
|
+
servicePaths: OneClickOptionServicePaths;
|
|
15
|
+
queryClient?: QueryClient;
|
|
16
|
+
};
|
|
17
|
+
export type OneClickFormContext = {
|
|
18
|
+
formContext: FormContextValue;
|
|
19
|
+
options: OneClickFormOptions;
|
|
20
|
+
editMode: boolean;
|
|
21
|
+
setEditMode: (editMode: boolean) => void;
|
|
22
|
+
};
|
|
23
|
+
type OneClickFormProviderProps = {
|
|
24
|
+
options: OneClickFormOptions;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
};
|
|
27
|
+
export declare function OneClickFormProvider({ options, children, }: OneClickFormProviderProps): import("react").JSX.Element;
|
|
28
|
+
export declare function useOneClickForm(): OneClickFormContext;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { Credential, CredentialRequest } from '../../types';
|
|
4
|
+
import { Form } from '../../core/form';
|
|
5
|
+
import { FormContextValue } from '../core/form.context';
|
|
6
|
+
import { OneClickFormOptions } from './form.context';
|
|
7
|
+
export type NewOneClickFormProps = {
|
|
8
|
+
credentialRequests: CredentialRequest[];
|
|
9
|
+
credentials: Credential[];
|
|
10
|
+
options: OneClickFormOptions;
|
|
11
|
+
queryClient?: QueryClient;
|
|
12
|
+
onSubmit: (form: Form) => Promise<void> | void;
|
|
13
|
+
FooterComponent?: ComponentType<{
|
|
14
|
+
form: FormContextValue;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
export declare function NewOneClickForm({ credentialRequests, credentials, options, onSubmit, FooterComponent, }: NewOneClickFormProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NewOneClickForm, type NewOneClickFormProps } from './form';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Credential = {
|
|
2
|
+
uuid: string;
|
|
3
|
+
type: string;
|
|
4
|
+
value: Record<string, any>;
|
|
5
|
+
};
|
|
6
|
+
export type CredentialRequestObject = {
|
|
7
|
+
allowUserInput?: boolean;
|
|
8
|
+
mandatory?: 'yes' | 'no' | 'if_available';
|
|
9
|
+
multi?: boolean;
|
|
10
|
+
type: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
children?: CredentialRequestObject[];
|
|
13
|
+
};
|
|
14
|
+
export type CredentialRequest = CredentialRequestObject | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as n,B as i,a2 as o,a1 as d,a8 as l,a7 as p,ad as m,C,a5 as c,D as u,i as h,N as S,h as g,_ as P,E as y,F as I,ab as B,I as f,b as T,L as k,M as b,g as D,k as O,W as R,O as L,a6 as F,e as v,f as E,P as N,X as A,R as x,aa as M,Z as w,S as V,d as W,$ as q,T as H,j,a as z,V as Q,U as G,a9 as U,H as J,v as K,t as X,p as Y,u as Z,l as _,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as na,K as ia,n as oa,o as da,w as la,a3 as pa,x as ma,y as Ca,a4 as ca}from"../shared/ContentWithLoader-
|
|
1
|
+
"use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as n,B as i,a2 as o,a1 as d,a8 as l,a7 as p,ad as m,C,a5 as c,D as u,i as h,N as S,h as g,_ as P,E as y,F as I,ab as B,I as f,b as T,L as k,M as b,g as D,k as O,W as R,O as L,a6 as F,e as v,f as E,P as N,X as A,R as x,aa as M,Z as w,S as V,d as W,$ as q,T as H,j,a as z,V as Q,U as G,a9 as U,H as J,v as K,t as X,p as Y,u as Z,l as _,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as na,K as ia,n as oa,o as da,w as la,a3 as pa,x as ma,y as Ca,a4 as ca}from"../shared/ContentWithLoader-DZt02ZR9.mjs";import{a as ua,b as ha,P as Sa,S as ga}from"../shared/PageSectionHeader-lc9WunC-.mjs";import{B as Pa,C as ya,i as Ia,E as Ba,L as fa,j as Ta,M as ka,g as ba,O as Da,P as Oa,R as Ra,e as La,d as Fa,S as va,a as Ea,b as Na,k as Aa,c as xa,f as Ma,W as wa,h as Va,m as Wa,u as qa}from"../shared/SignupBigNumbers-D7VQsFhd.mjs";import{SnackbarProvider as Ha}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,n as Banner,i as BasePhoneInput,Pa as BigNumber,o as BrandFilterInput,d as Button,l as CalendlyDialog,p as CalendlyDialogComponent,m as ContentWithLoader,C as CredentialRequestsEditor,ya as CustomAlertComponent,c as CustomDialog,u as DateInput,h as DateRangeInput,S as DefaultInput,g as EmailInput,Ia as EmptyChartSection,Ba as ErrorCodesChart,P as ExactBirthdayBanner,y as ExportToPdfButton,I as FullWidthAlert,B as IconPlayer,f as Image,T as LegalLink,k as LinkButton,fa as LoadingChartSection,b as MandatoryEnum,Ta as MetricLastUpdated,ka as MonthlySignupsOverviewTable,D as OTPInput,O as OneClickForm,ba as OneClickOverTimeChart,Da as OneClickPercentageChart,R as OneClickPoweredByVerified,L as OriginalButton,ua as PageHeader,ha as PageSectionHeader,Sa as Paragraph,F as PersistentDialog,v as PhoneInput,Oa as PieChart,E as PrettyPhoneInput,N as PrivacyPolicyNotice,A as QRCodeDisplay,x as RadioOption,Ra as ReasonCodesChart,M as RequiredLabel,w as ResendPhoneBanner,La as RiskScoreBarChart,Fa as RiskScorePieChart,V as SSNInput,ga as SectionHeader,W as SelectInput,va as SeriesChart,Ea as SeriesChartLegend,Na as SeriesPercentageChart,Aa as SignupBigNumbers,xa as SimpleBarChart,Ma as SimpleLegend,Ha as SnackbarProvider,q as TestPhoneNumbersBanner,H as TextButton,j as TimezoneInput,z as Typography,Q as VerifiedImage,G as VerifiedIncLogo,wa as When,U as WhenStyled,J as extractChildrenFromCredentialFieldSet,K as extractTypesFromSchema,X as filterRepeatedCredentials,Y as findCorrectSchemaProperty,Z as findCredentialsByType,_ as getCredentialTypeDisplayInfo,$ as getCredentialValues,aa as getLastPathName,sa as getParentPath,ea as getReferencedSchemaNames,ta as hasMandatoryFieldEmpty,ra as isNewCredentialAgainstInstance,na as isRequiredCredentialDisplayInfo,ia as isSomeFieldInputAllowed,oa as isValidInputCredential,da as makeCredentialDisplayInfoList,Va as mapMonthlySignupsOverviewTableData,Wa as mapTimeSeriesData,la as sortCredentialsBySchema,pa as toOption,ma as transformToFormObject,Ca as transformToFormSchema,ca as useBrandFilterInput,qa as useSnackbar};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as o,B as i,a2 as n,a1 as m,a8 as d,a7 as l,ad as p,C as u,a5 as c,D as h,i as C,N as S,h as g,_ as f,E as y,F as P,ab as k,I as T,b as D,L as b,M as B,g as I,k as F,W as O,O as R,a6 as L,e as N,f as v,P as w,X as U,R as A,aa as M,Z as E,S as x,d as W,$ as Y,T as G,j as H,a as V,V as z,U as j,a9 as _,H as q,v as Q,t as J,p as K,u as X,l as Z,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as oa,K as ia,n as na,o as ma,w as da,a3 as la,x as pa,y as ua,a4 as ca}from"./shared/ContentWithLoader-
|
|
1
|
+
"use strict";import{A as a,ac as s,Q as e,c as t,a0 as r,Y as o,B as i,a2 as n,a1 as m,a8 as d,a7 as l,ad as p,C as u,a5 as c,D as h,i as C,N as S,h as g,_ as f,E as y,F as P,ab as k,I as T,b as D,L as b,M as B,g as I,k as F,W as O,O as R,a6 as L,e as N,f as v,P as w,X as U,R as A,aa as M,Z as E,S as x,d as W,$ as Y,T as G,j as H,a as V,V as z,U as j,a9 as _,H as q,v as Q,t as J,p as K,u as X,l as Z,r as $,G as aa,z as sa,q as ea,J as ta,s as ra,m as oa,K as ia,n as na,o as ma,w as da,a3 as la,x as pa,y as ua,a4 as ca}from"./shared/ContentWithLoader-DZt02ZR9.mjs";import{a as ha,b as Ca,P as Sa,S as ga}from"./shared/PageSectionHeader-lc9WunC-.mjs";import{B as fa,C as ya,i as Pa,E as ka,L as Ta,j as Da,M as ba,g as Ba,O as Ia,P as Fa,R as Oa,e as Ra,d as La,S as Na,a as va,b as wa,k as Ua,c as Aa,f as Ma,W as Ea,h as xa,m as Wa,u as Ya}from"./shared/SignupBigNumbers-D7VQsFhd.mjs";import{b as Ga,k as Ha,a as Va,i as za,u as ja,j as _a,d as qa,c as Qa,l as Ja,e as Ka,f as Xa,g as Za,h as $a}from"./shared/useStyledQRCode-BN5wt-Zb.mjs";import{u as as,a as ss}from"./shared/usePrevious-Dppy11px.mjs";import{a as es,b as ts,u as rs}from"./shared/useOnClickOutside-LHfgekbP.mjs";import{u as os}from"./shared/useCounter-BV32zXDQ.mjs";import{u as is}from"./shared/useResizeObserver-D7K4jTvT.mjs";import{b as ns,a as ms,x as ds,m as ls,e as ps,d as us,q as cs,v as hs,h as Cs,j as Ss,g as gs,p as fs,u as ys,n as Ps,c as ks,l as Ts,o as Ds,s as bs,f as Bs,i as Is,r as Fs,t as Os,k as Rs,w as Ls,y as Ns}from"./shared/colors-CSvtCJK4.mjs";import{s as vs,t as ws}from"./shared/shadows-levwxV7v.mjs";import{wrapPromise as Us}from"./utils/wrapPromise/index.mjs";import{f as As,b as Ms,a as Es,c as xs,t as Ws,u as Ys}from"./shared/uuidColor-IahzMgLw.mjs";import{c as Gs,g as Hs,a as Vs,p as zs,s as js,v as _s}from"./shared/phone-DCga5nUC.mjs";import{masks as qs}from"./utils/masks/index.mjs";import{o as Qs}from"./shared/omitProperty-Dw6AqKH-.mjs";import{D as Js,b as Ks,m as Xs,s as Zs,a as $s}from"./shared/makeGoogleFont-Dj4rOqZX.mjs";import{toCapitalize as ae,toSentenceCase as se}from"./utils/string/index.mjs";import{k as ee}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as te,contrastColor as re,darken as oe,getThemeFromPrimaryColor as ie,lighten as ne}from"./utils/color/index.mjs";import{addressFormatter as me,fromUSAddress as de,parseCountryCode as le,toUSaddress as pe,toUSaddressPretty as ue}from"./utils/address/index.mjs";import{U as ce,d as he,e as Ce,f as Se,g as ge,a as fe,s as ye}from"./shared/unix.schema-CM7mF14M.mjs";import{M as Pe,S as ke,p as Te}from"./shared/ssn.schema-l5RuYEx9.mjs";import{SnackbarProvider as De}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,o as Banner,i as BasePhoneInput,fa as BigNumber,n as BrandFilterInput,m as Button,d as CalendlyDialog,l as CalendlyDialogComponent,p as ContentWithLoader,u as CredentialRequestsEditor,ya as CustomAlertComponent,c as CustomDialog,Js as DEFAULT_FONT_FAMILY,Ks as DEFAULT_FONT_WEIGHTS,h as DateInput,C as DateRangeInput,S as DefaultInput,g as EmailInput,Pa as EmptyChartSection,ka as ErrorCodesChart,f as ExactBirthdayBanner,y as ExportToPdfButton,P as FullWidthAlert,k as IconPlayer,T as Image,D as LegalLink,b as LinkButton,Ta as LoadingChartSection,B as MandatoryEnum,Pe as MaskedAndUnmaskedSSNSchema,Da as MetricLastUpdated,ba as MonthlySignupsOverviewTable,I as OTPInput,F as OneClickForm,Ba as OneClickOverTimeChart,Ia as OneClickPercentageChart,O as OneClickPoweredByVerified,R as OriginalButton,ha as PageHeader,Ca as PageSectionHeader,Sa as Paragraph,L as PersistentDialog,N as PhoneInput,Fa as PieChart,v as PrettyPhoneInput,w as PrivacyPolicyNotice,U as QRCodeDisplay,A as RadioOption,Oa as ReasonCodesChart,M as RequiredLabel,E as ResendPhoneBanner,Ra as RiskScoreBarChart,La as RiskScorePieChart,x as SSNInput,ke as SSNSchema,ga as SectionHeader,W as SelectInput,Na as SeriesChart,va as SeriesChartLegend,wa as SeriesPercentageChart,Ua as SignupBigNumbers,Aa as SimpleBarChart,Ma as SimpleLegend,De as SnackbarProvider,Y as TestPhoneNumbersBanner,G as TextButton,H as TimezoneInput,V as Typography,ce as USDateSchema,z as VerifiedImage,j as VerifiedIncLogo,Ea as When,_ as WhenStyled,me as addressFormatter,te as alpha,ns as black,ms as blue,ds as colors,re as contrastColor,Gs as countries,ls as dangerContrast,ps as darkBlue,us as darkGreen,cs as darkGrey,hs as darkGreyContrast,Cs as darkRed,Ss as darkYellow,oe as darken,he as descriptionSchema,Ce as emailSchema,q as extractChildrenFromCredentialFieldSet,Q as extractTypesFromSchema,Se as fieldSchema,J as filterRepeatedCredentials,K as findCorrectSchemaProperty,X as findCredentialsByType,As as formatDateMMDDYYYY,Ms as formatDateMMYY,Es as formatDateToTimestamp,xs as formatExtendedDate,de as fromUSAddress,Z as getCredentialTypeDisplayInfo,$ as getCredentialValues,ge as getDateSchemaWithPastValidation,aa as getLastPathName,sa as getParentPath,Hs as getPhoneData,Vs as getPhoneDataByFieldName,ea as getReferencedSchemaNames,ie as getThemeFromPrimaryColor,fe as getUnixSchema,gs as green,fs as grey,ys as greyContrast,ta as hasMandatoryFieldEmpty,Ps as infoContrast,ra as isNewCredentialAgainstInstance,oa as isRequiredCredentialDisplayInfo,ia as isSomeFieldInputAllowed,na as isValidInputCredential,ee as kebabCaseToPretty,ks as lightBlue,Ts as lightGreen,Ds as lightGrey,bs as lightGreyContrast,Bs as lightRed,Is as lightYellow,ne as lighten,ma as makeCredentialDisplayInfoList,Xs as makeGoogleFontUrl,xa as mapMonthlySignupsOverviewTableData,Wa as mapTimeSeriesData,qs as masks,Qs as omitProperties,le as parseCountryCode,zs as parseToPhoneNational,Te as phoneSchema,Fs as red,vs as shadows,js as sortByCountryName,da as sortCredentialsBySchema,Zs as ssnFormatter,$s as ssnRegex,ye as stateSchema,Os as textDisabled,ws as theme,ae as toCapitalize,la as toOption,se as toSentenceCase,pe as toUSaddress,ue as toUSaddressPretty,Ws as toUTCMilliseconds,pa as transformToFormObject,ua as transformToFormSchema,ca as useBrandFilterInput,Ga as useCallbackRef,as as useCopyToClipboard,os as useCounter,Ha as useDebounceCallback,es as useDebounceValue,Va as useDisclosure,za as useIntersectionObserver,ja as useLocalStorage,_a as useNavigatorOnline,ts as useOnClickOutside,ss as usePrevious,rs as useQRCode,is as useResizeObserver,qa as useScript,Qa as useSearchParams,Ya as useSnackbar,Ja as useStyledQRCode,Ka as useThrottle,Xa as useToggle,Za as useWindowScroll,$a as useWindowSize,Ys as uuidToHashedColor,_s as validatePhone,Rs as warningContrast,Ls as white,Us as wrapPromise,Ns as yellow};
|