@thecb/components 5.9.0-beta.4 → 5.9.0-beta.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/dist/index.cjs.js +37 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +37 -19
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/amount-callout/AmountCallout.theme.js +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +2 -0
- package/src/components/atoms/button-with-link/ButtonWithLink.js +10 -1
- package/src/components/atoms/link/ExternalLink.js +2 -0
- package/src/components/atoms/link/InternalLink.js +2 -0
- package/src/components/atoms/placeholder/Placeholder.js +1 -1
- package/src/components/atoms/text/Text.js +2 -0
- package/src/components/atoms/text/Text.styled.js +1 -0
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +0 -1
- package/src/components/molecules/workflow-tile/WorkflowTile.js +1 -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
package/src/.DS_Store
CHANGED
|
Binary file
|
|
@@ -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}
|
|
@@ -12,6 +12,7 @@ const ButtonWithLink = ({
|
|
|
12
12
|
extraStyles,
|
|
13
13
|
linkExtraStyles,
|
|
14
14
|
newTab = false,
|
|
15
|
+
dataQa,
|
|
15
16
|
...otherProps
|
|
16
17
|
}) => {
|
|
17
18
|
const ButtonWithLinkWrapper = ({
|
|
@@ -19,6 +20,7 @@ const ButtonWithLink = ({
|
|
|
19
20
|
url,
|
|
20
21
|
disabled,
|
|
21
22
|
newTab,
|
|
23
|
+
dataQa,
|
|
22
24
|
extraStyles
|
|
23
25
|
}) => {
|
|
24
26
|
if (disabled) {
|
|
@@ -30,11 +32,17 @@ const ButtonWithLink = ({
|
|
|
30
32
|
tabIndex="-1"
|
|
31
33
|
newTab={newTab}
|
|
32
34
|
extraStyles={extraStyles}
|
|
35
|
+
dataQa={dataQa}
|
|
33
36
|
>
|
|
34
37
|
{safeChildren(children, <span />)}
|
|
35
38
|
</ExternalLink>
|
|
36
39
|
) : (
|
|
37
|
-
<InternalLink
|
|
40
|
+
<InternalLink
|
|
41
|
+
to={url}
|
|
42
|
+
tabIndex="-1"
|
|
43
|
+
dataQa={dataQa}
|
|
44
|
+
extraStyles={extraStyles}
|
|
45
|
+
>
|
|
38
46
|
{safeChildren(children, <span />)}
|
|
39
47
|
</InternalLink>
|
|
40
48
|
);
|
|
@@ -47,6 +55,7 @@ const ButtonWithLink = ({
|
|
|
47
55
|
newTab={newTab}
|
|
48
56
|
extraStyles={`${linkExtraStyles} text-decoration: none; &:hover {
|
|
49
57
|
text-decoration: none; }`}
|
|
58
|
+
dataQa={dataQa}
|
|
50
59
|
>
|
|
51
60
|
<ButtonWithAction {...otherProps} extraStyles={extraStyles} />
|
|
52
61
|
</ButtonWithLinkWrapper>
|
|
@@ -15,6 +15,7 @@ const ExternalLink = ({
|
|
|
15
15
|
extraStyles = ``,
|
|
16
16
|
variant = "primary",
|
|
17
17
|
tabIndex = "0",
|
|
18
|
+
dataQa,
|
|
18
19
|
children
|
|
19
20
|
}) => {
|
|
20
21
|
const themeContext = useContext(ThemeContext);
|
|
@@ -39,6 +40,7 @@ const ExternalLink = ({
|
|
|
39
40
|
tabIndex={tabIndex}
|
|
40
41
|
extrastyles={extraStyles}
|
|
41
42
|
rel={newTab ? "noopener" : ""}
|
|
43
|
+
data-qa={dataQa}
|
|
42
44
|
>
|
|
43
45
|
{safeChildren(children, <span />)}
|
|
44
46
|
</StyledExternalLink>
|
|
@@ -16,6 +16,7 @@ const InternalLink = ({
|
|
|
16
16
|
variant = "primary",
|
|
17
17
|
margin,
|
|
18
18
|
tabIndex = "0",
|
|
19
|
+
dataQa,
|
|
19
20
|
extraStyles = ``
|
|
20
21
|
}) => {
|
|
21
22
|
const themeContext = useContext(ThemeContext);
|
|
@@ -40,6 +41,7 @@ const InternalLink = ({
|
|
|
40
41
|
activeColor={themeValues.activeColor}
|
|
41
42
|
tabIndex={tabIndex}
|
|
42
43
|
extrastyles={extraStyles}
|
|
44
|
+
data-qa={dataQa}
|
|
43
45
|
>
|
|
44
46
|
{safeChildren(children, <span />)}
|
|
45
47
|
</StyledInternalLink>
|
|
@@ -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);
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
package/src/deprecated/.DS_Store
DELETED
|
Binary file
|