@justifi/webcomponents 4.2.2 → 4.5.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/LICENSE +21 -0
- package/dist/cjs/{Api-11362403.js → Api-d2df6e84.js} +17 -4
- package/dist/cjs/Api-d2df6e84.js.map +1 -0
- package/dist/cjs/{Payment-ac4dea02.js → Payout-4906a445.js} +44 -1
- package/dist/cjs/Payout-4906a445.js.map +1 -0
- package/dist/cjs/business-form-schema-725ec6f5.js +150 -0
- package/dist/cjs/business-form-schema-725ec6f5.js.map +1 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +107 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +65 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-number_3.cjs.entry.js +148 -0
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-select.cjs.entry.js +47 -0
- package/dist/cjs/form-control-select.cjs.entry.js.map +1 -0
- package/dist/cjs/{index-34312a38.js → index-4ffc90c0.js} +145 -20
- package/dist/cjs/index-4ffc90c0.js.map +1 -0
- package/dist/cjs/index-5a880722.js +3233 -0
- package/dist/cjs/index-5a880722.js.map +1 -0
- package/dist/cjs/{index.esm-bcf90c56.js → index.esm-84a0a7a8.js} +283 -14
- package/dist/cjs/index.esm-84a0a7a8.js.map +1 -0
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +396 -0
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js +833 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-list.cjs.entry.js +189 -0
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +30 -0
- package/dist/cjs/justifi-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +63 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-form.cjs.entry.js +25 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +26 -19
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +78 -4039
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js +61 -0
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +123 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +156 -0
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-table.cjs.entry.js +68 -0
- package/dist/cjs/justifi-table.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/select-input_2.cjs.entry.js +6 -6
- package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
- package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
- package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
- package/dist/cjs/table-utils-617126e5.js +13 -0
- package/dist/cjs/table-utils-617126e5.js.map +1 -0
- package/dist/cjs/utils-0fd61dbd.js +3918 -0
- package/dist/cjs/utils-0fd61dbd.js.map +1 -0
- package/dist/cjs/utils-a5b5bfdf.js +35 -0
- package/dist/cjs/utils-a5b5bfdf.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +3 -6
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/api/Api.js +17 -4
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Business.js +50 -0
- package/dist/collection/api/Business.js.map +1 -0
- package/dist/collection/api/Payment.js.map +1 -1
- package/dist/collection/api/Payout.js +42 -0
- package/dist/collection/api/Payout.js.map +1 -0
- package/dist/collection/api/Proceed.js +42 -0
- package/dist/collection/api/Proceed.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -1
- package/dist/collection/api/mockData/MockPayments.js +1 -1
- package/dist/collection/api/shared.js +2 -0
- package/dist/collection/api/shared.js.map +1 -0
- package/dist/collection/collection-manifest.json +30 -12
- package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.css +212 -39
- package/dist/collection/components/billing-form/billing-form.js +16 -10
- package/dist/collection/components/billing-form/billing-form.js.map +1 -1
- package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +59 -0
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -0
- package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +76 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
- package/dist/collection/components/business-form/business-form-schema.js +160 -0
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-form.css +7772 -0
- package/dist/collection/components/business-form/business-form.js +153 -0
- package/dist/collection/components/business-form/business-form.js.map +1 -0
- package/dist/collection/components/business-form/business-form.stories.js +115 -0
- package/dist/collection/components/business-form/business-form.stories.js.map +1 -0
- package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +72 -0
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
- package/dist/collection/components/business-form/business-owners/business-owners.css +7772 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js +131 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js +71 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
- package/dist/collection/components/business-form/test/business-form.spec.js +44 -0
- package/dist/collection/components/business-form/test/business-form.spec.js.map +1 -0
- package/dist/collection/components/business-list/business-list.css +576 -0
- package/dist/collection/components/business-list/business-list.js +209 -0
- package/dist/collection/components/business-list/business-list.js.map +1 -0
- package/dist/collection/components/business-list/business-list.stories.js +68 -0
- package/dist/collection/components/business-list/business-list.stories.js.map +1 -0
- package/dist/collection/components/business-list/example.js +12 -0
- package/dist/collection/components/card-form/card-form.js +38 -10
- package/dist/collection/components/card-form/card-form.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +5 -2
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
- package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
- package/dist/collection/components/details/details.css +7983 -0
- package/dist/collection/components/details/details.js +66 -0
- package/dist/collection/components/details/details.js.map +1 -0
- package/dist/collection/components/details/utils.js +10 -0
- package/dist/collection/components/details/utils.js.map +1 -0
- package/dist/collection/components/form/form-control-datepart.js +233 -0
- package/dist/collection/components/form/form-control-datepart.js.map +1 -0
- package/dist/collection/components/form/form-control-monetary.js +186 -0
- package/dist/collection/components/form/form-control-monetary.js.map +1 -0
- package/dist/collection/components/form/form-control-number-masked.js +217 -0
- package/dist/collection/components/form/form-control-number-masked.js.map +1 -0
- package/dist/collection/components/form/form-control-number.css +1818 -0
- package/dist/collection/components/form/form-control-number.js +194 -0
- package/dist/collection/components/form/form-control-number.js.map +1 -0
- package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +350 -1212
- package/dist/collection/components/form/form-control-select.js +200 -0
- package/dist/collection/components/form/form-control-select.js.map +1 -0
- package/dist/collection/components/form/form-control-text.css +1801 -0
- package/dist/collection/components/form/form-control-text.js +194 -0
- package/dist/collection/components/form/form-control-text.js.map +1 -0
- package/dist/collection/components/form/form.js +93 -0
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js +11 -0
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +1 -0
- package/dist/collection/components/legal-address-form/legal-address-form.css +2489 -0
- package/dist/collection/components/legal-address-form/legal-address-form.js +90 -0
- package/dist/collection/components/legal-address-form/legal-address-form.js.map +1 -0
- package/dist/collection/components/payment-details/example.js +12 -0
- package/dist/collection/components/payment-details/payment-details.css +7983 -0
- package/dist/collection/components/payment-details/payment-details.js +129 -0
- package/dist/collection/components/payment-details/payment-details.js.map +1 -0
- package/dist/collection/components/payment-details/payment-details.stories.js +47 -0
- package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.css +220 -45
- package/dist/collection/components/payment-form/payment-form.js +47 -7
- package/dist/collection/components/payment-form/payment-form.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
- package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
- package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
- package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
- package/dist/collection/components/payment-method-form/theme.js.map +1 -1
- package/dist/collection/components/payments-list/example.js +12 -0
- package/dist/collection/components/payments-list/payments-list.css +574 -1
- package/dist/collection/components/payments-list/payments-list.js +130 -27
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -18
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
- package/dist/collection/components/payout-details/example.js +12 -0
- package/dist/collection/components/payout-details/payout-details.css +7983 -0
- package/dist/collection/components/payout-details/payout-details.js +126 -0
- package/dist/collection/components/payout-details/payout-details.js.map +1 -0
- package/dist/collection/components/payout-details/payout-details.stories.js +47 -0
- package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -0
- package/dist/collection/components/payouts-list/example.js +12 -0
- package/dist/collection/components/payouts-list/payouts-list.css +576 -0
- package/dist/collection/components/payouts-list/payouts-list.js +215 -0
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
- package/dist/collection/components/proceeds-list/example.js +12 -0
- package/dist/collection/components/proceeds-list/proceeds-list.css +576 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js +207 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -0
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +69 -0
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -0
- package/dist/collection/components/select-input/select-input.css +344 -141
- package/dist/collection/components/select-input/select-input.js +5 -4
- package/dist/collection/components/select-input/select-input.js.map +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
- package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
- package/dist/collection/components/table/table-utils.js +8 -0
- package/dist/collection/components/table/table-utils.js.map +1 -0
- package/dist/collection/components/table/table.css +8077 -0
- package/dist/collection/components/table/table.js +215 -0
- package/dist/collection/components/table/table.js.map +1 -0
- package/dist/collection/components/table/test/table.spec.js +59 -0
- package/dist/collection/components/table/test/table.spec.js.map +1 -0
- package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
- package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
- package/dist/collection/components/text-input/text-input.css +344 -141
- package/dist/collection/components/text-input/text-input.js +2 -2
- package/dist/collection/components/text-input/text-input.js.map +1 -1
- package/dist/collection/utils/country-options.js +202 -0
- package/dist/collection/utils/country-options.js.map +1 -0
- package/dist/collection/utils/phone-masks.js +4 -0
- package/dist/collection/utils/phone-masks.js.map +1 -0
- package/dist/collection/utils/utils.js +47 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +16 -3
- package/dist/components/Api.js.map +1 -1
- package/dist/{esm/Payment-c86e1e84.js → components/Payout.js} +44 -2
- package/dist/components/Payout.js.map +1 -0
- package/dist/components/additional-questions.js +51 -0
- package/dist/components/additional-questions.js.map +1 -0
- package/dist/components/billing-form.js +2 -2
- package/dist/components/billing-form.js.map +1 -1
- package/dist/components/business-address-form.js +71 -0
- package/dist/components/business-address-form.js.map +1 -0
- package/dist/components/business-generic-info.js +216 -0
- package/dist/components/business-generic-info.js.map +1 -0
- package/dist/components/business-owners.js +118 -0
- package/dist/components/business-owners.js.map +1 -0
- package/dist/components/business-representative.js +91 -0
- package/dist/components/business-representative.js.map +1 -0
- package/dist/components/details.js +66 -0
- package/dist/components/details.js.map +1 -0
- package/dist/components/{justifi-business-info.d.ts → form-control-datepart.d.ts} +4 -4
- package/dist/components/form-control-datepart.js +8 -0
- package/dist/components/form-control-datepart.js.map +1 -0
- package/dist/components/form-control-datepart2.js +97 -0
- package/dist/components/form-control-datepart2.js.map +1 -0
- package/dist/components/form-control-monetary.d.ts +11 -0
- package/dist/components/form-control-monetary.js +8 -0
- package/dist/components/form-control-monetary.js.map +1 -0
- package/dist/components/form-control-monetary2.js +82 -0
- package/dist/components/form-control-monetary2.js.map +1 -0
- package/dist/components/form-control-number-masked.d.ts +11 -0
- package/dist/components/form-control-number-masked.js +8 -0
- package/dist/components/form-control-number-masked.js.map +1 -0
- package/dist/components/form-control-number-masked2.js +81 -0
- package/dist/components/form-control-number-masked2.js.map +1 -0
- package/dist/components/form-control-number.d.ts +11 -0
- package/dist/components/form-control-number.js +8 -0
- package/dist/components/form-control-number.js.map +1 -0
- package/dist/components/form-control-number2.js +70 -0
- package/dist/components/form-control-number2.js.map +1 -0
- package/dist/components/form-control-select.d.ts +11 -0
- package/dist/components/form-control-select.js +8 -0
- package/dist/components/form-control-select.js.map +1 -0
- package/dist/components/form-control-select2.js +66 -0
- package/dist/components/form-control-select2.js.map +1 -0
- package/dist/components/form-control-text.d.ts +11 -0
- package/dist/components/form-control-text.js +8 -0
- package/dist/components/form-control-text.js.map +1 -0
- package/dist/components/form-control-text2.js +70 -0
- package/dist/components/form-control-text2.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.esm.js +281 -14
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3231 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/justifi-additional-questions.d.ts +11 -0
- package/dist/components/justifi-additional-questions.js +8 -0
- package/dist/components/justifi-additional-questions.js.map +1 -0
- package/dist/components/justifi-bank-account-form.js +7 -2
- package/dist/components/justifi-bank-account-form.js.map +1 -1
- package/dist/components/justifi-business-address-form.d.ts +11 -0
- package/dist/components/justifi-business-address-form.js +8 -0
- package/dist/components/justifi-business-address-form.js.map +1 -0
- package/dist/components/justifi-business-form.d.ts +11 -0
- package/dist/components/justifi-business-form.js +920 -0
- package/dist/components/justifi-business-form.js.map +1 -0
- package/dist/components/justifi-business-generic-info.d.ts +11 -0
- package/dist/components/justifi-business-generic-info.js +8 -0
- package/dist/components/justifi-business-generic-info.js.map +1 -0
- package/dist/components/justifi-business-list.d.ts +11 -0
- package/dist/components/justifi-business-list.js +215 -0
- package/dist/components/justifi-business-list.js.map +1 -0
- package/dist/components/justifi-business-owners.d.ts +11 -0
- package/dist/components/justifi-business-owners.js +8 -0
- package/dist/components/justifi-business-owners.js.map +1 -0
- package/dist/components/justifi-business-representative.d.ts +11 -0
- package/dist/components/justifi-business-representative.js +8 -0
- package/dist/components/justifi-business-representative.js.map +1 -0
- package/dist/components/justifi-card-form.js +7 -2
- package/dist/components/justifi-card-form.js.map +1 -1
- package/dist/components/justifi-details.d.ts +11 -0
- package/dist/components/justifi-details.js +8 -0
- package/dist/components/justifi-details.js.map +1 -0
- package/dist/components/justifi-legal-address-form.d.ts +11 -0
- package/dist/components/justifi-legal-address-form.js +8 -0
- package/dist/components/justifi-legal-address-form.js.map +1 -0
- package/dist/components/justifi-payment-details.d.ts +11 -0
- package/dist/components/justifi-payment-details.js +88 -0
- package/dist/components/justifi-payment-details.js.map +1 -0
- package/dist/components/justifi-payment-form.js +24 -4
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +88 -4041
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payout-details.d.ts +11 -0
- package/dist/components/justifi-payout-details.js +86 -0
- package/dist/components/justifi-payout-details.js.map +1 -0
- package/dist/components/justifi-payouts-list.d.ts +11 -0
- package/dist/components/justifi-payouts-list.js +149 -0
- package/dist/components/justifi-payouts-list.js.map +1 -0
- package/dist/components/justifi-proceeds-list.d.ts +11 -0
- package/dist/components/justifi-proceeds-list.js +182 -0
- package/dist/components/justifi-proceeds-list.js.map +1 -0
- package/dist/components/justifi-table.d.ts +11 -0
- package/dist/components/justifi-table.js +8 -0
- package/dist/components/justifi-table.js.map +1 -0
- package/dist/components/legal-address-form.js +271 -0
- package/dist/components/legal-address-form.js.map +1 -0
- package/dist/components/payment-method-form.js +25 -18
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/payment-method-selector.js +1 -1
- package/dist/components/payment-method-selector.js.map +1 -1
- package/dist/components/phone-masks.js +7 -0
- package/dist/components/phone-masks.js.map +1 -0
- package/dist/components/select-input2.js +3 -3
- package/dist/components/select-input2.js.map +1 -1
- package/dist/components/state-options.js.map +1 -1
- package/dist/components/table.js +94 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/text-input2.js +2 -2
- package/dist/components/text-input2.js.map +1 -1
- package/dist/components/utils.js +3911 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/esm/{Api-a07f0057.js → Api-a95f17ac.js} +17 -4
- package/dist/esm/Api-a95f17ac.js.map +1 -0
- package/dist/{components/Payment.js → esm/Payout-9a1f2859.js} +44 -2
- package/dist/esm/Payout-9a1f2859.js.map +1 -0
- package/dist/esm/business-form-schema-5885d3d6.js +146 -0
- package/dist/esm/business-form-schema-5885d3d6.js.map +1 -0
- package/dist/esm/form-control-datepart_2.entry.js +102 -0
- package/dist/esm/form-control-datepart_2.entry.js.map +1 -0
- package/dist/esm/form-control-monetary.entry.js +61 -0
- package/dist/esm/form-control-monetary.entry.js.map +1 -0
- package/dist/esm/form-control-number_3.entry.js +142 -0
- package/dist/esm/form-control-number_3.entry.js.map +1 -0
- package/dist/esm/form-control-select.entry.js +43 -0
- package/dist/esm/form-control-select.entry.js.map +1 -0
- package/dist/esm/index-5ed53c20.js +3231 -0
- package/dist/esm/index-5ed53c20.js.map +1 -0
- package/dist/esm/{index-044f93fc.js → index-609a2c67.js} +145 -21
- package/dist/esm/index-609a2c67.js.map +1 -0
- package/dist/esm/{index.esm-5624a5ed.js → index.esm-89fe6af9.js} +282 -15
- package/dist/esm/index.esm-89fe6af9.js.map +1 -0
- package/dist/esm/justifi-additional-questions_5.entry.js +388 -0
- package/dist/esm/justifi-additional-questions_5.entry.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +8 -3
- package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +5 -5
- package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
- package/dist/esm/justifi-business-form.entry.js +829 -0
- package/dist/esm/justifi-business-form.entry.js.map +1 -0
- package/dist/esm/justifi-business-list.entry.js +185 -0
- package/dist/esm/justifi-business-list.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +8 -3
- package/dist/esm/justifi-card-form.entry.js.map +1 -1
- package/dist/esm/justifi-details.entry.js +26 -0
- package/dist/esm/justifi-details.entry.js.map +1 -0
- package/dist/esm/justifi-payment-details.entry.js +59 -0
- package/dist/esm/justifi-payment-details.entry.js.map +1 -0
- package/dist/esm/justifi-payment-form.entry.js +22 -4
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +26 -19
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +78 -4039
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payout-details.entry.js +57 -0
- package/dist/esm/justifi-payout-details.entry.js.map +1 -0
- package/dist/esm/justifi-payouts-list.entry.js +119 -0
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
- package/dist/esm/justifi-proceeds-list.entry.js +152 -0
- package/dist/esm/justifi-proceeds-list.entry.js.map +1 -0
- package/dist/esm/justifi-table.entry.js +64 -0
- package/dist/esm/justifi-table.entry.js.map +1 -0
- package/dist/esm/loader.js +4 -13
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/select-input_2.entry.js +6 -6
- package/dist/esm/select-input_2.entry.js.map +1 -1
- package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
- package/dist/esm/state-options-ece00aa2.js.map +1 -0
- package/dist/esm/table-utils-6cdcaa8c.js +11 -0
- package/dist/esm/table-utils-6cdcaa8c.js.map +1 -0
- package/dist/esm/utils-ad0bbe03.js +3911 -0
- package/dist/esm/utils-ad0bbe03.js.map +1 -0
- package/dist/esm/utils-cdf0b984.js +28 -0
- package/dist/esm/utils-cdf0b984.js.map +1 -0
- package/dist/esm/webcomponents.js +4 -7
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Business.d.ts +133 -0
- package/dist/types/api/Payment.d.ts +1 -0
- package/dist/types/api/Payout.d.ts +60 -0
- package/dist/types/api/Proceed.d.ts +60 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/shared.d.ts +11 -0
- package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +15 -0
- package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
- package/dist/types/components/business-form/business-form-schema.d.ts +119 -0
- package/dist/types/components/business-form/business-form.d.ts +19 -0
- package/dist/types/components/business-form/business-form.stories.d.ts +21 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +15 -0
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +33 -0
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
- package/dist/types/components/business-form/business-representative/business-representative.d.ts +11 -0
- package/dist/types/components/business-list/business-list.d.ts +35 -0
- package/dist/types/components/business-list/business-list.stories.d.ts +9 -0
- package/dist/types/components/details/details.d.ts +7 -0
- package/dist/types/components/details/utils.d.ts +19 -0
- package/dist/types/components/form/form-control-datepart.d.ts +19 -0
- package/dist/types/components/form/form-control-monetary.d.ts +17 -0
- package/dist/types/components/form/form-control-number-masked.d.ts +19 -0
- package/dist/types/components/form/form-control-number.d.ts +18 -0
- package/dist/types/components/form/form-control-select.d.ts +21 -0
- package/dist/types/components/form/form-control-text.d.ts +18 -0
- package/dist/types/components/form/form.d.ts +22 -0
- package/dist/types/components/legal-address-form/legal-address-form-schema.d.ts +17 -0
- package/dist/types/components/legal-address-form/legal-address-form.d.ts +16 -0
- package/dist/types/components/payment-details/payment-details.d.ts +28 -0
- package/dist/types/components/payment-details/payment-details.stories.d.ts +8 -0
- package/dist/types/components/payment-form/payment-form.d.ts +2 -0
- package/dist/types/components/payment-method-form/theme.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list.d.ts +30 -5
- package/dist/types/components/payments-list/payments-list.stories.d.ts +10 -0
- package/dist/types/components/payout-details/payout-details.d.ts +28 -0
- package/dist/types/components/payout-details/payout-details.stories.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +37 -0
- package/dist/types/components/payouts-list/payouts-list.stories.d.ts +9 -0
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +37 -0
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +9 -0
- package/dist/types/components/table/table-utils.d.ts +14 -0
- package/dist/types/components/table/table.d.ts +28 -0
- package/dist/types/components.d.ts +964 -28
- package/dist/types/stencil-public-runtime.d.ts +16 -2
- package/dist/types/utils/country-options.d.ts +5 -0
- package/dist/types/utils/phone-masks.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +3 -0
- package/dist/webcomponents/p-0237a6bc.entry.js +2 -0
- package/dist/webcomponents/p-0237a6bc.entry.js.map +1 -0
- package/dist/webcomponents/p-0d6e9f76.entry.js +2 -0
- package/dist/webcomponents/p-0d6e9f76.entry.js.map +1 -0
- package/dist/webcomponents/p-126146d4.js +2 -0
- package/dist/webcomponents/p-126146d4.js.map +1 -0
- package/dist/webcomponents/p-239564c6.entry.js +2 -0
- package/dist/webcomponents/p-239564c6.entry.js.map +1 -0
- package/dist/webcomponents/p-27b15fe8.entry.js +2 -0
- package/dist/webcomponents/p-27b15fe8.entry.js.map +1 -0
- package/dist/webcomponents/p-2c2cde2d.js +2 -0
- package/dist/webcomponents/p-2c2cde2d.js.map +1 -0
- package/dist/webcomponents/p-308b6784.js +3 -0
- package/dist/webcomponents/p-308b6784.js.map +1 -0
- package/dist/webcomponents/p-391b8f1d.entry.js +2 -0
- package/dist/webcomponents/p-391b8f1d.entry.js.map +1 -0
- package/dist/webcomponents/p-439fc294.entry.js +2 -0
- package/dist/webcomponents/p-439fc294.entry.js.map +1 -0
- package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
- package/dist/webcomponents/p-47bc59b5.js.map +1 -0
- package/dist/webcomponents/p-66f010e5.entry.js +2 -0
- package/dist/webcomponents/p-66f010e5.entry.js.map +1 -0
- package/dist/webcomponents/p-7abb092c.entry.js +2 -0
- package/dist/webcomponents/p-7abb092c.entry.js.map +1 -0
- package/dist/webcomponents/p-7e3bbe32.entry.js +2 -0
- package/dist/webcomponents/p-7e3bbe32.entry.js.map +1 -0
- package/dist/webcomponents/p-86464cab.entry.js +2 -0
- package/dist/webcomponents/p-86464cab.entry.js.map +1 -0
- package/dist/webcomponents/p-8f421dc6.js +2 -0
- package/dist/webcomponents/p-8f421dc6.js.map +1 -0
- package/dist/webcomponents/p-9346ae33.js +2 -0
- package/dist/webcomponents/p-9346ae33.js.map +1 -0
- package/dist/webcomponents/p-ab0756ff.js +2 -0
- package/dist/webcomponents/p-ab0756ff.js.map +1 -0
- package/dist/webcomponents/p-b042bf80.entry.js +2 -0
- package/dist/webcomponents/p-b042bf80.entry.js.map +1 -0
- package/dist/webcomponents/p-b967262f.entry.js +2 -0
- package/dist/webcomponents/p-b967262f.entry.js.map +1 -0
- package/dist/webcomponents/p-bf9c2be2.entry.js +2 -0
- package/dist/webcomponents/p-bf9c2be2.entry.js.map +1 -0
- package/dist/webcomponents/p-c18d876e.entry.js +2 -0
- package/dist/webcomponents/p-c18d876e.entry.js.map +1 -0
- package/dist/webcomponents/p-c1e4288d.entry.js +2 -0
- package/dist/webcomponents/p-c1e4288d.entry.js.map +1 -0
- package/dist/webcomponents/p-c46241ba.js +2 -0
- package/dist/webcomponents/p-c46241ba.js.map +1 -0
- package/dist/webcomponents/p-ccb0e1c5.js +2 -0
- package/dist/webcomponents/p-ccb0e1c5.js.map +1 -0
- package/dist/webcomponents/p-d1bbf409.entry.js +2 -0
- package/dist/webcomponents/p-d1bbf409.entry.js.map +1 -0
- package/dist/webcomponents/p-e26d7eea.entry.js +2 -0
- package/dist/webcomponents/p-e26d7eea.entry.js.map +1 -0
- package/dist/webcomponents/p-e77d8c6e.entry.js +2 -0
- package/dist/webcomponents/p-e77d8c6e.entry.js.map +1 -0
- package/dist/webcomponents/p-f0acb27e.entry.js +2 -0
- package/dist/webcomponents/p-f0acb27e.entry.js.map +1 -0
- package/dist/webcomponents/p-f8d49acb.entry.js +2 -0
- package/dist/webcomponents/p-f8d49acb.entry.js.map +1 -0
- package/dist/webcomponents/p-f9e127a5.js +2 -0
- package/dist/webcomponents/p-f9e127a5.js.map +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +16 -16
- package/CHANGELOG.md +0 -208
- package/changelog-template.hbs +0 -10
- package/dist/cjs/Api-11362403.js.map +0 -1
- package/dist/cjs/Payment-ac4dea02.js.map +0 -1
- package/dist/cjs/index-34312a38.js.map +0 -1
- package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
- package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
- package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
- package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
- package/dist/cjs/state-options-efeaa587.js.map +0 -1
- package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
- package/dist/collection/components/business-address/business-address.js +0 -100
- package/dist/collection/components/business-address/business-address.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
- package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
- package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
- package/dist/collection/components/business-info/business-info-schema.js +0 -94
- package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
- package/dist/collection/components/business-info/business-info.js +0 -168
- package/dist/collection/components/business-info/business-info.js.map +0 -1
- package/dist/components/Payment.js.map +0 -1
- package/dist/components/justifi-business-address.d.ts +0 -11
- package/dist/components/justifi-business-address.js +0 -99
- package/dist/components/justifi-business-address.js.map +0 -1
- package/dist/components/justifi-business-info.js +0 -207
- package/dist/components/justifi-business-info.js.map +0 -1
- package/dist/esm/Api-a07f0057.js.map +0 -1
- package/dist/esm/Payment-c86e1e84.js.map +0 -1
- package/dist/esm/index-044f93fc.js.map +0 -1
- package/dist/esm/index.esm-5624a5ed.js.map +0 -1
- package/dist/esm/justifi-business-address.entry.js +0 -65
- package/dist/esm/justifi-business-address.entry.js.map +0 -1
- package/dist/esm/justifi-business-info.entry.js +0 -170
- package/dist/esm/justifi-business-info.entry.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
- package/dist/types/components/business-address/business-address.d.ts +0 -11
- package/dist/types/components/business-info/business-info-schema.d.ts +0 -42
- package/dist/types/components/business-info/business-info.d.ts +0 -20
- package/dist/types/components/card-form/card-form.d.ts +0 -62
- package/dist/webcomponents/p-0969db8f.entry.js +0 -2
- package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
- package/dist/webcomponents/p-0ea23153.js.map +0 -1
- package/dist/webcomponents/p-1ca0646b.js +0 -2
- package/dist/webcomponents/p-1ca0646b.js.map +0 -1
- package/dist/webcomponents/p-1f151d49.js +0 -2
- package/dist/webcomponents/p-1f151d49.js.map +0 -1
- package/dist/webcomponents/p-255b1284.entry.js +0 -2
- package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
- package/dist/webcomponents/p-3aa91155.js +0 -3
- package/dist/webcomponents/p-3aa91155.js.map +0 -1
- package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
- package/dist/webcomponents/p-4ecc9860.entry.js.map +0 -1
- package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
- package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
- package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
- package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
- package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
- package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
- package/dist/webcomponents/p-d87b0711.entry.js +0 -2
- package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
- package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
- package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
- package/dist/webcomponents/p-e0054bc3.js +0 -2
- package/dist/webcomponents/p-e0054bc3.js.map +0 -1
- package/dist/webcomponents/p-f30d1567.entry.js +0 -2
- package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
- /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bank-account-form.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAgB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQ/F,MAAM,OAAO,eAAe;;;;;;
|
|
1
|
+
{"version":3,"file":"bank-account-form.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAgB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQ/F,MAAM,OAAO,eAAe;;;;;;EAsC1B,YAAY,CAAC,KAAkB;IAC7B,OAAO,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAC;IACxH,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EACzB,CAAC;EAGD,eAAe,CAAC,KAAoB;IAClC,OAAO,CAAC,IAAI,CACV,+MAA+M,CAChN,CAAC;IACF,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC3C,CAAC;EAGD,eAAe,CAAC,KAAoB;IAClC,OAAO,CAAC,IAAI,CACV,+MAA+M,CAChN,CAAC;IACF,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC3C,CAAC;EAID;;KAEG;EAEH,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAiE;IACjF,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;EACzC,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,QAAQ;IACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;EAClC,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,MAAM;IACV,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;EAChC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,mCACE,GAAG,EAAE,EAAE,CAAC,EAAE;QACR,IAAI,EAAE,EAAE;UACN,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;SACpB;MACH,CAAC,mBACc,IAAI,CAAC,YAAY,8BACP,aAAa,+BACX,IAAI,CAAC,oBAAoB,kCACtB,IAAI,CAAC,uBAAuB,yCACrB,IAAI,CAAC,cAAc,IAAI,UAAU,GACtE,CACH,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, Prop, h, EventEmitter, Listen, Method, State } from '@stencil/core';\nimport { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';\nimport { Theme } from '../payment-method-form/theme';\n\n@Component({\n tag: 'justifi-bank-account-form',\n shadow: false,\n})\nexport class BankAccountForm {\n /**\n * When to trigger validation of the form.\n */\n @Prop({ mutable: true }) validationMode: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';\n\n /**\n * URL for the rendered iFrame. End-users need not use this.\n */\n @Prop({ mutable: true }) iframeOrigin?: string;\n\n @State() internalStyleOverrides: Theme;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-bank-account-form#bankAccountFormReady\n */\n @Event() bankAccountFormReady: EventEmitter<any>;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-bank-account-form#ready\n */\n @Event() ready: EventEmitter<any>;\n\n /**\n * Triggered when the tokenize method is called on the component\n * @event justifi-bank-account-form#bankAccountFormTokenize\n */\n @Event() bankAccountFormTokenize: EventEmitter<{ data: any }>;\n\n /**\n * Triggered when the validate method is called on the component\n * @event justifi-bank-account-form#bankAccountFormValidate\n */\n @Event() bankAccountFormValidate: EventEmitter<{ data: { isValid: boolean } }>;\n\n @Listen('paymentMethodFormReady')\n readyHandler(event: CustomEvent) {\n console.warn(`The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);\n this.bankAccountFormReady.emit(event);\n this.ready.emit(event);\n }\n\n @Listen('paymentMethodFormTokenize')\n tokenizeHandler(event: { data: any }) {\n console.warn(\n `The 'bankAccountFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.bankAccountFormTokenize.emit(event);\n }\n\n @Listen('paymentMethodFormValidate')\n validateHandler(event: { data: any }) {\n console.warn(\n `The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.bankAccountFormValidate.emit(event);\n }\n\n private childRef?: HTMLJustifiPaymentMethodFormElement;\n\n /**\n * Makes a tokenization request to the iframe\n */\n @Method()\n async tokenize(...args: Parameters<HTMLJustifiPaymentMethodFormElement['tokenize']>): Promise<CreatePaymentMethodResponse> {\n if (!this.childRef) {\n throw new Error('Cannot call tokenize');\n }\n return this.childRef.tokenize(...args);\n }\n\n /**\n * Runs a validation on the form and shows errors if any\n */\n @Method()\n async validate() {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.validate();\n }\n\n /**\n * Manually resizes the iframe to fit the contents of the iframe\n */\n @Method()\n async resize(): Promise<void> {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.resize();\n }\n\n render() {\n return (\n <justifi-payment-method-form\n ref={el => {\n if (el) {\n this.childRef = el;\n }\n }}\n iframe-origin={this.iframeOrigin}\n payment-method-form-type=\"bankAccount\"\n payment-method-form-ready={this.bankAccountFormReady}\n payment-method-form-tokenize={this.bankAccountFormTokenize}\n payment-method-form-validation-mode={this.validationMode || 'onSubmit'}\n />\n );\n }\n}\n"]}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const isDev = process.env.NODE_ENV === 'development';
|
|
2
2
|
const CSSVars = `
|
|
3
|
+
--jfi-load-google-font: 'Roboto Mono:wght@200;400;700;900&family=Agdasima';
|
|
4
|
+
--jfi-layout-font-family: Roboto Mono;
|
|
3
5
|
--jfi-layout-padding: 4px;
|
|
4
6
|
--jfi-layout-form-control-spacing-x: .5rem;
|
|
5
7
|
--jfi-layout-form-control-spacing-y: 1rem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bank-account-form.stories.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.stories.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AACrD,MAAM,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"bank-account-form.stories.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.stories.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CA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I,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,GAAG;EACZ,eAAe,EAAE,OAAO;CACzB,CAAC","sourcesContent":["const isDev = process.env.NODE_ENV === 'development';\nconst CSSVars = `\n--jfi-load-google-font: 'Roboto Mono:wght@200;400;700;900&family=Agdasima';\n--jfi-layout-font-family: Roboto Mono;\n--jfi-layout-padding: 4px;\n--jfi-layout-form-control-spacing-x: .5rem;\n--jfi-layout-form-control-spacing-y: 1rem;\n--jfi-form-label-font-weight: 700;\n--jfi-form-label-font-family: sans-serif;\n--jfi-form-label-margin: 0 0 .5rem 0;\n--jfi-form-control-background-color: #F4F4F6;\n--jfi-form-control-background-color-hover: #EEEEF5;\n--jfi-form-control-border-color: rgba(0, 0, 0, 0.42);\n--jfi-form-control-border-color-hover: rgba(0, 0, 0, 0.62);\n--jfi-form-control-border-color-focus: #fccc32;\n--jfi-form-control-border-color-error: #C12727;\n--jfi-form-control-border-top-width: 0;\n--jfi-form-control-border-left-width: 0;\n--jfi-form-control-border-bottom-width: 1px;\n--jfi-form-control-border-right-width: 0;\n--jfi-form-control-border-radius: 4px 4px 0 0;\n--jfi-form-control-border-style: solid;\n--jfi-form-control-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n--jfi-form-control-box-shadow-focus: none;\n--jfi-form-control-box-shadow-error-focus: none;\n--jfi-form-control-border-style: solid;\n--jfi-form-control-color: #212529;\n--jfi-form-control-font-size: 1rem;\n--jfi-form-control-font-weight: 400;\n--jfi-form-control-line-height: 2;\n--jfi-form-control-margin: 0;\n--jfi-form-control-padding: .5rem .875rem;\n--jfi-error-message-color: #C12727;\n--jfi-error-message-margin: .25rem 0 0 0;\n--jfi-error-message-font-size: .875rem;\n`;\n\nexport default {\n title: 'Components/BankAccountForm',\n component: 'justifi-bank-account-form',\n argTypes: {\n 'iframe-origin': {\n control: 'text',\n table: {\n disable: isDev ? false : true,\n category: 'props',\n },\n },\n 'css-variables': {\n control: 'text',\n table: {\n category: 'props',\n defaultValue: CSSVars,\n },\n },\n },\n decorators: [\n story => `\n ${story()}\n <script>${addEvents()}</script>\n `,\n ],\n};\n\nconst handleValidateClick = async (bankForm: HTMLJustifiBankAccountFormElement) => {\n const valid = await bankForm.validate();\n console.log(valid);\n};\nconst handleTokenizeClick = async (bankForm: HTMLJustifiBankAccountFormElement, paymentMethodData: any) => {\n const tokenizeResponse = await bankForm.tokenize('CLIENT_ID', paymentMethodData);\n console.log(tokenizeResponse);\n};\nconst handleResizeClick = async (bankForm: HTMLJustifiBankAccountFormElement) => {\n await bankForm.resize();\n};\nconst handleReady = () => {\n console.log('bank account form is ready');\n const bankForm = document.querySelector('justifi-bank-account-form') as HTMLJustifiBankAccountFormElement;\n const validateBtn = document.querySelector('#validate-btn');\n const tokenizeBtn = document.querySelector('#tokenize-btn');\n const resizeBtn = document.querySelector('#resize-btn');\n validateBtn?.addEventListener('click', () => {\n handleValidateClick(bankForm);\n });\n tokenizeBtn?.addEventListener('click', () => {\n handleTokenizeClick(bankForm, {});\n });\n resizeBtn?.addEventListener('click', () => {\n handleResizeClick(bankForm);\n });\n};\n\nconst addEvents = () => {\n addEventListener('bankAccountFormReady', handleReady);\n};\n\nconst FormButtons = `\n <style>\n .button-bar {\n display: flex;\n aligin-items: center;\n padding: 10px;\n }\n .button-bar button {\n margin-right: 10px;\n }\n </style>\n <div class=\"button-bar\">\n <button id=\"validate-btn\">Validate</button>\n <button id=\"tokenize-btn\">Tokenize</button>\n <button id=\"resize-btn\">Resize</button>\n </div>\n`;\n\nconst Template = (args: any) => {\n return `\n <div>\n <style>\n :root {\n ${args['css-variables'] || ''}\n }\n </style>\n <justifi-bank-account-form\n data-testid=\"bank-account-form-iframe\"\n validation-mode='${args['validation-mode'] || 'onSubmit'}'\n iframe-origin='${args['iframe-origin'] || ''}'\n />\n </div>\n ${FormButtons}\n `;\n};\n\nexport const Basic = Template.bind({});\n\nexport const Styled = Template.bind({});\nStyled.args = {\n 'css-variables': CSSVars,\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { newE2EPage } from
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
2
|
describe('justifi-bank-account-form', () => {
|
|
3
3
|
it('should emit "bankAccountFormReady" event when "paymentMethodFormReady" event is fired', async () => {
|
|
4
4
|
const page = await newE2EPage();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { newSpecPage } from
|
|
2
|
-
import { BankAccountForm } from
|
|
3
|
-
import { PaymentMethodForm } from
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { BankAccountForm } from "../bank-account-form";
|
|
3
|
+
import { PaymentMethodForm } from "../../payment-method-form/payment-method-form";
|
|
4
4
|
describe('justifi-bank-account-form', () => {
|
|
5
5
|
it('should pass validationMode prop to justifi-payment-method-form', async () => {
|
|
6
6
|
const page = await newSpecPage({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
:root
|
|
1
|
+
:root,
|
|
2
|
+
[data-bs-theme=light] {
|
|
2
3
|
--bs-blue: #0d6efd;
|
|
3
4
|
--bs-indigo: #6610f2;
|
|
4
5
|
--bs-purple: #6f42c1;
|
|
@@ -38,10 +39,32 @@
|
|
|
38
39
|
--bs-danger-rgb: 220, 53, 69;
|
|
39
40
|
--bs-light-rgb: 248, 249, 250;
|
|
40
41
|
--bs-dark-rgb: 33, 37, 41;
|
|
42
|
+
--bs-primary-text-emphasis: #052c65;
|
|
43
|
+
--bs-secondary-text-emphasis: #2b2f32;
|
|
44
|
+
--bs-success-text-emphasis: #0a3622;
|
|
45
|
+
--bs-info-text-emphasis: #055160;
|
|
46
|
+
--bs-warning-text-emphasis: #664d03;
|
|
47
|
+
--bs-danger-text-emphasis: #58151c;
|
|
48
|
+
--bs-light-text-emphasis: #495057;
|
|
49
|
+
--bs-dark-text-emphasis: #495057;
|
|
50
|
+
--bs-primary-bg-subtle: #cfe2ff;
|
|
51
|
+
--bs-secondary-bg-subtle: #e2e3e5;
|
|
52
|
+
--bs-success-bg-subtle: #d1e7dd;
|
|
53
|
+
--bs-info-bg-subtle: #cff4fc;
|
|
54
|
+
--bs-warning-bg-subtle: #fff3cd;
|
|
55
|
+
--bs-danger-bg-subtle: #f8d7da;
|
|
56
|
+
--bs-light-bg-subtle: #fcfcfd;
|
|
57
|
+
--bs-dark-bg-subtle: #ced4da;
|
|
58
|
+
--bs-primary-border-subtle: #9ec5fe;
|
|
59
|
+
--bs-secondary-border-subtle: #c4c8cb;
|
|
60
|
+
--bs-success-border-subtle: #a3cfbb;
|
|
61
|
+
--bs-info-border-subtle: #9eeaf9;
|
|
62
|
+
--bs-warning-border-subtle: #ffe69c;
|
|
63
|
+
--bs-danger-border-subtle: #f1aeb5;
|
|
64
|
+
--bs-light-border-subtle: #e9ecef;
|
|
65
|
+
--bs-dark-border-subtle: #adb5bd;
|
|
41
66
|
--bs-white-rgb: 255, 255, 255;
|
|
42
67
|
--bs-black-rgb: 0, 0, 0;
|
|
43
|
-
--bs-body-color-rgb: 33, 37, 41;
|
|
44
|
-
--bs-body-bg-rgb: 255, 255, 255;
|
|
45
68
|
--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
46
69
|
--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
47
70
|
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
|
|
@@ -50,7 +73,27 @@
|
|
|
50
73
|
--bs-body-font-weight: 400;
|
|
51
74
|
--bs-body-line-height: 1.5;
|
|
52
75
|
--bs-body-color: #212529;
|
|
76
|
+
--bs-body-color-rgb: 33, 37, 41;
|
|
53
77
|
--bs-body-bg: #fff;
|
|
78
|
+
--bs-body-bg-rgb: 255, 255, 255;
|
|
79
|
+
--bs-emphasis-color: #000;
|
|
80
|
+
--bs-emphasis-color-rgb: 0, 0, 0;
|
|
81
|
+
--bs-secondary-color: rgba(33, 37, 41, 0.75);
|
|
82
|
+
--bs-secondary-color-rgb: 33, 37, 41;
|
|
83
|
+
--bs-secondary-bg: #e9ecef;
|
|
84
|
+
--bs-secondary-bg-rgb: 233, 236, 239;
|
|
85
|
+
--bs-tertiary-color: rgba(33, 37, 41, 0.5);
|
|
86
|
+
--bs-tertiary-color-rgb: 33, 37, 41;
|
|
87
|
+
--bs-tertiary-bg: #f8f9fa;
|
|
88
|
+
--bs-tertiary-bg-rgb: 248, 249, 250;
|
|
89
|
+
--bs-heading-color: inherit;
|
|
90
|
+
--bs-link-color: #0d6efd;
|
|
91
|
+
--bs-link-color-rgb: 13, 110, 253;
|
|
92
|
+
--bs-link-decoration: underline;
|
|
93
|
+
--bs-link-hover-color: #0a58ca;
|
|
94
|
+
--bs-link-hover-color-rgb: 10, 88, 202;
|
|
95
|
+
--bs-code-color: #d63384;
|
|
96
|
+
--bs-highlight-bg: #fff3cd;
|
|
54
97
|
--bs-border-width: 1px;
|
|
55
98
|
--bs-border-style: solid;
|
|
56
99
|
--bs-border-color: #dee2e6;
|
|
@@ -59,12 +102,74 @@
|
|
|
59
102
|
--bs-border-radius-sm: 0.25rem;
|
|
60
103
|
--bs-border-radius-lg: 0.5rem;
|
|
61
104
|
--bs-border-radius-xl: 1rem;
|
|
62
|
-
--bs-border-radius-
|
|
105
|
+
--bs-border-radius-xxl: 2rem;
|
|
106
|
+
--bs-border-radius-2xl: var(--bs-border-radius-xxl);
|
|
63
107
|
--bs-border-radius-pill: 50rem;
|
|
64
|
-
--bs-
|
|
65
|
-
--bs-
|
|
66
|
-
--bs-
|
|
67
|
-
--bs-
|
|
108
|
+
--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
|
109
|
+
--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
110
|
+
--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
|
|
111
|
+
--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
|
|
112
|
+
--bs-focus-ring-width: 0.25rem;
|
|
113
|
+
--bs-focus-ring-opacity: 0.25;
|
|
114
|
+
--bs-focus-ring-color: rgba(13, 110, 253, 0.25);
|
|
115
|
+
--bs-form-valid-color: #198754;
|
|
116
|
+
--bs-form-valid-border-color: #198754;
|
|
117
|
+
--bs-form-invalid-color: #dc3545;
|
|
118
|
+
--bs-form-invalid-border-color: #dc3545;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-bs-theme=dark] {
|
|
122
|
+
color-scheme: dark;
|
|
123
|
+
--bs-body-color: #dee2e6;
|
|
124
|
+
--bs-body-color-rgb: 222, 226, 230;
|
|
125
|
+
--bs-body-bg: #212529;
|
|
126
|
+
--bs-body-bg-rgb: 33, 37, 41;
|
|
127
|
+
--bs-emphasis-color: #fff;
|
|
128
|
+
--bs-emphasis-color-rgb: 255, 255, 255;
|
|
129
|
+
--bs-secondary-color: rgba(222, 226, 230, 0.75);
|
|
130
|
+
--bs-secondary-color-rgb: 222, 226, 230;
|
|
131
|
+
--bs-secondary-bg: #343a40;
|
|
132
|
+
--bs-secondary-bg-rgb: 52, 58, 64;
|
|
133
|
+
--bs-tertiary-color: rgba(222, 226, 230, 0.5);
|
|
134
|
+
--bs-tertiary-color-rgb: 222, 226, 230;
|
|
135
|
+
--bs-tertiary-bg: #2b3035;
|
|
136
|
+
--bs-tertiary-bg-rgb: 43, 48, 53;
|
|
137
|
+
--bs-primary-text-emphasis: #6ea8fe;
|
|
138
|
+
--bs-secondary-text-emphasis: #a7acb1;
|
|
139
|
+
--bs-success-text-emphasis: #75b798;
|
|
140
|
+
--bs-info-text-emphasis: #6edff6;
|
|
141
|
+
--bs-warning-text-emphasis: #ffda6a;
|
|
142
|
+
--bs-danger-text-emphasis: #ea868f;
|
|
143
|
+
--bs-light-text-emphasis: #f8f9fa;
|
|
144
|
+
--bs-dark-text-emphasis: #dee2e6;
|
|
145
|
+
--bs-primary-bg-subtle: #031633;
|
|
146
|
+
--bs-secondary-bg-subtle: #161719;
|
|
147
|
+
--bs-success-bg-subtle: #051b11;
|
|
148
|
+
--bs-info-bg-subtle: #032830;
|
|
149
|
+
--bs-warning-bg-subtle: #332701;
|
|
150
|
+
--bs-danger-bg-subtle: #2c0b0e;
|
|
151
|
+
--bs-light-bg-subtle: #343a40;
|
|
152
|
+
--bs-dark-bg-subtle: #1a1d20;
|
|
153
|
+
--bs-primary-border-subtle: #084298;
|
|
154
|
+
--bs-secondary-border-subtle: #41464b;
|
|
155
|
+
--bs-success-border-subtle: #0f5132;
|
|
156
|
+
--bs-info-border-subtle: #087990;
|
|
157
|
+
--bs-warning-border-subtle: #997404;
|
|
158
|
+
--bs-danger-border-subtle: #842029;
|
|
159
|
+
--bs-light-border-subtle: #495057;
|
|
160
|
+
--bs-dark-border-subtle: #343a40;
|
|
161
|
+
--bs-heading-color: inherit;
|
|
162
|
+
--bs-link-color: #6ea8fe;
|
|
163
|
+
--bs-link-hover-color: #8bb9fe;
|
|
164
|
+
--bs-link-color-rgb: 110, 168, 254;
|
|
165
|
+
--bs-link-hover-color-rgb: 139, 185, 254;
|
|
166
|
+
--bs-code-color: #e685b5;
|
|
167
|
+
--bs-border-color: #495057;
|
|
168
|
+
--bs-border-color-translucent: rgba(255, 255, 255, 0.15);
|
|
169
|
+
--bs-form-valid-color: #75b798;
|
|
170
|
+
--bs-form-valid-border-color: #75b798;
|
|
171
|
+
--bs-form-invalid-color: #ea868f;
|
|
172
|
+
--bs-form-invalid-border-color: #ea868f;
|
|
68
173
|
}
|
|
69
174
|
|
|
70
175
|
.spinner-grow,
|
|
@@ -137,98 +242,153 @@
|
|
|
137
242
|
|
|
138
243
|
.text-bg-primary {
|
|
139
244
|
color: #fff !important;
|
|
140
|
-
background-color: RGBA(
|
|
245
|
+
background-color: RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
141
246
|
}
|
|
142
247
|
|
|
143
248
|
.text-bg-secondary {
|
|
144
249
|
color: #fff !important;
|
|
145
|
-
background-color: RGBA(
|
|
250
|
+
background-color: RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
146
251
|
}
|
|
147
252
|
|
|
148
253
|
.text-bg-success {
|
|
149
254
|
color: #fff !important;
|
|
150
|
-
background-color: RGBA(
|
|
255
|
+
background-color: RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
151
256
|
}
|
|
152
257
|
|
|
153
258
|
.text-bg-info {
|
|
154
259
|
color: #000 !important;
|
|
155
|
-
background-color: RGBA(
|
|
260
|
+
background-color: RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
156
261
|
}
|
|
157
262
|
|
|
158
263
|
.text-bg-warning {
|
|
159
264
|
color: #000 !important;
|
|
160
|
-
background-color: RGBA(
|
|
265
|
+
background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
161
266
|
}
|
|
162
267
|
|
|
163
268
|
.text-bg-danger {
|
|
164
269
|
color: #fff !important;
|
|
165
|
-
background-color: RGBA(
|
|
270
|
+
background-color: RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
166
271
|
}
|
|
167
272
|
|
|
168
273
|
.text-bg-light {
|
|
169
274
|
color: #000 !important;
|
|
170
|
-
background-color: RGBA(
|
|
275
|
+
background-color: RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
171
276
|
}
|
|
172
277
|
|
|
173
278
|
.text-bg-dark {
|
|
174
279
|
color: #fff !important;
|
|
175
|
-
background-color: RGBA(
|
|
280
|
+
background-color: RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important;
|
|
176
281
|
}
|
|
177
282
|
|
|
178
283
|
.link-primary {
|
|
179
|
-
color:
|
|
284
|
+
color: RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;
|
|
285
|
+
text-decoration-color: RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
180
286
|
}
|
|
181
287
|
.link-primary:hover, .link-primary:focus {
|
|
182
|
-
color:
|
|
288
|
+
color: RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;
|
|
289
|
+
text-decoration-color: RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important;
|
|
183
290
|
}
|
|
184
291
|
|
|
185
292
|
.link-secondary {
|
|
186
|
-
color:
|
|
293
|
+
color: RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;
|
|
294
|
+
text-decoration-color: RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
187
295
|
}
|
|
188
296
|
.link-secondary:hover, .link-secondary:focus {
|
|
189
|
-
color:
|
|
297
|
+
color: RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;
|
|
298
|
+
text-decoration-color: RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important;
|
|
190
299
|
}
|
|
191
300
|
|
|
192
301
|
.link-success {
|
|
193
|
-
color:
|
|
302
|
+
color: RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;
|
|
303
|
+
text-decoration-color: RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
194
304
|
}
|
|
195
305
|
.link-success:hover, .link-success:focus {
|
|
196
|
-
color:
|
|
306
|
+
color: RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;
|
|
307
|
+
text-decoration-color: RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important;
|
|
197
308
|
}
|
|
198
309
|
|
|
199
310
|
.link-info {
|
|
200
|
-
color:
|
|
311
|
+
color: RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;
|
|
312
|
+
text-decoration-color: RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
201
313
|
}
|
|
202
314
|
.link-info:hover, .link-info:focus {
|
|
203
|
-
color:
|
|
315
|
+
color: RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;
|
|
316
|
+
text-decoration-color: RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important;
|
|
204
317
|
}
|
|
205
318
|
|
|
206
319
|
.link-warning {
|
|
207
|
-
color:
|
|
320
|
+
color: RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;
|
|
321
|
+
text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
208
322
|
}
|
|
209
323
|
.link-warning:hover, .link-warning:focus {
|
|
210
|
-
color:
|
|
324
|
+
color: RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;
|
|
325
|
+
text-decoration-color: RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important;
|
|
211
326
|
}
|
|
212
327
|
|
|
213
328
|
.link-danger {
|
|
214
|
-
color:
|
|
329
|
+
color: RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;
|
|
330
|
+
text-decoration-color: RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
215
331
|
}
|
|
216
332
|
.link-danger:hover, .link-danger:focus {
|
|
217
|
-
color:
|
|
333
|
+
color: RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;
|
|
334
|
+
text-decoration-color: RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important;
|
|
218
335
|
}
|
|
219
336
|
|
|
220
337
|
.link-light {
|
|
221
|
-
color:
|
|
338
|
+
color: RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;
|
|
339
|
+
text-decoration-color: RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
222
340
|
}
|
|
223
341
|
.link-light:hover, .link-light:focus {
|
|
224
|
-
color:
|
|
342
|
+
color: RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;
|
|
343
|
+
text-decoration-color: RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important;
|
|
225
344
|
}
|
|
226
345
|
|
|
227
346
|
.link-dark {
|
|
228
|
-
color:
|
|
347
|
+
color: RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;
|
|
348
|
+
text-decoration-color: RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
229
349
|
}
|
|
230
350
|
.link-dark:hover, .link-dark:focus {
|
|
231
|
-
color:
|
|
351
|
+
color: RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;
|
|
352
|
+
text-decoration-color: RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.link-body-emphasis {
|
|
356
|
+
color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;
|
|
357
|
+
text-decoration-color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important;
|
|
358
|
+
}
|
|
359
|
+
.link-body-emphasis:hover, .link-body-emphasis:focus {
|
|
360
|
+
color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;
|
|
361
|
+
text-decoration-color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.focus-ring:focus {
|
|
365
|
+
outline: 0;
|
|
366
|
+
box-shadow: var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.icon-link {
|
|
370
|
+
display: inline-flex;
|
|
371
|
+
gap: 0.375rem;
|
|
372
|
+
align-items: center;
|
|
373
|
+
text-decoration-color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));
|
|
374
|
+
text-underline-offset: 0.25em;
|
|
375
|
+
backface-visibility: hidden;
|
|
376
|
+
}
|
|
377
|
+
.icon-link > .bi {
|
|
378
|
+
flex-shrink: 0;
|
|
379
|
+
width: 1em;
|
|
380
|
+
height: 1em;
|
|
381
|
+
fill: currentcolor;
|
|
382
|
+
transition: 0.2s ease-in-out transform;
|
|
383
|
+
}
|
|
384
|
+
@media (prefers-reduced-motion: reduce) {
|
|
385
|
+
.icon-link > .bi {
|
|
386
|
+
transition: none;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.icon-link-hover:hover > .bi, .icon-link-hover:focus-visible > .bi {
|
|
391
|
+
transform: var(--bs-icon-link-transform, translate3d(0.25em, 0, 0));
|
|
232
392
|
}
|
|
233
393
|
|
|
234
394
|
.ratio {
|
|
@@ -368,7 +528,6 @@
|
|
|
368
528
|
|
|
369
529
|
.visually-hidden,
|
|
370
530
|
.visually-hidden-focusable:not(:focus):not(:focus-within) {
|
|
371
|
-
position: absolute !important;
|
|
372
531
|
width: 1px !important;
|
|
373
532
|
height: 1px !important;
|
|
374
533
|
padding: 0 !important;
|
|
@@ -378,6 +537,10 @@
|
|
|
378
537
|
white-space: nowrap !important;
|
|
379
538
|
border: 0 !important;
|
|
380
539
|
}
|
|
540
|
+
.visually-hidden:not(caption),
|
|
541
|
+
.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption) {
|
|
542
|
+
position: absolute !important;
|
|
543
|
+
}
|
|
381
544
|
|
|
382
545
|
.stretched-link::after {
|
|
383
546
|
position: absolute;
|
|
@@ -398,7 +561,7 @@
|
|
|
398
561
|
.vr {
|
|
399
562
|
display: inline-block;
|
|
400
563
|
align-self: stretch;
|
|
401
|
-
width:
|
|
564
|
+
width: var(--bs-border-width);
|
|
402
565
|
min-height: 1em;
|
|
403
566
|
background-color: currentcolor;
|
|
404
567
|
opacity: 0.25;
|
|
@@ -433,7 +596,7 @@ hr {
|
|
|
433
596
|
margin: 1rem 0;
|
|
434
597
|
color: inherit;
|
|
435
598
|
border: 0;
|
|
436
|
-
border-top:
|
|
599
|
+
border-top: var(--bs-border-width) solid;
|
|
437
600
|
opacity: 0.25;
|
|
438
601
|
}
|
|
439
602
|
|
|
@@ -442,6 +605,7 @@ h6, h5, h4, h3, h2, h1 {
|
|
|
442
605
|
margin-bottom: 0.5rem;
|
|
443
606
|
font-weight: 500;
|
|
444
607
|
line-height: 1.2;
|
|
608
|
+
color: var(--bs-heading-color);
|
|
445
609
|
}
|
|
446
610
|
|
|
447
611
|
h1 {
|
|
@@ -568,11 +732,11 @@ sup {
|
|
|
568
732
|
}
|
|
569
733
|
|
|
570
734
|
a {
|
|
571
|
-
color: var(--bs-link-color);
|
|
735
|
+
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
|
|
572
736
|
text-decoration: underline;
|
|
573
737
|
}
|
|
574
738
|
a:hover {
|
|
575
|
-
color: var(--bs-link-hover-color);
|
|
739
|
+
--bs-link-color-rgb: var(--bs-link-hover-color-rgb);
|
|
576
740
|
}
|
|
577
741
|
|
|
578
742
|
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
|
@@ -639,7 +803,7 @@ table {
|
|
|
639
803
|
caption {
|
|
640
804
|
padding-top: 0.5rem;
|
|
641
805
|
padding-bottom: 0.5rem;
|
|
642
|
-
color:
|
|
806
|
+
color: var(--bs-secondary-color);
|
|
643
807
|
text-align: left;
|
|
644
808
|
}
|
|
645
809
|
|
|
@@ -763,8 +927,8 @@ legend + * {
|
|
|
763
927
|
}
|
|
764
928
|
|
|
765
929
|
[type=search] {
|
|
766
|
-
outline-offset: -2px;
|
|
767
930
|
-webkit-appearance: textfield;
|
|
931
|
+
outline-offset: -2px;
|
|
768
932
|
}
|
|
769
933
|
|
|
770
934
|
/* rtl:raw:
|
|
@@ -809,6 +973,15 @@ progress {
|
|
|
809
973
|
display: none !important;
|
|
810
974
|
}
|
|
811
975
|
|
|
976
|
+
:root {
|
|
977
|
+
--bs-breakpoint-xs: 0;
|
|
978
|
+
--bs-breakpoint-sm: 576px;
|
|
979
|
+
--bs-breakpoint-md: 768px;
|
|
980
|
+
--bs-breakpoint-lg: 992px;
|
|
981
|
+
--bs-breakpoint-xl: 1200px;
|
|
982
|
+
--bs-breakpoint-xxl: 1400px;
|
|
983
|
+
}
|
|
984
|
+
|
|
812
985
|
.row {
|
|
813
986
|
--bs-gutter-x: 1.5rem;
|
|
814
987
|
--bs-gutter-y: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Host, h } from
|
|
2
|
-
import BillingFormSchema from
|
|
3
|
-
import StateOptions from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import BillingFormSchema from "./billing-form-schema";
|
|
3
|
+
import StateOptions from "./state-options";
|
|
4
4
|
/**
|
|
5
5
|
* @exportedPart label: Label for inputs
|
|
6
6
|
* @exportedPart input: The input fields
|
|
@@ -79,7 +79,7 @@ export class BillingForm {
|
|
|
79
79
|
return {
|
|
80
80
|
"legend": {
|
|
81
81
|
"type": "string",
|
|
82
|
-
"mutable":
|
|
82
|
+
"mutable": true,
|
|
83
83
|
"complexType": {
|
|
84
84
|
"original": "string",
|
|
85
85
|
"resolved": "string",
|
|
@@ -116,11 +116,13 @@ export class BillingForm {
|
|
|
116
116
|
}],
|
|
117
117
|
"references": {
|
|
118
118
|
"Promise": {
|
|
119
|
-
"location": "global"
|
|
119
|
+
"location": "global",
|
|
120
|
+
"id": "global::Promise"
|
|
120
121
|
},
|
|
121
122
|
"BillingFormFields": {
|
|
122
123
|
"location": "import",
|
|
123
|
-
"path": "./billing-form-schema"
|
|
124
|
+
"path": "./billing-form-schema",
|
|
125
|
+
"id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
124
126
|
}
|
|
125
127
|
},
|
|
126
128
|
"return": "Promise<void>"
|
|
@@ -139,11 +141,13 @@ export class BillingForm {
|
|
|
139
141
|
"parameters": [],
|
|
140
142
|
"references": {
|
|
141
143
|
"Promise": {
|
|
142
|
-
"location": "global"
|
|
144
|
+
"location": "global",
|
|
145
|
+
"id": "global::Promise"
|
|
143
146
|
},
|
|
144
147
|
"ValidationError": {
|
|
145
148
|
"location": "import",
|
|
146
|
-
"path": "yup"
|
|
149
|
+
"path": "yup",
|
|
150
|
+
"id": "../node_modules/yup/index.d.ts::ValidationError"
|
|
147
151
|
}
|
|
148
152
|
},
|
|
149
153
|
"return": "Promise<{ isValid: boolean; }>"
|
|
@@ -159,11 +163,13 @@ export class BillingForm {
|
|
|
159
163
|
"parameters": [],
|
|
160
164
|
"references": {
|
|
161
165
|
"Promise": {
|
|
162
|
-
"location": "global"
|
|
166
|
+
"location": "global",
|
|
167
|
+
"id": "global::Promise"
|
|
163
168
|
},
|
|
164
169
|
"BillingFormFields": {
|
|
165
170
|
"location": "import",
|
|
166
|
-
"path": "./billing-form-schema"
|
|
171
|
+
"path": "./billing-form-schema",
|
|
172
|
+
"id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
|
|
167
173
|
}
|
|
168
174
|
},
|
|
169
175
|
"return": "Promise<BillingFormFields>"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-form.js","sourceRoot":"","sources":["../../../../src/components/billing-form/billing-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEhF,OAAO,iBAAwC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AAMH,MAAM,OAAO,WAAW;;IAkEtB,gBAAW,GAAG,CAAC,kBAAS,IAAI,CAAC,MAAM,CAAU,CAAC,CAAC;;yBA7DH;MAC1C,IAAI,EAAE,EAAE;MACR,aAAa,EAAE,EAAE;MACjB,aAAa,EAAE,EAAE;MACjB,YAAY,EAAE,EAAE;MAChB,aAAa,EAAE,EAAE;M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AK,EAAC,QAAQ;YACjB,kBAAY,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,MAAM,EAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,YAAY,GAAI,CACxI;UACN,WAAK,KAAK,EAAC,QAAQ;YACjB,oBACE,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,OAAO,EACb,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,aAAa,EAC9C,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,GAC7C,CACE;UACN,WAAK,KAAK,EAAC,QAAQ;YACjB,kBAAY,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,KAAK,EAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,GAAI,CAC5J,CACF,CACG,CACN,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, State, Listen, Method, Prop } from '@stencil/core';\nimport { ValidationError } from 'yup';\nimport BillingFormSchema, { BillingFormFields } from './billing-form-schema';\nimport StateOptions from './state-options';\n\n/**\n * @exportedPart label: Label for inputs\n * @exportedPart input: The input fields\n * @exportedPart input-invalid: Invalid state for inputs\n */\n@Component({\n tag: 'justifi-billing-form',\n styleUrl: 'billing-form.scss',\n shadow: true,\n})\nexport class BillingForm {\n /**\n * (Optional) A label for the form.\n */\n @Prop({ mutable: true }) legend?: string;\n @State() billingFields: BillingFormFields = {\n name: '',\n address_line1: '',\n address_line2: '',\n address_city: '',\n address_state: '',\n address_postal_code: '',\n };\n\n @State() billingFieldsErrors: any = {};\n\n @Listen('fieldReceivedInput')\n setFormValue(event) {\n const data = event.detail;\n const billingFieldsClone = { ...this.billingFields };\n if (data.name) {\n billingFieldsClone[data.name] = data.value;\n this.billingFields = billingFieldsClone;\n }\n }\n\n /**\n * Method for filling the form with provided data\n * @argument {BillingFormFields} fields - The fields to fill the form with\n */\n @Method()\n async fill(fields: BillingFormFields) {\n this.billingFields = { ...fields };\n }\n\n /**\n * Run validation on the form\n */\n @Method()\n async validate() {\n const newErrors = {};\n let isValid: boolean = true;\n\n try {\n await BillingFormSchema.validate(this.billingFields, { 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.billingFieldsErrors = newErrors;\n\n return { isValid: isValid };\n }\n\n /**\n * Returns the values of the form as an object\n * @returns {Promise<BillingFormFields>} The values of the form\n */\n @Method()\n async getValues(): Promise<BillingFormFields> {\n return this.billingFields;\n }\n\n legendBlock = (<legend>{this.legend}</legend>);\n render() {\n return (\n <Host exportparts=\"label,input,input-invalid\">\n <fieldset>\n {this.legend && this.legendBlock}\n <div class=\"row gy-3\">\n <div class=\"col-12\">\n <text-input name=\"name\" label=\"Full Name\" defaultValue={this.billingFields.name} error={this.billingFieldsErrors.name} />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_line1\" label=\"Street Address\" defaultValue={this.billingFields.address_line1} error={this.billingFieldsErrors.address_line1} />\n </div>\n <div class=\"col-12\">\n <text-input\n name=\"address_line2\"\n label=\"Apartment, Suite, etc. (optional)\"\n defaultValue={this.billingFields.address_line2}\n error={this.billingFieldsErrors.address_line2}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_city\" label=\"City\" defaultValue={this.billingFields.address_city} error={this.billingFieldsErrors.address_city} />\n </div>\n <div class=\"col-12\">\n <select-input\n name=\"address_state\"\n label=\"State\"\n options={StateOptions}\n defaultValue={this.billingFields.address_state}\n error={this.billingFieldsErrors.address_state}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_postal_code\" label=\"ZIP\" defaultValue={this.billingFields.address_postal_code} error={this.billingFieldsErrors.address_postal_code} />\n </div>\n </div>\n </fieldset>\n </Host>\n );\n }\n}\n"]}
|