@thecb/components 5.9.0-beta.2 → 5.9.0-beta.5
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 +28 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +28 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/add-obligation/AddObligation.js +3 -1
- 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/layouts/Cluster.js +1 -1
- package/src/components/atoms/layouts/Cluster.styled.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/obligation/modules/PaymentDetailsActions.js +1 -1
package/package.json
CHANGED
|
@@ -12,7 +12,8 @@ const AddObligation = ({
|
|
|
12
12
|
action,
|
|
13
13
|
themeValues,
|
|
14
14
|
extraStyles,
|
|
15
|
-
textExtraStyles
|
|
15
|
+
textExtraStyles,
|
|
16
|
+
dataQa
|
|
16
17
|
}) => {
|
|
17
18
|
const hoverStyles = `
|
|
18
19
|
&:hover {
|
|
@@ -48,6 +49,7 @@ const AddObligation = ({
|
|
|
48
49
|
extraStyles={defaultStyles}
|
|
49
50
|
onClick={action}
|
|
50
51
|
tabIndex="0"
|
|
52
|
+
dataQa={dataQa}
|
|
51
53
|
>
|
|
52
54
|
<Cover singleChild minHeight="100%">
|
|
53
55
|
<Cluster justify="center" align="center" minHeight="100%">
|
|
@@ -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}
|
|
@@ -16,7 +16,7 @@ export const ClusterWrapper = styled(({ overflow, ...props }) => (
|
|
|
16
16
|
export const ClusterInnerWrapper = styled.div`
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
display: flex;
|
|
19
|
-
flex-wrap: ${({ nowrap }) => (nowrap ? "nowrap" : "wrap")};
|
|
19
|
+
flex-wrap: ${({ $nowrap }) => ($nowrap ? "nowrap" : "wrap")};
|
|
20
20
|
justify-content: ${({ justify }) => justify};
|
|
21
21
|
align-items: ${({ align }) => align};
|
|
22
22
|
margin: calc(${({ childGap }) => childGap} / 2 * -1);
|
|
@@ -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);
|
|
@@ -108,7 +108,7 @@ const PaymentDetailsActions = ({
|
|
|
108
108
|
variant="tertiary"
|
|
109
109
|
text={`Set Up ${planType}`}
|
|
110
110
|
action={() => {
|
|
111
|
-
setDetailedObligation(obligations, config);
|
|
111
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
112
112
|
handleAutopayAction();
|
|
113
113
|
}}
|
|
114
114
|
dataQa="Set Up Autopay"
|