@thecb/components 7.12.2-beta.7 → 7.12.2-beta.8
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/package.json
CHANGED
|
@@ -20,7 +20,8 @@ const Alert = ({
|
|
|
20
20
|
extraStyles,
|
|
21
21
|
maxContentWidth,
|
|
22
22
|
noBorder = false,
|
|
23
|
-
enableBoxShadow = false
|
|
23
|
+
enableBoxShadow = false,
|
|
24
|
+
enableSmallText = false
|
|
24
25
|
}) => {
|
|
25
26
|
const Icon = AlertIcons[variant];
|
|
26
27
|
|
|
@@ -41,7 +42,11 @@ const Alert = ({
|
|
|
41
42
|
textOverride
|
|
42
43
|
) : (
|
|
43
44
|
<Stack fullHeight childGap="0.25rem">
|
|
44
|
-
<Text
|
|
45
|
+
<Text
|
|
46
|
+
variant={enableSmallText ? "pS" : "p"}
|
|
47
|
+
color={themeValues.text}
|
|
48
|
+
weight="600"
|
|
49
|
+
>
|
|
45
50
|
{heading}
|
|
46
51
|
</Text>
|
|
47
52
|
<Text variant="pS" color={themeValues.text}>
|
|
@@ -146,9 +146,12 @@ const ErrorDetails = () => (
|
|
|
146
146
|
heading="Error Loading Payment"
|
|
147
147
|
text="Please go back and try again."
|
|
148
148
|
showQuitLink={false}
|
|
149
|
+
maxContentWidth="350px"
|
|
150
|
+
padding="0"
|
|
149
151
|
noBorder
|
|
150
152
|
enableBoxShadow
|
|
151
153
|
extraStyles={`min-height: 67px; height: 67px;`}
|
|
154
|
+
enableSmallText
|
|
152
155
|
/>
|
|
153
156
|
</Box>
|
|
154
157
|
);
|