@globalpayments/js 4.0.20 → 4.1.3

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 (31) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/types/common/constants.d.ts +2 -0
  4. package/types/common/enums.d.ts +6 -0
  5. package/types/internal/lib/add-footer-branded-icons.d.ts +12 -0
  6. package/types/internal/lib/enums.d.ts +4 -0
  7. package/types/internal/lib/styles/built-in-validations/common.d.ts +0 -4
  8. package/types/internal/lib/styles/built-in-validations/default.d.ts +0 -4
  9. package/types/internal/lib/styles/built-in-validations/gp-default.d.ts +0 -4
  10. package/types/internal/lib/styles/built-in-validations/simple.d.ts +0 -4
  11. package/types/internal/lib/styles/currency-conversion/common.d.ts +25 -2
  12. package/types/internal/lib/styles/currency-conversion/default.d.ts +22 -0
  13. package/types/internal/lib/styles/currency-conversion/gp-default.d.ts +25 -2
  14. package/types/internal/lib/styles/currency-conversion/simple.d.ts +18 -0
  15. package/types/internal/lib/styles/default.d.ts +30 -4
  16. package/types/internal/lib/styles/gp-default.d.ts +37 -6
  17. package/types/internal/lib/styles/simple.d.ts +26 -4
  18. package/types/internal/lib/styles/themes/brand-themes/base/base-theme-preset.d.ts +5 -0
  19. package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +1706 -0
  20. package/types/internal/lib/styles/themes/brand-themes/base/base-token-definition.d.ts +98 -0
  21. package/types/internal/lib/styles/themes/brand-themes/base/contracts.d.ts +82 -0
  22. package/types/internal/lib/styles/themes/brand-themes/brand-theme-boipa-uk.d.ts +9 -0
  23. package/types/internal/lib/styles/themes/brand-themes/brand-theme-boipa.d.ts +9 -0
  24. package/types/internal/lib/styles/themes/brand-themes/brand-theme-commerzbank.d.ts +9 -0
  25. package/types/internal/lib/styles/themes/brand-themes/brand-theme-e-service.d.ts +9 -0
  26. package/types/internal/lib/styles/themes/brand-themes/brand-theme-nbg-pay.d.ts +9 -0
  27. package/types/internal/lib/styles/themes/brand-themes/brand-themes.d.ts +14 -0
  28. package/types/internal/lib/styles/themes/helpers.d.ts +1 -0
  29. package/types/internal/lib/styles/tooltip/common.d.ts +8 -0
  30. package/types/lib/version.d.ts +1 -1
  31. package/types/ui/form/index.d.ts +191 -25
@@ -23,10 +23,6 @@ export declare const fieldStyles: () => {
23
23
  "margin-top": string;
24
24
  "background-position": string;
25
25
  };
26
- "@font-face"?: {
27
- "font-family": string;
28
- src: string;
29
- };
30
26
  "#secure-payment-field[type=text].field-validation-wrapper"?: {
31
27
  "font-family": string;
32
28
  };
@@ -134,6 +130,12 @@ export declare const fieldStyles: () => {
134
130
  };
135
131
  "img.card-number-icon.invalid.card-type-mastercard": {
136
132
  background: string;
133
+ /**
134
+ * Instantiates a new UIForm object for a group of hosted fields
135
+ *
136
+ * @param fields Hosted field configuration
137
+ * @param styles Custom CSS configuration
138
+ */
137
139
  "background-size": string;
138
140
  "background-position-y": string;
139
141
  };
@@ -192,10 +194,6 @@ export declare const fieldStyles: () => {
192
194
  "margin-top": string;
193
195
  "background-size": string;
194
196
  };
195
- "@font-face"?: {
196
- "font-family": string;
197
- src: string;
198
- };
199
197
  "#secure-payment-field[type=text].field-validation-wrapper"?: {
200
198
  "font-family": string;
201
199
  };
@@ -210,6 +208,10 @@ export declare const fieldStyles: () => {
210
208
  opacity: string;
211
209
  visibility: string;
212
210
  };
211
+ "@font-face": {
212
+ "font-family": string;
213
+ src: string;
214
+ };
213
215
  "*": {
214
216
  "box-sizing": string;
215
217
  };
