@paypal/checkout-components 5.0.382 → 5.0.383

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/checkout-components",
3
- "version": "5.0.382",
3
+ "version": "5.0.383",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,17 +35,21 @@ function getLabelText(
35
35
  }
36
36
 
37
37
  if (
38
- paylater?.products?.payIn3?.eligible &&
39
- paylater?.products?.payIn3?.variant === "ES"
38
+ (paylater?.products?.payIn3?.eligible &&
39
+ paylater?.products?.payIn3?.variant === "ES") ||
40
+ (paylater?.products?.paylater?.eligible &&
41
+ paylater?.products?.paylater?.variant === "ES")
40
42
  ) {
41
- labelText = "Paga en 3 plazos";
43
+ labelText = "Paga a plazos";
42
44
  }
43
45
 
44
46
  if (
45
- paylater?.products?.payIn3?.eligible &&
46
- paylater?.products?.payIn3?.variant === "IT"
47
+ (paylater?.products?.payIn3?.eligible &&
48
+ paylater?.products?.payIn3?.variant === "IT") ||
49
+ (paylater?.products?.paylater?.eligible &&
50
+ paylater?.products?.paylater?.variant === "IT")
47
51
  ) {
48
- labelText = "Paga in 3 rate";
52
+ labelText = "Paga a rate";
49
53
  }
50
54
 
51
55
  if (paylater?.products?.payIn4?.eligible) {
@@ -125,7 +125,9 @@ export function getResponsiveStyleVariables({
125
125
  const shouldResizeLabel =
126
126
  paylater?.products?.paylater?.variant === "DE" ||
127
127
  paylater?.products?.payIn3?.variant === "IT" ||
128
- paylater?.products?.payIn3?.variant === "ES";
128
+ paylater?.products?.paylater?.variant === "IT" ||
129
+ paylater?.products?.payIn3?.variant === "ES" ||
130
+ paylater?.products?.paylater?.variant === "ES";
129
131
 
130
132
  const textPercPercentage = shouldResizeLabel ? 32 : 36;
131
133
  const labelPercPercentage = shouldResizeLabel ? 32 : 35;
@@ -224,7 +226,9 @@ export function getDisableMaxHeightResponsiveStyleVariables({
224
226
  const shouldResizeLabel =
225
227
  paylater?.products?.paylater?.variant === "DE" ||
226
228
  paylater?.products?.payIn3?.variant === "IT" ||
227
- paylater?.products?.payIn3?.variant === "ES";
229
+ paylater?.products?.paylater?.variant === "IT" ||
230
+ paylater?.products?.payIn3?.variant === "ES" ||
231
+ paylater?.products?.paylater?.variant === "ES";
228
232
 
229
233
  const labelHeight = getLabelHeight({
230
234
  height: buttonHeight,