@thecb/components 5.9.0-beta.3 → 5.9.0-beta.6

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": "5.9.0-beta.3",
3
+ "version": "5.9.0-beta.6",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/src/.DS_Store CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- const color = "#15749D";
1
+ const color = "#292A33";
2
2
 
3
3
  export const fallbackValues = {
4
4
  color
@@ -64,6 +64,7 @@ const ButtonWithAction = ({
64
64
  action = noop,
65
65
  variant = "primary",
66
66
  text,
67
+ textWrap = false,
67
68
  isLoading = false,
68
69
  dataQa = null,
69
70
  textExtraStyles,
@@ -143,6 +144,7 @@ const ButtonWithAction = ({
143
144
  weight={themeValues.fontWeight}
144
145
  variant={themeValues.fontSizeVariant}
145
146
  color={themeValues.color}
147
+ textWrap={textWrap}
146
148
  extraStyles={textExtraStyles}
147
149
  >
148
150
  {text}
@@ -40,7 +40,7 @@ const Cluster = ({
40
40
  childGap={childGap}
41
41
  minHeight={minHeight}
42
42
  minWidth={minWidth}
43
- nowrap={nowrap}
43
+ $nowrap={nowrap}
44
44
  >
45
45
  {safeChildren(children, <Fragment />)}
46
46
  </ClusterInnerWrapper>
@@ -21,7 +21,7 @@ const PlaceholderContentWrapper = ({
21
21
  dataQa
22
22
  }) =>
23
23
  isLink ? (
24
- <Link to={destination} dataQa={dataQa}>
24
+ <Link to={destination} data-qa={dataQa}>
25
25
  <Box padding="0" minHeight="100%" extraStyles={`cursor: pointer;`}>
26
26
  {children}
27
27
  </Box>
@@ -10,6 +10,7 @@ const Text = ({
10
10
  themeValues,
11
11
  weight = FONT_WEIGHT_REGULAR,
12
12
  color = FIREFLY_GREY,
13
+ textWrap = true,
13
14
  extraStyles = ``,
14
15
  hoverStyles,
15
16
  onClick,
@@ -30,6 +31,7 @@ const Text = ({
30
31
  onClick={onClick}
31
32
  onKeyPress={onKeyPress}
32
33
  data-qa={dataQa}
34
+ $textWrap={textWrap}
33
35
  {...rest}
34
36
  >
35
37
  {safeChildren(children, <span />)}
@@ -8,6 +8,7 @@ export const TextSpan = styled.span`
8
8
  font-weight: ${({ weight }) => weight};
9
9
  font-family: ${({ fontFamily }) => fontFamily};
10
10
  color: ${({ color }) => color};
11
+ white-space: ${({ $textWrap }) => ($textWrap ? "initial" : "nowrap")};
11
12
 
12
13
  &:hover {
13
14
  ${({ hoverStyles }) =>
@@ -20,7 +20,6 @@ const InactiveControlsModule = ({
20
20
  configType,
21
21
  actions
22
22
  }) => {
23
- console.log("actions are", actions);
24
23
  const [modalOpen, toggleModal] = useState(false);
25
24
  const { deleteObligationAssoc } = actions;
26
25
  const handleRemoveAccount = () => deleteObligationAssoc(obligationAssocID);
Binary file
Binary file
Binary file