@justifi/webcomponents 6.5.1-rc.4 → 6.5.1-rc.7

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 (119) hide show
  1. package/dist/cjs/{check-pkg-version-Bj0XkWnL.js → check-pkg-version-BHAFLsKe.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  3. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  24. package/dist/cjs/{package-Dptg-P5y.js → package-CZK-K7yM.js} +1 -1
  25. package/dist/docs.json +1 -1
  26. package/dist/esm/{check-pkg-version-D6a-vvrO.js → check-pkg-version-ClZuo82s.js} +1 -1
  27. package/dist/esm/hidden-input_2.entry.js +1 -1
  28. package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
  29. package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
  30. package/dist/esm/justifi-business-details.entry.js +2 -2
  31. package/dist/esm/justifi-business-form.entry.js +2 -2
  32. package/dist/esm/justifi-checkout.entry.js +2 -2
  33. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  34. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  35. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  36. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  37. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  38. package/dist/esm/justifi-payment-details.entry.js +2 -2
  39. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  40. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  41. package/dist/esm/justifi-payments-list.entry.js +2 -2
  42. package/dist/esm/justifi-payout-details.entry.js +2 -2
  43. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  44. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  45. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  46. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  47. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  48. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  49. package/dist/esm/{package-czPIvHxt.js → package-C3_8r8V7.js} +1 -1
  50. package/dist/module/package.js +1 -1
  51. package/dist/webcomponents/{p-2bd821a8.entry.js → p-082efda3.entry.js} +1 -1
  52. package/dist/webcomponents/{p-f6ec50c9.entry.js → p-12499226.entry.js} +1 -1
  53. package/dist/webcomponents/p-1ddddc82.entry.js +1 -0
  54. package/dist/webcomponents/p-215ce79e.entry.js +1 -0
  55. package/dist/webcomponents/{p-aec7a3c8.entry.js → p-239d1d07.entry.js} +1 -1
  56. package/dist/webcomponents/{p-0b760c4f.entry.js → p-23a3e38e.entry.js} +1 -1
  57. package/dist/webcomponents/{p-21c060ce.entry.js → p-27b88afd.entry.js} +1 -1
  58. package/dist/webcomponents/{p-75f3161c.entry.js → p-2a347349.entry.js} +1 -1
  59. package/dist/webcomponents/{p-9d67209d.entry.js → p-3787cf63.entry.js} +1 -1
  60. package/dist/webcomponents/{p-db17bc59.entry.js → p-476ebd43.entry.js} +1 -1
  61. package/dist/webcomponents/p-64ddd8ea.entry.js +1 -0
  62. package/dist/webcomponents/p-7becc3d3.entry.js +1 -0
  63. package/dist/webcomponents/p-8071daf3.entry.js +1 -0
  64. package/dist/webcomponents/{p-26e95adb.entry.js → p-93aa2d31.entry.js} +1 -1
  65. package/dist/webcomponents/{p-e07bf523.entry.js → p-9e346c2e.entry.js} +1 -1
  66. package/dist/webcomponents/p-C3_8r8V7.js +1 -0
  67. package/dist/webcomponents/p-a9ea2c82.entry.js +1 -0
  68. package/dist/webcomponents/{p-306c7c33.entry.js → p-aaef1450.entry.js} +1 -1
  69. package/dist/webcomponents/{p-e00fb7b1.entry.js → p-beb0a3c8.entry.js} +1 -1
  70. package/dist/webcomponents/{p-3aaedf9d.entry.js → p-d3697504.entry.js} +1 -1
  71. package/dist/webcomponents/{p-d7a06b34.entry.js → p-d9c090b6.entry.js} +1 -1
  72. package/dist/webcomponents/{p-38ff97ea.entry.js → p-f11eb1bc.entry.js} +1 -1
  73. package/dist/webcomponents/{p-5981869a.entry.js → p-f358610a.entry.js} +1 -1
  74. package/dist/webcomponents/{p-CApezhx9.js → p-sassRpOu.js} +1 -1
  75. package/dist/webcomponents/webcomponents.esm.js +1 -1
  76. package/docs/entities/businessdetails/index.mdx +55 -72
  77. package/docs/entities/businessform/index.mdx +13 -19
  78. package/docs/entities/payment-provisioning/index.mdx +9 -17
  79. package/docs/helpers/PartsTable.jsx +29 -0
  80. package/docs/helpers/PropsTable.jsx +35 -0
  81. package/docs/helpers/{version.ts → version.js} +2 -2
  82. package/docs/merchant-tools/checkouts-list/index.mdx +50 -64
  83. package/docs/merchant-tools/gross-payments-chart/index.mdx +17 -19
  84. package/docs/merchant-tools/order-terminals/index.mdx +13 -17
  85. package/docs/merchant-tools/payment-details/index.mdx +13 -16
  86. package/docs/merchant-tools/payment-transactions-list/index.mdx +13 -17
  87. package/docs/merchant-tools/payments-list/index.mdx +13 -19
  88. package/docs/merchant-tools/payout-details/index.mdx +47 -57
  89. package/docs/merchant-tools/payout-transactions-list/index.mdx +13 -17
  90. package/docs/merchant-tools/payouts-list/index.mdx +13 -19
  91. package/docs/merchant-tools/terminal-orders-list/index.mdx +13 -17
  92. package/docs/merchant-tools/terminals-list/index.mdx +13 -17
  93. package/docs/modular-checkout/index.mdx +0 -5
  94. package/docs/modular-checkout/introduction/index.mdx +13 -15
  95. package/docs/modular-checkout/sub-components/apple-pay.mdx +27 -22
  96. package/docs/modular-checkout/sub-components/bank-account-form.mdx +51 -51
  97. package/docs/modular-checkout/sub-components/card-form.mdx +50 -54
  98. package/docs/modular-checkout/sub-components/payment-method-options.mdx +13 -15
  99. package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +33 -55
  100. package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +56 -55
  101. package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +21 -24
  102. package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +104 -109
  103. package/docs/modular-checkout/sub-components/summary.mdx +13 -14
  104. package/docs/payment-facilitation/dispute-management/index.mdx +13 -17
  105. package/docs/payment-facilitation/refund-payment/index.mdx +22 -15
  106. package/docs/payment-facilitation/tokenize-payment-method/index.mdx +28 -45
  107. package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +104 -123
  108. package/package.json +1 -1
  109. package/dist/webcomponents/p-50a4d4c4.entry.js +0 -1
  110. package/dist/webcomponents/p-7661c41a.entry.js +0 -1
  111. package/dist/webcomponents/p-92a43706.entry.js +0 -1
  112. package/dist/webcomponents/p-9ef4288b.entry.js +0 -1
  113. package/dist/webcomponents/p-c9b50493.entry.js +0 -1
  114. package/dist/webcomponents/p-czPIvHxt.js +0 -1
  115. package/dist/webcomponents/p-deda2e9d.entry.js +0 -1
  116. package/docs/helpers/PartsTable.ts +0 -55
  117. package/docs/helpers/PropsTable.ts +0 -63
  118. package/docs/modular-checkout/docs/index.mdx +0 -32
  119. package/docs/modular-checkout/example/index.mdx +0 -25
@@ -5,7 +5,7 @@ description: Reporting table for outbound payouts including status, destination,
5
5
  sidebar_position: 40
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,15 +13,18 @@ Component to render a formated list of payouts for the requested account.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-payouts-list
16
+ <pre>
17
+ <code className="language-html">{`<justifi-payouts-list
17
18
  account-id="acc_123"
18
19
  auth-token="wct_reporting"
19
20
  columns="created_at,amount,destination,status"
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
26
+ <PropsTable
27
+ rows={[
25
28
  {
26
29
  name: 'account-id',
27
30
  type: 'string',
@@ -46,7 +49,8 @@ Component to render a formated list of payouts for the requested account.
46
49
  defaultValue: 'UTC',
47
50
  description: 'Controls formatting for timestamps.',
48
51
  },
49
- ]) }} />
52
+ ]}
53
+ />
50
54
 
51
55
  ### Events
52
56
 
@@ -58,7 +62,8 @@ Component to render a formated list of payouts for the requested account.
58
62
 
59
63
  ## Theming & Layout
60
64
 
61
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
65
+ <PartsTable
66
+ parts={[
62
67
  {
63
68
  name: 'font-family',
64
69
  description: 'Controls the font family for the component.',
@@ -79,16 +84,5 @@ Component to render a formated list of payouts for the requested account.
79
84
  name: 'button-disabled',
80
85
  description: 'Disabled button styles.',
81
86
  },
82
- ]) }} />
83
-
84
- ## Static examples
85
-
86
- ### Navigate to payout details
87
-
88
- <pre><code className="language-js">{`const payouts = document.querySelector('justifi-payouts-list');
89
-
90
- payouts.addEventListener('click-event', (event) => {
91
- if (event.detail.name === 'row') {
92
- router.push('/payouts/' + event.detail.payout_id);
93
- }
94
- });`}</code></pre>
87
+ ]}
88
+ />
@@ -5,7 +5,7 @@ description: Reporting table of hardware orders with fulfillment status and trac
5
5
  sidebar_position: 51
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,14 +13,17 @@ Component to render a formated list of terminal device orders for the requested
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-terminal-orders-list
16
+ <pre>
17
+ <code className="language-html">{`<justifi-terminal-orders-list
17
18
  account-id="acc_123"
18
19
  auth-token="wct_terminals"
19
- />`}</code></pre>
20
+ />`}</code>
21
+ </pre>
20
22
 
21
23
  ## Props, Events & Methods
22
24
 
23
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
25
+ <PropsTable
26
+ rows={[
24
27
  {
25
28
  name: 'account-id',
26
29
  type: 'string',
@@ -39,7 +42,8 @@ Component to render a formated list of terminal device orders for the requested
39
42
  defaultValue: 'created_at,order_number,items,status,tracking_number',
40
43
  description: 'Customize visible columns.',
41
44
  },
42
- ]) }} />
45
+ ]}
46
+ />
43
47
 