@@ -334,10 +336,6 @@ export declare const fieldStyles: () => {
334
336
  "#field-validation-wrapper"?: {
335
337
  "margin-top": string;
336
338
  };
337
- "@font-face"?: {
338
- "font-family": string;
339
- src: string;
340
- };
341
339
  "#secure-payment-field[type=text].field-validation-wrapper"?: {
342
340
  "font-family": string;
343
341
  };
@@ -424,9 +422,6 @@ export declare const fieldStyles: () => {
424
422
  "img.card-number-icon.invalid.card-type-mastercard": {
425
423
  background: string;
426
424
  "background-size": string;
427
- /**
428
- * Represents logic surrounding a group of hosted fields.
429
- */
430
425
  "background-position": string;
431
426
  };
432
427
  "img.card-number-icon.invalid.card-type-visa": {
@@ -754,6 +749,23 @@ export declare const parentStyles: () => {
754
749
  "font-family": string;
755
750
  margin: string;
756
751
  };
752
+ "@media(max-width: 340px)"?: {
753
+ ".secure-payment-form .credit-card-currency-conversion .radio-button": {
754
+ "margin-right": string;
755
+ };
756
+ };
757
+ "@media(max-width: 768px)"?: {
758
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
759
+ width: string;
760
+ "margin-top": string;
761
+ "margin-left": string;
762
+ };
763
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content": {
764
+ width: string;
765
+ "margin-top": string;
766
+ "margin-left": string;
767
+ };
768
+ };
757
769
  ".secure-payment-form .currency-conversion-container"?: {
758
770
  display: string;
759
771
  "flex-direction": string;
@@ -764,6 +776,7 @@ export declare const parentStyles: () => {
764
776
  };
765
777
  ".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
766
778
  "border-color": string;
779
+ color: string;
767
780
  };
768
781
  ".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
769
782
  outline: string;
@@ -795,9 +808,11 @@ export declare const parentStyles: () => {
795
808
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
796
809
  "background-color": string;
797
810
  border: string;
811
+ color: string;
798
812
  };
799
813
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
800
814
  outline: string;
815
+ color: string;
801
816
  };
802
817
  ".secure-payment-form .credit-card-currency-conversion .card-currency-content.visible"?: {
803
818
  display: string;
@@ -815,6 +830,8 @@ export declare const parentStyles: () => {
815
830
  "font-weight": number;
816
831
  margin: string;
817
832
  display: string;
833
+ "line-height": string;
834
+ color: string;
818
835
  };
819
836
  ".secure-payment-form .credit-card-currency-conversion .tooltip"?: {
820
837
  width: string;
@@ -838,7 +855,12 @@ export declare const parentStyles: () => {
838
855
  display: string;
839
856
  };
840
857
  ".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
841
- "margin-bottom": string;
858
+ "margin-bottom": string; /**
859
+ * Sets a special-case event listener that fires when all hosted
860
+ * fields in a form have registered / loaded
861
+ *
862
+ * @param fn The listener function
863
+ */
842
864
  };
843
865
  ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
844
866
  left: string;
@@ -860,7 +882,9 @@ export declare const parentStyles: () => {
860
882
  ".secure-payment-form .credit-card-currency-conversion .radio-button": {
861
883
  width: string;
862
884
  "justify-content": string;
863
- };
885
+ }; /**
886
+ * Deletes all hosted fields within the form
887
+ */
864
888
  ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
865
889
  margin: string;
866
890
  };
