@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/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/dropdown/Dropdown.js +3 -0
- package/src/components/molecules/payment-details/PaymentDetails.js +3 -1
package/dist/index.esm.js
CHANGED
|
@@ -19514,9 +19514,12 @@ var Dropdown = function Dropdown(_ref9) {
|
|
|
19514
19514
|
var key = e.key,
|
|
19515
19515
|
keyCode = e.keyCode;
|
|
19516
19516
|
var focus = document.activeElement;
|
|
19517
|
+
console.log("focus is", focus);
|
|
19518
|
+
console.log("option refs are", optionRefs.current);
|
|
19517
19519
|
var optionEl = optionRefs.current.find(function (ref) {
|
|
19518
19520
|
return ref.current === focus;
|
|
19519
19521
|
});
|
|
19522
|
+
console.log("option el is", optionEl);
|
|
19520
19523
|
|
|
19521
19524
|
switch (key) {
|
|
19522
19525
|
case "ArrowDown":
|
|
@@ -40246,13 +40249,13 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
40246
40249
|
label: "Amount paid",
|
|
40247
40250
|
amount: displayCurrency(voidableAmountPaid)
|
|
40248
40251
|
})), !hasVoidablePaymentsSection && !!lineItemElems.length && /*#__PURE__*/React.createElement(SolidDivider$1, null) // avoids duplicate dividers -> case of voidable payment section, that acts as divider
|
|
40249
|
-
, subtotal
|
|
40252
|
+
, subtotal ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
40250
40253
|
padding: "0.5rem 0"
|
|
40251
40254
|
}, /*#__PURE__*/React.createElement(LabeledAmount$1, {
|
|
40252
40255
|
variant: themeValues.labeledAmountSubtotal,
|
|
40253
40256
|
label: "Subtotal",
|
|
40254
40257
|
amount: displayCurrency(subtotal)
|
|
40255
|
-
}), feeElems), /*#__PURE__*/React.createElement(SolidDivider$1, null)), /*#__PURE__*/React.createElement(LabeledAmount$1, {
|
|
40258
|
+
}), feeElems), /*#__PURE__*/React.createElement(SolidDivider$1, null)) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(LabeledAmount$1, {
|
|
40256
40259
|
as: "p",
|
|
40257
40260
|
variant: themeValues.labeledAmountTotal,
|
|
40258
40261
|
label: hasVoidablePaymentsSection ? "Remaining amount due" : "Total",
|