@thecb/components 5.11.0 → 5.11.4-beta.0

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.11.0",
3
+ "version": "5.11.4-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/src/.DS_Store ADDED
Binary file
@@ -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"
@@ -46,7 +46,11 @@ const PaymentDetailsContent = ({
46
46
  </Text>
47
47
  {voidableTransactionDetails.map(t => (
48
48
  <Cluster key={t.id} justify="space-between" align="center">
49
- <Cluster padding="0" align="center">
49
+ <Cluster
50
+ padding="0"
51
+ align="center"
52
+ extraStyles={`font-size: 14px;`}
53
+ >
50
54
  <Box padding="0">{t.voidText}</Box>
51
55
  <ButtonWithAction
52
56
  variant="ghost"
@@ -54,11 +58,11 @@ const PaymentDetailsContent = ({
54
58
  text="Void"
55
59
  padding="0"
56
60
  extraStyles={`
57
- min-width: 75px;
61
+ min-width: 65px;
58
62
  margin: 0px;
59
63
  min-height: 0px;
60
64
  `}
61
- textExtraStyles={`font-weight: ${FONT_WEIGHT_REGULAR}; font-size: 16px;`}
65
+ textExtraStyles={`font-weight: ${FONT_WEIGHT_REGULAR}; font-size: 14px;`}
62
66
  />
63
67
  </Cluster>
64
68
  <Box padding="0" key={t.id}>
@@ -70,7 +74,7 @@ const PaymentDetailsContent = ({
70
74
  <SolidDivider />
71
75
  </Box>
72
76
  <LabeledAmount
73
- extraStyles={`font-weight: ${FONT_WEIGHT_REGULAR};`}
77
+ extraStyles={`font-weight: ${FONT_WEIGHT_REGULAR}; font-size: 14px;`}
74
78
  label="Amount paid"
75
79
  amount={displayCurrency(voidableAmountPaid)}
76
80
  />
@@ -79,7 +83,7 @@ const PaymentDetailsContent = ({
79
83
  {!hasVoidablePaymentsSection && !!lineItemElems.length && (
80
84
  <SolidDivider /> // avoids duplicate dividers -> case of voidable payment section, that acts as divider
81
85
  )}
82
- {subtotal && (
86
+ {subtotal ? (
83
87
  <>
84
88
  <Box padding="0.5rem 0">
85
89
  <LabeledAmount
@@ -91,6 +95,8 @@ const PaymentDetailsContent = ({
91
95
  </Box>
92
96
  <SolidDivider />
93
97
  </>
98
+ ) : (
99
+ <></>
94
100
  )}
95
101
  <LabeledAmount
96
102
  as="p"