@justifi/webcomponents 0.4.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/{index-4f2a13d2.js → index-bcfc2d01.js} +0 -25
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +8 -5
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +23 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/select-input_2.cjs.entry.js +5 -5
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/components/billing-form/billing-form.css +1546 -4
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/card-form/card-form.js +19 -1
- package/dist/collection/components/payment-form/payment-form.css +1553 -0
- package/dist/collection/components/payment-form/payment-form.js +14 -3
- package/dist/collection/components/payment-form/payment-form.stories.js +0 -2
- package/dist/collection/components/payment-form/payment-method-selector.css +1254 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +12 -2
- package/dist/collection/components/payment-method-form/payment-method-form.js +35 -2
- package/dist/collection/components/select-input/select-input.css +1248 -1
- package/dist/collection/components/select-input/select-input.js +2 -2
- package/dist/collection/components/text-input/text-input.css +1248 -1
- package/dist/collection/components/text-input/text-input.js +2 -2
- package/dist/components/billing-form.js +2 -2
- package/dist/components/justifi-card-form.js +3 -1
- package/dist/components/justifi-payment-form.js +8 -4
- package/dist/components/payment-method-form.js +23 -4
- package/dist/components/payment-method-selector.js +5 -2
- package/dist/components/select-input2.js +2 -2
- package/dist/components/text-input2.js +2 -2
- package/dist/esm/{index-3ce5521c.js → index-5676b87a.js} +0 -25
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +8 -5
- package/dist/esm/justifi-card-form.entry.js +3 -2
- package/dist/esm/justifi-payment-form.entry.js +7 -4
- package/dist/esm/justifi-payment-method-form.entry.js +23 -5
- package/dist/esm/justifi-payments-list.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/select-input_2.entry.js +5 -5
- package/dist/esm/webcomponents.js +2 -2
- package/dist/types/components/card-form/card-form.d.ts +1 -0
- package/dist/types/components/payment-method-form/payment-method-form.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/webcomponents/p-165b4840.entry.js +1 -0
- package/dist/webcomponents/p-1c7556c1.entry.js +1 -0
- package/dist/webcomponents/{p-6633de1b.entry.js → p-5aec1d06.entry.js} +1 -1
- package/dist/webcomponents/p-81e20318.entry.js +1 -0
- package/dist/webcomponents/p-8f9a69d2.entry.js +1 -0
- package/dist/webcomponents/p-9a8abfcb.js +2 -0
- package/dist/webcomponents/p-ad6ad202.entry.js +1 -0
- package/dist/webcomponents/{p-6c3a226e.entry.js → p-f25081d7.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +4 -2
- package/dist/webcomponents/p-2e5be95e.entry.js +0 -1
- package/dist/webcomponents/p-68e47ee5.entry.js +0 -1
- package/dist/webcomponents/p-6a9c764f.entry.js +0 -1
- package/dist/webcomponents/p-763a2b4f.entry.js +0 -1
- package/dist/webcomponents/p-92ca574f.entry.js +0 -1
- package/dist/webcomponents/p-9f34a2c1.js +0 -2
|
@@ -44,13 +44,13 @@ export class BillingForm {
|
|
|
44
44
|
return this.billingFields;
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, null, h("fieldset", null, this.legend && this.legendBlock, h("text-input", { name: "address_line1", label: "Street Address", defaultValue: this.billingFields.address_line1, error: this.billingFieldsErrors.address_line1 }), h("text-input", { name: "address_line2", label: "Apartment, Suite, etc. (optional)", defaultValue: this.billingFields.address_line2, error: this.billingFieldsErrors.address_line2 }), h("text-input", { name: "address_city", label: "City", defaultValue: this.billingFields.address_city, error: this.billingFieldsErrors.address_city }), h("select-input", { name: "address_state", label: "State", options: StateOptions, defaultValue: this.billingFields.address_state, error: this.billingFieldsErrors.address_state }), h("text-input", { name: "address_postal_code", label: "ZIP", defaultValue: this.billingFields.address_postal_code, error: this.billingFieldsErrors.address_postal_code }))));
|
|
47
|
+
return (h(Host, null, h("fieldset", null, this.legend && this.legendBlock, h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("text-input", { name: "address_line1", label: "Street Address", defaultValue: this.billingFields.address_line1, error: this.billingFieldsErrors.address_line1 })), h("div", { class: "col-12" }, h("text-input", { name: "address_line2", label: "Apartment, Suite, etc. (optional)", defaultValue: this.billingFields.address_line2, error: this.billingFieldsErrors.address_line2 })), h("div", { class: "col-12" }, h("text-input", { name: "address_city", label: "City", defaultValue: this.billingFields.address_city, error: this.billingFieldsErrors.address_city })), h("div", { class: "col-12" }, h("select-input", { name: "address_state", label: "State", options: StateOptions, defaultValue: this.billingFields.address_state, error: this.billingFieldsErrors.address_state })), h("div", { class: "col-12" }, h("text-input", { name: "address_postal_code", label: "ZIP", defaultValue: this.billingFields.address_postal_code, error: this.billingFieldsErrors.address_postal_code }))))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "justifi-billing-form"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
51
51
|
static get originalStyleUrls() {
|
|
52
52
|
return {
|
|
53
|
-
"$": ["billing-form.
|
|
53
|
+
"$": ["billing-form.scss"]
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
static get styleUrls() {
|
|
@@ -4,6 +4,7 @@ export class CardForm {
|
|
|
4
4
|
this.validationStrategy = undefined;
|
|
5
5
|
this.styleOverrides = undefined;
|
|
6
6
|
this.iframeOrigin = undefined;
|
|
7
|
+
this.singleLine = undefined;
|
|
7
8
|
this.internalStyleOverrides = undefined;
|
|
8
9
|
}
|
|
9
10
|
readyHandler(event) {
|
|
@@ -41,7 +42,7 @@ export class CardForm {
|
|
|
41
42
|
if (el) {
|
|
42
43
|
this.childRef = el;
|
|
43
44
|
}
|
|
44
|
-
}, "iframe-origin": this.iframeOrigin, "payment-method-form-type": "card", "payment-method-form-ready": this.cardFormReady, "payment-method-form-tokenize": this.cardFormTokenize, "payment-method-form-validation-strategy": this.validationStrategy || 'onSubmit', paymentMethodStyleOverrides: this.internalStyleOverrides }));
|
|
45
|
+
}, "iframe-origin": this.iframeOrigin, "payment-method-form-type": "card", "single-line": this.singleLine, "payment-method-form-ready": this.cardFormReady, "payment-method-form-tokenize": this.cardFormTokenize, "payment-method-form-validation-strategy": this.validationStrategy || 'onSubmit', paymentMethodStyleOverrides: this.internalStyleOverrides }));
|
|
45
46
|
}
|
|
46
47
|
static get is() { return "justifi-card-form"; }
|
|
47
48
|
static get properties() {
|
|
@@ -96,6 +97,23 @@ export class CardForm {
|
|
|
96
97
|
},
|
|
97
98
|
"attribute": "iframe-origin",
|
|
98
99
|
"reflect": false
|
|
100
|
+
},
|
|
101
|
+
"singleLine": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "boolean",
|
|
106
|
+
"resolved": "boolean",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": ""
|
|
114
|
+
},
|
|
115
|
+
"attribute": "single-line",
|
|
116
|
+
"reflect": false
|
|
99
117
|
}
|
|
100
118
|
};
|
|
101
119
|
}
|