@thecb/components 5.6.5-beta.0 → 5.6.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": "5.6.5-beta.0",
3
+ "version": "5.6.7",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -85,6 +85,6 @@
85
85
  "ramda": "^0.27.0",
86
86
  "react-aria-modal": "^4.0.0",
87
87
  "react-pose": "^4.0.10",
88
- "redux-freeform": "^5.2.0"
88
+ "redux-freeform": "^5.4.0"
89
89
  }
90
90
  }
@@ -15,7 +15,7 @@ const InputField = styled.input`
15
15
  ? ERROR_COLOR
16
16
  : themeValues.borderColor};
17
17
  border-radius: 2px;
18
- height: ${({ customHeight }) => (customHeight ? customHeight : "48px")};
18
+ height: ${({ $customHeight }) => ($customHeight ? $customHeight : "48px")};
19
19
  width: 100%;
20
20
  padding: 1rem;
21
21
  min-width: 100px;
@@ -47,9 +47,9 @@ const InputField = styled.input`
47
47
  background-color: #f7f7f7;
48
48
  `}
49
49
 
50
- ${({ extraStyles }) =>
50
+ ${({ $extraStyles }) =>
51
51
  css`
52
- ${extraStyles}
52
+ ${$extraStyles}
53
53
  `}
54
54
  `;
55
55
 
@@ -63,7 +63,7 @@ const FormattedInputField = styled(({ showErrors, themeValues, ...props }) => (
63
63
  ? ERROR_COLOR
64
64
  : themeValues.borderColor};
65
65
  border-radius: 2px;
66
- height: ${({ customHeight }) => (customHeight ? customHeight : "48px")};
66
+ height: ${({ $customHeight }) => ($customHeight ? $customHeight : "48px")};
67
67
  width: 100%;
68
68
  padding: 1rem;
69
69
  min-width: 100px;
@@ -199,8 +199,8 @@ const FormInput = ({
199
199
  showErrors={showErrors}
200
200
  data-qa={labelTextWhenNoError}
201
201
  themeValues={themeValues}
202
- customHeight={customHeight}
203
- extraStyles={extraStyles}
202
+ $customHeight={customHeight}
203
+ $extraStyles={extraStyles}
204
204
  {...props}
205
205
  />
206
206
  ) : (
@@ -216,8 +216,8 @@ const FormInput = ({
216
216
  data-qa={labelTextWhenNoError}
217
217
  themeValues={themeValues}
218
218
  background={background}
219
- customHeight={customHeight}
220
- extraStyles={extraStyles}
219
+ $customHeight={customHeight}
220
+ $extraStyles={extraStyles}
221
221
  {...props}
222
222
  />
223
223
  )}
@@ -29,10 +29,10 @@ const Cluster = ({
29
29
  <ClusterWrapper
30
30
  overflow={overflow}
31
31
  {...rest}
32
- justifySelf={justifySelf}
33
- alignSelf={alignSelf}
34
- flexGrow={flexGrow}
35
- extraStyles={extraStyles}
32
+ $justifySelf={justifySelf}
33
+ $alignSelf={alignSelf}
34
+ $flexGrow={flexGrow}
35
+ $extraStyles={extraStyles}
36
36
  >
37
37
  <ClusterInnerWrapper
38
38
  justify={justify}
@@ -7,10 +7,10 @@ export const ClusterWrapper = styled(({ overflow, ...props }) => (
7
7
  ))`
8
8
  overflow: ${({ overflow }) => (overflow ? "visible" : "hidden")};
9
9
  box-sizing: border-box;
10
- justify-self: ${({ justifySelf }) => justifySelf};
11
- align-self: ${({ alignSelf }) => alignSelf};
12
- flex-grow: ${({ flexGrow }) => flexGrow};
13
- ${({ extraStyles }) => extraStyles};
10
+ justify-self: ${({ $justifySelf }) => $justifySelf};
11
+ align-self: ${({ $alignSelf }) => $alignSelf};
12
+ flex-grow: ${({ $flexGrow }) => $flexGrow};
13
+ ${({ $extraStyles }) => $extraStyles};
14
14
  `;
15
15
 
16
16
  export const ClusterInnerWrapper = styled.div`
@@ -23,7 +23,7 @@ export const navFooter = () => (
23
23
  <NavFooter
24
24
  leftContent={<Left />}
25
25
  rightContent={<Right />}
26
- headerHeight={text("headerHeight", "105px", "props")}
26
+ $headerHeight={text("headerHeight", "105px", "props")}
27
27
  backgroundColor={select("activeColor", colors, "white", "props")}
28
28
  footerPadding={text("footerPadding", "1.5rem 1rem", "props")}
29
29
  isMobile={boolean("isMobile", false, "props")}
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react";
1
+ import React, { useState, Fragment } from "react";
2
2
  import { Stack, Box, Cluster } from "../../atoms/layouts";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
  import { fallbackValues } from "./Tabs.theme";
@@ -46,9 +46,9 @@ const Tabs = ({
46
46
  </Box>
47
47
  <Box className="tab-content">
48
48
  <Box>
49
- {tabsConfig.tabs.map(tab => {
49
+ {tabsConfig.tabs.map((tab, idx) => {
50
50
  if (tab.label !== activeTab) return undefined;
51
- return tab.content;
51
+ return <Fragment key={idx}>{tab.content}</Fragment>;
52
52
  })}
53
53
  </Box>
54
54
  </Box>
@@ -14,8 +14,7 @@ const TermsAndConditionsModal = ({
14
14
  acceptText,
15
15
  terms,
16
16
  variant,
17
- themeValues,
18
- linkColorOverride
17
+ themeValues
19
18
  }) => (
20
19
  <Modal
21
20
  modalOpen={isOpen}
@@ -45,7 +44,7 @@ const TermsAndConditionsModal = ({
45
44
  onClick={() => toggleOpen(true)}
46
45
  onKeyPress={e => e.key === "Enter" && toggleOpen(true)}
47
46
  tabIndex="0"
48
- color={linkColorOverride || themeValues.linkColor}
47
+ color={themeValues.linkColor}
49
48
  weight={themeValues.fontWeight}
50
49
  hoverStyles={themeValues.modalLinkHoverFocus}
51
50
  extraStyles={`display: inline-block; width: fit-content;`}