@thecb/components 8.4.8 → 8.4.10-beta.0
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 +114 -147
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +114 -147
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +2 -1
- package/src/components/atoms/solid-divider/SolidDivider.js +4 -4
- package/src/components/molecules/module/Module.js +8 -16
- package/src/components/molecules/radio-group/RadioGroup.js +1 -0
- package/src/components/molecules/radio-section/RadioSection.js +0 -2
- package/src/constants/colors.js +0 -2
- /package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
package/package.json
CHANGED
|
@@ -57,6 +57,7 @@ const RadioButtonWithLabel = ({
|
|
|
57
57
|
ariaInvalid,
|
|
58
58
|
themeValues,
|
|
59
59
|
index,
|
|
60
|
+
defaultChecked,
|
|
60
61
|
handleChange = noop // optional, for custom event handling in ingesting app
|
|
61
62
|
}) => (
|
|
62
63
|
<InputAndLabelContainer
|
|
@@ -75,7 +76,7 @@ const RadioButtonWithLabel = ({
|
|
|
75
76
|
setValue(e.target.value);
|
|
76
77
|
handleChange(e);
|
|
77
78
|
}}
|
|
78
|
-
defaultChecked={index === 0}
|
|
79
|
+
defaultChecked={defaultChecked || index === 0}
|
|
79
80
|
/>
|
|
80
81
|
<Text
|
|
81
82
|
as="label"
|
|
@@ -3,14 +3,14 @@ import { fallbackValues } from "./SolidDivider.theme";
|
|
|
3
3
|
import { themeComponent } from "../../../util/themeUtils";
|
|
4
4
|
import { Box } from "../layouts";
|
|
5
5
|
|
|
6
|
-
const SolidDivider = ({
|
|
6
|
+
const SolidDivider = ({ themeValues }) => (
|
|
7
7
|
<Box
|
|
8
8
|
padding="0"
|
|
9
9
|
minWidth="100%"
|
|
10
10
|
minHeight="1px"
|
|
11
|
-
borderColor={
|
|
12
|
-
borderSize={
|
|
13
|
-
borderWidthOverride={`0px 0px ${
|
|
11
|
+
borderColor={themeValues.borderColor}
|
|
12
|
+
borderSize={themeValues.borderSize}
|
|
13
|
+
borderWidthOverride={`0px 0px ${themeValues.borderSize} 0px`}
|
|
14
14
|
/>
|
|
15
15
|
);
|
|
16
16
|
|
|
@@ -16,18 +16,16 @@ import { Box, Cluster } from "../../atoms/layouts";
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
const Module = ({
|
|
19
|
-
variant = "default",
|
|
20
|
-
as,
|
|
21
|
-
disabled,
|
|
22
19
|
heading,
|
|
23
|
-
rightTitleContent,
|
|
24
|
-
titleID = "",
|
|
25
20
|
spacing = "1rem",
|
|
26
21
|
padding = "0",
|
|
27
|
-
margin = "0",
|
|
28
22
|
spacingBottom = "2.5rem",
|
|
29
|
-
fontSize,
|
|
30
23
|
themeValues,
|
|
24
|
+
variant = "default",
|
|
25
|
+
fontSize,
|
|
26
|
+
as,
|
|
27
|
+
titleID = "",
|
|
28
|
+
rightTitleContent,
|
|
31
29
|
children
|
|
32
30
|
}) => {
|
|
33
31
|
const themedFontSize =
|
|
@@ -40,7 +38,6 @@ const Module = ({
|
|
|
40
38
|
const themedElemType =
|
|
41
39
|
variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
|
|
42
40
|
const computedElemType = as || themedElemType;
|
|
43
|
-
const disabledStyles = "opacity: 0.40;";
|
|
44
41
|
const headingText = (
|
|
45
42
|
<Title
|
|
46
43
|
weight={themeValues.fontWeight}
|
|
@@ -56,12 +53,7 @@ const Module = ({
|
|
|
56
53
|
);
|
|
57
54
|
|
|
58
55
|
return (
|
|
59
|
-
<
|
|
60
|
-
aria-disabled={disabled}
|
|
61
|
-
extraStyles={disabled && disabledStyles}
|
|
62
|
-
padding="0"
|
|
63
|
-
role={"group"}
|
|
64
|
-
>
|
|
56
|
+
<Fragment>
|
|
65
57
|
{heading && !rightTitleContent && headingText}
|
|
66
58
|
{heading && rightTitleContent && (
|
|
67
59
|
<Cluster justify="space-between" align="center" nowrap>
|
|
@@ -69,7 +61,7 @@ const Module = ({
|
|
|
69
61
|
{rightTitleContent}
|
|
70
62
|
</Cluster>
|
|
71
63
|
)}
|
|
72
|
-
<Box padding={`0 0 ${spacingBottom}`}
|
|
64
|
+
<Box padding={`0 0 ${spacingBottom}`}>
|
|
73
65
|
<Box
|
|
74
66
|
padding={padding}
|
|
75
67
|
background={themeValues.backgroundColor}
|
|
@@ -79,7 +71,7 @@ const Module = ({
|
|
|
79
71
|
{children}
|
|
80
72
|
</Box>
|
|
81
73
|
</Box>
|
|
82
|
-
</
|
|
74
|
+
</Fragment>
|
|
83
75
|
);
|
|
84
76
|
};
|
|
85
77
|
|
|
@@ -42,7 +42,6 @@ const RadioSection = ({
|
|
|
42
42
|
staggeredAnimation = false,
|
|
43
43
|
initiallyOpen = true,
|
|
44
44
|
openHeight = "auto",
|
|
45
|
-
containerStyles = "",
|
|
46
45
|
ariaDescribedBy
|
|
47
46
|
}) => {
|
|
48
47
|
const handleKeyDown = (id, e) => {
|
|
@@ -99,7 +98,6 @@ const RadioSection = ({
|
|
|
99
98
|
padding="1px"
|
|
100
99
|
border={`1px solid ${themeValues.borderColor}`}
|
|
101
100
|
borderRadius="4px"
|
|
102
|
-
extraStyles={containerStyles}
|
|
103
101
|
>
|
|
104
102
|
<Stack childGap="0">
|
|
105
103
|
{sections
|
package/src/constants/colors.js
CHANGED
|
@@ -36,7 +36,6 @@ const GRECIAN_GREY = "#E5E7EC"; // CBS-200
|
|
|
36
36
|
const BLACK_SQUEEZE = "#EAF2F7";
|
|
37
37
|
const GREY_CHATEAU = "#959CA8"; // CBS-500
|
|
38
38
|
const COOL_GREY_05 = "#fbfcfd"; // CBS-050
|
|
39
|
-
const MANATEE_GREY = "#878E9B"; // CB-60 (cool)
|
|
40
39
|
// BLUE
|
|
41
40
|
const CLOUDBURST_BLUE = "#26395c";
|
|
42
41
|
const ZODIAC_BLUE = "#14284b";
|
|
@@ -172,7 +171,6 @@ export {
|
|
|
172
171
|
CHARADE_GREY,
|
|
173
172
|
GRECIAN_GREY,
|
|
174
173
|
COOL_GREY_05,
|
|
175
|
-
MANATEE_GREY,
|
|
176
174
|
BLACK_SQUEEZE,
|
|
177
175
|
GREY_CHATEAU,
|
|
178
176
|
CLOUDBURST_BLUE,
|
|
File without changes
|