@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.
Files changed (60) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/{index-4f2a13d2.js → index-bcfc2d01.js} +0 -25
  3. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  4. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +8 -5
  5. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -2
  6. package/dist/cjs/justifi-payment-form.cjs.entry.js +7 -4
  7. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +23 -5
  8. package/dist/cjs/justifi-payments-list.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/select-input_2.cjs.entry.js +5 -5
  11. package/dist/cjs/webcomponents.cjs.js +2 -2
  12. package/dist/collection/components/billing-form/billing-form.css +1546 -4
  13. package/dist/collection/components/billing-form/billing-form.js +2 -2
  14. package/dist/collection/components/card-form/card-form.js +19 -1
  15. package/dist/collection/components/payment-form/payment-form.css +1553 -0
  16. package/dist/collection/components/payment-form/payment-form.js +14 -3
  17. package/dist/collection/components/payment-form/payment-form.stories.js +0 -2
  18. package/dist/collection/components/payment-form/payment-method-selector.css +1254 -0
  19. package/dist/collection/components/payment-form/payment-method-selector.js +12 -2
  20. package/dist/collection/components/payment-method-form/payment-method-form.js +35 -2
  21. package/dist/collection/components/select-input/select-input.css +1248 -1
  22. package/dist/collection/components/select-input/select-input.js +2 -2
  23. package/dist/collection/components/text-input/text-input.css +1248 -1
  24. package/dist/collection/components/text-input/text-input.js +2 -2
  25. package/dist/components/billing-form.js +2 -2
  26. package/dist/components/justifi-card-form.js +3 -1
  27. package/dist/components/justifi-payment-form.js +8 -4
  28. package/dist/components/payment-method-form.js +23 -4
  29. package/dist/components/payment-method-selector.js +5 -2
  30. package/dist/components/select-input2.js +2 -2
  31. package/dist/components/text-input2.js +2 -2
  32. package/dist/esm/{index-3ce5521c.js → index-5676b87a.js} +0 -25
  33. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  34. package/dist/esm/justifi-billing-form_2.entry.js +8 -5
  35. package/dist/esm/justifi-card-form.entry.js +3 -2
  36. package/dist/esm/justifi-payment-form.entry.js +7 -4
  37. package/dist/esm/justifi-payment-method-form.entry.js +23 -5
  38. package/dist/esm/justifi-payments-list.entry.js +1 -1
  39. package/dist/esm/loader.js +2 -2
  40. package/dist/esm/select-input_2.entry.js +5 -5
  41. package/dist/esm/webcomponents.js +2 -2
  42. package/dist/types/components/card-form/card-form.d.ts +1 -0
  43. package/dist/types/components/payment-method-form/payment-method-form.d.ts +2 -0
  44. package/dist/types/components.d.ts +4 -0
  45. package/dist/webcomponents/p-165b4840.entry.js +1 -0
  46. package/dist/webcomponents/p-1c7556c1.entry.js +1 -0
  47. package/dist/webcomponents/{p-6633de1b.entry.js → p-5aec1d06.entry.js} +1 -1
  48. package/dist/webcomponents/p-81e20318.entry.js +1 -0
  49. package/dist/webcomponents/p-8f9a69d2.entry.js +1 -0
  50. package/dist/webcomponents/p-9a8abfcb.js +2 -0
  51. package/dist/webcomponents/p-ad6ad202.entry.js +1 -0
  52. package/dist/webcomponents/{p-6c3a226e.entry.js → p-f25081d7.entry.js} +1 -1
  53. package/dist/webcomponents/webcomponents.esm.js +1 -1
  54. package/package.json +4 -2
  55. package/dist/webcomponents/p-2e5be95e.entry.js +0 -1
  56. package/dist/webcomponents/p-68e47ee5.entry.js +0 -1
  57. package/dist/webcomponents/p-6a9c764f.entry.js +0 -1
  58. package/dist/webcomponents/p-763a2b4f.entry.js +0 -1
  59. package/dist/webcomponents/p-92ca574f.entry.js +0 -1
  60. 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.css"]
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
  }