@@ -1075,6 +1099,11 @@ export declare const parentStyles: () => {
1075
1099
  display: string;
1076
1100
  padding: string;
1077
1101
  transform: string;
1102
+ /**
1103
+ * Appends additional CSS rules to the group of hosted fields
1104
+ *
1105
+ * @param json New CSS rules
1106
+ */
1078
1107
  "-webkit-transform": string;
1079
1108
  "z-index": string;
1080
1109
  top: string;
@@ -1191,6 +1220,14 @@ export declare const parentStyles: () => {
1191
1220
  "background-size": string;
1192
1221
  background: string;
1193
1222
  "font-family": string;
1223
+ "font-size": string;
1224
+ "line-height": string;
1225
+ };
1226
+ ".secure-payment-form .tooltip h4": {
1227
+ "font-family": string;
1228
+ "font-size": string;
1229
+ "line-height": string;
1230
+ color: string;
1194
1231
  };
1195
1232
  ".secure-payment-form .tooltip:focus": {
1196
1233
  border: string;
@@ -1290,6 +1327,9 @@ export declare const parentStyles: () => {
1290
1327
  "vertical-align": string;
1291
1328
  "text-align": string;
1292
1329
  "margin-left": string;
1330
+ /**
1331
+ * Deletes all hosted fields within the form
1332
+ */
1293
1333
  "margin-right": string;
1294
1334
  "margin-top": string;
1295
1335
  };
@@ -1600,8 +1640,9 @@ export declare const parentStyles: () => {
1600
1640
  padding: number;
1601
1641
  display: string;
1602
1642
  "font-size": string;
1603
- "font-weight": number;
1643
+ "font-weight": string;
1604
1644
  position: string;
1645
+ color: string;
1605
1646
  };
1606
1647
  ".secure-payment-form .credit-card-currency-conversion .radio-button"?: {
1607
1648
  display: string;
@@ -1618,6 +1659,7 @@ export declare const parentStyles: () => {
1618
1659
  };
1619
1660
  ".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
1620
1661
  "border-color": string;
1662
+ color: string;
1621
1663
  };
1622
1664
  ".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
1623
1665
  outline: string;
@@ -1633,6 +1675,9 @@ export declare const parentStyles: () => {
1633
1675
  color: string;
1634
1676
  outline: string;
1635
1677
  };
1678
+ ".secure-payment-form .credit-card-currency-conversion .radio-button.checked label"?: {
1679
+ color: string;
1680
+ };
1636
1681
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']"?: {
1637
1682
  margin: string;
1638
1683
  appearance: string;
@@ -1649,22 +1694,31 @@ export declare const parentStyles: () => {
1649
1694
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
1650
1695
  "background-color": string;
1651
1696
  border: string;
1697
+ color: string;
1652
1698
  };
1653
1699
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
1654
1700
  outline: string;
1701
+ color: string;
1655
1702
  };
1656
1703
  ".secure-payment-form .credit-card-currency-conversion .radio-button label"?: {
1657
1704
  "font-family": string;
1658
1705
  "font-size": string;
1659
- "font-weight": number;
1706
+ "font-weight": string;
1660
1707
  display: string;
1661
1708
  margin: string;
1709
+ color: string;
1662
1710
  };
1663
1711
  ".secure-payment-form .credit-card-currency-conversion .card-currency-content"?: {
1664
1712
  opacity: string;
1665
1713
  visibility: boolean;
1666
1714
  display: string;
1667
1715
  "flex-direction": string;
1716
+ /**
1717
+ * Instantiates a new UIForm object for a group of hosted fields
1718
+ *
1719
+ * @param fields Hosted field configuration
1720
+ * @param styles Custom CSS configuration
1721
+ */
1668
1722
  "margin-left": string;
1669
1723
  "align-items": string;
1670
1724
  height: string;
@@ -1675,6 +1729,16 @@ export declare const parentStyles: () => {
1675
1729
  visibility: boolean;
1676
1730
  };
1677
1731
  ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content"?: {
1732
+ /**
1733
+ * Sets an event listener for an event type
1734
+ *
1735
+ * @param fieldTypeOrEventName The field type on which the listener should
1736
+ * be applied, or the type of event that should trigger the listener
1737
+ * @param eventNameOrListener The type of event that should trigger the
1738
+ * listener, or the listener function
1739
+ * @param listener The listener function when both field type and event type
1740
+ * are provided
1741
+ */
1678
1742
  opacity: string;
1679
1743
  visibility: boolean;
1680
1744
  display: string;
@@ -1694,6 +1758,8 @@ export declare const parentStyles: () => {
1694
1758
  "font-weight": number;
1695
1759
  margin: string;
1696
1760
  display: string;
1761
+ "line-height": string;
1762
+ color: string;
1697
1763
  };
1698
1764
  ".secure-payment-form .credit-card-currency-conversion .additional-info p"?: {
1699
1765
  margin: string;
@@ -1724,7 +1790,12 @@ export declare const parentStyles: () => {
1724
1790
  margin: string;
1725
1791
  };
1726
1792
  ".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
1727
- "margin-bottom": string;
1793
+ "margin-bottom": string; /**
1794
+ * Sets a special-case event listener that fires when all hosted
1795
+ * fields in a form have registered / loaded
1796
+ *
1797
+ * @param fn The listener function
1798
+ */
1728
1799
  };
1729
1800
  ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
1730
1801
  left: string;
@@ -1746,7 +1817,9 @@ export declare const parentStyles: () => {
1746
1817
  ".secure-payment-form .credit-card-currency-conversion .radio-button": {
1747
1818
  width: string;
1748
1819
  "justify-content": string;
1749
- };
1820
+ }; /**
1821
+ * Deletes all hosted fields within the form
1822
+ */
1750
1823
  ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
1751
1824
  margin: string;
1752
1825
  };
@@ -1764,6 +1837,19 @@ export declare const parentStyles: () => {
1764
1837
  right: string;
1765
1838
  };
1766
1839
  };
