@telefonica/mistica 16.0.0 → 16.1.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.
Files changed (152) hide show
  1. package/README.md +11 -9
  2. package/css/mistica.css +1 -1
  3. package/dist/box.d.ts +1 -0
  4. package/dist/box.js +12 -12
  5. package/dist/card.d.ts +14 -2
  6. package/dist/card.js +210 -206
  7. package/dist/credit-card-expiration-field.d.ts +1 -1
  8. package/dist/credit-card-expiration-field.js +53 -52
  9. package/dist/credit-card-number-field.d.ts +1 -1
  10. package/dist/credit-card-number-field.js +47 -45
  11. package/dist/cvv-field.d.ts +1 -1
  12. package/dist/cvv-field.js +38 -37
  13. package/dist/date-field.d.ts +1 -1
  14. package/dist/date-field.js +15 -13
  15. package/dist/date-time-field.d.ts +1 -1
  16. package/dist/date-time-field.js +13 -11
  17. package/dist/decimal-field.d.ts +1 -1
  18. package/dist/decimal-field.js +39 -38
  19. package/dist/email-field.d.ts +1 -1
  20. package/dist/email-field.js +21 -19
  21. package/dist/form-context.d.ts +7 -2
  22. package/dist/form-context.js +69 -62
  23. package/dist/form.d.ts +2 -1
  24. package/dist/form.js +94 -80
  25. package/dist/iban-field.d.ts +1 -1
  26. package/dist/iban-field.js +32 -30
  27. package/dist/index.d.ts +12 -3
  28. package/dist/index.js +19 -8
  29. package/dist/inline.d.ts +2 -1
  30. package/dist/inline.js +16 -15
  31. package/dist/integer-field.d.ts +1 -1
  32. package/dist/integer-field.js +30 -30
  33. package/dist/month-field.d.ts +1 -1
  34. package/dist/month-field.js +15 -13
  35. package/dist/package-version.js +1 -1
  36. package/dist/password-field.d.ts +1 -1
  37. package/dist/password-field.js +24 -22
  38. package/dist/phone-number-field.d.ts +4 -1
  39. package/dist/phone-number-field.js +84 -52
  40. package/dist/pin-field.js +21 -20
  41. package/dist/radio-button.d.ts +1 -0
  42. package/dist/radio-button.js +42 -41
  43. package/dist/rating.css-mistica.js +44 -0
  44. package/dist/rating.css.d.ts +11 -0
  45. package/dist/rating.css.ts.vanilla.css-mistica.js +11 -0
  46. package/dist/rating.d.ts +37 -0
  47. package/dist/rating.js +320 -0
  48. package/dist/search-field.d.ts +1 -0
  49. package/dist/search-field.js +18 -16
  50. package/dist/select.js +36 -33
  51. package/dist/sheet-action-row.css-mistica.js +13 -0
  52. package/dist/sheet-action-row.css.d.ts +1 -0
  53. package/dist/sheet-actions-list.d.ts +26 -0
  54. package/dist/sheet-actions-list.js +147 -0
  55. package/dist/sheet-actions.d.ts +23 -0
  56. package/dist/sheet-actions.js +175 -0
  57. package/dist/{sheet.css-mistica.js → sheet-common.css-mistica.js} +15 -21
  58. package/dist/{sheet.css.d.ts → sheet-common.css.d.ts} +0 -2
  59. package/dist/sheet-common.css.ts.vanilla.css-mistica.js +11 -0
  60. package/dist/sheet-common.d.ts +24 -0
  61. package/dist/sheet-common.js +429 -0
  62. package/dist/sheet-info.css-mistica.js +12 -0
  63. package/dist/sheet-info.css.d.ts +1 -0
  64. package/dist/sheet-info.d.ts +28 -0
  65. package/dist/sheet-info.js +156 -0
  66. package/dist/sheet-native.d.ts +2 -0
  67. package/dist/sheet-native.js +173 -0
  68. package/dist/sheet-radio-list.d.ts +22 -0
  69. package/dist/sheet-radio-list.js +143 -0
  70. package/dist/sheet-root.d.ts +4 -85
  71. package/dist/sheet-root.js +48 -322
  72. package/dist/sheet-types.d.ts +88 -0
  73. package/dist/sheet-web.d.ts +8 -0
  74. package/dist/sheet-web.js +183 -0
  75. package/dist/slider.js +40 -39
  76. package/dist/switch-component.js +18 -17
  77. package/dist/text-field-base.d.ts +3 -1
  78. package/dist/text-field-base.js +74 -66
  79. package/dist/text-field-components.css-mistica.js +14 -14
  80. package/dist/text-field-components.css.d.ts +2 -2
  81. package/dist/text-field-components.js +49 -39
  82. package/dist/text-field.d.ts +1 -0
  83. package/dist/text-field.js +24 -22
  84. package/dist/text-tokens.d.ts +14 -0
  85. package/dist/text-tokens.js +145 -89
  86. package/dist/theme-context-provider.js +6 -5
  87. package/dist/theme.d.ts +2 -0
  88. package/dist/utils/credit-card.d.ts +2 -2
  89. package/dist/utils/credit-card.js +1 -1
  90. package/dist/vivinho-loading-animation/in-lottie.json.js +544 -612
  91. package/dist/vivinho-loading-animation/out-lottie.json.js +828 -896
  92. package/dist/vivinho-loading-animation/pulse-lottie.json.js +798 -866
  93. package/dist/vivinho-loading-animation/wave-lottie.json.js +4303 -4409
  94. package/dist-es/box.js +18 -18
  95. package/dist-es/card.js +305 -301
  96. package/dist-es/credit-card-expiration-field.js +57 -56
  97. package/dist-es/credit-card-number-field.js +74 -72
  98. package/dist-es/cvv-field.js +82 -81
  99. package/dist-es/date-field.js +29 -27
  100. package/dist-es/date-time-field.js +29 -27
  101. package/dist-es/decimal-field.js +46 -45
  102. package/dist-es/email-field.js +26 -24
  103. package/dist-es/form-context.js +70 -63
  104. package/dist-es/form.js +102 -88
  105. package/dist-es/iban-field.js +35 -33
  106. package/dist-es/index.js +1822 -1817
  107. package/dist-es/inline.js +26 -25
  108. package/dist-es/integer-field.js +31 -31
  109. package/dist-es/month-field.js +28 -26
  110. package/dist-es/package-version.js +1 -1
  111. package/dist-es/password-field.js +37 -35
  112. package/dist-es/phone-number-field.js +92 -60
  113. package/dist-es/pin-field.js +32 -31
  114. package/dist-es/radio-button.js +42 -41
  115. package/dist-es/rating.css-mistica.js +6 -0
  116. package/dist-es/rating.css.ts.vanilla.css-mistica.js +2 -0
  117. package/dist-es/rating.js +257 -0
  118. package/dist-es/search-field.js +33 -31
  119. package/dist-es/select.js +49 -46
  120. package/dist-es/sheet-action-row.css-mistica.js +4 -0
  121. package/dist-es/sheet-actions-list.js +92 -0
  122. package/dist-es/sheet-actions.js +125 -0
  123. package/dist-es/sheet-common.css-mistica.js +4 -0
  124. package/dist-es/sheet-common.css.ts.vanilla.css-mistica.js +2 -0
  125. package/dist-es/sheet-common.js +366 -0
  126. package/dist-es/sheet-info.css-mistica.js +3 -0
  127. package/dist-es/sheet-info.js +101 -0
  128. package/dist-es/sheet-native.js +164 -0
  129. package/dist-es/sheet-radio-list.js +88 -0
  130. package/dist-es/sheet-root.js +50 -319
  131. package/dist-es/sheet-web.js +128 -0
  132. package/dist-es/slider.js +49 -48
  133. package/dist-es/style.css +1 -1
  134. package/dist-es/switch-component.js +27 -26
  135. package/dist-es/text-field-base.js +108 -100
  136. package/dist-es/text-field-components.css-mistica.js +2 -2
  137. package/dist-es/text-field-components.js +70 -60
  138. package/dist-es/text-field.js +33 -31
  139. package/dist-es/text-tokens.js +80 -45
  140. package/dist-es/theme-context-provider.js +20 -19
  141. package/dist-es/utils/credit-card.js +1 -1
  142. package/dist-es/vivinho-loading-animation/in-lottie.json.js +534 -599
  143. package/dist-es/vivinho-loading-animation/out-lottie.json.js +821 -886
  144. package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +790 -855
  145. package/dist-es/vivinho-loading-animation/wave-lottie.json.js +4297 -4400
  146. package/package.json +4 -3
  147. package/dist/sheet.d.ts +0 -107
  148. package/dist/sheet.js +0 -642
  149. package/dist-es/sheet.css-mistica.js +0 -4
  150. package/dist-es/sheet.js +0 -567
  151. /package/dist/{sheet.css.ts.vanilla.css-mistica.js → sheet-action-row.css.ts.vanilla.css-mistica.js} +0 -0
  152. /package/dist-es/{sheet.css.ts.vanilla.css-mistica.js → sheet-action-row.css.ts.vanilla.css-mistica.js} +0 -0
