@thecb/components 7.12.2-beta.7 → 7.12.2-beta.9
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,9 +20,14 @@ const Alert = ({
|
|
|
20
20
|
extraStyles,
|
|
21
21
|
maxContentWidth,
|
|
22
22
|
noBorder = false,
|
|
23
|
-
enableBoxShadow = false
|
|
23
|
+
enableBoxShadow = false,
|
|
24
|
+
enableSmallText = false,
|
|
25
|
+
innerContentPadding = "1rem"
|
|
24
26
|
}) => {
|
|
25
27
|
const Icon = AlertIcons[variant];
|
|
28
|
+
let contentPadding = maxContentWidth
|
|
29
|
+
? `${padding} 1rem`
|
|
30
|
+
: innerContentPadding;
|
|
26
31
|
|
|
27
32
|
const content = (
|
|
28
33
|
<Sidebar width="24px" childGap="0rem">
|
|
@@ -35,13 +40,17 @@ const Alert = ({
|
|
|
35
40
|
</Box>
|
|
36
41
|
<Box padding="0">
|
|
37
42
|
<Sidebar sidebarOnRight width="24px" childGap="0rem">
|
|
38
|
-
<Box padding={
|
|
43
|
+
<Box padding={contentPadding}>
|
|
39
44
|
<Cluster justify="flex-start" align="center">
|
|
40
45
|
{textOverride ? (
|
|
41
46
|
textOverride
|
|
42
47
|
) : (
|
|
43
48
|
<Stack fullHeight childGap="0.25rem">
|
|
44
|
-
<Text
|
|
49
|
+
<Text
|
|
50
|
+
variant={enableSmallText ? "pS" : "p"}
|
|
51
|
+
color={themeValues.text}
|
|
52
|
+
weight="600"
|
|
53
|
+
>
|
|
45
54
|
{heading}
|
|
46
55
|
</Text>
|
|
47
56
|
<Text variant="pS" color={themeValues.text}>
|