@thecb/components 7.12.2-beta.5 → 7.12.2-beta.6
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
|
@@ -4,6 +4,7 @@ import { Box, Center, Cluster, Stack, Cover, Sidebar } from "../layouts";
|
|
|
4
4
|
import Text from "../text";
|
|
5
5
|
import { fallbackValues } from "./Alert.theme";
|
|
6
6
|
import { themeComponent } from "../../../util/themeUtils";
|
|
7
|
+
import { generateShadows } from "../../../util/generateShadows";
|
|
7
8
|
|
|
8
9
|
const Alert = ({
|
|
9
10
|
heading,
|
|
@@ -17,7 +18,9 @@ const Alert = ({
|
|
|
17
18
|
showQuitLink = true,
|
|
18
19
|
themeValues,
|
|
19
20
|
extraStyles,
|
|
20
|
-
maxContentWidth
|
|
21
|
+
maxContentWidth,
|
|
22
|
+
noBorder = false,
|
|
23
|
+
enableBoxShadow = false
|
|
21
24
|
}) => {
|
|
22
25
|
const Icon = AlertIcons[variant];
|
|
23
26
|
|
|
@@ -70,7 +73,8 @@ const Alert = ({
|
|
|
70
73
|
background={themeValues.background}
|
|
71
74
|
borderRadius="4px"
|
|
72
75
|
borderColor={themeValues.border}
|
|
73
|
-
borderSize="1px"
|
|
76
|
+
borderSize={noBorder ? "0px" : "1px"}
|
|
77
|
+
boxShadow={enableBoxShadow ? generateShadows()?.inset?.base : ""}
|
|
74
78
|
extraStyles={extraStyles}
|
|
75
79
|
>
|
|
76
80
|
{maxContentWidth ? (
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
FONT_WEIGHT_BOLD,
|
|
22
22
|
FONT_WEIGHT_REGULAR
|
|
23
23
|
} from "../../../constants/style_constants";
|
|
24
|
-
import { ATHENS_GREY,
|
|
24
|
+
import { ATHENS_GREY, GRECIAN_GREY } from "../../../constants/colors";
|
|
25
25
|
import ButtonWithAction from "../../atoms/button-with-action";
|
|
26
26
|
import Text from "../../atoms/text";
|
|
27
27
|
import Alert from "../../atoms/alert";
|
|
@@ -120,7 +120,12 @@ const PaymentDetailsContent = ({
|
|
|
120
120
|
);
|
|
121
121
|
|
|
122
122
|
const LoadingDetails = () => (
|
|
123
|
-
<Box
|
|
123
|
+
<Box
|
|
124
|
+
padding="0"
|
|
125
|
+
background={GRECIAN_GREY}
|
|
126
|
+
borderRadius="4px"
|
|
127
|
+
minHeight="196px"
|
|
128
|
+
>
|
|
124
129
|
<Cover minHeight="196px" singleChild fillCenter>
|
|
125
130
|
<Center intrinsic>
|
|
126
131
|
<Box
|
|
@@ -141,6 +146,9 @@ const ErrorDetails = () => (
|
|
|
141
146
|
heading="Error Loading Payment"
|
|
142
147
|
text="Please go back and try again."
|
|
143
148
|
showQuitLink={false}
|
|
149
|
+
height="67px"
|
|
150
|
+
noBorder
|
|
151
|
+
enableBoxShadow
|
|
144
152
|
/>
|
|
145
153
|
</Box>
|
|
146
154
|
);
|