@thecb/components 5.11.2 → 6.0.0-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.2",
3
+ "version": "6.0.0-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
@@ -120,7 +120,10 @@ const Dropdown = ({
120
120
  const onKeyDown = e => {
121
121
  const { key, keyCode } = e;
122
122
  const focus = document.activeElement;
123
+ console.log("focus is", focus);
124
+ console.log("option refs are", optionRefs.current);
123
125
  const optionEl = optionRefs.current.find(ref => ref.current === focus);
126
+ console.log("option el is", optionEl);
124
127
  switch (key) {
125
128
  case "ArrowDown":
126
129
  e.preventDefault();
@@ -83,7 +83,7 @@ const PaymentDetailsContent = ({
83
83
  {!hasVoidablePaymentsSection && !!lineItemElems.length && (
84
84
  <SolidDivider /> // avoids duplicate dividers -> case of voidable payment section, that acts as divider
85
85
  )}
86
- {subtotal && (
86
+ {subtotal ? (
87
87
  <>
88
88
  <Box padding="0.5rem 0">
89
89
  <LabeledAmount
@@ -95,6 +95,8 @@ const PaymentDetailsContent = ({
95
95
  </Box>
96
96
  <SolidDivider />
97
97
  </>
98
+ ) : (
99
+ <></>
98
100
  )}
99
101
  <LabeledAmount
100
102
  as="p"