@thecb/components 8.4.3-beta.3 → 8.4.3

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.3-beta.3",
3
+ "version": "8.4.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
package/src/.DS_Store ADDED
Binary file
Binary file
Binary file
@@ -5,22 +5,19 @@ import {
5
5
  ItemWrapper,
6
6
  ActionWrapper,
7
7
  TableItemKey,
8
- TableItemValue,
8
+ TableItemValue
9
9
  } from "./EditableTable.styled";
10
10
  import { Box } from "../../atoms/layouts";
11
11
  import Text from "../../atoms/text";
12
- import { CHARADE_GREY, GHOST_GREY, WHITE } from "../../../constants/colors";
13
- import { noop } from "../../../util/general";
12
+ import { CHARADE_GREY, GHOST_GREY } from "../../../constants/colors";
14
13
 
15
14
  const TableListItem = ({
16
15
  title,
17
16
  value,
18
- onClick = noop,
19
- hoverBackgroundColor = undefined,
20
17
  canEdit = false,
21
18
  canRemove = false,
22
19
  isMobile,
23
- borderTopItem,
20
+ borderTopItem
24
21
  }) => (
25
22
  <Box
26
23
  padding="0px"
@@ -37,15 +34,9 @@ const TableListItem = ({
37
34
  }
38
35
  }`}
39
36
  `}
40
- hoverStyles={`${hoverBackgroundColor &&
41
- `&:hover {
42
- color: ${WHITE};
43
- background-color: ${hoverBackgroundColor};
44
- cursor: pointer;
45
- }`}`}
46
37
  >
47
38
  <ItemWrapper>
48
- <EditableTableListItem isMobile={isMobile} onClick={onClick}>
39
+ <EditableTableListItem isMobile={isMobile}>
49
40
  <TableItemKey isMobile={isMobile}>
50
41
  <Text variant="pS" color={CHARADE_GREY}>
51
42
  {title}
@@ -14,8 +14,6 @@ export const EditableTable: React.FC<Expand<EditableTableProps> &
14
14
  export interface TableListItemProps {
15
15
  title: string | JSX.Element;
16
16
  value: string | JSX.Element;
17
- onClick?: () => void;
18
- hoverBackgroundColor?: string;
19
17
  canEdit?: boolean;
20
18
  canRemove?: boolean;
21
19
  isMobile?: boolean;
@@ -47,7 +47,7 @@ const LinkCard = ({
47
47
  >
48
48
  <Box padding={0} width="100%">
49
49
  <Styled.Title
50
- variant="h6"
50
+ variant="h4"
51
51
  weight={FONT_WEIGHT_SEMIBOLD}
52
52
  color={themeValues.color}
53
53
  margin={0}