@thecb/components 5.8.2-beta.0 → 5.8.2-beta.3
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 +4 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +34 -30
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +2 -2
package/package.json
CHANGED
|
@@ -75,7 +75,9 @@ const AutopayModal = ({
|
|
|
75
75
|
}}
|
|
76
76
|
dataQa="Turn off Autopay"
|
|
77
77
|
extraStyles={
|
|
78
|
-
isMobile
|
|
78
|
+
isMobile
|
|
79
|
+
? `flex-grow: 1; width: 100%;`
|
|
80
|
+
: `flex-grow: 1; min-width: 165px;`
|
|
79
81
|
}
|
|
80
82
|
/>
|
|
81
83
|
);
|
|
@@ -94,37 +96,39 @@ const AutopayModal = ({
|
|
|
94
96
|
);
|
|
95
97
|
}
|
|
96
98
|
case "link": {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<Cluster
|
|
107
|
-
justify={isMobile ? "flex-start" : "flex-end"}
|
|
108
|
-
align="center"
|
|
99
|
+
return (
|
|
100
|
+
<Box
|
|
101
|
+
padding="0"
|
|
102
|
+
onClick={() => {
|
|
103
|
+
toggleModal(true);
|
|
104
|
+
}}
|
|
105
|
+
hoverStyles={hoverStyles}
|
|
106
|
+
activeStyles={activeStyles}
|
|
107
|
+
extraStyles={defaultStyles}
|
|
109
108
|
>
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
onClick={() => toggleModal(true)}
|
|
114
|
-
onKeyPress={e => {
|
|
115
|
-
e.key === "Enter" && toggleModal(true);
|
|
116
|
-
}}
|
|
117
|
-
tabIndex="0"
|
|
118
|
-
dataQa={`${planType} On`}
|
|
119
|
-
color={SEA_GREEN}
|
|
120
|
-
weight={themeValues.fontWeight}
|
|
121
|
-
hoverStyles={themeValues.modalLinkHoverFocus}
|
|
122
|
-
extraStyles={`padding-left: 0.25rem;`}
|
|
109
|
+
<Cluster
|
|
110
|
+
justify={isMobile ? "flex-start" : "flex-end"}
|
|
111
|
+
align="center"
|
|
123
112
|
>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
<AutopayOnIcon />
|
|
114
|
+
<Text
|
|
115
|
+
variant="pS"
|
|
116
|
+
onClick={() => toggleModal(true)}
|
|
117
|
+
onKeyPress={e => {
|
|
118
|
+
e.key === "Enter" && toggleModal(true);
|
|
119
|
+
}}
|
|
120
|
+
tabIndex="0"
|
|
121
|
+
dataQa={`${planType} On`}
|
|
122
|
+
color={SEA_GREEN}
|
|
123
|
+
weight={themeValues.fontWeight}
|
|
124
|
+
hoverStyles={themeValues.modalLinkHoverFocus}
|
|
125
|
+
extraStyles={`padding-left: 0.25rem;`}
|
|
126
|
+
>
|
|
127
|
+
{`${planType} ${nextAutopayDate}`}
|
|
128
|
+
</Text>
|
|
129
|
+
</Cluster>
|
|
130
|
+
</Box>
|
|
131
|
+
);
|
|
128
132
|
}
|
|
129
133
|
}
|
|
130
134
|
};
|
|
@@ -25,7 +25,7 @@ const InactiveControlsModule = ({
|
|
|
25
25
|
border={isMobile ? `1px solid ${GHOST_GREY}` : `0px`}
|
|
26
26
|
borderWidthOverride={isMobile ? `1px 0 0 0` : `0px`}
|
|
27
27
|
>
|
|
28
|
-
<Cluster childGap={
|
|
28
|
+
<Cluster childGap={`8px`} nowrap>
|
|
29
29
|
{autoPayEnabled && (
|
|
30
30
|
<Box padding="0" extraStyles={`flex-grow: 1;`}>
|
|
31
31
|
<AutopayModalModule
|
|
@@ -51,7 +51,7 @@ const InactiveControlsModule = ({
|
|
|
51
51
|
action={handleRemoveAccount}
|
|
52
52
|
dataQa="Remove Account"
|
|
53
53
|
extraStyles={
|
|
54
|
-
isMobile ? `flex-grow: 1; width: 100%;` : `
|
|
54
|
+
isMobile ? `flex-grow: 1; width: 100%;` : `flex-grow: 1;`
|
|
55
55
|
}
|
|
56
56
|
/>
|
|
57
57
|
</Box>
|