1840
+ "@media(max-width: 340px)"?: {
1841
+ ".secure-payment-form .credit-card-currency-conversion fieldset": {
1842
+ "flex-flow": string;
1843
+ };
1844
+ ".secure-payment-form .credit-card-currency-conversion .radio-button": {
1845
+ width: string;
1846
+ "margin-bottom": string;
1847
+ "margin-right": string;
1848
+ };
1849
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:last-child": {
1850
+ "margin-bottom": string;
1851
+ };
1852
+ };
1767
1853
  ".secure-payment-form .hf-cvv-tooltip-invalid"?: {
1768
1854
  border: string;
1769
1855
  "border-left": string;
@@ -1973,6 +2059,11 @@ export declare const parentStyles: () => {
1973
2059
  display: string;
1974
2060
  padding: string;
1975
2061
  transform: string;
2062
+ /**
2063
+ * Appends additional CSS rules to the group of hosted fields
2064
+ *
2065
+ * @param json New CSS rules
2066
+ */
1976
2067
  "-webkit-transform": string;
1977
2068
  "z-index": string;
1978
2069
  top: string;
@@ -2189,6 +2280,9 @@ export declare const parentStyles: () => {
2189
2280
  margin: string;
2190
2281
  };
2191
2282
  ".secure-payment-form .installment-term-selector-title": {
2283
+ /**
2284
+ * Represents logic surrounding a group of hosted fields.
2285
+ */
2192
2286
  "text-align": string;
2193
2287
  padding: string;
2194
2288
  };
@@ -2260,6 +2354,12 @@ export declare const parentStyles: () => {
2260
2354
  "line-height": string;
2261
2355
  "font-style": string;
2262
2356
  border: string;
2357
+ /**
2358
+ * Sets a special-case event listener that fires when all hosted
2359
+ * fields in a form have registered / loaded
2360
+ *
2361
+ * @param fn The listener function
2362
+ */
2263
2363
  cursor: string;
2264
2364
  "margin-top": string;
2265
2365
  "margin-bottom": string;
@@ -2280,6 +2380,9 @@ export declare const parentStyles: () => {
2280
2380
  };
2281
2381
  ".secure-payment-form .installment-button-explore-plans:focus": {
2282
2382
  background: string;
2383
+ /**
2384
+ * Deletes all hosted fields within the form
2385
+ */
2283
2386
  border: string;
2284
2387
  };
2285
2388
  ".secure-payment-form .installment-button-learn-more": {
@@ -2421,6 +2524,14 @@ export declare const parentStyles: () => {
2421
2524
  "background-size": string;
2422
2525
  background: string;
2423
2526
  "font-family": string;
2527
+ "font-size": string;
2528
+ "line-height": string;
2529
+ };
2530
+ ".secure-payment-form .tooltip h4": {
2531
+ "font-family": string;
2532
+ "font-size": string;
2533
+ "line-height": string;
2534
+ color: string;
2424
2535
  };
2425
2536
  ".secure-payment-form .tooltip:focus": {
2426
2537
  border: string;
@@ -2483,7 +2594,16 @@ export declare const parentStyles: () => {
2483
2594
  ".secure-payment-form label": {
2484
2595
  margin: string;
2485
2596
  display: string;
2486
- "font-size": string;
2597
+ "font-size": string; /**
2598
+ * Sets an event listener for an event type
2599
+ *
2600
+ * @param fieldTypeOrEventName The field type on which the listener should
2601
+ * be applied, or the type of event that should trigger the listener
2602
+ * @param eventNameOrListener The type of event that should trigger the
2603
+ * listener, or the listener function
2604
+ * @param listener The listener function when both field type and event type
2605
+ * are provided
2606
+ */
2487
2607
  "font-weight": string;
2488
2608
  "font-family": string;
2489
2609
  };
@@ -2689,6 +2809,7 @@ export declare const parentStyles: () => {
2689
2809
  };
2690
2810
  ".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
2691
2811
  "border-color": string;
2812
+ color: string;
2692
2813
  };
2693
2814
  ".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
2694
2815
  outline: string;
@@ -2720,9 +2841,11 @@ export declare const parentStyles: () => {
2720
2841
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
2721
2842
  "background-color": string;
2722
2843
  border: string;
2844
+ color: string;
2723
2845
  };
2724
2846
  ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
2725
2847
  outline: string;
2848
+ color: string;
2726
2849
  };
2727
2850
  ".secure-payment-form .credit-card-currency-conversion .card-currency-content.visible"?: {
2728
2851
  display: string;
@@ -2740,6 +2863,8 @@ export declare const parentStyles: () => {
2740
2863
  "font-weight": number;
2741
2864
  margin: string;
2742
2865
  display: string;
2866
+ "line-height": string;
2867
+ color: string;
2743
2868
  };
2744
2869
  ".secure-payment-form .credit-card-currency-conversion .tooltip"?: {
2745
2870
  width: string;
@@ -2758,7 +2883,12 @@ export declare const parentStyles: () => {
2758
2883
  display: string;
2759
2884
  };
2760
2885
  ".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
2761
- "margin-bottom": string;
2886
+ "margin-bottom": string; /**
2887
+ * Sets a special-case event listener that fires when all hosted
2888
+ * fields in a form have registered / loaded
2889
+ *
2890
+ * @param fn The listener function
2891
+ */
2762
2892
  };
2763
2893
  ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
2764
2894
  left: string;
@@ -2780,7 +2910,9 @@ export declare const parentStyles: () => {
2780
2910
  ".secure-payment-form .credit-card-currency-conversion .radio-button": {
2781
2911
  width: string;
2782
2912
  "justify-content": string;
2783
- };
2913
+ }; /**
2914
+ * Deletes all hosted fields within the form
2915
+ */
2784
2916
  ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
2785
2917
  margin: string;
2786
2918
  };
@@ -2798,6 +2930,19 @@ export declare const parentStyles: () => {
2798
2930
  right: string;
2799
2931
  };
2800
2932
  };
2933
+ "@media(max-width: 340px)"?: {
2934
+ ".secure-payment-form .credit-card-currency-conversion fieldset": {
2935
+ "flex-flow": string;
2936
+ };
2937
+ ".secure-payment-form .credit-card-currency-conversion .radio-button": {
2938
+ width: string;
2939
+ "margin-bottom": string;
2940
+ "margin-right": string;
2941
+ };
2942
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:last-child": {
2943
+ "margin-bottom": string;
2944
+ };
2945
+ };
2801
2946
  ".secure-payment-form .credit-card-qr-code-payments"?: {
2802
2947
  "font-family": string;
2803
2948
  };
@@ -3108,6 +3253,11 @@ export declare const parentStyles: () => {
3108
3253
  display: string;
3109
3254
  padding: string;
3110
3255
  transform: string;
3256
+ /**
3257
+ * Appends additional CSS rules to the group of hosted fields
3258
+ *
3259
+ * @param json New CSS rules
3260
+ */
3111
3261
  "-webkit-transform": string;
3112
3262
  "z-index": string;
3113
3263
  top: string;
@@ -3224,6 +3374,14 @@ export declare const parentStyles: () => {
3224
3374
  "background-size": string;
3225
3375
  background: string;
3226
3376
  "font-family": string;
3377
+ "font-size": string;
3378
+ "line-height": string;
3379
+ };
3380
+ ".secure-payment-form .tooltip h4": {
3381
+ "font-family": string;
3382
+ "font-size": string;
3383
+ "line-height": string;
3384
+ color: string;
3227
3385
  };
3228
3386
  ".secure-payment-form .tooltip:focus": {
3229
3387
  border: string;
@@ -3313,6 +3471,12 @@ export declare const parentStyles: () => {
3313
3471
  "margin-left": string;
3314
3472
  "vertical-align": string;
3315
3473
  };
3474
+ /**
3475
+ * Sets a special-case event listener that fires when all hosted
3476
+ * fields in a form have registered / loaded
3477
+ *
3478
+ * @param fn The listener function
3479
+ */
3316
3480
  ".secure-payment-form div[class$='-shield'] .ssl-msg": {
3317
3481
  "font-size": string;
3318
3482
  "font-weight": string;
@@ -3339,7 +3503,9 @@ export declare const parentStyles: () => {
3339
3503
  ".secure-payment-form div[class$='-logo'] .security-msg": {
3340
3504
  color: string;
3341
3505
  "font-size": string;
3342
- display: string;
3506
+ display: string; /**
3507
+ * Deletes all hosted fields within the form
3508
+ */
3343
3509
  "vertical-align": string;
3344
3510
  "white-space": string;
3345
3511
  "margin-right": string;