@thecb/components 10.4.5-beta.2 → 10.4.5-beta.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.
- package/dist/index.cjs.js +3 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/placeholder/Placeholder.js +4 -21
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -53,26 +53,10 @@ const renderDisabledContent = ({ children }) => (
|
|
|
53
53
|
</Box>
|
|
54
54
|
);
|
|
55
55
|
|
|
56
|
-
const renderContent = ({
|
|
57
|
-
isLink,
|
|
58
|
-
destination,
|
|
59
|
-
dataQa,
|
|
60
|
-
isDisabled,
|
|
61
|
-
children,
|
|
62
|
-
action
|
|
63
|
-
}) =>
|
|
56
|
+
const renderContent = ({ isLink, destination, dataQa, children, action }) =>
|
|
64
57
|
isLink ? (
|
|
65
|
-
<Link
|
|
66
|
-
|
|
67
|
-
dataQa={dataQa}
|
|
68
|
-
disabled={isDisabled}
|
|
69
|
-
style={{ textDecoration: "none" }}
|
|
70
|
-
>
|
|
71
|
-
<Box
|
|
72
|
-
padding="0"
|
|
73
|
-
minHeight="100%"
|
|
74
|
-
extraStyles={isDisabled ? "cursor: default;" : "cursor: pointer;"}
|
|
75
|
-
>
|
|
58
|
+
<Link to={destination} data-qa={dataQa} style={{ textDecoration: "none" }}>
|
|
59
|
+
<Box padding="0" minHeight="100%" extraStyles="cursor: pointer;">
|
|
76
60
|
{children}
|
|
77
61
|
</Box>
|
|
78
62
|
</Link>
|
|
@@ -103,8 +87,7 @@ const PlaceholderContentWrapper = ({
|
|
|
103
87
|
action,
|
|
104
88
|
isLink,
|
|
105
89
|
destination,
|
|
106
|
-
dataQa
|
|
107
|
-
isDisabled
|
|
90
|
+
dataQa
|
|
108
91
|
});
|
|
109
92
|
|
|
110
93
|
const Placeholder = ({
|