@tonder.io/ionic-full-sdk 0.0.25-beta → 0.0.27-beta
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/.gitlab-ci.yml +18 -18
- package/README.md +448 -448
- package/cypress.config.js +9 -9
- package/dist/classes/inlineCheckout.d.ts +6 -1
- package/dist/helpers/template.d.ts +2 -1
- package/dist/index.js +1 -1
- package/index.js.example +49 -49
- package/package.json +27 -27
- package/rollup.config.js +14 -14
- package/src/classes/3dsHandler.ts +237 -237
- package/src/classes/checkout.ts +147 -147
- package/src/classes/inlineCheckout.ts +734 -622
- package/src/helpers/skyflow.ts +358 -358
- package/src/helpers/styles.ts +60 -60
- package/src/helpers/template.ts +520 -492
- package/src/helpers/utils.ts +148 -148
- package/src/index-dev.js +120 -120
- package/src/index.html +57 -57
- package/src/index.ts +6 -6
- package/src/types/commons.ts +42 -42
- package/src/types/skyflow.ts +40 -40
- package/tsconfig.json +22 -22
- package/dist/data/api.d.ts +0 -18
- package/dist/types/commons-ds.d.ts +0 -40
- package/dist/types/skyflow.ds.d.ts +0 -39
package/src/helpers/styles.ts
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
export const defaultStyles: any = {
|
|
2
|
-
inputStyles: {
|
|
3
|
-
base: {
|
|
4
|
-
border: "1px solid #e0e0e0",
|
|
5
|
-
padding: "10px 7px",
|
|
6
|
-
borderRadius: "5px",
|
|
7
|
-
color: "#1d1d1d",
|
|
8
|
-
marginTop: "2px",
|
|
9
|
-
backgroundColor: "white",
|
|
10
|
-
fontFamily: '"Inter", sans-serif',
|
|
11
|
-
fontSize: '16px',
|
|
12
|
-
'&::placeholder': {
|
|
13
|
-
color: "#ccc",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
cardIcon: {
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
left: '6px',
|
|
19
|
-
bottom: 'calc(50% - 12px)',
|
|
20
|
-
},
|
|
21
|
-
complete: {
|
|
22
|
-
color: "#4caf50",
|
|
23
|
-
},
|
|
24
|
-
empty: {},
|
|
25
|
-
focus: {},
|
|
26
|
-
invalid: {
|
|
27
|
-
border: "1px solid #f44336",
|
|
28
|
-
},
|
|
29
|
-
global: {
|
|
30
|
-
'@import': 'url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap")',
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
labelStyles: {
|
|
34
|
-
base: {
|
|
35
|
-
fontSize: '12px',
|
|
36
|
-
fontWeight: '500',
|
|
37
|
-
fontFamily: '"Inter", sans-serif'
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
errorTextStyles: {
|
|
41
|
-
base: {
|
|
42
|
-
fontSize: '12px',
|
|
43
|
-
fontWeight: '500',
|
|
44
|
-
color: "#f44336",
|
|
45
|
-
fontFamily: '"Inter", sans-serif'
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
labels: {
|
|
49
|
-
cardLabel: '',
|
|
50
|
-
cvvLabel: '',
|
|
51
|
-
expiryMonthLabel: '',
|
|
52
|
-
expiryYearLabel: ''
|
|
53
|
-
},
|
|
54
|
-
placeholders: {
|
|
55
|
-
cardPlaceholder: '',
|
|
56
|
-
cvvPlaceholder: '',
|
|
57
|
-
expiryMonthPlaceholder: '',
|
|
58
|
-
expiryYearPlaceholder: ''
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
export const defaultStyles: any = {
|
|
2
|
+
inputStyles: {
|
|
3
|
+
base: {
|
|
4
|
+
border: "1px solid #e0e0e0",
|
|
5
|
+
padding: "10px 7px",
|
|
6
|
+
borderRadius: "5px",
|
|
7
|
+
color: "#1d1d1d",
|
|
8
|
+
marginTop: "2px",
|
|
9
|
+
backgroundColor: "white",
|
|
10
|
+
fontFamily: '"Inter", sans-serif',
|
|
11
|
+
fontSize: '16px',
|
|
12
|
+
'&::placeholder': {
|
|
13
|
+
color: "#ccc",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
cardIcon: {
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
left: '6px',
|
|
19
|
+
bottom: 'calc(50% - 12px)',
|
|
20
|
+
},
|
|
21
|
+
complete: {
|
|
22
|
+
color: "#4caf50",
|
|
23
|
+
},
|
|
24
|
+
empty: {},
|
|
25
|
+
focus: {},
|
|
26
|
+
invalid: {
|
|
27
|
+
border: "1px solid #f44336",
|
|
28
|
+
},
|
|
29
|
+
global: {
|
|
30
|
+
'@import': 'url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap")',
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
labelStyles: {
|
|
34
|
+
base: {
|
|
35
|
+
fontSize: '12px',
|
|
36
|
+
fontWeight: '500',
|
|
37
|
+
fontFamily: '"Inter", sans-serif'
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
errorTextStyles: {
|
|
41
|
+
base: {
|
|
42
|
+
fontSize: '12px',
|
|
43
|
+
fontWeight: '500',
|
|
44
|
+
color: "#f44336",
|
|
45
|
+
fontFamily: '"Inter", sans-serif'
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
labels: {
|
|
49
|
+
cardLabel: '',
|
|
50
|
+
cvvLabel: '',
|
|
51
|
+
expiryMonthLabel: '',
|
|
52
|
+
expiryYearLabel: ''
|
|
53
|
+
},
|
|
54
|
+
placeholders: {
|
|
55
|
+
cardPlaceholder: '',
|
|
56
|
+
cvvPlaceholder: '',
|
|
57
|
+
expiryMonthPlaceholder: '',
|
|
58
|
+
expiryYearPlaceholder: ''
|
|
59
|
+
}
|
|
60
|
+
}
|