44
48
  ### Events
45
49
 
@@ -51,7 +55,8 @@ Component to render a formated list of terminal device orders for the requested
51
55
 
52
56
  ## Theming & Layout
53
57
 
54
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
58
+ <PartsTable
59
+ parts={[
55
60
  {
56
61
  name: 'font-family',
57
62
  description: 'Controls the font family for the component.',
@@ -72,14 +77,5 @@ Component to render a formated list of terminal device orders for the requested
72
77
  name: 'button-disabled',
73
78
  description: 'Disabled button styles.',
74
79
  },
75
- ]) }} />
76
-
77
- ## Static examples
78
-
79
- ### Navigate to order details
80
-
81
- <pre><code className="language-js">{`const orders = document.querySelector('justifi-terminal-orders-list');
82
-
83
- orders.addEventListener('click-event', ({ detail }) => {
84
- if (detail.name === 'row') router.push('/terminals/orders/' + detail.order_id);
85
- });`}</code></pre>
80
+ ]}
81
+ />
@@ -5,7 +5,7 @@ description: Inventory table showing active, inactive, and assigned terminals in
5
5
  sidebar_position: 52
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
8
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
9
9
 
10
10
  ## Overview
11
11
 
@@ -13,15 +13,18 @@ Component to render a formated list of terminals for the requested account.
13
13
 
