@thecb/components 5.8.1-beta.6 → 5.8.2-beta.1

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.1-beta.6",
3
+ "version": "5.8.2-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -148,13 +148,13 @@ const Obligation = ({
148
148
  as="section"
149
149
  aria-label={`${inactiveLookupTitle} ${inactiveLookupInput}: ${inactiveLookupValue}`}
150
150
  >
151
- <Box background={ATHENS_GREY}>
151
+ <Box background={ATHENS_GREY} padding="24px">
152
152
  <Stack childGap="14px">
153
- <Box key={`${obligationAssocID}-top`} padding="0 8px" minWidth="100%">
153
+ <Box key={`${obligationAssocID}-top`} padding="0" minWidth="100%">
154
154
  <Cluster
155
155
  justify="space-between"
156
156
  align="center"
157
- childGap="4px"
157
+ childGap="40px"
158
158
  nowrap
159
159
  >
160
160
  <Box padding="0">
@@ -94,38 +94,39 @@ const AutopayModal = ({
94
94
  );
95
95
  }
96
96
  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"
97
+ return (
98
+ <Box
99
+ padding="0"
100
+ onClick={() => {
101
+ toggleModal(true);
102
+ }}
103
+ hoverStyles={hoverStyles}
104
+ activeStyles={activeStyles}
105
+ extraStyles={defaultStyles}
109
106
  >
110
- <AutopayOnIcon />
111
- <Text
112
- variant="pS"
113
- onClick={() => toggleModal(true)}
114
- onKeyPress={e => {
115
- console.log({ e });
116
- e.key === "Enter" && toggleModal(true);
117
- }}
118
- tabIndex="0"
119
- dataQa={`${planType} On`}
120
- color={SEA_GREEN}
121
- weight={themeValues.fontWeight}
122
- hoverStyles={themeValues.modalLinkHoverFocus}
123
- extraStyles={`padding-left: 0.25rem;`}
107
+ <Cluster
108
+ justify={isMobile ? "flex-start" : "flex-end"}
109
+ align="center"
124
110
  >
125
- {`${planType} ${nextAutopayDate}`}
126
- </Text>
127
- </Cluster>
128
- </Box>;
111
+ <AutopayOnIcon />
112
+ <Text
113
+ variant="pS"
114
+ onClick={() => toggleModal(true)}
115
+ onKeyPress={e => {
116
+ e.key === "Enter" && toggleModal(true);
117
+ }}
118
+ tabIndex="0"
119
+ dataQa={`${planType} On`}
120
+ color={SEA_GREEN}
121
+ weight={themeValues.fontWeight}
122
+ hoverStyles={themeValues.modalLinkHoverFocus}
123
+ extraStyles={`padding-left: 0.25rem;`}
124
+ >
125
+ {`${planType} ${nextAutopayDate}`}
126
+ </Text>
127
+ </Cluster>
128
+ </Box>
129
+ );
129
130
  }
130
131
  }
131
132
  };