@thecb/components 7.12.2-beta.8 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.12.2-beta.8",
3
+ "version": "7.12.2-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -21,9 +21,13 @@ const Alert = ({
21
21
  maxContentWidth,
22
22
  noBorder = false,
23
23
  enableBoxShadow = false,
24
- enableSmallText = false
24
+ enableSmallText = false,
25
+ innerContentPadding = "1rem"
25
26
  }) => {
26
27
  const Icon = AlertIcons[variant];
28
+ let contentPadding = maxContentWidth
29
+ ? `${padding} 1rem`
30
+ : innerContentPadding;
27
31
 
28
32
  const content = (
29
33
  <Sidebar width="24px" childGap="0rem">
@@ -36,7 +40,7 @@ const Alert = ({
36
40
  </Box>
37
41
  <Box padding="0">
38
42
  <Sidebar sidebarOnRight width="24px" childGap="0rem">
39
- <Box padding={maxContentWidth ? `${padding} 1rem` : "1rem"}>
43
+ <Box padding={contentPadding}>
40
44
  <Cluster justify="flex-start" align="center">
41
45
  {textOverride ? (
42
46
  textOverride
@@ -146,12 +146,11 @@ 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"
151
149
  noBorder
152
150
  enableBoxShadow
153
- extraStyles={`min-height: 67px; height: 67px;`}
154
151
  enableSmallText
152
+ innerContentPadding="0 16px"
153
+ extraStyles={`min-height: 67px; height: 67px;`}
155
154
  />
156
155
  </Box>
157
156
  );