14
14
  ## Usage
15
15
 
16
- <pre><code className="language-html">{`<justifi-terminals-list
16
+ <pre>
17
+ <code className="language-html">{`<justifi-terminals-list
17
18
  account-id="acc_123"
18
19
  auth-token="wct_terminals"
19
20
  filters='{"status":"online"}'
20
- />`}</code></pre>
21
+ />`}</code>
22
+ </pre>
21
23
 
22
24
  ## Props, Events & Methods
23
25
 
24
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
26
+ <PropsTable
27
+ rows={[
25
28
  {
26
29
  name: 'account-id',
27
30
  type: 'string',
@@ -46,7 +49,8 @@ Component to render a formated list of terminals for the requested account.
46
49
  defaultValue: 'name,status,location,last_check_in',
47
50
  description: 'Customize visible columns.',
48
51
  },
49
- ]) }} />
52
+ ]}
53
+ />
50
54
 
51
55
  ### Events
52
56
 
@@ -59,7 +63,8 @@ Component to render a formated list of terminals for the requested account.
59
63
 
60
64
  ## Theming & Layout
61
65
 
62
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
66
+ <PartsTable
67
+ parts={[
63
68
  {
64
69
  name: 'font-family',
65
70
  description: 'Controls the font family for the component.',
@@ -80,14 +85,5 @@ Component to render a formated list of terminals for the requested account.
80
85
  name: 'button-disabled',
81
86
  description: 'Disabled button styles.',
82
87
  },
83
- ]) }} />
84
-
85
- ## Static examples
86
-
87
- ### Open device detail
88
-
89
- <pre><code className="language-js">{`const terminals = document.querySelector('justifi-terminals-list');
90
-
91
- terminals.addEventListener('click-event', ({ detail }) => {
92
- router.push('/terminals/' + detail.terminal_id);
93
- });`}</code></pre>
88
+ ]}
89
+ />
@@ -10,10 +10,6 @@ the journey:
10
10
 
