@justifi/webcomponents 4.0.5 → 4.0.6
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/CHANGELOG.md +7 -0
- package/dist/cjs/Api-11362403.js +111 -0
- package/dist/cjs/Api-11362403.js.map +1 -0
- package/dist/cjs/Payment-ac4dea02.js +2 -0
- package/dist/cjs/Payment-ac4dea02.js.map +1 -0
- package/dist/cjs/{index-051b6dd0.js → index-34312a38.js} +185 -21
- package/dist/cjs/index-34312a38.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/{index.esm-8df4906e.js → index.esm-bcf90c56.js} +2 -244
- package/dist/cjs/index.esm-bcf90c56.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -1
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +8 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-address.cjs.entry.js +7 -4
- package/dist/cjs/justifi-business-address.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-info.cjs.entry.js +174 -0
- package/dist/cjs/justifi-business-info.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +12 -7
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -108
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/select-input_2.cjs.entry.js +5 -3
- package/dist/cjs/select-input_2.cjs.entry.js.map +1 -0
- package/dist/cjs/state-options-efeaa587.js +248 -0
- package/dist/cjs/state-options-efeaa587.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +12 -3
- package/dist/cjs/webcomponents.cjs.js.map +1 -0
- package/dist/collection/api/Api.js +2 -1
- package/dist/collection/api/Api.js.map +1 -0
- package/dist/collection/api/Pagination.js +1 -0
- package/dist/collection/api/Pagination.js.map +1 -0
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/Payment.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -0
- package/dist/collection/api/mockData/MockPayments.js +1 -0
- package/dist/collection/api/mockData/MockPayments.js.map +1 -0
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +1 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +14 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js.map +1 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +48 -0
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js.map +1 -0
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -0
- package/dist/collection/components/billing-form/billing-form-schema.js.map +1 -0
- package/dist/collection/components/billing-form/billing-form.css +337 -0
- package/dist/collection/components/billing-form/billing-form.js +1 -0
- package/dist/collection/components/billing-form/billing-form.js.map +1 -0
- package/dist/collection/components/billing-form/billing-form.stories.js +1 -0
- package/dist/collection/components/billing-form/billing-form.stories.js.map +1 -0
- package/dist/collection/components/billing-form/state-options.js +1 -0
- package/dist/collection/components/billing-form/state-options.js.map +1 -0
- package/dist/collection/components/billing-form/test/billing-form.spec.js +31 -0
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -0
- package/dist/collection/components/business-address/business-address-schema.js +1 -0
- package/dist/collection/components/business-address/business-address-schema.js.map +1 -0
- package/dist/collection/components/business-address/business-address.css +337 -0
- package/dist/collection/components/business-address/business-address.js +1 -0
- package/dist/collection/components/business-address/business-address.js.map +1 -0
- package/dist/collection/components/business-address/test/business-address.e2e.js +10 -0
- package/dist/collection/components/business-address/test/business-address.e2e.js.map +1 -0
- package/dist/collection/components/business-address/test/business-address.spec.js +18 -0
- package/dist/collection/components/business-address/test/business-address.spec.js.map +1 -0
- package/dist/collection/components/business-info/business-info-schema.js +94 -0
- package/dist/collection/components/business-info/business-info-schema.js.map +1 -0
- package/dist/collection/components/business-info/business-info.css +2274 -0
- package/dist/collection/components/business-info/business-info.js +168 -0
- package/dist/collection/components/business-info/business-info.js.map +1 -0
- package/dist/collection/components/card-form/card-form.js +1 -0
- package/dist/collection/components/card-form/card-form.js.map +1 -0
- package/dist/collection/components/card-form/card-form.stories.js +1 -0
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -0
- package/dist/collection/components/card-form/test/card-form.e2e.js +14 -0
- package/dist/collection/components/card-form/test/card-form.e2e.js.map +1 -0
- package/dist/collection/components/card-form/test/card-form.spec.js +56 -0
- package/dist/collection/components/card-form/test/card-form.spec.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.css +412 -0
- package/dist/collection/components/payment-form/payment-form.js +8 -2
- package/dist/collection/components/payment-form/payment-form.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.stories.js +1 -0
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -0
- package/dist/collection/components/payment-form/payment-method-selector.css +337 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -0
- package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -0
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +23 -0
- package/dist/collection/components/payment-form/test/payment-form.e2e.js.map +1 -0
- package/dist/collection/components/payment-form/test/payment-form.spec.js +182 -0
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -0
- package/dist/collection/components/payment-form/tokenize.js +1 -0
- package/dist/collection/components/payment-form/tokenize.js.map +1 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js +1 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -0
- package/dist/collection/components/payment-method-form/message-event-types.js +1 -0
- package/dist/collection/components/payment-method-form/message-event-types.js.map +1 -0
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -0
- package/dist/collection/components/payment-method-form/payment-method-responses.js +1 -0
- package/dist/collection/components/payment-method-form/payment-method-responses.js.map +1 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +22 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js.map +1 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +83 -0
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -0
- package/dist/collection/components/payment-method-form/theme.js +1 -0
- package/dist/collection/components/payment-method-form/theme.js.map +1 -0
- package/dist/collection/components/payments-list/payments-list.js +1 -0
- package/dist/collection/components/payments-list/payments-list.js.map +1 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -0
- package/dist/collection/components/select-input/select-input.css +337 -0
- package/dist/collection/components/select-input/select-input.js +1 -0
- package/dist/collection/components/select-input/select-input.js.map +1 -0
- package/dist/collection/components/select-input/test/select-input.spec.js +36 -0
- package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -0
- package/dist/collection/components/text-input/test/text-input.spec.js +19 -0
- package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -0
- package/dist/collection/components/text-input/text-input.css +337 -0
- package/dist/collection/components/text-input/text-input.js +1 -0
- package/dist/collection/components/text-input/text-input.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/Api.js +109 -0
- package/dist/components/Api.js.map +1 -0
- package/dist/components/Payment.js +2 -0
- package/dist/components/Payment.js.map +1 -0
- package/dist/components/billing-form.js +6 -3
- package/dist/components/billing-form.js.map +1 -0
- package/dist/components/index.d.ts +9 -13
- package/dist/{esm/index.esm-c6a89005.js → components/index.esm.js} +3 -244
- package/dist/components/index.esm.js.map +1 -0
- package/dist/components/index.js +3 -11
- package/dist/components/index.js.map +1 -0
- package/dist/components/justifi-bank-account-form.js +3 -1
- package/dist/components/justifi-bank-account-form.js.map +1 -0
- package/dist/components/justifi-billing-form.js +2 -0
- package/dist/components/justifi-billing-form.js.map +1 -0
- package/dist/components/justifi-business-address.js +6 -3
- package/dist/components/justifi-business-address.js.map +1 -0
- package/dist/components/justifi-business-info.d.ts +11 -0
- package/dist/components/justifi-business-info.js +207 -0
- package/dist/components/justifi-business-info.js.map +1 -0
- package/dist/components/justifi-card-form.js +3 -1
- package/dist/components/justifi-card-form.js.map +1 -0
- package/dist/components/justifi-payment-form.js +11 -4
- package/dist/components/justifi-payment-form.js.map +1 -0
- package/dist/components/justifi-payment-method-form.js +2 -0
- package/dist/components/justifi-payment-method-form.js.map +1 -0
- package/dist/components/justifi-payment-method-selector.js +2 -0
- package/dist/components/justifi-payment-method-selector.js.map +1 -0
- package/dist/components/justifi-payments-list.js +4 -107
- package/dist/components/justifi-payments-list.js.map +1 -0
- package/dist/components/payment-method-form.js +12 -7
- package/dist/components/payment-method-form.js.map +1 -0
- package/dist/components/payment-method-selector.js +4 -2
- package/dist/components/payment-method-selector.js.map +1 -0
- package/dist/components/select-input.js +2 -0
- package/dist/components/select-input.js.map +1 -0
- package/dist/components/select-input2.js +4 -2
- package/dist/components/select-input2.js.map +1 -0
- package/dist/components/state-options.js +3 -1845
- package/dist/components/state-options.js.map +1 -0
- package/dist/components/text-input.js +2 -0
- package/dist/components/text-input.js.map +1 -0
- package/dist/components/text-input2.js +4 -2
- package/dist/components/text-input2.js.map +1 -0
- package/dist/esm/Api-a07f0057.js +109 -0
- package/dist/esm/Api-a07f0057.js.map +1 -0
- package/dist/esm/Payment-c86e1e84.js +2 -0
- package/dist/esm/Payment-c86e1e84.js.map +1 -0
- package/dist/esm/{index-605b421a.js → index-044f93fc.js} +185 -22
- package/dist/esm/index-044f93fc.js.map +1 -0
- package/dist/esm/index.esm-5624a5ed.js +1847 -0
- package/dist/esm/index.esm-5624a5ed.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +3 -1
- package/dist/esm/justifi-bank-account-form.entry.js.map +1 -0
- package/dist/esm/justifi-billing-form_2.entry.js +7 -4
- package/dist/esm/justifi-billing-form_2.entry.js.map +1 -0
- package/dist/esm/justifi-business-address.entry.js +6 -3
- package/dist/esm/justifi-business-address.entry.js.map +1 -0
- package/dist/esm/justifi-business-info.entry.js +170 -0
- package/dist/esm/justifi-business-info.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +3 -1
- package/dist/esm/justifi-card-form.entry.js.map +1 -0
- package/dist/esm/justifi-payment-form.entry.js +10 -4
- package/dist/esm/justifi-payment-form.entry.js.map +1 -0
- package/dist/esm/justifi-payment-method-form.entry.js +12 -7
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -0
- package/dist/esm/justifi-payments-list.entry.js +4 -107
- package/dist/esm/justifi-payments-list.entry.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/select-input_2.entry.js +5 -3
- package/dist/esm/select-input_2.entry.js.map +1 -0
- package/dist/esm/state-options-188acc34.js +246 -0
- package/dist/esm/state-options-188acc34.js.map +1 -0
- package/dist/esm/webcomponents.js +9 -3
- package/dist/esm/webcomponents.js.map +1 -0
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Payment.d.ts +1 -1
- package/dist/types/components/business-info/business-info-schema.d.ts +42 -0
- package/dist/types/components/business-info/business-info.d.ts +20 -0
- package/dist/types/components/payment-form/payment-form.d.ts +1 -0
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +1 -1
- package/dist/types/components.d.ts +63 -0
- package/dist/types/stencil-public-runtime.d.ts +72 -15
- package/dist/webcomponents/index.esm.js +2 -0
- package/dist/webcomponents/index.esm.js.map +1 -0
- package/dist/webcomponents/p-0ea23153.js +2 -0
- package/dist/webcomponents/p-0ea23153.js.map +1 -0
- package/dist/webcomponents/p-16b4e90a.entry.js +2 -0
- package/dist/webcomponents/p-16b4e90a.entry.js.map +1 -0
- package/dist/webcomponents/p-1ca0646b.js +2 -1
- package/dist/webcomponents/p-1ca0646b.js.map +1 -0
- package/dist/webcomponents/p-1f151d49.js +2 -0
- package/dist/webcomponents/p-1f151d49.js.map +1 -0
- package/dist/webcomponents/p-1f23b391.entry.js +2 -0
- package/dist/webcomponents/p-1f23b391.entry.js.map +1 -0
- package/dist/webcomponents/p-255b1284.entry.js +2 -0
- package/dist/webcomponents/p-255b1284.entry.js.map +1 -0
- package/dist/webcomponents/p-3aa91155.js +3 -0
- package/dist/webcomponents/p-3aa91155.js.map +1 -0
- package/dist/webcomponents/p-90c0d9e1.entry.js +2 -0
- package/dist/webcomponents/p-90c0d9e1.entry.js.map +1 -0
- package/dist/webcomponents/p-c903cc5a.entry.js +2 -0
- package/dist/webcomponents/p-c903cc5a.entry.js.map +1 -0
- package/dist/webcomponents/p-d87b0711.entry.js +2 -0
- package/dist/webcomponents/p-d87b0711.entry.js.map +1 -0
- package/dist/webcomponents/p-dbf7100f.entry.js +2 -0
- package/dist/webcomponents/p-dbf7100f.entry.js.map +1 -0
- package/dist/webcomponents/p-e0054bc3.js +2 -0
- package/dist/webcomponents/p-e0054bc3.js.map +1 -0
- package/dist/webcomponents/p-f30d1567.entry.js +2 -0
- package/dist/webcomponents/p-f30d1567.entry.js.map +1 -0
- package/dist/webcomponents/p-f66f024e.entry.js +2 -0
- package/dist/webcomponents/p-f66f024e.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +2 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -0
- package/loader/index.d.ts +9 -0
- package/package.json +8 -4
- package/dist/webcomponents/p-039e3540.entry.js +0 -1
- package/dist/webcomponents/p-11e5bef9.entry.js +0 -1
- package/dist/webcomponents/p-20732337.js +0 -1
- package/dist/webcomponents/p-24409e8e.entry.js +0 -1
- package/dist/webcomponents/p-4a406704.js +0 -2
- package/dist/webcomponents/p-5774e36e.entry.js +0 -1
- package/dist/webcomponents/p-5b5e8351.entry.js +0 -1
- package/dist/webcomponents/p-5b68fa52.entry.js +0 -1
- package/dist/webcomponents/p-7747c086.entry.js +0 -1
- package/dist/webcomponents/p-bc35e124.entry.js +0 -1
|
@@ -67,6 +67,343 @@
|
|
|
67
67
|
--bs-highlight-bg: #fff3cd;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.spinner-grow,
|
|
71
|
+
.spinner-border {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
width: var(--bs-spinner-width);
|
|
74
|
+
height: var(--bs-spinner-height);
|
|
75
|
+
vertical-align: var(--bs-spinner-vertical-align);
|
|
76
|
+
border-radius: 50%;
|
|
77
|
+
animation: var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@keyframes spinner-border {
|
|
81
|
+
to {
|
|
82
|
+
transform: rotate(360deg) /* rtl:ignore */;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.spinner-border {
|
|
86
|
+
--bs-spinner-width: 2rem;
|
|
87
|
+
--bs-spinner-height: 2rem;
|
|
88
|
+
--bs-spinner-vertical-align: -0.125em;
|
|
89
|
+
--bs-spinner-border-width: 0.25em;
|
|
90
|
+
--bs-spinner-animation-speed: 0.75s;
|
|
91
|
+
--bs-spinner-animation-name: spinner-border;
|
|
92
|
+
border: var(--bs-spinner-border-width) solid currentcolor;
|
|
93
|
+
border-right-color: transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.spinner-border-sm {
|
|
97
|
+
--bs-spinner-width: 1rem;
|
|
98
|
+
--bs-spinner-height: 1rem;
|
|
99
|
+
--bs-spinner-border-width: 0.2em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes spinner-grow {
|
|
103
|
+
0% {
|
|
104
|
+
transform: scale(0);
|
|
105
|
+
}
|
|
106
|
+
50% {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
transform: none;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.spinner-grow {
|
|
112
|
+
--bs-spinner-width: 2rem;
|
|
113
|
+
--bs-spinner-height: 2rem;
|
|
114
|
+
--bs-spinner-vertical-align: -0.125em;
|
|
115
|
+
--bs-spinner-animation-speed: 0.75s;
|
|
116
|
+
--bs-spinner-animation-name: spinner-grow;
|
|
117
|
+
background-color: currentcolor;
|
|
118
|
+
opacity: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.spinner-grow-sm {
|
|
122
|
+
--bs-spinner-width: 1rem;
|
|
123
|
+
--bs-spinner-height: 1rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (prefers-reduced-motion: reduce) {
|
|
127
|
+
.spinner-border,
|
|
128
|
+
.spinner-grow {
|
|
129
|
+
--bs-spinner-animation-speed: 1.5s;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
.clearfix::after {
|
|
133
|
+
display: block;
|
|
134
|
+
clear: both;
|
|
135
|
+
content: "";
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.text-bg-primary {
|
|
139
|
+
color: #fff !important;
|
|
140
|
+
background-color: RGBA(13, 110, 253, var(--bs-bg-opacity, 1)) !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.text-bg-secondary {
|
|
144
|
+
color: #fff !important;
|
|
145
|
+
background-color: RGBA(108, 117, 125, var(--bs-bg-opacity, 1)) !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.text-bg-success {
|
|
149
|
+
color: #fff !important;
|
|
150
|
+
background-color: RGBA(25, 135, 84, var(--bs-bg-opacity, 1)) !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.text-bg-info {
|
|
154
|
+
color: #000 !important;
|
|
155
|
+
background-color: RGBA(13, 202, 240, var(--bs-bg-opacity, 1)) !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.text-bg-warning {
|
|
159
|
+
color: #000 !important;
|
|
160
|
+
background-color: RGBA(255, 193, 7, var(--bs-bg-opacity, 1)) !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.text-bg-danger {
|
|
164
|
+
color: #fff !important;
|
|
165
|
+
background-color: RGBA(220, 53, 69, var(--bs-bg-opacity, 1)) !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.text-bg-light {
|
|
169
|
+
color: #000 !important;
|
|
170
|
+
background-color: RGBA(248, 249, 250, var(--bs-bg-opacity, 1)) !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.text-bg-dark {
|
|
174
|
+
color: #fff !important;
|
|
175
|
+
background-color: RGBA(33, 37, 41, var(--bs-bg-opacity, 1)) !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.link-primary {
|
|
179
|
+
color: #0d6efd !important;
|
|
180
|
+
}
|
|
181
|
+
.link-primary:hover, .link-primary:focus {
|
|
182
|
+
color: #0a58ca !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.link-secondary {
|
|
186
|
+
color: #6c757d !important;
|
|
187
|
+
}
|
|
188
|
+
.link-secondary:hover, .link-secondary:focus {
|
|
189
|
+
color: #565e64 !important;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.link-success {
|
|
193
|
+
color: #198754 !important;
|
|
194
|
+
}
|
|
195
|
+
.link-success:hover, .link-success:focus {
|
|
196
|
+
color: #146c43 !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.link-info {
|
|
200
|
+
color: #0dcaf0 !important;
|
|
201
|
+
}
|
|
202
|
+
.link-info:hover, .link-info:focus {
|
|
203
|
+
color: #3dd5f3 !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.link-warning {
|
|
207
|
+
color: #ffc107 !important;
|
|
208
|
+
}
|
|
209
|
+
.link-warning:hover, .link-warning:focus {
|
|
210
|
+
color: #ffcd39 !important;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.link-danger {
|
|
214
|
+
color: #dc3545 !important;
|
|
215
|
+
}
|
|
216
|
+
.link-danger:hover, .link-danger:focus {
|
|
217
|
+
color: #b02a37 !important;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.link-light {
|
|
221
|
+
color: #f8f9fa !important;
|
|
222
|
+
}
|
|
223
|
+
.link-light:hover, .link-light:focus {
|
|
224
|
+
color: #f9fafb !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.link-dark {
|
|
228
|
+
color: #212529 !important;
|
|
229
|
+
}
|
|
230
|
+
.link-dark:hover, .link-dark:focus {
|
|
231
|
+
color: #1a1e21 !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ratio {
|
|
235
|
+
position: relative;
|
|
236
|
+
width: 100%;
|
|
237
|
+
}
|
|
238
|
+
.ratio::before {
|
|
239
|
+
display: block;
|
|
240
|
+
padding-top: var(--bs-aspect-ratio);
|
|
241
|
+
content: "";
|
|
242
|
+
}
|
|
243
|
+
.ratio > * {
|
|
244
|
+
position: absolute;
|
|
245
|
+
top: 0;
|
|
246
|
+
left: 0;
|
|
247
|
+
width: 100%;
|
|
248
|
+
height: 100%;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ratio-1x1 {
|
|
252
|
+
--bs-aspect-ratio: 100%;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ratio-4x3 {
|
|
256
|
+
--bs-aspect-ratio: 75%;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ratio-16x9 {
|
|
260
|
+
--bs-aspect-ratio: 56.25%;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.ratio-21x9 {
|
|
264
|
+
--bs-aspect-ratio: 42.8571428571%;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.fixed-top {
|
|
268
|
+
position: fixed;
|
|
269
|
+
top: 0;
|
|
270
|
+
right: 0;
|
|
271
|
+
left: 0;
|
|
272
|
+
z-index: 1030;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.fixed-bottom {
|
|
276
|
+
position: fixed;
|
|
277
|
+
right: 0;
|
|
278
|
+
bottom: 0;
|
|
279
|
+
left: 0;
|
|
280
|
+
z-index: 1030;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.sticky-top {
|
|
284
|
+
position: sticky;
|
|
285
|
+
top: 0;
|
|
286
|
+
z-index: 1020;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.sticky-bottom {
|
|
290
|
+
position: sticky;
|
|
291
|
+
bottom: 0;
|
|
292
|
+
z-index: 1020;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@media (min-width: 576px) {
|
|
296
|
+
.sticky-sm-top {
|
|
297
|
+
position: sticky;
|
|
298
|
+
top: 0;
|
|
299
|
+
z-index: 1020;
|
|
300
|
+
}
|
|
301
|
+
.sticky-sm-bottom {
|
|
302
|
+
position: sticky;
|
|
303
|
+
bottom: 0;
|
|
304
|
+
z-index: 1020;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
@media (min-width: 768px) {
|
|
308
|
+
.sticky-md-top {
|
|
309
|
+
position: sticky;
|
|
310
|
+
top: 0;
|
|
311
|
+
z-index: 1020;
|
|
312
|
+
}
|
|
313
|
+
.sticky-md-bottom {
|
|
314
|
+
position: sticky;
|
|
315
|
+
bottom: 0;
|
|
316
|
+
z-index: 1020;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
@media (min-width: 992px) {
|
|
320
|
+
.sticky-lg-top {
|
|
321
|
+
position: sticky;
|
|
322
|
+
top: 0;
|
|
323
|
+
z-index: 1020;
|
|
324
|
+
}
|
|
325
|
+
.sticky-lg-bottom {
|
|
326
|
+
position: sticky;
|
|
327
|
+
bottom: 0;
|
|
328
|
+
z-index: 1020;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
@media (min-width: 1200px) {
|
|
332
|
+
.sticky-xl-top {
|
|
333
|
+
position: sticky;
|
|
334
|
+
top: 0;
|
|
335
|
+
z-index: 1020;
|
|
336
|
+
}
|
|
337
|
+
.sticky-xl-bottom {
|
|
338
|
+
position: sticky;
|
|
339
|
+
bottom: 0;
|
|
340
|
+
z-index: 1020;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
@media (min-width: 1400px) {
|
|
344
|
+
.sticky-xxl-top {
|
|
345
|
+
position: sticky;
|
|
346
|
+
top: 0;
|
|
347
|
+
z-index: 1020;
|
|
348
|
+
}
|
|
349
|
+
.sticky-xxl-bottom {
|
|
350
|
+
position: sticky;
|
|
351
|
+
bottom: 0;
|
|
352
|
+
z-index: 1020;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
.hstack {
|
|
356
|
+
display: flex;
|
|
357
|
+
flex-direction: row;
|
|
358
|
+
align-items: center;
|
|
359
|
+
align-self: stretch;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.vstack {
|
|
363
|
+
display: flex;
|
|
364
|
+
flex: 1 1 auto;
|
|
365
|
+
flex-direction: column;
|
|
366
|
+
align-self: stretch;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.visually-hidden,
|
|
370
|
+
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
|
371
|
+
position: absolute !important;
|
|
372
|
+
width: 1px !important;
|
|
373
|
+
height: 1px !important;
|
|
374
|
+
padding: 0 !important;
|
|
375
|
+
margin: -1px !important;
|
|
376
|
+
overflow: hidden !important;
|
|
377
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
378
|
+
white-space: nowrap !important;
|
|
379
|
+
border: 0 !important;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.stretched-link::after {
|
|
383
|
+
position: absolute;
|
|
384
|
+
top: 0;
|
|
385
|
+
right: 0;
|
|
386
|
+
bottom: 0;
|
|
387
|
+
left: 0;
|
|
388
|
+
z-index: 1;
|
|
389
|
+
content: "";
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.text-truncate {
|
|
393
|
+
overflow: hidden;
|
|
394
|
+
text-overflow: ellipsis;
|
|
395
|
+
white-space: nowrap;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.vr {
|
|
399
|
+
display: inline-block;
|
|
400
|
+
align-self: stretch;
|
|
401
|
+
width: 1px;
|
|
402
|
+
min-height: 1em;
|
|
403
|
+
background-color: currentcolor;
|
|
404
|
+
opacity: 0.25;
|
|
405
|
+
}
|
|
406
|
+
|
|
70
407
|
*,
|
|
71
408
|
*::before,
|
|
72
409
|
*::after {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-address.js","sourceRoot":"","sources":["../../../../src/components/business-address/business-address.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, State, Method, Listen } from '@stencil/core';\nimport { ValidationError } from 'yup';\nimport StateOptions from '../billing-form/state-options';\nimport BusinessAddressFormSchema, { BusinessAddressFormFields } from './business-address-schema';\n\n@Component({\n tag: 'justifi-business-address',\n styleUrl: 'business-address.scss',\n shadow: true,\n})\nexport class BusinessAddress {\n @State() businessAddress: BusinessAddressFormFields = {\n line1: '',\n line2: '',\n city: '',\n state: '',\n postal_code: '',\n country: ''\n };\n @State() businessAddressErrors: any = {};\n\n @Listen('fieldReceivedInput')\n setFormValue(event) {\n const data = event.detail;\n const businessAddressClone = { ...this.businessAddress };\n if (data.name) {\n businessAddressClone[data.name] = data.value;\n this.businessAddress = businessAddressClone;\n }\n }\n\n @Method()\n async submit() {\n const newErrors = {};\n let isValid: boolean = true;\n\n try {\n await BusinessAddressFormSchema.validate(this.businessAddress, { abortEarly: false });\n } catch (err) {\n isValid = false;\n err.inner.map((item: ValidationError) => {\n newErrors[item.path] = item.message;\n });\n }\n\n this.businessAddressErrors = newErrors;\n\n return { isValid: isValid, values: this.businessAddress }\n };\n\n render() {\n return (\n <Host exportparts=\"label,input,input-invalid\">\n <div class=\"row gx-2 gy-2\">\n <div class=\"col-12\">\n <text-input\n name=\"line1\"\n label=\"Street Address\"\n defaultValue={this.businessAddress?.line1}\n error={this.businessAddressErrors?.line1} />\n </div>\n\n <div class=\"col-12\">\n <text-input\n name=\"line2\"\n label=\"Apartment, Suite, etc. (optional)\"\n defaultValue={this.businessAddress?.line2}\n error={this.businessAddressErrors?.line2} />\n </div>\n\n <div class=\"col-12\">\n <text-input\n name=\"city\"\n label=\"City\"\n defaultValue={this.businessAddress?.city}\n error={this.businessAddressErrors?.city} />\n </div>\n\n <div class=\"col-12\">\n <select-input\n name=\"state\"\n label=\"State\"\n options={StateOptions}\n defaultValue={this.businessAddress.state}\n error={this.businessAddressErrors.state} />\n </div>\n\n <div class=\"col-12\">\n <text-input\n name=\"postal_code\"\n label=\"Postal Code\"\n defaultValue={this.businessAddress?.postal_code}\n error={this.businessAddressErrors?.postal_code} />\n </div>\n </div>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from '@stencil/core/testing';
|
|
2
|
+
describe('business-address', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<business-address></business-address>');
|
|
6
|
+
const element = await page.find('business-address');
|
|
7
|
+
expect(element).toHaveClass('hydrated');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=business-address.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-address.e2e.js","sourceRoot":"","sources":["../../../../../src/components/business-address/test/business-address.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;EAChC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;IAE/D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACpD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('business-address', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<business-address></business-address>');\n\n const element = await page.find('business-address');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { newSpecPage } from '@stencil/core/testing';
|
|
2
|
+
import { BusinessAddress } from '../business-address';
|
|
3
|
+
describe('business-address', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [BusinessAddress],
|
|
7
|
+
html: `<business-address></business-address>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<business-address>
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
</business-address>
|
|
15
|
+
`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=business-address.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-address.spec.js","sourceRoot":"","sources":["../../../../../src/components/business-address/test/business-address.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;EAChC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,eAAe,CAAC;MAC7B,IAAI,EAAE,uCAAuC;KAC9C,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { BusinessAddress } from '../business-address';\n\ndescribe('business-address', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [BusinessAddress],\n html: `<business-address></business-address>`,\n });\n expect(page.root).toEqualHtml(`\n <business-address>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </business-address>\n `);\n });\n});\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { object, string } from 'yup';
|
|
2
|
+
export const RegExZip = /^\d{5}/;
|
|
3
|
+
export const BusinessTypeOptions = [
|
|
4
|
+
{
|
|
5
|
+
label: 'Choose business type',
|
|
6
|
+
value: '',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
label: 'Individual',
|
|
10
|
+
value: 'individual',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: 'For Profit',
|
|
14
|
+
value: 'for_profit',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: 'Non Profit',
|
|
18
|
+
value: 'non_profit',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'Government Entity',
|
|
22
|
+
value: 'government_entity',
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
export const BusinessStructureOptions = [
|
|
26
|
+
{
|
|
27
|
+
label: 'Choose business structure',
|
|
28
|
+
value: '',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'Sole Proprietorship',
|
|
32
|
+
value: 'sole_proprietorship',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'LLC (Single)',
|
|
36
|
+
value: 'single_llc',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'LLC (Multiple)',
|
|
40
|
+
value: 'multi_llc',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'Private Partnership',
|
|
44
|
+
value: 'private_partnership',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Private Corporation',
|
|
48
|
+
value: 'private_corporation',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'Unincorporated Association',
|
|
52
|
+
value: 'unincorporated_association',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Public Partnership',
|
|
56
|
+
value: 'public_partnership',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Public Corporation',
|
|
60
|
+
value: 'public_corporation',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Incorporated',
|
|
64
|
+
value: 'incorporated',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Unincorporated',
|
|
68
|
+
value: 'unincorporated',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Government Unit',
|
|
72
|
+
value: 'government_unit',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Government Instrumentality',
|
|
76
|
+
value: 'government_instrumentality',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Tax Exempt Government Instrumentality',
|
|
80
|
+
value: 'tax_exempt_government_instrumentality',
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
const BusinessInfoSchema = object({
|
|
84
|
+
legal_name: string().required('Enter legal name'),
|
|
85
|
+
website_url: string().url('Enter valid website url').required('Enter website url'),
|
|
86
|
+
email: string().email('Enter valid email').required('Enter email'),
|
|
87
|
+
phone: string().required('Enter phone number'),
|
|
88
|
+
doing_business_as: string().required('Enter doing business as'),
|
|
89
|
+
business_type: string().required('Select business type'),
|
|
90
|
+
business_structure: string().required('Select business structure'),
|
|
91
|
+
industry: string().required('Enter a business industry'),
|
|
92
|
+
});
|
|
93
|
+
export default BusinessInfoSchema;
|
|
94
|
+
//# sourceMappingURL=business-info-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-info-schema.js","sourceRoot":"","sources":["../../../../src/components/business-info/business-info-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC;AA8BjC,MAAM,CAAC,MAAM,mBAAmB,GAA6C;EAC3E;IACE,KAAK,EAAE,sBAAsB;IAC7B,KAAK,EAAE,EAAE;GACV;EACD;IACE,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;GACpB;EACD;IACE,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;GACpB;EACD;IACE,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;GACpB;EACD;IACE,KAAK,EAAE,mBAAmB;IAC1B,KAAK,EAAE,mBAAmB;GAC3B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAkD;EACrF;IACE,KAAK,EAAE,2BAA2B;IAClC,KAAK,EAAE,EAAE;GACV;EACD;IACE,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,qBAAqB;GAC7B;EACD;IACE,KAAK,EAAE,cAAc;IACrB,KAAK,EAAE,YAAY;GACpB;EACD;IACE,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,WAAW;GACnB;EACD;IACE,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,qBAAqB;GAC7B;EACD;IACE,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,qBAAqB;GAC7B;EACD;IACE,KAAK,EAAE,4BAA4B;IACnC,KAAK,EAAE,4BAA4B;GACpC;EACD;IACE,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,oBAAoB;GAC5B;EACD;IACE,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,oBAAoB;GAC5B;EACD;IACE,KAAK,EAAE,cAAc;IACrB,KAAK,EAAE,cAAc;GACtB;EACD;IACE,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,gBAAgB;GACxB;EACD;IACE,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,iBAAiB;GACzB;EACD;IACE,KAAK,EAAE,4BAA4B;IACnC,KAAK,EAAE,4BAA4B;GACpC;EACD;IACE,KAAK,EAAE,uCAAuC;IAC9C,KAAK,EAAE,uCAAuC;GAC/C;CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,MAAM,CAAC;EAChC,UAAU,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;EACjD,WAAW,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;EAClF,KAAK,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;EAClE,KAAK,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;EAC9C,iBAAiB,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;EAC/D,aAAa,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;EACxD,kBAAkB,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;EAClE,QAAQ,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACzD,CAAC,CAAC;AAEH,eAAe,kBAAkB,CAAC","sourcesContent":["import { object, string } from 'yup';\n\nexport const RegExZip = /^\\d{5}/;\n\ntype BusinessType = 'for_profit' | 'non_profit' | 'government_entity' | 'individual' | '';\ntype BusinessStructure = 'sole_proprietorship' |\n 'single_llc' |\n 'multi_llc' |\n 'private_partnership' |\n 'private_corporation' |\n 'unincorporated_association' |\n 'public_partnership' |\n 'public_corporation' |\n 'incorporated' |\n 'unincorporated' |\n 'government_unit' |\n 'government_instrumentality' |\n 'tax_exempt_government_instrumentality' |\n '';\n\nexport interface IBusinessInfo {\n legal_name: string,\n website_url: string,\n email: string,\n phone: string,\n doing_business_as: string,\n business_type: string,\n business_structure: string,\n industry: string,\n metadata: any,\n}\n\nexport const BusinessTypeOptions: { label: string, value: BusinessType }[] = [\n {\n label: 'Choose business type',\n value: '',\n },\n {\n label: 'Individual',\n value: 'individual',\n },\n {\n label: 'For Profit',\n value: 'for_profit',\n },\n {\n label: 'Non Profit',\n value: 'non_profit',\n },\n {\n label: 'Government Entity',\n value: 'government_entity',\n },\n];\n\nexport const BusinessStructureOptions: { label: string, value: BusinessStructure }[] = [\n {\n label: 'Choose business structure',\n value: '',\n },\n {\n label: 'Sole Proprietorship',\n value: 'sole_proprietorship',\n },\n {\n label: 'LLC (Single)',\n value: 'single_llc',\n },\n {\n label: 'LLC (Multiple)',\n value: 'multi_llc',\n },\n {\n label: 'Private Partnership',\n value: 'private_partnership',\n },\n {\n label: 'Private Corporation',\n value: 'private_corporation',\n },\n {\n label: 'Unincorporated Association',\n value: 'unincorporated_association',\n },\n {\n label: 'Public Partnership',\n value: 'public_partnership',\n },\n {\n label: 'Public Corporation',\n value: 'public_corporation',\n },\n {\n label: 'Incorporated',\n value: 'incorporated',\n },\n {\n label: 'Unincorporated',\n value: 'unincorporated',\n },\n {\n label: 'Government Unit',\n value: 'government_unit',\n },\n {\n label: 'Government Instrumentality',\n value: 'government_instrumentality',\n },\n {\n label: 'Tax Exempt Government Instrumentality',\n value: 'tax_exempt_government_instrumentality',\n },\n];\n\nconst BusinessInfoSchema = object({\n legal_name: string().required('Enter legal name'),\n website_url: string().url('Enter valid website url').required('Enter website url'),\n email: string().email('Enter valid email').required('Enter email'),\n phone: string().required('Enter phone number'),\n doing_business_as: string().required('Enter doing business as'),\n business_type: string().required('Select business type'),\n business_structure: string().required('Select business structure'),\n industry: string().required('Enter a business industry'),\n});\n\nexport default BusinessInfoSchema;"]}
|