@thecb/components 5.6.5 → 5.6.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/dist/index.cjs.js +74 -83
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +74 -83
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +8 -8
- package/src/components/atoms/layouts/Cluster.js +4 -4
- package/src/components/atoms/layouts/Cluster.styled.js +4 -4
- package/src/components/atoms/nav-footer/NavFooter.stories.js +1 -1
- package/src/components/molecules/tabs/Tabs.js +3 -3
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/deprecated/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -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>
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
package/src/deprecated/.DS_Store
DELETED
|
Binary file
|