@thecb/components 7.12.2-beta.6 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.12.2-beta.6",
3
+ "version": "7.12.2-beta.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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 variant="p" color={themeValues.text} weight="600">
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
- height="67px"
149
+ maxContentWidth="350px"
150
+ padding="0"
150
151
  noBorder
151
152
  enableBoxShadow
153
+ extraStyles={`min-height: 67px; height: 67px;`}
154
+ enableSmallText
152
155
  />
153
156
  </Box>
154
157
  );
@@ -28,7 +28,7 @@ const rgbToRgba = (rgbValue = "", opacity = "") => {
28
28
  )}, ${opacity}${rgbValue.slice(-1)}`;
29
29
  };
30
30
 
31
- export const generateShadows = baseColorRGB => {
31
+ export const generateShadows = (baseColorRGB = "rgb(41, 42, 51)") => {
32
32
  const colorTen = rgbToRgba(baseColorRGB, "0.1") || "rgba(41, 42, 51, 0.1)";
33
33
  const colorTwenty = rgbToRgba(baseColorRGB, "0.2") || "rgba(41, 42, 51, 0.2)";
34
34
  const colorTwentyFive =