11
11
  - [Introduction](./introduction/index) for architecture, props, events, and
12
12
  theming guidance.
13
- - [Docs](./docs/index) when you are authoring or updating technical reference
14
- material for new sub-components.
15
- - [Example](./example/index) for a single-file snippet that you can paste into
16
- a sandbox or CMS.
17
13
  - [Complete Examples](./complete-examples/index) for Storybook layouts that
18
14
  demonstrate multi-step funnels.
19
15
  - [Sub-components](./sub-components/index) for deep dives on each child element
@@ -22,4 +18,3 @@ the journey:
22
18
  > Ship custom layouts fast: combine `[sub-components](./sub-components/index)`
23
19
  > with the patterns in `[Example](./example/index)` so you can validate UX
24
20
  > decisions before plumbing real data.
25
-
@@ -6,7 +6,7 @@ description: Layout manager that composes payment, summary, and confirmation sub
6
6
  sidebar_position: 21
7
7
  ---
8
8
 
9
- import { PropsTable, PartsTable } from '../../helpers';
9
+ import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
10
10
 
11
11
  ## Overview
12
12
 
@@ -14,18 +14,21 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
14
14
 
15
15
  ## Usage
16
16
 
17
- <pre><code className="language-html">{`<justifi-modular-checkout
17
+ <pre>
18
+ <code className="language-html">{`<justifi-modular-checkout
18
19
  account-id="acc_123"
19
20
  auth-token="wct_checkout"
20
21
  checkout-id="chk_456"
21
22
  >
22
23
  <justifi-modular-checkout-card-form slot="payment-methods" />
23
24
  <justifi-modular-checkout-summary slot="summary" />
24
- </justifi-modular-checkout>`}</code></pre>
25
+ </justifi-modular-checkout>`}</code>
26
+ </pre>
25
27
 
26
28
  ## Props, Events & Methods
27
29
 
28
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
30
+ <PropsTable
31
+ rows={[
29
32
  {
30
33
  name: 'account-id',
31
34
  type: 'string',
@@ -58,7 +61,8 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
58
61
  defaultValue: 'en-US',
59
62
  description: 'Controls currency format + copy.',
60
63
  },
61
- ]) }} />
64
+ ]}
65
+ />
62
66
 
63
67
  ### Events
64
68
 
@@ -75,7 +79,8 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
75
79
 
76
80
  - Slots expose `::part(summary)` and `::part(payment-methods)` so you can adjust spacing for each region.
77
81
 
