@thecb/components 9.1.2-beta.2 → 9.1.3-beta.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.
- package/dist/index.cjs.js +6 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -20
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/line-item/LineItem.js +1 -1
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +0 -10
- package/src/util/general.js +0 -4
- /package/src/components/atoms/icons/{ExternalLinkIcon.js → ExternalLinkicon.js} +0 -0
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -25,7 +25,7 @@ const LineItem = ({
|
|
|
25
25
|
|
|
26
26
|
const visibleCustomAttrs = customAttributes
|
|
27
27
|
?.filter(
|
|
28
|
-
attr => visibleFields
|
|
28
|
+
attr => visibleFields?.includes(attr.key) && attr.key !== "description"
|
|
29
29
|
)
|
|
30
30
|
?.map(attr => (
|
|
31
31
|
<Paragraph variant="pS" weight="400" key={attr.key} color={STORM_GREY}>
|
|
Binary file
|
|
@@ -5,7 +5,6 @@ import ButtonWithLink from "../../atoms/button-with-link";
|
|
|
5
5
|
import ButtonWithAction from "../../atoms/button-with-action";
|
|
6
6
|
import { Box, Cluster } from "../../atoms/layouts";
|
|
7
7
|
import SolidDivider from "../../atoms/solid-divider";
|
|
8
|
-
import { kebabCaseString } from "../../../util/general";
|
|
9
8
|
|
|
10
9
|
const PaymentButtonBar = ({
|
|
11
10
|
isForwardButtonDisabled = false,
|
|
@@ -13,7 +12,6 @@ const PaymentButtonBar = ({
|
|
|
13
12
|
forwardButtonAction,
|
|
14
13
|
forwardButtonLoading,
|
|
15
14
|
forwardButtonVariant = "primary",
|
|
16
|
-
forwardButtonAriaRole = "button",
|
|
17
15
|
backButtonVariant = "secondary",
|
|
18
16
|
backButtonAction,
|
|
19
17
|
cancelURL,
|
|
@@ -34,8 +32,6 @@ const PaymentButtonBar = ({
|
|
|
34
32
|
variant={backButtonVariant}
|
|
35
33
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
36
34
|
dataQa={cancelText}
|
|
37
|
-
aria-labelledby={`${kebabCaseString(cancelText)}-button`}
|
|
38
|
-
role="link"
|
|
39
35
|
/>
|
|
40
36
|
) : (
|
|
41
37
|
backButtonAction && (
|
|
@@ -45,8 +41,6 @@ const PaymentButtonBar = ({
|
|
|
45
41
|
action={backButtonAction}
|
|
46
42
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
47
43
|
dataQa="Back"
|
|
48
|
-
aria-labelledby="back-button"
|
|
49
|
-
role="link"
|
|
50
44
|
/>
|
|
51
45
|
)
|
|
52
46
|
);
|
|
@@ -59,8 +53,6 @@ const PaymentButtonBar = ({
|
|
|
59
53
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
60
54
|
dataQa={redirectText}
|
|
61
55
|
disabled={isForwardButtonDisabled}
|
|
62
|
-
aria-labelledby={`${kebabCaseString(redirectText)}-button`}
|
|
63
|
-
role={forwardButtonAriaRole}
|
|
64
56
|
/>
|
|
65
57
|
) : (
|
|
66
58
|
forwardButtonAction && (
|
|
@@ -72,8 +64,6 @@ const PaymentButtonBar = ({
|
|
|
72
64
|
extraStyles={isMobile && "flex-grow: 1"}
|
|
73
65
|
dataQa={forwardButtonText}
|
|
74
66
|
disabled={isForwardButtonDisabled}
|
|
75
|
-
aria-labelledby={`${kebabCaseString(forwardButtonText)}-button`}
|
|
76
|
-
role={forwardButtonAriaRole}
|
|
77
67
|
/>
|
|
78
68
|
)
|
|
79
69
|
);
|
package/src/util/general.js
CHANGED
|
File without changes
|