@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.
- package/dist/cjs/{check-pkg-version-Bj0XkWnL.js → check-pkg-version-BHAFLsKe.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/{package-Dptg-P5y.js → package-CZK-K7yM.js} +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-D6a-vvrO.js → check-pkg-version-ClZuo82s.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/{package-czPIvHxt.js → package-C3_8r8V7.js} +1 -1
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-2bd821a8.entry.js → p-082efda3.entry.js} +1 -1
- package/dist/webcomponents/{p-f6ec50c9.entry.js → p-12499226.entry.js} +1 -1
- package/dist/webcomponents/p-1ddddc82.entry.js +1 -0
- package/dist/webcomponents/p-215ce79e.entry.js +1 -0
- package/dist/webcomponents/{p-aec7a3c8.entry.js → p-239d1d07.entry.js} +1 -1
- package/dist/webcomponents/{p-0b760c4f.entry.js → p-23a3e38e.entry.js} +1 -1
- package/dist/webcomponents/{p-21c060ce.entry.js → p-27b88afd.entry.js} +1 -1
- package/dist/webcomponents/{p-75f3161c.entry.js → p-2a347349.entry.js} +1 -1
- package/dist/webcomponents/{p-9d67209d.entry.js → p-3787cf63.entry.js} +1 -1
- package/dist/webcomponents/{p-db17bc59.entry.js → p-476ebd43.entry.js} +1 -1
- package/dist/webcomponents/p-64ddd8ea.entry.js +1 -0
- package/dist/webcomponents/p-7becc3d3.entry.js +1 -0
- package/dist/webcomponents/p-8071daf3.entry.js +1 -0
- package/dist/webcomponents/{p-26e95adb.entry.js → p-93aa2d31.entry.js} +1 -1
- package/dist/webcomponents/{p-e07bf523.entry.js → p-9e346c2e.entry.js} +1 -1
- package/dist/webcomponents/p-C3_8r8V7.js +1 -0
- package/dist/webcomponents/p-a9ea2c82.entry.js +1 -0
- package/dist/webcomponents/{p-306c7c33.entry.js → p-aaef1450.entry.js} +1 -1
- package/dist/webcomponents/{p-e00fb7b1.entry.js → p-beb0a3c8.entry.js} +1 -1
- package/dist/webcomponents/{p-3aaedf9d.entry.js → p-d3697504.entry.js} +1 -1
- package/dist/webcomponents/{p-d7a06b34.entry.js → p-d9c090b6.entry.js} +1 -1
- package/dist/webcomponents/{p-38ff97ea.entry.js → p-f11eb1bc.entry.js} +1 -1
- package/dist/webcomponents/{p-5981869a.entry.js → p-f358610a.entry.js} +1 -1
- package/dist/webcomponents/{p-CApezhx9.js → p-sassRpOu.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/docs/entities/businessdetails/index.mdx +55 -72
- package/docs/entities/businessform/index.mdx +13 -19
- package/docs/entities/payment-provisioning/index.mdx +9 -17
- package/docs/helpers/PartsTable.jsx +29 -0
- package/docs/helpers/PropsTable.jsx +35 -0
- package/docs/helpers/{version.ts → version.js} +2 -2
- package/docs/merchant-tools/checkouts-list/index.mdx +50 -64
- package/docs/merchant-tools/gross-payments-chart/index.mdx +17 -19
- package/docs/merchant-tools/order-terminals/index.mdx +13 -17
- package/docs/merchant-tools/payment-details/index.mdx +13 -16
- package/docs/merchant-tools/payment-transactions-list/index.mdx +13 -17
- package/docs/merchant-tools/payments-list/index.mdx +13 -19
- package/docs/merchant-tools/payout-details/index.mdx +47 -57
- package/docs/merchant-tools/payout-transactions-list/index.mdx +13 -17
- package/docs/merchant-tools/payouts-list/index.mdx +13 -19
- package/docs/merchant-tools/terminal-orders-list/index.mdx +13 -17
- package/docs/merchant-tools/terminals-list/index.mdx +13 -17
- package/docs/modular-checkout/index.mdx +0 -5
- package/docs/modular-checkout/introduction/index.mdx +13 -15
- package/docs/modular-checkout/sub-components/apple-pay.mdx +27 -22
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +51 -51
- package/docs/modular-checkout/sub-components/card-form.mdx +50 -54
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +13 -15
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +33 -55
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +56 -55
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +21 -24
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +104 -109
- package/docs/modular-checkout/sub-components/summary.mdx +13 -14
- package/docs/payment-facilitation/dispute-management/index.mdx +13 -17
- package/docs/payment-facilitation/refund-payment/index.mdx +22 -15
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +28 -45
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +104 -123
- package/package.json +1 -1
- package/dist/webcomponents/p-50a4d4c4.entry.js +0 -1
- package/dist/webcomponents/p-7661c41a.entry.js +0 -1
- package/dist/webcomponents/p-92a43706.entry.js +0 -1
- package/dist/webcomponents/p-9ef4288b.entry.js +0 -1
- package/dist/webcomponents/p-c9b50493.entry.js +0 -1
- package/dist/webcomponents/p-czPIvHxt.js +0 -1
- package/dist/webcomponents/p-deda2e9d.entry.js +0 -1
- package/docs/helpers/PartsTable.ts +0 -55
- package/docs/helpers/PropsTable.ts +0 -63
- package/docs/modular-checkout/docs/index.mdx +0 -32
- package/docs/modular-checkout/example/index.mdx +0 -25
|
@@ -5,7 +5,7 @@ description: Render-only component that lists available payment rails and lets c
|
|
|
5
5
|
sidebar_position: 25
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import { PropsTable, PartsTable } from '
|
|
8
|
+
import { PropsTable, PartsTable } from '@justifi/webcomponents/docs/helpers';
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
11
|
|
|
@@ -13,18 +13,21 @@ import { PropsTable, PartsTable } from '../../helpers';
|
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
|
-
<pre
|
|
16
|
+
<pre>
|
|
17
|
+
<code className="language-html">{`<justifi-payment-method-options
|
|
17
18
|
selected="card"
|
|
18
19
|
options='[
|
|
19
20
|
{"id":"card","label":"Credit or debit card"},
|
|
20
21
|
{"id":"ach","label":"Bank account"},
|
|
21
22
|
{"id":"wallet","label":"Digital wallet"}
|
|
22
23
|
]'
|
|
23
|
-
></justifi-payment-method-options>`}</code
|
|
24
|
+
></justifi-payment-method-options>`}</code>
|
|
25
|
+
</pre>
|
|
24
26
|
|
|
25
27
|
## Props, Events & Methods
|
|
26
28
|
|
|
27
|
-
<
|
|
29
|
+
<PropsTable
|
|
30
|
+
rows={[
|
|
28
31
|
{
|
|
29
32
|
name: 'options',
|
|
30
33
|
type: 'Array<{ id: string; label: string; description?: string; icon?: string }>',
|
|
@@ -49,7 +52,8 @@ import { PropsTable, PartsTable } from '../../helpers';
|
|
|
49
52
|
description:
|
|
50
53
|
'Prevent users from switching rails (e.g., while submitting).',
|
|
51
54
|
},
|
|
52
|
-
]
|
|
55
|
+
]}
|
|
56
|
+
/>
|
|
53
57
|
|
|
54
58
|
### Events
|
|
55
59
|
|
|
@@ -61,7 +65,8 @@ import { PropsTable, PartsTable } from '../../helpers';
|
|
|
61
65
|
|
|
62
66
|
## Theming & Layout
|
|
63
67
|
|
|
64
|
-
<
|
|
68
|
+
<PartsTable
|
|
69
|
+
parts={[
|
|
65
70
|
{
|
|
66
71
|
name: 'option',
|
|
67
72
|
description: 'Individual rail container (card/tab/list row).',
|
|
@@ -74,12 +79,5 @@ import { PropsTable, PartsTable } from '../../helpers';
|
|
|
74
79
|
name: 'option-description',
|
|
75
80
|
description: 'Secondary text area for additional guidance.',
|
|
76
81
|
},
|
|
77
|
-
]
|
|
78
|
-
|
|
79
|
-
## Static examples
|
|
80
|
-
|
|
81
|
-
### Programmatic selection
|
|
82
|
-
|
|
83
|
-
<pre><code className="language-js">{`const options = document.querySelector('justifi-payment-method-options');
|
|
84
|
-
|
|
85
|
-
document.querySelector('#select-ach').onclick = () => options.select('ach');`}</code></pre>
|
|
82
|
+
]}
|
|
83
|
+
/>
|
|
@@ -5,8 +5,11 @@ description: Plaid-powered ACH rail for Modular Checkout with hosted Link flow.
|
|
|
5
5
|
sidebar_position: 23
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
10
13
|
|
|
11
14
|
## Overview
|
|
12
15
|
|
|
@@ -29,48 +32,28 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
29
32
|
<title>justifi-plaid-payment-method</title>
|
|
30
33
|
|
|
31
34
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
::part(input-radio-focused) {
|
|
52
|
-
/* input radio focused styles */
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
::part(input-radio-checked) {
|
|
56
|
-
/* input radio checked styles */
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
::part(input-radio-checked-focused) {
|
|
60
|
-
/* input radio checked focused styles */
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
::part(input-radio-invalid) {
|
|
64
|
-
/* input radio invalid styles */
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
35
|
+
|
|
36
|
+
<script
|
|
37
|
+
nomodule
|
|
38
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
|
|
39
|
+
></script>
|
|
40
|
+
|
|
41
|
+
<style>
|
|
42
|
+
/** These are the available parts for styling the component. */ ::part(text){' '}
|
|
43
|
+
{/* text styles */}
|
|
44
|
+
::part(text-danger) {/* text danger styles */}
|
|
45
|
+
::part(label) {/* label styles */}
|
|
46
|
+
::part(input-radio) {/* input radio styles */}
|
|
47
|
+
::part(input-radio-focused) {/* input radio focused styles */}
|
|
48
|
+
::part(input-radio-checked) {/* input radio checked styles */}
|
|
49
|
+
::part(input-radio-checked-focused) {/* input radio checked focused styles */}
|
|
50
|
+
::part(input-radio-invalid) {/* input radio invalid styles */}
|
|
51
|
+
</style>
|
|
52
|
+
|
|
67
53
|
</head>
|
|
68
54
|
|
|
69
55
|
<body>
|
|
70
|
-
<justifi-modular-checkout
|
|
71
|
-
auth-token="authToken"
|
|
72
|
-
checkout-id="ch_123"
|
|
73
|
-
>
|
|
56
|
+
<justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
|
|
74
57
|
<justifi-plaid-payment-method />
|
|
75
58
|
</justifi-modular-checkout>
|
|
76
59
|
</body>
|
|
@@ -88,11 +71,13 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
88
71
|
});
|
|
89
72
|
})();
|
|
90
73
|
</script>
|
|
74
|
+
|
|
91
75
|
</html>`}</code></pre>
|
|
92
76
|
|
|
93
77
|
## Props, Events & Methods
|
|
94
78
|
|
|
95
|
-
<
|
|
79
|
+
<PropsTable
|
|
80
|
+
rows={[
|
|
96
81
|
{
|
|
97
82
|
name: 'link-token',
|
|
98
83
|
type: 'string',
|
|
@@ -112,7 +97,8 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
112
97
|
defaultValue: 'dark',
|
|
113
98
|
description: 'Controls Plaid Link UI theme.',
|
|
114
99
|
},
|
|
115
|
-
]
|
|
100
|
+
]}
|
|
101
|
+
/>
|
|
116
102
|
|
|
117
103
|
### Events
|
|
118
104
|
|
|
@@ -130,7 +116,8 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
130
116
|
- Styling is limited to the wrapper since Plaid controls the Link modal.
|
|
131
117
|
- Provide fallback instructions for devices where Plaid is unavailable.
|
|
132
118
|
|
|
133
|
-
<
|
|
119
|
+
<PartsTable
|
|
120
|
+
parts={[
|
|
134
121
|
{
|
|
135
122
|
name: 'text',
|
|
136
123
|
description: 'Text styles.',
|
|
@@ -163,14 +150,5 @@ It exposes no public properties for configuration, but does emit Plaid-specific
|
|
|
163
150
|
name: 'input-radio-invalid',
|
|
164
151
|
description: 'Radio input styles when invalid.',
|
|
165
152
|
},
|
|
166
|
-
]
|
|
167
|
-
|
|
168
|
-
## Static examples
|
|
169
|
-
|
|
170
|
-
### Listening for success
|
|
171
|
-
|
|
172
|
-
<pre><code className="language-js">{`const plaidRail = document.querySelector('justifi-plaid-payment-method');
|
|
173
|
-
|
|
174
|
-
plaidRail.addEventListener('plaid-success', ({ detail }) => {
|
|
175
|
-
console.log('Bank linked: ', detail.institution.name);
|
|
176
|
-
});`}</code></pre>
|
|
153
|
+
]}
|
|
154
|
+
/>
|
|
@@ -5,8 +5,11 @@ description: Saved payment selector for Modular Checkout that handles defaulting
|
|
|
5
5
|
sidebar_position: 26
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
10
13
|
|
|
11
14
|
## Overview
|
|
12
15
|
|
|
@@ -31,48 +34,51 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
31
34
|
<title>justifi-saved-payment-methods</title>
|
|
32
35
|
|
|
33
36
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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. */ ::part(text){' '}
|
|
45
|
+
{
|
|
46
|
+
// text styles
|
|
47
|
+
}
|
|
48
|
+
::part(text-danger){' '}
|
|
49
|
+
{
|
|
50
|
+
// text danger styles
|
|
51
|
+
}
|
|
52
|
+
::part(label){' '}
|
|
53
|
+
{
|
|
54
|
+
// label styles
|
|
55
|
+
}
|
|
56
|
+
::part(input-radio){' '}
|
|
57
|
+
{
|
|
58
|
+
// input radio styles
|
|
59
|
+
}
|
|
60
|
+
::part(input-radio-focused){' '}
|
|
61
|
+
{
|
|
62
|
+
// input radio focused styles
|
|
63
|
+
}
|
|
64
|
+
::part(input-radio-checked){' '}
|
|
65
|
+
{
|
|
66
|
+
// input radio checked styles
|
|
67
|
+
}
|
|
68
|
+
::part(input-radio-checked-focused){' '}
|
|
69
|
+
{
|
|
70
|
+
// input radio checked focused styles
|
|
71
|
+
}
|
|
72
|
+
::part(input-radio-invalid){' '}
|
|
73
|
+
{
|
|
74
|
+
// input radio invalid styles
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
77
|
+
|
|
69
78
|
</head>
|
|
70
79
|
|
|
71
80
|
<body>
|
|
72
|
-
<justifi-modular-checkout
|
|
73
|
-
auth-token="authToken"
|
|
74
|
-
checkout-id="ch_123"
|
|
75
|
-
>
|
|
81
|
+
<justifi-modular-checkout auth-token="authToken" checkout-id="ch_123">
|
|
76
82
|
<justifi-saved-payment-methods />
|
|
77
83
|
</justifi-modular-checkout>
|
|
78
84
|
</body>
|
|
@@ -95,11 +101,13 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
95
101
|
});
|
|
96
102
|
})();
|
|
97
103
|
</script>
|
|
104
|
+
|
|
98
105
|
</html>`}</code></pre>
|
|
99
106
|
|
|
100
107
|
## Props, Events & Methods
|
|
101
108
|
|
|
102
|
-
<
|
|
109
|
+
<PropsTable
|
|
110
|
+
rows={[
|
|
103
111
|
{
|
|
104
112
|
name: 'customer-id',
|
|
105
113
|
type: 'string',
|
|
@@ -119,7 +127,8 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
119
127
|
description:
|
|
120
128
|
'Displays a control that reveals the card/bank forms when no method is selected.',
|
|
121
129
|
},
|
|
122
|
-
]
|
|
130
|
+
]}
|
|
131
|
+
/>
|
|
123
132
|
|
|
124
133
|
### Events
|
|
125
134
|
|
|
@@ -132,7 +141,8 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
132
141
|
|
|
133
142
|
## Theming & Layout
|
|
134
143
|
|
|
135
|
-
<
|
|
144
|
+
<PartsTable
|
|
145
|
+
parts={[
|
|
136
146
|
{
|
|
137
147
|
name: 'text',
|
|
138
148
|
description: 'Text styles.',
|
|
@@ -165,14 +175,5 @@ This component exposes **no public methods or properties** and is not intended f
|
|
|
165
175
|
name: 'input-radio-invalid',
|
|
166
176
|
description: 'Radio input styles when invalid.',
|
|
167
177
|
},
|
|
168
|
-
]
|
|
169
|
-
|
|
170
|
-
## Static examples
|
|
171
|
-
|
|
172
|
-
### Fallback flow
|
|
173
|
-
|
|
174
|
-
<pre><code className="language-js">{`const saved = document.querySelector('justifi-saved-payment-methods');
|
|
175
|
-
|
|
176
|
-
saved.addEventListener('selection-changed', ({ detail }) => {
|
|
177
|
-
if (!detail.payment_method_token) saved.clearSelection();
|
|
178
|
-
});`}</code></pre>
|
|
178
|
+
]}
|
|
179
|
+
/>
|
|
@@ -5,8 +5,11 @@ description: Optional insurance add-on rail that pairs with Modular Checkout sum
|
|
|
5
5
|
sidebar_position: 25
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
PropsTable,
|
|
10
|
+
PartsTable,
|
|
11
|
+
getWebcomponentsVersion,
|
|
12
|
+
} from '@justifi/webcomponents/docs/helpers';
|
|
10
13
|
|
|
11
14
|
## Overview
|
|
12
15
|
|
|
@@ -23,7 +26,12 @@ Component to render a formated list of season interruption insurance for the req
|
|
|
23
26
|
<title>justifi-season-interruption-insurance</title>
|
|
24
27
|
|
|
25
28
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"></script>
|
|
26
|
-
|
|
29
|
+
|
|
30
|
+
<script
|
|
31
|
+
nomodule
|
|
32
|
+
src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
|
|
33
|
+
></script>
|
|
34
|
+
|
|
27
35
|
<style>
|
|
28
36
|
::part(font-family) {
|
|
29
37
|
font-family: georgia;
|
|
@@ -60,10 +68,11 @@ Component to render a formated list of season interruption insurance for the req
|
|
|
60
68
|
box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
|
|
61
69
|
}
|
|
62
70
|
</style>
|
|
71
|
+
|
|
63
72
|
</head>
|
|
64
73
|
|
|
65
74
|
<body>
|
|
66
|
-
<justifi-season-interruption-insurance
|
|
75
|
+
<justifi-season-interruption-insurance
|
|
67
76
|
auth-token="your-auth-token"
|
|
68
77
|
checkout-id="your-checkout-id"
|
|
69
78
|
primary-identity-first-name="John"
|
|
@@ -80,7 +89,8 @@ Component to render a formated list of season interruption insurance for the req
|
|
|
80
89
|
|
|
81
90
|
## Props, Events & Methods
|
|
82
91
|
|
|
83
|
-
<
|
|
92
|
+
<PropsTable
|
|
93
|
+
rows={[
|
|
84
94
|
{
|
|
85
95
|
name: 'auth-token',
|
|
86
96
|
type: 'string',
|
|
@@ -156,7 +166,8 @@ Component to render a formated list of season interruption insurance for the req
|
|
|
156
166
|
type: 'string',
|
|
157
167
|
description: 'Last name of the covered person.',
|
|
158
168
|
},
|
|
159
|
-
]
|
|
169
|
+
]}
|
|
170
|
+
/>
|
|
160
171
|
|
|
161
172
|
### Events
|
|
162
173
|
|
|
@@ -172,7 +183,8 @@ Component to render a formated list of season interruption insurance for the req
|
|
|
172
183
|
- The host inherits the same typography tokens as other Modular Checkout rails via `StyledHost`, so it naturally matches surrounding content.
|
|
173
184
|
- Use the exposed parts to restyle copy or validation messaging without affecting the radios themselves.
|
|
174
185
|
|
|
175
|
-
<
|
|
186
|
+
<PartsTable
|
|
187
|
+
parts={[
|
|
176
188
|
{
|
|
177
189
|
name: 'font-family',
|
|
178
190
|
description: 'Controls the font family for the component.',
|
|
@@ -201,20 +213,5 @@ Component to render a formated list of season interruption insurance for the req
|
|
|
201
213
|
name: 'input-radio-checked-focused',
|
|
202
214
|
description: 'Radio input styles when checked and focused.',
|
|
203
215
|
},
|
|
204
|
-
]
|
|
205
|
-
|
|
206
|
-
## Static examples
|
|
207
|
-
|
|
208
|
-
### Validate selection before submission
|
|
209
|
-
|
|
210
|
-
<pre><code className="language-js">{`const insurance = document.querySelector('justifi-season-interruption-insurance');
|
|
211
|
-
|
|
212
|
-
const { isValid } = await insurance.validate();
|
|
213
|
-
|
|
214
|
-
if (!isValid) {
|
|
215
|
-
// surface inline validation by leaving the radio group untouched
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// continue to submit the checkout
|
|
220
|
-
`}</code></pre>
|
|
216
|
+
]}
|
|
217
|
+
/>
|