78
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
82
+ <PartsTable
83
+ parts={[
79
84
  {
80
85
  name: 'shell',
81
86
  description: 'Outer wrapper that surrounds the full modular checkout.',
@@ -89,12 +94,5 @@ The `justifi-modular-checkout` wrapper component serves as a container for check
89
94
  description: 'Order summary slot, typically on the right on desktop.',
90
95
  },
91
96
  { name: 'cta', description: 'Primary submit button container.' },
92
- ]) }} />
93
-
94
- ## Static examples
95
-
96
- ### Programmatic submission
97
-
98
- <pre><code className="language-js">{`const modCheckout = document.querySelector('justifi-modular-checkout');
99
-
100
- document.querySelector('#submit-order').addEventListener('click', () => modCheckout.submit());`}</code></pre>
97
+ ]}
98
+ />
@@ -5,8 +5,11 @@ description: Apple Pay rail for Modular Checkout that exposes wallet buttons and
5
5
  sidebar_position: 22
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -23,13 +26,19 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
23
26
  <title>justifi-apple-pay</title>
24
27
 
25
28
  <script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
26
- <script nomodule src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"></script>
27
- <style>
28
- /** These are the available parts for styling the component. */
29
- ::part(button) {
30
- // button styles
31
- }
32
- </style>
29
+
30
+ <script
31
+ nomodule
32
+ src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
33
+ ></script>
34
+
35
+ <style>
36
+ /** These are the available parts for styling the component. */ ::part(button){' '}
37
+ {
38
+ // button styles
39
+ }
40
+ </style>
41
+
33
42
  </head>
34
43
 
35
44
  <body>
@@ -45,12 +54,13 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
45
54
 
46
55
  ## Props, Events & Methods
47
56
 
48
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
57
+ <PropsTable
58
+ rows={[
49
59
  {
50
60
  name: 'button-style',
51
61
  type: '"black" | "white" | "white-outline"',
52
62
  defaultValue: 'black',
53
- description: 'Matches Apple\'s Human Interface Guidelines.',
63
+ description: "Matches Apple's Human Interface Guidelines.",
54
64
  },
55
65
  {
56
66
  name: 'button-type',
@@ -65,7 +75,8 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
65
75
  description:
66
76
  'Controls the region on the underlying `ApplePaySession` request.',
67
77
  },
68
- ]) }} />
78
+ ]}
79
+ />
69
80
 
70
81
  ### Events
71
82
 
@@ -80,18 +91,12 @@ Renders an Apple Pay button for eligible devices and orchestrates the Apple Pay
80
91
 
81
92
  - Styling is intentionally limited to keep Apple compliance.
82
93
 
83
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
94
+ <PartsTable
95
+ parts={[
84
96
  {
85
97
  name: 'button',
86
98
  description:
87
99
  'Wrapper around the native Apple Pay button for margin/padding tweaks.',
88
100
  },
89
- ]) }} />
90
-
91
- ## Static examples
92
-
93
- ### Custom launch button
94
-
95
- <pre><code className="language-js">{`const applePay = document.querySelector('justifi-apple-pay');
96
-
97
- document.querySelector('#apple-pay-launch').onclick = () => applePay.begin();`}</code></pre>
101
+ ]}
102
+ />
@@ -5,8 +5,11 @@ description: Bank account rail for Modular Checkout that tokenizes ACH details w
5
5
  sidebar_position: 28
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -31,44 +34,46 @@ This component exposes **no public methods or properties** and is not intended f
31
34
  <title>justifi-bank-account-form</title>
32
35
 
33
36
  <script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