@@ -22,25 +22,25 @@ _export(exports, {
22
22
  return I;
23
23
  },
24
24
  closeButtonLabel: function() {
25
- return M;
25
+ return E;
26
26
  },
27
27
  closeNavigationMenu: function() {
28
- return y;
28
+ return x;
29
29
  },
30
30
  counterDecreaseLabel: function() {
31
- return j;
31
+ return z;
32
32
  },
33
33
  counterIncreaseLabel: function() {
34
- return R;
34
+ return j;
35
35
  },
36
36
  counterMaxValue: function() {
37
- return W;
37
+ return K;
38
38
  },
39
39
  counterMinValue: function() {
40
- return q;
40
+ return W;
41
41
  },
42
42
  counterQuantity: function() {
43
- return z;
43
+ return q;
44
44
  },
45
45
  counterRemoveLabel: function() {
46
46
  return H;
@@ -64,55 +64,58 @@ _export(exports, {
64
64
  return C;
65
65
  },
66
66
  formCreditCardCvvLabel: function() {
67
- return p;
67
+ return g;
68
68
  },
69
69
  formCreditCardCvvTooltipAmex: function() {
70
- return h;
70
+ return f;
71
71
  },
72
72
  formCreditCardCvvTooltipVisaMc: function() {
73
73
  return v;
74
74
  },
75
75
  formCreditCardCvvTooltipVisaMcButtonClose: function() {
76
- return b;
76
+ return h;
77
77
  },
78
78
  formCreditCardCvvTooltipVisaMcButtonOpen: function() {
79
- return g;
79
+ return b;
80
80
  },
81
81
  formCreditCardExpirationError: function() {
82
- return f;
82
+ return V;
83
83
  },
84
84
  formCreditCardExpirationLabel: function() {
85
- return m;
85
+ return p;
86
86
  },
87
87
  formCreditCardNumberError: function() {
88
- return V;
88
+ return L;
89
89
  },
90
90
  formCreditCardNumberLabel: function() {
91
- return u;
91
+ return m;
92
92
  },
93
93
  formDateOutOfRangeError: function() {
94
- return L;
94
+ return A;
95
95
  },
96
96
  formEmailError: function() {
97
- return A;
97
+ return S;
98
+ },
99
+ formErrorsAlertMessage: function() {
100
+ return c;
98
101
  },
99
102
  formFieldErrorIsMandatory: function() {
100
- return l;
103
+ return u;
101
104
  },
102
105
  formFieldOptionalLabelSuffix: function() {
103
- return c;
106
+ return l;
104
107
  },
105
108
  formIbanError: function() {
106
- return S;
109
+ return M;
107
110
  },
108
111
  formSearchClear: function() {
109
- return E;
112
+ return y;
110
113
  },
111
114
  linkOpensInCurrentPage: function() {
112
- return s;
115
+ return r;
113
116
  },
114
117
  linkOpensInNewTab: function() {
115
- return a;
118
+ return s;
116
119
  },
117
120
  loading: function() {
118
121
  return o;
@@ -121,76 +124,94 @@ _export(exports, {
121
124
  return B;
122
125
  },
123
126
  modalClose: function() {
124
- return r;
127
+ return a;
125
128
  },
126
129
  openNavigationMenu: function() {
127
- return x;
130
+ return $;
128
131
  },
129
132
  pauseIconButtonLabel: function() {
130
- return k;
133
+ return F;
131
134
  },
132
135
  pinFieldInputLabel: function() {
133
- return T;
136
+ return R;
134
137
  },
135
138
  playIconButtonLabel: function() {
136
- return $;
139
+ return k;
137
140
  },
138
141
  progressBarCompletedLabel: function() {
139
- return w;
142
+ return O;
140
143
  },
141
144
  progressBarStepLabel: function() {
142
- return O;
145
+ return T;
146
+ },
147
+ ratingBadLabel: function() {
148
+ return ce;
149
+ },
150
+ ratingGoodLabel: function() {
151
+ return ue;
152
+ },
153
+ ratingQuantitativeLabel: function() {
154
+ return pe;
155
+ },
156
+ ratingRegularLabel: function() {
157
+ return le;
158
+ },
159
+ ratingVeryBadLabel: function() {
160
+ return de;
161
+ },
162
+ ratingVeryGoodLabel: function() {
163
+ return me;
143
164
  },
144
165
  sheetConfirmButton: function() {
145
- return F;
166
+ return w;
146
167
  },
147
168
  tableActionsHeaderLabel: function() {
148
- return re;
169
+ return ie;
149
170
  },
150
171
  timerAnd: function() {
151
- return Q;
172
+ return Y;
152
173
  },
153
174
  timerDayLongLabel: function() {
154
175
  return U;
155
176
  },
156
177
  timerDaysLongLabel: function() {
157
- return G;
178
+ return X;
158
179
  },
159
180
  timerDaysShortLabel: function() {
160
- return K;
181
+ return Z;
161
182
  },
162
183
  timerDisplayMinutesLabel: function() {
163
- return ae;
184
+ return re;
164
185
  },
165
186
  timerDisplaySecondsLabel: function() {
166
- return se;
187
+ return ae;
167
188
  },
168
189
  timerHourLongLabel: function() {
169
- return X;
190
+ return _;
170
191
  },
171
192
  timerHoursLongLabel: function() {
172
- return _;
193
+ return ee;
173
194
  },
174
195
  timerHoursShortLabel: function() {
175
- return Z;
196
+ return G;
176
197
  },
177
198
  timerMinuteLongLabel: function() {
178
- return ee;
199
+ return ne;
179
200
  },
180
201
  timerMinutesLongLabel: function() {
181
- return ne;
202
+ return te;
182
203
  },
183
204
  timerMinutesShortLabel: function() {
184
205
  return J;
185
206
  },
186
207
  timerSecondLongLabel: function() {
187
- return te;
208
+ return oe;
188
209
  },
189
210
  timerSecondsLongLabel: function() {
190
- return oe;
211
+ return se;
191
212
  },
192
213
  timerSecondsShortLabel: function() {
193
- return Y;
214
+ return Q;
194
215
  }
195
216
  });
196
217
  const e = {
@@ -213,17 +234,17 @@ const e = {
213
234
  en: "Loading",
214
235
  de: "Wird gespeichert",
215
236
  pt: "Carregando"
216
- }, a = {
237
+ }, s = {
217
238
  es: "Se abre en ventana nueva",
218
239
  en: "Opens in a new window",
219
240
  de: "Wird in neuem Fenster ge\xf6ffnet",
220
241
  pt: "Abre em nova janela"
221
- }, s = {
242
+ }, r = {
222
243
  es: "P\xe1gina actual",
223
244
  en: "Current page",
224
245
  de: "Aktuelle Seite",
225
246
  pt: "P\xe1gina atual"
226
- }, r = {
247
+ }, a = {
227
248
  es: "Cerrar",
228
249
  en: "Close",
229
250
  de: "Schlie\xdfen",
@@ -239,26 +260,31 @@ const e = {
239
260
  de: "Akzeptieren",
240
261
  pt: "Aceitar"
241
262
  }, c = {
263
+ es: "Revisa los siguientes errores:",
264
+ en: "Check the following errors:",
265
+ de: "Pr\xfcfe folgende Fehler:",
266
+ pt: "Confira os seguintes erros:"
267
+ }, l = {
242
268
  es: "opcional",
243
269
  en: "optional",
244
270
  de: "optional",
245
271
  pt: "opcional"
246
- }, l = {
272
+ }, u = {
247
273
  es: "Este campo es obligatorio",
248
274
  en: "This field is required",
249
275
  de: "Das ist ein Pflichtfeld",
250
276
  pt: "Este campo \xe9 obrigat\xf3rio"
251
- }, u = {
277
+ }, m = {
252
278
  es: "N\xfamero de tarjeta",
253
279
  en: "Card number",
254
280
  de: "Kartennummer",
255
281
  pt: "N\xfamero de cart\xe3o"
256
- }, m = {
282
+ }, p = {
257
283
  es: "Caducidad",
258
284
  en: "Expiry",
259
285
  de: "Ablaufdatum",
260
286
  pt: "Expira\xe7\xe3o"
261
- }, p = {
287
+ }, g = {
262
288
  es: "CVV",
263
289
  en: "CVV",
264
290
  de: "CVV",
@@ -268,12 +294,12 @@ const e = {
268
294
  en: "Incorrect CVV",
269
295
  de: "Falsche CVV",
270
296
  pt: "CVV incorreto"
271
- }, g = {
297
+ }, b = {
272
298
  es: "Mostrar ayuda CVV",
273
299
  en: "Show CVV help",
274
300
  de: "CVV-Hilfe anzeigen",
275
301
  pt: "Exibir ajuda CVV"
276
- }, b = {
302
+ }, h = {
277
303
  es: "Ocultar ayuda CVV",
278
304
  en: "Hide CVV help",
279
305
  de: "CVV-Hilfe ausblenden",
@@ -283,42 +309,42 @@ const e = {
283
309
  en: "The CVV is the 3 digits of the back of your card",
284
310
  de: "Der CVV-Code besteht aus den 3 Ziffern auf der Kartenr\xfcckseite",
285
311
  pt: "O CVV s\xe3o os 3 d\xedgitos do reverso de seu cart\xe3o"
286
- }, h = {
312
+ }, f = {
287
313
  es: "Si es American Express, a\xf1ade los 4 d\xedgitos del anverso",
288
314
  en: "If it's American Express, add the 4-digit number on the front of the card",
289
315
  de: "Bei American Express 4-stelligen Code auf der R\xfcckseite hinzuf\xfcgen",
290
316
  pt: "Se for American Express, adicione os 4 d\xedgitos do anverso"
291
- }, f = {
317
+ }, V = {
292
318
  es: "Fecha no v\xe1lida",
293
319
  en: "Invalid date",
294
320
  de: "Datum ung\xfcltig",
295
321
  pt: "Data inv\xe1lida"
296
- }, V = {
322
+ }, L = {
297
323
  es: "No es un n\xfamero de tarjeta v\xe1lido",
298
324
  en: "The card number is not valid",
299
325
  de: "Kartennummer ung\xfcltig",
300
326
  pt: "N\xe3o \xe9 um n\xfamero de cart\xe3o v\xe1lido"
301
- }, L = {
327
+ }, A = {
302
328
  es: "Fecha no permitida",
303
329
  en: "Invalid date",
304
330
  de: "Unzul\xe4ssiges Datum",
305
331
  pt: "Data n\xe3o permitida"
306
- }, A = {
332
+ }, S = {
307
333
  es: "Email incorrecto",
308
334
  en: "Invalid email",
309
335
  de: "Falsche E-Mail-Adresse",
310
336
  pt: "Email incorreto"
311
- }, S = {
337
+ }, M = {
312
338
  es: "IBAN incorrecto",
313
339
  en: "Incorrect IBAN",
314
340
  de: "Falsche IBAN",
315
341
  pt: "IBAN incorreto"
316
- }, M = {
342
+ }, E = {
317
343
  es: "Cerrar",
318
344
  en: "Close",
319
345
  de: "Schlie\xdfen",
320
346
  pt: "Fechar"
321
- }, E = {
347
+ }, y = {
322
348
  es: "Borrar b\xfasqueda",
323
349
  en: "Clear search",
324
350
  de: "Suche l\xf6schen",
@@ -328,12 +354,12 @@ const e = {
328
354
  en: "menu",
329
355
  de: "Men\xfc",
330
356
  pt: "menu"
331
- }, x = {
357
+ }, $ = {
332
358
  es: "Abrir men\xfa de navegaci\xf3n",
333
359
  en: "Open navigation menu",
334
360
  de: "Navigationsmen\xfc \xf6ffnen",
335
361
  pt: "Abrir menu de navega\xe7\xe3o"
336
- }, y = {
362
+ }, x = {
337
363
  es: "Cerrar men\xfa de navegaci\xf3n",
338
364
  en: "Close navigation menu",
339
365
  de: "Navigationsmen\xfc schlie\xdfen",
@@ -358,32 +384,32 @@ const e = {
358
384
  en: "previous",
359
385
  de: "vorherige",
360
386
  pt: "anterior"
361
- }, $ = {
387
+ }, k = {
362
388
  es: "Reproducir",
363
389
  en: "Play",
364
390
  de: "Abspielen",
365
391
  pt: "Reproduzir"
366
- }, k = {
392
+ }, F = {
367
393
  es: "Pausar",
368
394
  en: "Pause",
369
395
  de: "Pausieren",
370
396
  pt: "Pausar"
371
- }, F = {
397
+ }, w = {
372
398
  es: "Continuar",
373
399
  en: "Continue",
374
400
  de: "Fortfahren",
375
401
  pt: "Continuar"
376
- }, w = {
402
+ }, O = {
377
403
  es: "completo",
378
404
  en: "completed",
379
405
  de: "vollendet",
380
406
  pt: "conclu\xeddo"
381
- }, O = {
407
+ }, T = {
382
408
  es: "Paso 1$s de 2$s",
383
409
  en: "Step 1$s of 2$s",
384
410
  de: "Schritt 1$s von 2$s",
385
411
  pt: "Etapa 1$s de 2$s"
386
- }, T = {
412
+ }, R = {
387
413
  es: "D\xedgito 1$s de 2$s",
388
414
  en: "Digit 1$s of 2$s",
389
415
  de: "Ziffer 1$s von 2$s",
@@ -393,37 +419,37 @@ const e = {
393
419
  en: "Remove element",
394
420
  de: "Element entfernen",
395
421
  pt: "Remover elemento"
396
- }, R = {
422
+ }, j = {
397
423
  es: "Aumentar valor",
398
424
  en: "Increase value",
399
425
  de: "Wert steigern",
400
426
  pt: "aumentar valor"
401
- }, j = {
427
+ }, z = {
402
428
  es: "Disminuir valor",
403
429
  en: "Decrease value",
404
430
  de: "Wert verringern",
405
431
  pt: "diminuir valor"
406
- }, z = {
432
+ }, q = {
407
433
  es: "cantidad",
408
434
  en: "quantity",
409
435
  de: "menge",
410
436
  pt: "quantidade"
411
- }, q = {
437
+ }, W = {
412
438
  es: "m\xednimo",
413
439
  en: "minimum of",
414
440
  de: "minimal",
415
441
  pt: "m\xednimo"
416
- }, W = {
442
+ }, K = {
417
443
  es: "m\xe1ximo",
418
444
  en: "maximum of",
419
445
  de: "maximal",
420
446
  pt: "m\xe1ximo"
421
- }, K = {
447
+ }, Z = {
422
448
  es: "d",
423
449
  en: "d",
424
450
  de: "Tg.",
425
451
  pt: "d"
426
- }, Z = {
452
+ }, G = {
427
453
  es: "h",
428
454
  en: "h",
429
455
  de: "Std.",
@@ -433,12 +459,12 @@ const e = {
433
459
  en: "min",
434
460
  de: "Min.",
435
461
  pt: "min"
436
- }, Y = {
462
+ }, Q = {
437
463
  es: "s",
438
464
  en: "s",
439
465
  de: "Sek.",
440
466
  pt: "s"
441
- }, Q = {
467
+ }, Y = {
442
468
  es: "y",
443
469
  en: "and",
444
470
  de: "und",
@@ -448,54 +474,84 @@ const e = {
448
474
  en: "day",
449
475
  de: "Tag",
450
476
  pt: "dia"
451
- }, G = {
477
+ }, X = {
452
478
  es: "d\xedas",
453
479
  en: "days",
454
480
  de: "Tage",
455
481
  pt: "dias"
456
- }, X = {
482
+ }, _ = {
457
483
  es: "hora",
458
484
  en: "hour",
459
485
  de: "Stunde",
460
486
  pt: "hora"
461
- }, _ = {
487
+ }, ee = {
462
488
  es: "horas",
463
489
  en: "hours",
464
490
  de: "Stunden",
465
491
  pt: "horas"
466
- }, ee = {
492
+ }, ne = {
467
493
  es: "minuto",
468
494
  en: "minute",
469
495
  de: "Minute",
470
496
  pt: "minuto"
471
- }, ne = {
497
+ }, te = {
472
498
  es: "minutos",
473
499
  en: "minutes",
474
500
  de: "Minuten",
475
501
  pt: "minutos"
476
- }, te = {
502
+ }, oe = {
477
503
  es: "segundo",
478
504
  en: "second",
479
505
  de: "Sekunde",
480
506
  pt: "segundo"
481
- }, oe = {
507
+ }, se = {
482
508
  es: "segundos",
483
509
  en: "seconds",
484
510
  de: "Sekunden",
485
511
  pt: "segundos"
486
- }, ae = {
512
+ }, re = {
487
513
  es: "min",
488
514
  en: "min",
489
515
  de: "Min.",
490
516
  pt: "min"
491
- }, se = {
517
+ }, ae = {
492
518
  es: "seg",
493
519
  en: "sec",
494
520
  de: "Sek.",
495
521
  pt: "seg"
496
- }, re = {
522
+ }, ie = {
497
523
  es: "Acciones",
498
524
  en: "Actions",
499
525
  de: "Aktionen",
500
526
  pt: "A\xe7\xf5es"
527
+ }, de = {
528
+ es: "muy malo",
529
+ en: "very bad",
530
+ de: "sehr schlecht",
531
+ pt: "muito ruim"
532
+ }, ce = {
533
+ es: "malo",
534
+ en: "bad",
535
+ de: "schlecht",
536
+ pt: "ruim"
537
+ }, le = {
538
+ es: "regular",
539
+ en: "regular",
540
+ de: "regular",
541
+ pt: "regular"
542
+ }, ue = {
543
+ es: "bueno",
544
+ en: "good",
545
+ de: "gut",
546
+ pt: "bom"
547
+ }, me = {
548
+ es: "muy bueno",
549
+ en: "very good",
550
+ de: "sehr gut",
551
+ pt: "muito bom"
552
+ }, pe = {
553
+ es: "1$s de 2$s",
554
+ en: "1$s out of 2$s",
555
+ de: "1$s von 2$s",
556
+ pt: "1$s de 2$s"
501
557
  };
@@ -134,10 +134,10 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
134
134
  }, se = ()=>(e)=>e, ie = (e)=>({
135
135
  headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? _theme.NAVBAR_HEIGHT_MOBILE : e == null ? void 0 : e.headerMobileHeight
136
136
  }), ne = ()=>{
137
- const e = _react.useRef(null), [l, n] = _react.useState(!1), [s, v] = _react.useState(!0);
137
+ const e = _react.useRef(null), [l, n] = _react.useState(!1), [s, h] = _react.useState(!0);
138
138
  return (0, _hooks.useIsomorphicLayoutEffect)(()=>{
139
139
  var m;
140
- if (s) v(!1);
140
+ if (s) h(!1);
141
141
  else {
142
142
  const p = (m = e.current) == null ? void 0 : m.parentElement;
143
143
  p && (p.style.isolation = "isolate", n(!0));
@@ -153,7 +153,7 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
153
153
  }, ae = (param)=>{
154
154
  let { theme: e, children: l, as: n, withoutStyles: s = !1 } = param;
155
155
  var _e_colorScheme, _e_skin_borderRadii;
156
- const v = oe(), m = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", p = e.skin.colors, R = _object_spread({}, e.skin.colors, e.skin.darkModeColors), g = m === "auto" && v || m === "dark", d = g ? R : p, b = (0, _locale.localeToLanguage)(e.i18n.locale), k = _react.useCallback((o)=>o[b] || o.en, [
156
+ const h = oe(), m = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", p = e.skin.colors, R = _object_spread({}, e.skin.colors, e.skin.darkModeColors), g = m === "auto" && h || m === "dark", d = g ? R : p, b = (0, _locale.localeToLanguage)(e.i18n.locale), k = _react.useCallback((o)=>o[b] || o.en, [
157
157
  b
158
158
  ]), c = _react.useMemo(()=>{
159
159
  const o = _object_spread({
@@ -166,7 +166,7 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
166
166
  [u]: _object_spread({}, x, (f = e.skin.textPresets) == null ? void 0 : f[u])
167
167
  };
168
168
  }), t = Object.assign({}, ...a);
169
- var _e_useHrefDecorator;
169
+ var _e_useHrefDecorator, _e_preventCopyInFormFields;
170
170
  return {
171
171
  skinName: e.skin.name,
172
172
  i18n: _object_spread({}, e.i18n),
@@ -183,7 +183,8 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
183
183
  isDarkMode: g,
184
184
  isIos: (0, _platform.getPlatform)(o) === "ios",
185
185
  useHrefDecorator: (_e_useHrefDecorator = e.useHrefDecorator) !== null && _e_useHrefDecorator !== void 0 ? _e_useHrefDecorator : se,
186
- t: k
186
+ t: k,
187
+ preventCopyInFormFields: (_e_preventCopyInFormFields = e.preventCopyInFormFields) !== null && _e_preventCopyInFormFields !== void 0 ? _e_preventCopyInFormFields : !1
187
188
  };
188
189
  }, [
189
190
  d,
package/dist/theme.d.ts CHANGED
@@ -71,6 +71,7 @@ export type ThemeConfig = Readonly<{
71
71
  };
72
72
  useHrefDecorator?: () => (href: string) => string;
73
73
  enableTabFocus?: boolean;
74
+ preventCopyInFormFields?: boolean;
74
75
  }>;
75
76
  export type Theme = {
76
77
  skinName: SkinName;
@@ -99,5 +100,6 @@ export type Theme = {
99
100
  isIos: boolean;
100
101
  useHrefDecorator: () => (href: string) => string;
101
102
  t: (token: TextToken) => string;
103
+ preventCopyInFormFields: boolean;
102
104
  };
103
105
  export {};
@@ -19,5 +19,5 @@ export declare const isVisa: (str?: string) => boolean;
19
19
  */
20
20
  export declare const isMasterCard: (str?: string) => boolean;
21
21
  export declare const getCvvLength: (creditCardNumber: string) => number;
22
- export declare const getCreditCardNumberLength: (creditCardNumber: string) => number;
23
- export declare const isValidCreditCardNumber: (creditCardNumber: string) => boolean;
22
+ export declare const getCreditCardNumberLength: (creditCardNumber?: string) => number;
23
+ export declare const isValidCreditCardNumber: (creditCardNumber?: string) => boolean;
@@ -28,4 +28,4 @@ _export(exports, {
28
28
  return o;
29
29
  }
30
30
  });
31
- const s = (t)=>(e)=>!!e && t.test(e), n = s(/^3[47]/), o = s(/^4/), g = s(/^5/), a = (t)=>n(t) ? 4 : 3, i = (t)=>n(t) ? 15 : 16, c = (t)=>!n(t) && !g(t) && !o(t) ? !1 : i(t) === t.length;
31
+ const t = (s)=>(e)=>!!e && s.test(e), n = t(/^3[47]/), o = t(/^4/), g = t(/^5/), a = (s)=>n(s) ? 4 : 3, i = (s)=>n(s) ? 15 : 16, c = (s)=>!s || !n(s) && !g(s) && !o(s) ? !1 : i(s) === s.length;