@paypal/checkout-components 5.0.403 → 5.0.404-alpha-e012ebc.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/dist/button.js +1 -1
- package/dist/test/button.js +1 -1
- package/package.json +1 -1
- package/src/funding/paylater/config.jsx +7 -0
- package/src/ui/buttons/styles/styleUtils.js +2 -0
- package/src/ui/buttons/styles/styleUtils.test.constants.js +738 -0
- package/src/ui/buttons/styles/styleUtils.test.js +192 -647
package/package.json
CHANGED
|
@@ -37,6 +37,13 @@ function getLabelText(
|
|
|
37
37
|
labelText = "Später Bezahlen";
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
if (
|
|
41
|
+
paylater?.products?.paylater?.eligible &&
|
|
42
|
+
paylater?.products?.paylater?.variant === "AT"
|
|
43
|
+
) {
|
|
44
|
+
labelText = "Später Bezahlen";
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
if (
|
|
41
48
|
(paylater?.products?.payIn3?.eligible &&
|
|
42
49
|
paylater?.products?.payIn3?.variant === "ES") ||
|
|
@@ -124,6 +124,7 @@ export function getResponsiveStyleVariables({
|
|
|
124
124
|
|
|
125
125
|
const shouldResizeLabel =
|
|
126
126
|
paylater?.products?.paylater?.variant === "DE" ||
|
|
127
|
+
paylater?.products?.paylater?.variant === "AT" ||
|
|
127
128
|
paylater?.products?.payIn3?.variant === "IT" ||
|
|
128
129
|
paylater?.products?.paylater?.variant === "IT" ||
|
|
129
130
|
paylater?.products?.payIn3?.variant === "ES" ||
|
|
@@ -225,6 +226,7 @@ export function getDisableMaxHeightResponsiveStyleVariables({
|
|
|
225
226
|
|
|
226
227
|
const shouldResizeLabel =
|
|
227
228
|
paylater?.products?.paylater?.variant === "DE" ||
|
|
229
|
+
paylater?.products?.paylater?.variant === "AT" ||
|
|
228
230
|
paylater?.products?.payIn3?.variant === "IT" ||
|
|
229
231
|
paylater?.products?.paylater?.variant === "IT" ||
|
|
230
232
|
paylater?.products?.payIn3?.variant === "ES" ||
|