@verifiedinc-public/shared-ui-elements 6.8.2 → 7.0.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.
- 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 +7 -0
- package/dist/components/form/NewOneClickForm/core/mappers/index.d.ts +2 -0
- package/dist/components/form/NewOneClickForm/core/mappers/share.map.d.ts +10 -0
- package/dist/components/form/NewOneClickForm/core/shared/us-states.d.ts +66 -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 +4 -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/form/index.d.ts +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/ContentWithLoader-C9f_jaQJ.mjs +155 -0
- package/dist/shared/{SignupBigNumbers-Bfd44o0C.mjs → SignupBigNumbers-DpIvs8zO.mjs} +1 -1
- package/dist/shared/date.schema-CmPHY0OU.mjs +1 -0
- package/dist/shared/makeGoogleFont-pok2oDWs.mjs +1 -0
- package/dist/shared/ssn-K2aFHNWy.mjs +1 -0
- package/dist/shared/unix.schema-D7g4VIKT.mjs +1 -0
- package/dist/shared/uuidColor-e3OxEKbO.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/dist/validations/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/omitProperty-CgN5EPAy.mjs +0 -1
- package/dist/shared/ssn.schema-l5RuYEx9.mjs +0 -1
- package/dist/shared/toSentenceCase-C6ZGgmg7.mjs +0 -1
- package/dist/shared/unix.schema-CM7mF14M.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;
|
|
@@ -9,6 +9,7 @@ export * from './EmailInput';
|
|
|
9
9
|
export * from './DateRangeInput';
|
|
10
10
|
export * from './TimezoneInput';
|
|
11
11
|
export * from './OneClickForm';
|
|
12
|
+
export * from './NewOneClickForm';
|
|
12
13
|
export * from './RadioOption';
|
|
13
14
|
export * from './DefaultInput';
|
|
14
15
|
export * from './AddressInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{A as a,
|
|
1
|
+
"use strict";import{A as a,al as s,a0 as e,c as t,a9 as r,a5 as n,B as i,ab as o,aa as d,ah as l,ag as m,am as p,C,ae as c,D as u,i as h,$ as g,h as S,a7 as P,E as y,N as B,R as I,Q as f,U as F,Z as T,F as k,ak as O,I as D,b as L,L as R,M as b,X as v,g as N,k as E,a3 as A,O as x,af as w,e as M,f as V,P as W,a4 as j,_ as q,aj as H,a6 as z,S as Q,d as U,a8 as G,T as J,j as K,a as X,a1 as Y,a2 as Z,ai as _,H as $,v as aa,t as sa,p as ea,u as ta,l as ra,r as na,G as ia,z as oa,q as da,J as la,s as ma,m as pa,K as Ca,n as ca,o as ua,w as ha,V as ga,ac as Sa,W as Pa,x as ya,y as Ba,ad as Ia,Y as fa}from"../shared/ContentWithLoader-C9f_jaQJ.mjs";import{a as Fa,b as Ta,P as ka,S as Oa}from"../shared/PageSectionHeader-lc9WunC-.mjs";import{B as Da,C as La,i as Ra,E as ba,L as va,j as Na,M as Ea,g as Aa,O as xa,P as wa,R as Ma,e as Va,d as Wa,S as ja,a as qa,b as Ha,k as za,c as Qa,f as Ua,W as Ga,h as Ja,m as Ka,u as Xa}from"../shared/SignupBigNumbers-DpIvs8zO.mjs";import{SnackbarProvider as Ya}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,t as Alert,r as Backdrop,n as Banner,i as BasePhoneInput,Da as BigNumber,o as BrandFilterInput,d as Button,l as CalendlyDialog,m as CalendlyDialogComponent,p as ContentWithLoader,C as CredentialRequestsEditor,La as CustomAlertComponent,c as CustomDialog,u as DateInput,h as DateRangeInput,g as DefaultInput,S as EmailInput,Ra as EmptyChartSection,ba as ErrorCodesChart,P as ExactBirthdayBanner,y as ExportToPdfButton,B as Form,I as FormBuilder,f as FormField,F as FormFieldBuilder,T as FormProvider,k as FullWidthAlert,O as IconPlayer,D as Image,L as LegalLink,R as LinkButton,va as LoadingChartSection,b as MandatoryEnum,Na as MetricLastUpdated,Ea as MonthlySignupsOverviewTable,v as NewOneClickForm,N as OTPInput,E as OneClickForm,Aa as OneClickOverTimeChart,xa as OneClickPercentageChart,A as OneClickPoweredByVerified,x as OriginalButton,Fa as PageHeader,Ta as PageSectionHeader,ka as Paragraph,w as PersistentDialog,M as PhoneInput,wa as PieChart,V as PrettyPhoneInput,W as PrivacyPolicyNotice,j as QRCodeDisplay,q as RadioOption,Ma as ReasonCodesChart,H as RequiredLabel,z as ResendPhoneBanner,Va as RiskScoreBarChart,Wa as RiskScorePieChart,Q as SSNInput,Oa as SectionHeader,U as SelectInput,ja as SeriesChart,qa as SeriesChartLegend,Ha as SeriesPercentageChart,za as SignupBigNumbers,Qa as SimpleBarChart,Ua as SimpleLegend,Ya as SnackbarProvider,G as TestPhoneNumbersBanner,J as TextButton,K as TimezoneInput,X as Typography,Y as VerifiedImage,Z as VerifiedIncLogo,Ga as When,_ as WhenStyled,$ as extractChildrenFromCredentialFieldSet,aa as extractTypesFromSchema,sa as filterRepeatedCredentials,ea as findCorrectSchemaProperty,ta as findCredentialsByType,ra as getCredentialTypeDisplayInfo,na as getCredentialValues,ia as getLastPathName,oa as getParentPath,da as getReferencedSchemaNames,la as hasMandatoryFieldEmpty,ma as isNewCredentialAgainstInstance,pa as isRequiredCredentialDisplayInfo,Ca as isSomeFieldInputAllowed,ca as isValidInputCredential,ua as makeCredentialDisplayInfoList,Ja as mapMonthlySignupsOverviewTableData,Ka as mapTimeSeriesData,ha as sortCredentialsBySchema,ga as toCreatePatchCredentials,Sa as toOption,Pa as toShareCredentials,ya as transformToFormObject,Ba as transformToFormSchema,Ia as useBrandFilterInput,fa as useForm,Xa as useSnackbar};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{A as a,
|
|
1
|
+
"use strict";import{A as a,al as s,a0 as e,c as r,a9 as t,a5 as o,B as i,ab as n,aa as m,ah as l,ag as d,am as p,C as u,ae as c,D as h,i as C,$ as S,h as g,a7 as f,E as y,N as P,R as k,Q as T,U as D,Z as B,F,ak as b,I,b as O,L as R,M as N,X as w,g as L,k as v,a3 as U,O as A,af as M,e as E,f as x,P as Y,a4 as G,_ as W,aj as V,a6 as z,S as H,d as j,a8 as q,T as _,j as Q,a as K,a1 as Z,a2 as $,ai as J,H as X,v as aa,t as sa,p as ea,u as ra,l as ta,r as oa,G as ia,z as na,q as ma,J as la,s as da,m as pa,K as ua,n as ca,o as ha,w as Ca,V as Sa,ac as ga,W as fa,x as ya,y as Pa,ad as ka,Y as Ta}from"./shared/ContentWithLoader-C9f_jaQJ.mjs";import{a as Da,b as Ba,P as Fa,S as ba}from"./shared/PageSectionHeader-lc9WunC-.mjs";import{B as Ia,C as Oa,i as Ra,E as Na,L as wa,j as La,M as va,g as Ua,O as Aa,P as Ma,R as Ea,e as xa,d as Ya,S as Ga,a as Wa,b as Va,k as za,c as Ha,f as ja,W as qa,h as _a,m as Qa,u as Ka}from"./shared/SignupBigNumbers-DpIvs8zO.mjs";import{b as Za,k as $a,a as Ja,i as Xa,u as as,j as ss,d as es,c as rs,l as ts,e as os,f as is,g as ns,h as ms}from"./shared/useStyledQRCode-BN5wt-Zb.mjs";import{u as ls,a as ds}from"./shared/usePrevious-Dppy11px.mjs";import{a as ps,b as us,u as cs}from"./shared/useOnClickOutside-LHfgekbP.mjs";import{u as hs}from"./shared/useCounter-BV32zXDQ.mjs";import{u as Cs}from"./shared/useResizeObserver-D7K4jTvT.mjs";import{b as Ss,a as gs,x as fs,m as ys,e as Ps,d as ks,q as Ts,v as Ds,h as Bs,j as Fs,g as bs,p as Is,u as Os,n as Rs,c as Ns,l as ws,o as Ls,s as vs,f as Us,i as As,r as Ms,t as Es,k as xs,w as Ys,y as Gs}from"./shared/colors-CSvtCJK4.mjs";import{s as Ws,t as Vs}from"./shared/shadows-levwxV7v.mjs";import{wrapPromise as zs}from"./utils/wrapPromise/index.mjs";import{f as Hs,b as js,a as qs,c as _s,t as Qs,u as Ks}from"./shared/uuidColor-e3OxEKbO.mjs";import{c as Zs,g as $s,a as Js,p as Xs,s as ae,v as se}from"./shared/phone-DCga5nUC.mjs";import{masks as ee}from"./utils/masks/index.mjs";import{o as re,s as te,a as oe}from"./shared/ssn-K2aFHNWy.mjs";import{toCapitalize as ie,toSentenceCase as ne}from"./utils/string/index.mjs";import{k as me}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as le,contrastColor as de,darken as pe,getThemeFromPrimaryColor as ue,lighten as ce}from"./utils/color/index.mjs";import{addressFormatter as he,fromUSAddress as Ce,parseCountryCode as Se,toUSaddress as ge,toUSaddressPretty as fe}from"./utils/address/index.mjs";import{D as ye,a as Pe,m as ke}from"./shared/makeGoogleFont-pok2oDWs.mjs";import{M as Te,S as De,U as Be,g as Fe,p as be}from"./shared/date.schema-CmPHY0OU.mjs";import{d as Ie,e as Oe,f as Re,g as Ne,s as we}from"./shared/unix.schema-D7g4VIKT.mjs";import{SnackbarProvider as Le}from"notistack";export{a as AcceptTermsNotice,s as AdaptativeBox,e as AddressInput,r as Alert,t as Backdrop,o as Banner,i as BasePhoneInput,Ia as BigNumber,n as BrandFilterInput,m as Button,l as CalendlyDialog,d as CalendlyDialogComponent,p as ContentWithLoader,u as CredentialRequestsEditor,Oa as CustomAlertComponent,c as CustomDialog,ye as DEFAULT_FONT_FAMILY,Pe as DEFAULT_FONT_WEIGHTS,h as DateInput,C as DateRangeInput,S as DefaultInput,g as EmailInput,Ra as EmptyChartSection,Na as ErrorCodesChart,f as ExactBirthdayBanner,y as ExportToPdfButton,P as Form,k as FormBuilder,T as FormField,D as FormFieldBuilder,B as FormProvider,F as FullWidthAlert,b as IconPlayer,I as Image,O as LegalLink,R as LinkButton,wa as LoadingChartSection,N as MandatoryEnum,Te as MaskedAndUnmaskedSSNSchema,La as MetricLastUpdated,va as MonthlySignupsOverviewTable,w as NewOneClickForm,L as OTPInput,v as OneClickForm,Ua as OneClickOverTimeChart,Aa as OneClickPercentageChart,U as OneClickPoweredByVerified,A as OriginalButton,Da as PageHeader,Ba as PageSectionHeader,Fa as Paragraph,M as PersistentDialog,E as PhoneInput,Ma as PieChart,x as PrettyPhoneInput,Y as PrivacyPolicyNotice,G as QRCodeDisplay,W as RadioOption,Ea as ReasonCodesChart,V as RequiredLabel,z as ResendPhoneBanner,xa as RiskScoreBarChart,Ya as RiskScorePieChart,H as SSNInput,De as SSNSchema,ba as SectionHeader,j as SelectInput,Ga as SeriesChart,Wa as SeriesChartLegend,Va as SeriesPercentageChart,za as SignupBigNumbers,Ha as SimpleBarChart,ja as SimpleLegend,Le as SnackbarProvider,q as TestPhoneNumbersBanner,_ as TextButton,Q as TimezoneInput,K as Typography,Be as USDateSchema,Z as VerifiedImage,$ as VerifiedIncLogo,qa as When,J as WhenStyled,he as addressFormatter,le as alpha,Ss as black,gs as blue,fs as colors,de as contrastColor,Zs as countries,ys as dangerContrast,Ps as darkBlue,ks as darkGreen,Ts as darkGrey,Ds as darkGreyContrast,Bs as darkRed,Fs as darkYellow,pe as darken,Ie as descriptionSchema,Oe as emailSchema,X as extractChildrenFromCredentialFieldSet,aa as extractTypesFromSchema,Re as fieldSchema,sa as filterRepeatedCredentials,ea as findCorrectSchemaProperty,ra as findCredentialsByType,Hs as formatDateMMDDYYYY,js as formatDateMMYY,qs as formatDateToTimestamp,_s as formatExtendedDate,Ce as fromUSAddress,ta as getCredentialTypeDisplayInfo,oa as getCredentialValues,Fe as getDateSchemaWithPastValidation,ia as getLastPathName,na as getParentPath,$s as getPhoneData,Js as getPhoneDataByFieldName,ma as getReferencedSchemaNames,ue as getThemeFromPrimaryColor,Ne as getUnixSchema,bs as green,Is as grey,Os as greyContrast,la as hasMandatoryFieldEmpty,Rs as infoContrast,da as isNewCredentialAgainstInstance,pa as isRequiredCredentialDisplayInfo,ua as isSomeFieldInputAllowed,ca as isValidInputCredential,me as kebabCaseToPretty,Ns as lightBlue,ws as lightGreen,Ls as lightGrey,vs as lightGreyContrast,Us as lightRed,As as lightYellow,ce as lighten,ha as makeCredentialDisplayInfoList,ke as makeGoogleFontUrl,_a as mapMonthlySignupsOverviewTableData,Qa as mapTimeSeriesData,ee as masks,re as omitProperties,Se as parseCountryCode,Xs as parseToPhoneNational,be as phoneSchema,Ms as red,Ws as shadows,ae as sortByCountryName,Ca as sortCredentialsBySchema,te as ssnFormatter,oe as ssnRegex,we as stateSchema,Es as textDisabled,Vs as theme,ie as toCapitalize,Sa as toCreatePatchCredentials,ga as toOption,ne as toSentenceCase,fa as toShareCredentials,ge as toUSaddress,fe as toUSaddressPretty,Qs as toUTCMilliseconds,ya as transformToFormObject,Pa as transformToFormSchema,ka as useBrandFilterInput,Za as useCallbackRef,ls as useCopyToClipboard,hs as useCounter,$a as useDebounceCallback,ps as useDebounceValue,Ja as useDisclosure,Ta as useForm,Xa as useIntersectionObserver,as as useLocalStorage,ss as useNavigatorOnline,us as useOnClickOutside,ds as usePrevious,cs as useQRCode,Cs as useResizeObserver,es as useScript,rs as useSearchParams,Ka as useSnackbar,ts as useStyledQRCode,os as useThrottle,is as useToggle,ns as useWindowScroll,ms as useWindowSize,Ks as uuidToHashedColor,se as validatePhone,xs as warningContrast,Ys as white,zs as wrapPromise,Gs as yellow};
|