@thecb/components 8.4.5-beta.5 → 8.4.5-beta.7

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": "8.4.5-beta.5",
3
+ "version": "8.4.5-beta.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from "react";
2
2
  import { Box, Stack } from "../../atoms/layouts";
3
- // import { themeComponent } from "../../../util/themeUtils";
4
- // import { fallbackValues } from "./LinkCard.theme";
3
+ import { themeComponent } from "../../../util/themeUtils";
4
+ import { fallbackValues } from "./LinkCard.theme";
5
5
  import { ThemeContext } from "styled-components";
6
6
  import * as Styled from "./LinkCard.styled";
7
7
 
@@ -83,5 +83,5 @@ const LinkCard = ({
83
83
  );
84
84
  };
85
85
 
86
- // export default themeComponent(LinkCard, "LinkCard", fallbackValues, "default");
87
- export default LinkCard;
86
+ export default themeComponent(LinkCard, "LinkCard", fallbackValues);
87
+ // export default LinkCard;
@@ -32,13 +32,12 @@ export const Container = styled(Box)`
32
32
  }
33
33
 
34
34
  &:hover:not(:active) {
35
- ${({ themeValues }) =>
36
- `border: 1px solid rgba(${themeValues.borderColor}, .3);`}
35
+ ${({ themeValues }) => `border: 1px solid ${themeValues.borderColor};`}
37
36
  }
38
37
 
39
38
  &:active {
40
39
  ${({ themeValues }) => `
41
- background-color: rgba(${themeValues.activeBackgroundColor}, 0.1);
40
+ background-color: ${themeValues.activeBackgroundColor};
42
41
  border: 1px solid ${themeValues.color};
43
42
  ;`}
44
43
  }
@@ -5,10 +5,10 @@ import {
5
5
  ROYAL_BLUE_VIVID
6
6
  } from "../../../constants/colors";
7
7
 
8
- const activeBackgroundColor = { default: CORNFLOWER_BLUE };
9
- const backgroundColor = { default: LINK_WATER };
10
- const borderColor = { default: MOON_RAKER };
11
- const color = { default: ROYAL_BLUE_VIVID };
8
+ const activeBackgroundColor = CORNFLOWER_BLUE;
9
+ const backgroundColor = LINK_WATER;
10
+ const borderColor = MOON_RAKER;
11
+ const color = ROYAL_BLUE_VIVID;
12
12
 
13
13
  export const fallbackValues = {
14
14
  activeBackgroundColor,