@commercelayer/react-components 4.23.1 → 4.23.2
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.
|
@@ -1,48 +1,32 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { PaymentMethodConfig } from "../../reducers/PaymentMethodReducer";
|
|
3
3
|
import type { PaymentSourceProps } from "./PaymentSource";
|
|
4
|
+
interface ElementAppearance {
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
fontSize?: string;
|
|
7
|
+
fontWeight?: number;
|
|
8
|
+
letterSpacing?: number;
|
|
9
|
+
lineHeight?: string;
|
|
10
|
+
}
|
|
4
11
|
interface Appearance {
|
|
5
|
-
colorAction
|
|
6
|
-
colorBackground
|
|
7
|
-
colorBorder
|
|
8
|
-
colorDisabled
|
|
9
|
-
colorError
|
|
10
|
-
colorFormBackground
|
|
11
|
-
colorFormBorder
|
|
12
|
-
colorInverse
|
|
13
|
-
colorOutline
|
|
14
|
-
colorPrimary
|
|
15
|
-
colorSecondary
|
|
16
|
-
colorSuccess
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
footnote: {
|
|
25
|
-
fontFamily: string;
|
|
26
|
-
fontSize: string;
|
|
27
|
-
fontWeight: number;
|
|
28
|
-
letterSpacing: number;
|
|
29
|
-
lineHeight: string;
|
|
30
|
-
};
|
|
31
|
-
label: {
|
|
32
|
-
fontFamily: string;
|
|
33
|
-
fontSize: string;
|
|
34
|
-
fontWeight: number;
|
|
35
|
-
letterSpacing: number;
|
|
36
|
-
lineHeight: string;
|
|
37
|
-
};
|
|
38
|
-
subheading: {
|
|
39
|
-
fontFamily: string;
|
|
40
|
-
fontSize: string;
|
|
41
|
-
fontWeight: number;
|
|
42
|
-
letterSpacing: number;
|
|
43
|
-
lineHeight: string;
|
|
44
|
-
};
|
|
45
|
-
borderRadius: [string, string];
|
|
12
|
+
colorAction?: string;
|
|
13
|
+
colorBackground?: string;
|
|
14
|
+
colorBorder?: string;
|
|
15
|
+
colorDisabled?: string;
|
|
16
|
+
colorError?: string;
|
|
17
|
+
colorFormBackground?: string;
|
|
18
|
+
colorFormBorder?: string;
|
|
19
|
+
colorInverse?: string;
|
|
20
|
+
colorOutline?: string;
|
|
21
|
+
colorPrimary?: string;
|
|
22
|
+
colorSecondary?: string;
|
|
23
|
+
colorSuccess?: string;
|
|
24
|
+
borderRadius?: [string, string];
|
|
25
|
+
button?: ElementAppearance;
|
|
26
|
+
footnote?: ElementAppearance;
|
|
27
|
+
label?: ElementAppearance;
|
|
28
|
+
input?: ElementAppearance;
|
|
29
|
+
subheading?: ElementAppearance;
|
|
46
30
|
}
|
|
47
31
|
export interface CheckoutComConfig {
|
|
48
32
|
containerClassName?: string;
|
|
@@ -51,7 +35,7 @@ export interface CheckoutComConfig {
|
|
|
51
35
|
success_url: string;
|
|
52
36
|
failure_url: string;
|
|
53
37
|
options?: {
|
|
54
|
-
appearance:
|
|
38
|
+
appearance: Appearance;
|
|
55
39
|
};
|
|
56
40
|
[key: string]: unknown;
|
|
57
41
|
}
|
|
@@ -1,48 +1,32 @@
|
|
|
1
1
|
import { type JSX } from "react";
|
|
2
2
|
import type { PaymentMethodConfig } from "../../reducers/PaymentMethodReducer";
|
|
3
3
|
import type { PaymentSourceProps } from "./PaymentSource";
|
|
4
|
+
interface ElementAppearance {
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
fontSize?: string;
|
|
7
|
+
fontWeight?: number;
|
|
8
|
+
letterSpacing?: number;
|
|
9
|
+
lineHeight?: string;
|
|
10
|
+
}
|
|
4
11
|
interface Appearance {
|
|
5
|
-
colorAction
|
|
6
|
-
colorBackground
|
|
7
|
-
colorBorder
|
|
8
|
-
colorDisabled
|
|
9
|
-
colorError
|
|
10
|
-
colorFormBackground
|
|
11
|
-
colorFormBorder
|
|
12
|
-
colorInverse
|
|
13
|
-
colorOutline
|
|
14
|
-
colorPrimary
|
|
15
|
-
colorSecondary
|
|
16
|
-
colorSuccess
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
footnote: {
|
|
25
|
-
fontFamily: string;
|
|
26
|
-
fontSize: string;
|
|
27
|
-
fontWeight: number;
|
|
28
|
-
letterSpacing: number;
|
|
29
|
-
lineHeight: string;
|
|
30
|
-
};
|
|
31
|
-
label: {
|
|
32
|
-
fontFamily: string;
|
|
33
|
-
fontSize: string;
|
|
34
|
-
fontWeight: number;
|
|
35
|
-
letterSpacing: number;
|
|
36
|
-
lineHeight: string;
|
|
37
|
-
};
|
|
38
|
-
subheading: {
|
|
39
|
-
fontFamily: string;
|
|
40
|
-
fontSize: string;
|
|
41
|
-
fontWeight: number;
|
|
42
|
-
letterSpacing: number;
|
|
43
|
-
lineHeight: string;
|
|
44
|
-
};
|
|
45
|
-
borderRadius: [string, string];
|
|
12
|
+
colorAction?: string;
|
|
13
|
+
colorBackground?: string;
|
|
14
|
+
colorBorder?: string;
|
|
15
|
+
colorDisabled?: string;
|
|
16
|
+
colorError?: string;
|
|
17
|
+
colorFormBackground?: string;
|
|
18
|
+
colorFormBorder?: string;
|
|
19
|
+
colorInverse?: string;
|
|
20
|
+
colorOutline?: string;
|
|
21
|
+
colorPrimary?: string;
|
|
22
|
+
colorSecondary?: string;
|
|
23
|
+
colorSuccess?: string;
|
|
24
|
+
borderRadius?: [string, string];
|
|
25
|
+
button?: ElementAppearance;
|
|
26
|
+
footnote?: ElementAppearance;
|
|
27
|
+
label?: ElementAppearance;
|
|
28
|
+
input?: ElementAppearance;
|
|
29
|
+
subheading?: ElementAppearance;
|
|
46
30
|
}
|
|
47
31
|
export interface CheckoutComConfig {
|
|
48
32
|
containerClassName?: string;
|
|
@@ -51,7 +35,7 @@ export interface CheckoutComConfig {
|
|
|
51
35
|
success_url: string;
|
|
52
36
|
failure_url: string;
|
|
53
37
|
options?: {
|
|
54
|
-
appearance:
|
|
38
|
+
appearance: Appearance;
|
|
55
39
|
};
|
|
56
40
|
[key: string]: unknown;
|
|
57
41
|
}
|