34
- <script nomodule src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"></script>
35
- <style>
36
- /** These are the available parts for styling the component. */
37
- ::part(skeleton) {
38
- // skeleton styles
39
- }
40
-
41
- ::part(label) {
42
- // label styles
43
- }
44
-
45
- ::part(input-invalid-and-focused) {
46
- // input invalid and focused styles
47
- }
48
-
49
- ::part(input-invalid) {
50
- // input invalid styles
51
- }
52
-
53
- ::part(input-focused) {
54
- // input focused styles
55
- }
56
-
57
- ::part(input) {
58
- // input styles
59
- }
60
- </style>
37
+
38
+ <script
39
+ nomodule
40
+ src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
41
+ ></script>
42
+
43
+ <style>
44
+ /** These are the available parts for styling the component. */
45
+ ::part(skeleton){' '}
46
+ {
47
+ // skeleton styles
48
+ }
49
+ ::part(label){' '}
50
+ {
51
+ // label styles
52
+ }
53
+ ::part(input-invalid-and-focused){' '}
54
+ {
55
+ // input invalid and focused styles
56
+ }
57
+ ::part(input-invalid){' '}
58
+ {
59
+ // input invalid styles
60
+ }
61
+ ::part(input-focused){' '}
62
+ {
63
+ // input focused styles
64
+ }
65
+ ::part(input){' '}
66
+ {
67
+ // input styles
68
+ }
69
+ </style>
70
+
61
71
  </head>
62
72
 
63
73
  <body>
64
- <justifi-modular-checkout
65
- auth-token="authToken"
66
- checkout-id="ch_123"
67
- >
74
+ <justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
68
75
  <justifi-bank-account-form />
69
- <button id="submit-button">
70
- Submit Checkout
71
- </button>
76
+ <button id="submit-button">Submit Checkout</button>
72
77
  </justifi-modular-checkout>
73
78
  </body>
74
79
 
@@ -90,16 +95,18 @@ This component exposes **no public methods or properties** and is not intended f
90
95
  });
91
96
  })();
92
97
  </script>
98
+
93
99
  </html>`}</code></pre>
94
100
 
95
101
  ## Props, Events & Methods
96
102
 
97
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
103
+ <PropsTable
104
+ rows={[
98
105
  {
99
106
  name: 'payment-method-group-id',
100
107
  type: 'string',
101
108
  description:
102
- 'Match the parent checkout\'s group when you want to toggle which rails appear.',
109
+ "Match the parent checkout's group when you want to toggle which rails appear.",
103
110
  },
104
111
  {
105
112
  name: 'show-account-type',
@@ -113,7 +120,8 @@ This component exposes **no public methods or properties** and is not intended f
113
120
  defaultValue: 'en-US',
114
121
  description: 'Controls labels + validation messages.',
115
122
  },
116
- ]) }} />
123
+ ]}
124
+ />
117
125
 
118
126
  ### Events
119
127
 
@@ -125,7 +133,8 @@ This component exposes **no public methods or properties** and is not intended f
125
133
 
126
134
  ## Theming & Layout
127
135
 
128
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
136
+ <PartsTable
137
+ parts={[
129
138
  {
130
139
  name: 'skeleton',
131
140
  description: 'Skeleton loading state styles.',
@@ -150,14 +159,5 @@ This component exposes **no public methods or properties** and is not intended f
150
159
  name: 'input',
151
160
  description: 'Input field styles.',
152
161
  },
153
- ]) }} />
154
-
155
- ## Static examples
156
-
157
- ### Auto-focus fields
158
-
159
- Tie custom UI to the public `focus()` method.
160
-
161
- <pre><code className="language-js">{`const bankForm = document.querySelector('justifi-bank-account-form');
162
-
163
- document.querySelector('#focus-bank').onclick = () => bankForm.focus();`}</code></pre>
162
+ ]}
163
+ />
@@ -5,8 +5,11 @@ description: Card entry sub-component for Modular Checkout layouts with shared v
5
5
  sidebar_position: 2
6
6
  ---
7
7
 
8
- import { PropsTable, PartsTable } from '../../helpers';
9
- import { getWebcomponentsVersion } from '@justifi/webcomponents/docs/helpers';
8
+ import {
9
+ PropsTable,
10
+ PartsTable,
11
+ getWebcomponentsVersion,
12
+ } from '@justifi/webcomponents/docs/helpers';
10
13
 
11
14
  ## Overview
12
15
 
@@ -31,44 +34,46 @@ This component exposes **no public methods or properties** and is not intended f
31
34
  <title>justifi-card-form</title>
32
35
 
33
36
  <script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
34
- <script nomodule src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"></script>
35
- <style>
36
- /** These are the available parts for styling the component. */
37
- ::part(skeleton) {
38
- // skeleton styles
39
- }
40
-
41
- ::part(label) {
42
- // label styles
43
- }
44
-
45
- ::part(input-invalid-and-focused) {
46
- // input invalid and focused styles
47
- }
48
-
49
- ::part(input-invalid) {
50
- // input invalid styles
51
- }
52
-
53
- ::part(input-focused) {
54
- // input focused styles
55
- }
56
-
57
- ::part(input) {
58
- // input styles
59
- }
60
- </style>
37
+
38
+ <script
39
+ nomodule
40
+ src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
41
+ ></script>
42
+
43
+ <style>
44
+ /** These are the available parts for styling the component. */
45
+ ::part(skeleton){' '}
46
+ {
47
+ // skeleton styles
48
+ }
49
+ ::part(label){' '}
50
+ {
51
+ // label styles
52
+ }
53
+ ::part(input-invalid-and-focused){' '}
54
+ {
55
+ // input invalid and focused styles
56
+ }
57
+ ::part(input-invalid){' '}
58
+ {
59
+ // input invalid styles
60
+ }
61
+ ::part(input-focused){' '}
62
+ {
63
+ // input focused styles
64
+ }
65
+ ::part(input){' '}
66
+ {
67
+ // input styles
68
+ }
69
+ </style>
70
+
61
71
  </head>
62
72
 
63
73
  <body>
64
- <justifi-modular-checkout
65
- auth-token="authToken"
66
- checkout-id="ch_123"
67
- >
74
+ <justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
68
75
  <justifi-card-form />
69
- <button id="submit-button">
70
- Submit Checkout
71
- </button>
76
+ <button id="submit-button">Submit Checkout</button>
72
77
  </justifi-modular-checkout>
73
78
  </body>
74
79
 
@@ -90,11 +95,13 @@ This component exposes **no public methods or properties** and is not intended f
90
95
  });
91
96
  })();
92
97
  </script>
98
+
93
99
  </html>`}</code></pre>
