@thecb/components 8.2.0-beta.5 → 8.2.0-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.2.0-beta.5",
3
+ "version": "8.2.0-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",
@@ -12,7 +12,6 @@ const StyledBadgeContainer = styled(Box)`
12
12
  align-self: flex-start;
13
13
  gap: 4px;
14
14
  border-radius: 4px;
15
- background-color: ${({ themeValues }) => themeValues.background};
16
15
  `;
17
16
 
18
17
  const StyledBadge = styled(Text)`
@@ -22,7 +21,6 @@ const StyledBadge = styled(Text)`
22
21
  font-weight: 400;
23
22
  line-height: 150%; /* 15px */
24
23
  letter-spacing: 0.2px;
25
- color: ${({ themeValues }) => themeValues.color};
26
24
 
27
25
  @media screen and (min-width: 1049px) {
28
26
  font-size: 12px;
@@ -32,9 +30,9 @@ const StyledBadge = styled(Text)`
32
30
  `;
33
31
 
34
32
  const Badge = ({ label, Icon, themeValues, iconOnLeft = true }) => (
35
- <StyledBadgeContainer themeValues={themeValues}>
33
+ <StyledBadgeContainer background={themeValues.background}>
36
34
  {iconOnLeft && Icon && <Icon fill={themeValues.color} />}
37
- <StyledBadge themeValues={themeValues}>{label}</StyledBadge>
35
+ <StyledBadge color={themeValues.color}>{label}</StyledBadge>
38
36
  {!iconOnLeft && Icon && <Icon fill={themeValues.color} />}
39
37
  </StyledBadgeContainer>
40
38
  );