@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.8.2-beta.0",
3
+ "version": "5.8.2-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -75,7 +75,9 @@ const AutopayModal = ({
75
75
  }}
76
76
  dataQa="Turn off Autopay"
77
77
  extraStyles={
78
- isMobile ? `flex-grow: 1; width: 100%;` : `margin: 0px`
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
- <Box
98
- padding="0"
99
- onClick={() => {
100
- toggleModal(true);
101
- }}
102
- hoverStyles={hoverStyles}
103
- activeStyles={activeStyles}
104
- extraStyles={defaultStyles}
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
- <AutopayOnIcon />
111
- <Text
112
- variant="pS"
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
- {`${planType} ${nextAutopayDate}`}
125
- </Text>
126
- </Cluster>
127
- </Box>;
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={isMobile ? `8px` : `16px`} nowrap>
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%;` : `margin: 0px;`
54
+ isMobile ? `flex-grow: 1; width: 100%;` : `flex-grow: 1;`
55
55
  }
56
56
  />
57
57
  </Box>