94
100
 
95
101
  ## Props, Events & Methods
96
102
 
97
- <div dangerouslySetInnerHTML={{ __html: PropsTable([
103
+ <PropsTable
104
+ rows={[
98
105
  {
99
106
  name: 'payment-method-group-id',
100
107
  type: 'string',
@@ -120,7 +127,8 @@ This component exposes **no public methods or properties** and is not intended f
120
127
  defaultValue: 'en-US',
121
128
  description: 'Overrides localized labels if needed.',
122
129
  },
123
- ]) }} />
130
+ ]}
131
+ />
124
132
 
125
133
  ### Events
126
134
 
@@ -134,7 +142,8 @@ All submit and error events bubble through the parent `<justifi-modular-checkout
134
142
 
135
143
  - When embedded inside cards, wrap the host element in your layout container and scope typography overrides via the parts listed below.
136
144
 
137
- <div dangerouslySetInnerHTML={{ __html: PartsTable([
145
+ <PartsTable
146
+ parts={[
138
147
  {
139
148
  name: 'skeleton',
140
149
  description: 'Skeleton loading state styles.',
@@ -159,20 +168,7 @@ All submit and error events bubble through the parent `<justifi-modular-checkout
159
168
  name: 'input',
160
169
  description: 'Input field styles.',
161
170
  },
162
- ]) }} />
171
+ ]}
172
+ />
163
173
 
164
174
  - Use the `card-form` CSS part (`::part(card-form)`) to apply box shadows or wrapper padding.
165
-
166
- ## Static examples
167
-
168
- ### Card form with disabled save option
169
-
170
- <pre><code className="language-html">{`<justifi-modular-checkout-card-form
171
- show-save-payment-method="false"
172
- />`}</code></pre>
173
-
174
- ### Force brand icons off
175
-
176
- <pre><code className="language-html">{`<justifi-modular-checkout-card-form
177
- card-brand-icons="none"
178
- />`}</code></pre>