@verifiedinc-public/shared-ui-elements 6.8.1 → 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-ccinxVLM.mjs → SignupBigNumbers-D7VQsFhd.mjs} +2 -2
- 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 +6 -4
- package/dist/shared/ContentWithLoader-BGnFMrdh.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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{B as a,i as s,E as e,L as r,j as i,M as t,g as C,O as h,P as n,R as o,e as S,d as m,S as g,a as p,b as c,k as d,c as l,f as O,h as b,m as k}from"../../shared/SignupBigNumbers-
|
|
1
|
+
"use strict";import{B as a,i as s,E as e,L as r,j as i,M as t,g as C,O as h,P as n,R as o,e as S,d as m,S as g,a as p,b as c,k as d,c as l,f as O,h as b,m as k}from"../../shared/SignupBigNumbers-D7VQsFhd.mjs";export{a as BigNumber,s as EmptyChartSection,e as ErrorCodesChart,r as LoadingChartSection,i as MetricLastUpdated,t as MonthlySignupsOverviewTable,C as OneClickOverTimeChart,h as OneClickPercentageChart,n as PieChart,o as ReasonCodesChart,S as RiskScoreBarChart,m as RiskScorePieChart,g as SeriesChart,p as SeriesChartLegend,c as SeriesPercentageChart,d as SignupBigNumbers,l as SimpleBarChart,O as SimpleLegend,b as mapMonthlySignupsOverviewTableData,k as mapTimeSeriesData};
|
|
@@ -5,15 +5,13 @@ type DataFieldAddressInputReturn = {
|
|
|
5
5
|
suggestions: PlaceSuggestion[];
|
|
6
6
|
isPending: boolean;
|
|
7
7
|
isFetchingPlace: boolean;
|
|
8
|
-
error: string | undefined;
|
|
9
8
|
handleInputChange: (newInputValue: string, changeOptions?: {
|
|
10
9
|
shouldValidate?: boolean;
|
|
11
10
|
}) => void;
|
|
12
11
|
handleOptionChange: (option: Option) => Promise<void>;
|
|
13
12
|
handleClear: () => void;
|
|
14
13
|
};
|
|
15
|
-
export declare function useDataFieldAddressInput({
|
|
16
|
-
name: string;
|
|
14
|
+
export declare function useDataFieldAddressInput({ defaultValue: _defaultValue, onChange, }: {
|
|
17
15
|
defaultValue: Address | null;
|
|
18
16
|
onChange: (value: string | Address | null, changeOptions?: {
|
|
19
17
|
shouldValidate?: boolean;
|
|
@@ -2,12 +2,12 @@ import { ReactElement, ComponentType } from 'react';
|
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
3
|
import { Address } from './types';
|
|
4
4
|
export type AddressInputProps = {
|
|
5
|
-
name: string;
|
|
6
5
|
defaultValue: Address | null;
|
|
7
6
|
onChange: (value: string | Address | null, changeOptions?: {
|
|
8
7
|
shouldValidate?: boolean;
|
|
9
8
|
}) => void;
|
|
10
9
|
label?: TextFieldProps['label'];
|
|
10
|
+
error?: boolean | undefined;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
variant?: TextFieldProps['variant'];
|
|
13
13
|
size?: TextFieldProps['size'];
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { TextFieldDefinition, CompositeFieldDefinition, ExtractedFieldValueType } from './types';
|
|
2
|
+
declare const addressKey = "address";
|
|
3
|
+
declare const line1Key = "line1";
|
|
4
|
+
declare const line2Key = "line2";
|
|
5
|
+
declare const cityKey = "city";
|
|
6
|
+
declare const stateKey = "state";
|
|
7
|
+
declare const countryKey = "country";
|
|
8
|
+
declare const zipCodeKey = "zipCode";
|
|
9
|
+
export declare const line1: {
|
|
10
|
+
key: string;
|
|
11
|
+
characteristics: {
|
|
12
|
+
inputType: "text";
|
|
13
|
+
label: string;
|
|
14
|
+
placeholder: string;
|
|
15
|
+
};
|
|
16
|
+
zodSchema: import('zod').ZodString;
|
|
17
|
+
};
|
|
18
|
+
export declare const line2: {
|
|
19
|
+
key: string;
|
|
20
|
+
characteristics: {
|
|
21
|
+
inputType: "text";
|
|
22
|
+
label: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
};
|
|
25
|
+
zodSchema: import('zod').ZodString;
|
|
26
|
+
};
|
|
27
|
+
export declare const city: {
|
|
28
|
+
key: string;
|
|
29
|
+
characteristics: {
|
|
30
|
+
inputType: "text";
|
|
31
|
+
label: string;
|
|
32
|
+
placeholder: string;
|
|
33
|
+
};
|
|
34
|
+
zodSchema: import('zod').ZodString;
|
|
35
|
+
};
|
|
36
|
+
export declare const state: {
|
|
37
|
+
key: string;
|
|
38
|
+
characteristics: {
|
|
39
|
+
inputType: "text";
|
|
40
|
+
label: string;
|
|
41
|
+
placeholder: string;
|
|
42
|
+
};
|
|
43
|
+
zodSchema: import('zod').ZodEnum<[string, ...string[]]>;
|
|
44
|
+
};
|
|
45
|
+
export declare const country: {
|
|
46
|
+
key: string;
|
|
47
|
+
characteristics: {
|
|
48
|
+
inputType: "text";
|
|
49
|
+
label: string;
|
|
50
|
+
placeholder: string;
|
|
51
|
+
};
|
|
52
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodString, "US", string>;
|
|
53
|
+
};
|
|
54
|
+
export declare const zipCode: {
|
|
55
|
+
key: string;
|
|
56
|
+
characteristics: {
|
|
57
|
+
inputType: "text";
|
|
58
|
+
label: string;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
};
|
|
61
|
+
zodSchema: import('zod').ZodString;
|
|
62
|
+
};
|
|
63
|
+
export declare const address: {
|
|
64
|
+
key: string;
|
|
65
|
+
characteristics: {
|
|
66
|
+
inputType: "composite";
|
|
67
|
+
label: string;
|
|
68
|
+
defaultOrder: readonly ["line1", "line2", "city", "state", "country", "zipCode"];
|
|
69
|
+
};
|
|
70
|
+
children: {
|
|
71
|
+
line1: {
|
|
72
|
+
key: string;
|
|
73
|
+
characteristics: {
|
|
74
|
+
inputType: "text";
|
|
75
|
+
label: string;
|
|
76
|
+
placeholder: string;
|
|
77
|
+
};
|
|
78
|
+
zodSchema: import('zod').ZodString;
|
|
79
|
+
};
|
|
80
|
+
line2: {
|
|
81
|
+
key: string;
|
|
82
|
+
characteristics: {
|
|
83
|
+
inputType: "text";
|
|
84
|
+
label: string;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
};
|
|
87
|
+
zodSchema: import('zod').ZodString;
|
|
88
|
+
};
|
|
89
|
+
city: {
|
|
90
|
+
key: string;
|
|
91
|
+
characteristics: {
|
|
92
|
+
inputType: "text";
|
|
93
|
+
label: string;
|
|
94
|
+
placeholder: string;
|
|
95
|
+
};
|
|
96
|
+
zodSchema: import('zod').ZodString;
|
|
97
|
+
};
|
|
98
|
+
state: {
|
|
99
|
+
key: string;
|
|
100
|
+
characteristics: {
|
|
101
|
+
inputType: "text";
|
|
102
|
+
label: string;
|
|
103
|
+
placeholder: string;
|
|
104
|
+
};
|
|
105
|
+
zodSchema: import('zod').ZodEnum<[string, ...string[]]>;
|
|
106
|
+
};
|
|
107
|
+
country: {
|
|
108
|
+
key: string;
|
|
109
|
+
characteristics: {
|
|
110
|
+
inputType: "text";
|
|
111
|
+
label: string;
|
|
112
|
+
placeholder: string;
|
|
113
|
+
};
|
|
114
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodString, "US", string>;
|
|
115
|
+
};
|
|
116
|
+
zipCode: {
|
|
117
|
+
key: string;
|
|
118
|
+
characteristics: {
|
|
119
|
+
inputType: "text";
|
|
120
|
+
label: string;
|
|
121
|
+
placeholder: string;
|
|
122
|
+
};
|
|
123
|
+
zodSchema: import('zod').ZodString;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodObject<{
|
|
127
|
+
line1: import('zod').ZodOptional<import('zod').ZodString>;
|
|
128
|
+
line2: import('zod').ZodOptional<import('zod').ZodString>;
|
|
129
|
+
city: import('zod').ZodOptional<import('zod').ZodString>;
|
|
130
|
+
state: import('zod').ZodOptional<import('zod').ZodEnum<[string, ...string[]]>>;
|
|
131
|
+
country: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodString, "US", string>>;
|
|
132
|
+
zipCode: import('zod').ZodOptional<import('zod').ZodString>;
|
|
133
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
134
|
+
country?: "US" | undefined;
|
|
135
|
+
state?: string | undefined;
|
|
136
|
+
line1?: string | undefined;
|
|
137
|
+
line2?: string | undefined;
|
|
138
|
+
city?: string | undefined;
|
|
139
|
+
zipCode?: string | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
country?: string | undefined;
|
|
142
|
+
state?: string | undefined;
|
|
143
|
+
line1?: string | undefined;
|
|
144
|
+
line2?: string | undefined;
|
|
145
|
+
city?: string | undefined;
|
|
146
|
+
zipCode?: string | undefined;
|
|
147
|
+
}>, {
|
|
148
|
+
country?: "US" | undefined;
|
|
149
|
+
state?: string | undefined;
|
|
150
|
+
line1?: string | undefined;
|
|
151
|
+
line2?: string | undefined;
|
|
152
|
+
city?: string | undefined;
|
|
153
|
+
zipCode?: string | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
country?: string | undefined;
|
|
156
|
+
state?: string | undefined;
|
|
157
|
+
line1?: string | undefined;
|
|
158
|
+
line2?: string | undefined;
|
|
159
|
+
city?: string | undefined;
|
|
160
|
+
zipCode?: string | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
format: (value: {
|
|
163
|
+
line1?: string;
|
|
164
|
+
line2?: string;
|
|
165
|
+
city?: string;
|
|
166
|
+
state?: string;
|
|
167
|
+
country?: string;
|
|
168
|
+
zipCode?: string;
|
|
169
|
+
}) => string | null;
|
|
170
|
+
};
|
|
171
|
+
declare module '../declarations' {
|
|
172
|
+
interface FieldSchemaDefinitions {
|
|
173
|
+
address: CompositeFieldDefinition<typeof addressKey>;
|
|
174
|
+
line1: TextFieldDefinition<typeof line1Key>;
|
|
175
|
+
line2: TextFieldDefinition<typeof line2Key>;
|
|
176
|
+
city: TextFieldDefinition<typeof cityKey>;
|
|
177
|
+
state: TextFieldDefinition<typeof stateKey>;
|
|
178
|
+
country: TextFieldDefinition<typeof countryKey>;
|
|
179
|
+
zipCode: TextFieldDefinition<typeof zipCodeKey>;
|
|
180
|
+
}
|
|
181
|
+
interface FieldValueDefinitions {
|
|
182
|
+
address: ExtractedFieldValueType<typeof address>;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DateFieldDefinition, ExtractedFieldValueType } from './types';
|
|
2
|
+
declare const birthDateKey = "birthDate";
|
|
3
|
+
export declare const birthDate: {
|
|
4
|
+
key: string;
|
|
5
|
+
characteristics: {
|
|
6
|
+
inputType: "date";
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
};
|
|
10
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>, string, string>;
|
|
11
|
+
format: (value: string) => string;
|
|
12
|
+
};
|
|
13
|
+
declare module '../declarations' {
|
|
14
|
+
interface FieldSchemaDefinitions {
|
|
15
|
+
birthDate: DateFieldDefinition<typeof birthDateKey>;
|
|
16
|
+
}
|
|
17
|
+
interface FieldValueDefinitions {
|
|
18
|
+
birthDate: ExtractedFieldValueType<typeof birthDate>;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { TextFieldDefinition, CompositeFieldDefinition, ExtractedFieldValueType, SelectFieldDefinition, DateFieldDefinition } from './types';
|
|
2
|
+
declare const driversLicenseKey = "driversLicense";
|
|
3
|
+
declare const documentNumberKey = "documentNumber";
|
|
4
|
+
declare const issuanceStateKey = "issuanceState";
|
|
5
|
+
declare const issuanceDateKey = "issuanceDate";
|
|
6
|
+
declare const expirationDateKey = "expirationDate";
|
|
7
|
+
export declare const documentNumber: {
|
|
8
|
+
key: string;
|
|
9
|
+
characteristics: {
|
|
10
|
+
inputType: "text";
|
|
11
|
+
label: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
};
|
|
14
|
+
zodSchema: import('zod').ZodString;
|
|
15
|
+
};
|
|
16
|
+
export declare const issuanceState: {
|
|
17
|
+
key: string;
|
|
18
|
+
characteristics: {
|
|
19
|
+
inputType: "select";
|
|
20
|
+
label: string;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
options: {
|
|
23
|
+
value: import('../shared/us-states').USStateCode;
|
|
24
|
+
label: import('../shared/us-states').USStateName;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
zodSchema: import('zod').ZodEnum<[string, ...string[]]>;
|
|
28
|
+
format: (value: string) => "Alabama" | "Alaska" | "American Samoa" | "Arizona" | "Arkansas" | "California" | "Colorado" | "Connecticut" | "Delaware" | "District Of Columbia" | "Federated States Of Micronesia" | "Florida" | "Georgia" | "Guam" | "Hawaii" | "Idaho" | "Illinois" | "Indiana" | "Iowa" | "Kansas" | "Kentucky" | "Louisiana" | "Maine" | "Marshall Islands" | "Maryland" | "Massachusetts" | "Michigan" | "Minnesota" | "Mississippi" | "Missouri" | "Montana" | "Nebraska" | "Nevada" | "New Hampshire" | "New Jersey" | "New Mexico" | "New York" | "North Carolina" | "North Dakota" | "Northern Mariana Islands" | "Ohio" | "Oklahoma" | "Oregon" | "Palau" | "Pennsylvania" | "Puerto Rico" | "Rhode Island" | "South Carolina" | "South Dakota" | "Tennessee" | "Texas" | "Utah" | "Vermont" | "Virgin Islands" | "Virginia" | "Washington" | "West Virginia" | "Wisconsin" | "Wyoming";
|
|
29
|
+
};
|
|
30
|
+
export declare const issuanceDate: {
|
|
31
|
+
key: string;
|
|
32
|
+
characteristics: {
|
|
33
|
+
inputType: "date";
|
|
34
|
+
label: string;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
};
|
|
37
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
|
|
38
|
+
format: (value: string) => string;
|
|
39
|
+
};
|
|
40
|
+
export declare const expirationDate: {
|
|
41
|
+
key: string;
|
|
42
|
+
characteristics: {
|
|
43
|
+
inputType: "date";
|
|
44
|
+
label: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
};
|
|
47
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
|
|
48
|
+
format: (value: string) => string;
|
|
49
|
+
};
|
|
50
|
+
export declare const driversLicense: {
|
|
51
|
+
key: string;
|
|
52
|
+
characteristics: {
|
|
53
|
+
inputType: "composite";
|
|
54
|
+
label: string;
|
|
55
|
+
defaultOrder: readonly ["documentNumber", "issuanceState", "issuanceDate", "expirationDate", "address"];
|
|
56
|
+
};
|
|
57
|
+
children: {
|
|
58
|
+
documentNumber: {
|
|
59
|
+
key: string;
|
|
60
|
+
characteristics: {
|
|
61
|
+
inputType: "text";
|
|
62
|
+
label: string;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
};
|
|
65
|
+
zodSchema: import('zod').ZodString;
|
|
66
|
+
};
|
|
67
|
+
issuanceState: {
|
|
68
|
+
key: string;
|
|
69
|
+
characteristics: {
|
|
70
|
+
inputType: "select";
|
|
71
|
+
label: string;
|
|
72
|
+
placeholder: string;
|
|
73
|
+
options: {
|
|
74
|
+
value: import('../shared/us-states').USStateCode;
|
|
75
|
+
label: import('../shared/us-states').USStateName;
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
zodSchema: import('zod').ZodEnum<[string, ...string[]]>;
|
|
79
|
+
format: (value: string) => "Alabama" | "Alaska" | "American Samoa" | "Arizona" | "Arkansas" | "California" | "Colorado" | "Connecticut" | "Delaware" | "District Of Columbia" | "Federated States Of Micronesia" | "Florida" | "Georgia" | "Guam" | "Hawaii" | "Idaho" | "Illinois" | "Indiana" | "Iowa" | "Kansas" | "Kentucky" | "Louisiana" | "Maine" | "Marshall Islands" | "Maryland" | "Massachusetts" | "Michigan" | "Minnesota" | "Mississippi" | "Missouri" | "Montana" | "Nebraska" | "Nevada" | "New Hampshire" | "New Jersey" | "New Mexico" | "New York" | "North Carolina" | "North Dakota" | "Northern Mariana Islands" | "Ohio" | "Oklahoma" | "Oregon" | "Palau" | "Pennsylvania" | "Puerto Rico" | "Rhode Island" | "South Carolina" | "South Dakota" | "Tennessee" | "Texas" | "Utah" | "Vermont" | "Virgin Islands" | "Virginia" | "Washington" | "West Virginia" | "Wisconsin" | "Wyoming";
|
|
80
|
+
};
|
|
81
|
+
issuanceDate: {
|
|
82
|
+
key: string;
|
|
83
|
+
characteristics: {
|
|
84
|
+
inputType: "date";
|
|
85
|
+
label: string;
|
|
86
|
+
placeholder: string;
|
|
87
|
+
};
|
|
88
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
|
|
89
|
+
format: (value: string) => string;
|
|
90
|
+
};
|
|
91
|
+
expirationDate: {
|
|
92
|
+
key: string;
|
|
93
|
+
characteristics: {
|
|
94
|
+
inputType: "date";
|
|
95
|
+
label: string;
|
|
96
|
+
placeholder: string;
|
|
97
|
+
};
|
|
98
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
|
|
99
|
+
format: (value: string) => string;
|
|
100
|
+
};
|
|
101
|
+
address: {
|
|
102
|
+
key: string;
|
|
103
|
+
characteristics: {
|
|
104
|
+
inputType: "composite";
|
|
105
|
+
label: string;
|
|
106
|
+
defaultOrder: readonly ["line1", "line2", "city", "state", "country", "zipCode"];
|
|
107
|
+
};
|
|
108
|
+
children: {
|
|
109
|
+
line1: {
|
|
110
|
+
key: string;
|
|
111
|
+
characteristics: {
|
|
112
|
+
inputType: "text";
|
|
113
|
+
label: string;
|
|
114
|
+
placeholder: string;
|
|
115
|
+
};
|
|
116
|
+
zodSchema: import('zod').ZodString;
|
|
117
|
+
};
|
|
118
|
+
line2: {
|
|
119
|
+
key: string;
|
|
120
|
+
characteristics: {
|
|
121
|
+
inputType: "text";
|
|
122
|
+
label: string;
|
|
123
|
+
placeholder: string;
|
|
124
|
+
};
|
|
125
|
+
zodSchema: import('zod').ZodString;
|
|
126
|
+
};
|
|
127
|
+
city: {
|
|
128
|
+
key: string;
|
|
129
|
+
characteristics: {
|
|
130
|
+
inputType: "text";
|
|
131
|
+
label: string;
|
|
132
|
+
placeholder: string;
|
|
133
|
+
};
|
|
134
|
+
zodSchema: import('zod').ZodString;
|
|
135
|
+
};
|
|
136
|
+
state: {
|
|
137
|
+
key: string;
|
|
138
|
+
characteristics: {
|
|
139
|
+
inputType: "text";
|
|
140
|
+
label: string;
|
|
141
|
+
placeholder: string;
|
|
142
|
+
};
|
|
143
|
+
zodSchema: import('zod').ZodEnum<[string, ...string[]]>;
|
|
144
|
+
};
|
|
145
|
+
country: {
|
|
146
|
+
key: string;
|
|
147
|
+
characteristics: {
|
|
148
|
+
inputType: "text";
|
|
149
|
+
label: string;
|
|
150
|
+
placeholder: string;
|
|
151
|
+
};
|
|
152
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodString, "US", string>;
|
|
153
|
+
};
|
|
154
|
+
zipCode: {
|
|
155
|
+
key: string;
|
|
156
|
+
characteristics: {
|
|
157
|
+
inputType: "text";
|
|
158
|
+
label: string;
|
|
159
|
+
placeholder: string;
|
|
160
|
+
};
|
|
161
|
+
zodSchema: import('zod').ZodString;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
zodSchema: import('zod').ZodEffects<import('zod').ZodObject<{
|
|
165
|
+
line1: import('zod').ZodOptional<import('zod').ZodString>;
|
|
166
|
+
line2: import('zod').ZodOptional<import('zod').ZodString>;
|
|
167
|
+
city: import('zod').ZodOptional<import('zod').ZodString>;
|
|
168
|
+
state: import('zod').ZodOptional<import('zod').ZodEnum<[string, ...string[]]>>;
|
|
169
|
+
country: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodString, "US", string>>;
|
|
170
|
+
zipCode: import('zod').ZodOptional<import('zod').ZodString>;
|
|
171
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
172
|
+
country?: "US" | undefined;
|
|
173
|
+
state?: string | undefined;
|
|
174
|
+
line1?: string | undefined;
|
|
175
|
+
line2?: string | undefined;
|
|
176
|
+
city?: string | undefined;
|
|
177
|
+
zipCode?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
country?: string | undefined;
|
|
180
|
+
state?: string | undefined;
|
|
181
|
+
line1?: string | undefined;
|
|
182
|
+
line2?: string | undefined;
|
|
183
|
+
city?: string | undefined;
|
|
184
|
+
zipCode?: string | undefined;
|
|
185
|
+
}>, {
|
|
186
|
+
country?: "US" | undefined;
|
|
187
|
+
state?: string | undefined;
|
|
188
|
+
line1?: string | undefined;
|
|
189
|
+
line2?: string | undefined;
|
|
190
|
+
city?: string | undefined;
|
|
191
|
+
zipCode?: string | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
country?: string | undefined;
|
|
194
|
+
state?: string | undefined;
|
|
195
|
+
line1?: string | undefined;
|
|
196
|
+
line2?: string | undefined;
|
|
197
|
+
city?: string | undefined;
|
|
198
|
+
zipCode?: string | undefined;
|
|
199
|
+
}>;
|
|
200
|
+
format: (value: {
|
|
201
|
+
line1?: string;
|
|
202
|
+
line2?: string;
|
|
203
|
+
city?: string;
|
|
204
|
+
state?: string;
|
|
205
|
+
country?: string;
|
|
206
|
+
zipCode?: string;
|
|
207
|
+
}) => string | null;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
zodSchema: import('zod').ZodObject<{
|
|
211
|
+
documentNumber: import('zod').ZodString;
|
|
212
|
+
issuanceState: import('zod').ZodEnum<[string, ...string[]]>;
|
|
213
|
+
issuanceDate: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
|
|
214
|
+
expirationDate: import('zod').ZodEffects<import('zod').ZodEffects<import('zod').ZodString, string, string>, string, string>;
|
|
215
|
+
address: import('zod').ZodEffects<import('zod').ZodObject<{
|
|
216
|
+
line1: import('zod').ZodOptional<import('zod').ZodString>;
|
|
217
|
+
line2: import('zod').ZodOptional<import('zod').ZodString>;
|
|
218
|
+
city: import('zod').ZodOptional<import('zod').ZodString>;
|
|
219
|
+
state: import('zod').ZodOptional<import('zod').ZodEnum<[string, ...string[]]>>;
|
|
220
|
+
country: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodString, "US", string>>;
|
|
221
|
+
zipCode: import('zod').ZodOptional<import('zod').ZodString>;
|
|
222
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
223
|
+
country?: "US" | undefined;
|
|
224
|
+
state?: string | undefined;
|
|
225
|
+
line1?: string | undefined;
|
|
226
|
+
line2?: string | undefined;
|
|
227
|
+
city?: string | undefined;
|
|
228
|
+
zipCode?: string | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
country?: string | undefined;
|
|
231
|
+
state?: string | undefined;
|
|
232
|
+
line1?: string | undefined;
|
|
233
|
+
line2?: string | undefined;
|
|
234
|
+
city?: string | undefined;
|
|
235
|
+
zipCode?: string | undefined;
|
|
236
|
+
}>, {
|
|
237
|
+
country?: "US" | undefined;
|
|
238
|
+
state?: string | undefined;
|
|
239
|
+
line1?: string | undefined;
|
|
240
|
+
line2?: string | undefined;
|
|
241
|
+
city?: string | undefined;
|
|
242
|
+
zipCode?: string | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
country?: string | undefined;
|
|
245
|
+
state?: string | undefined;
|
|
246
|
+
line1?: string | undefined;
|
|
247
|
+
line2?: string | undefined;
|
|
248
|
+
city?: string | undefined;
|
|
249
|
+
zipCode?: string | undefined;
|
|
250
|
+
}>;
|
|
251
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
252
|
+
address: {
|
|
253
|
+
country?: "US" | undefined;
|
|
254
|
+
state?: string | undefined;
|
|
255
|
+
line1?: string | undefined;
|
|
256
|
+
line2?: string | undefined;
|
|
257
|
+
city?: string | undefined;
|
|
258
|
+
zipCode?: string | undefined;
|
|
259
|
+
};
|
|
260
|
+
documentNumber: string;
|
|
261
|
+
issuanceState: string;
|
|
262
|
+
issuanceDate: string;
|
|
263
|
+
expirationDate: string;
|
|
264
|
+
}, {
|
|
265
|
+
address: {
|
|
266
|
+
country?: string | undefined;
|
|
267
|
+
state?: string | undefined;
|
|
268
|
+
line1?: string | undefined;
|
|
269
|
+
line2?: string | undefined;
|
|
270
|
+
city?: string | undefined;
|
|
271
|
+
zipCode?: string | undefined;
|
|
272
|
+
};
|
|
273
|
+
documentNumber: string;
|
|
274
|
+
issuanceState: string;
|
|
275
|
+
issuanceDate: string;
|
|
276
|
+
expirationDate: string;
|
|
277
|
+
}>;
|
|
278
|
+
};
|
|
279
|
+
declare module '../declarations' {
|
|
280
|
+
interface FieldSchemaDefinitions {
|
|
281
|
+
driversLicense: CompositeFieldDefinition<typeof driversLicenseKey>;
|
|
282
|
+
documentNumber: TextFieldDefinition<typeof documentNumberKey>;
|
|
283
|
+
issuanceState: SelectFieldDefinition<typeof issuanceStateKey>;
|
|
284
|
+
issuanceDate: DateFieldDefinition<typeof issuanceDateKey>;
|
|
285
|
+
expirationDate: DateFieldDefinition<typeof expirationDateKey>;
|
|
286
|
+
}
|
|
287
|
+
interface FieldValueDefinitions {
|
|
288
|
+
driversLicense: ExtractedFieldValueType<typeof driversLicense>;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { TextFieldDefinition, CompositeFieldDefinition, ExtractedFieldValueType } from './types';
|
|
2
|
+
declare const fullNameKey = "fullName";
|
|
3
|
+
declare const firstNameKey = "firstName";
|
|
4
|
+
declare const lastNameKey = "lastName";
|
|
5
|
+
declare const middleNameKey = "middleName";
|
|
6
|
+
export declare const firstName: {
|
|
7
|
+
key: string;
|
|
8
|
+
characteristics: {
|
|
9
|
+
inputType: "text";
|
|
10
|
+
label: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
};
|
|
13
|
+
zodSchema: import('zod').ZodString;
|
|
14
|
+
};
|
|
15
|
+
export declare const lastName: {
|
|
16
|
+
key: string;
|
|
17
|
+
characteristics: {
|
|
18
|
+
inputType: "text";
|
|
19
|
+
label: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
};
|
|
22
|
+
zodSchema: import('zod').ZodString;
|
|
23
|
+
};
|
|
24
|
+
export declare const middleName: {
|
|
25
|
+
key: string;
|
|
26
|
+
characteristics: {
|
|
27
|
+
inputType: "text";
|
|
28
|
+
label: string;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
};
|
|
31
|
+
zodSchema: import('zod').ZodString;
|
|
32
|
+
};
|
|
33
|
+
export declare const fullName: {
|
|
34
|
+
key: string;
|
|
35
|
+
characteristics: {
|
|
36
|
+
inputType: "composite";
|
|
37
|
+
label: string;
|
|
38
|
+
defaultOrder: readonly ["firstName", "middleName", "lastName"];
|
|
39
|
+
};
|
|
40
|
+
children: {
|
|
41
|
+
firstName: {
|
|
42
|
+
key: string;
|
|
43
|
+
characteristics: {
|
|
44
|
+
inputType: "text";
|
|
45
|
+
label: string;
|
|
46
|
+
placeholder: string;
|
|
47
|
+
};
|
|
48
|
+
zodSchema: import('zod').ZodString;
|
|
49
|
+
};
|
|
50
|
+
lastName: {
|
|
51
|
+
key: string;
|
|
52
|
+
characteristics: {
|
|
53
|
+
inputType: "text";
|
|
54
|
+
label: string;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
};
|
|
57
|
+
zodSchema: import('zod').ZodString;
|
|
58
|
+
};
|
|
59
|
+
middleName: {
|
|
60
|
+
key: string;
|
|
61
|
+
characteristics: {
|
|
62
|
+
inputType: "text";
|
|
63
|
+
label: string;
|
|
64
|
+
placeholder: string;
|
|
65
|
+
};
|
|
66
|
+
zodSchema: import('zod').ZodString;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
zodSchema: import('zod').ZodObject<{
|
|
70
|
+
firstName: import('zod').ZodString;
|
|
71
|
+
lastName: import('zod').ZodString;
|
|
72
|
+
middleName: import('zod').ZodString;
|
|
73
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
74
|
+
firstName: string;
|
|
75
|
+
lastName: string;
|
|
76
|
+
middleName: string;
|
|
77
|
+
}, {
|
|
78
|
+
firstName: string;
|
|
79
|
+
lastName: string;
|
|
80
|
+
middleName: string;
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
declare module '../declarations' {
|
|
84
|
+
interface FieldSchemaDefinitions {
|
|
85
|
+
fullName: CompositeFieldDefinition<typeof fullNameKey>;
|
|
86
|
+
firstName: TextFieldDefinition<typeof firstNameKey>;
|
|
87
|
+
lastName: TextFieldDefinition<typeof lastNameKey>;
|
|
88
|
+
middleName: TextFieldDefinition<typeof middleNameKey>;
|
|
89
|
+
}
|
|
90
|
+
interface FieldValueDefinitions {
|
|
91
|
+
fullName: ExtractedFieldValueType<typeof fullName>;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export {};
|