@thecb/components 7.11.0-beta.7 → 7.11.1-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 +3 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/CheckmarkIcon.js +4 -4
- package/src/components/molecules/partial-amount-form/PartialAmountForm.js +0 -2
- package/src/components/molecules/partial-amount-form/PartialAmountForm.state.js +0 -4
package/dist/index.esm.js
CHANGED
|
@@ -13807,16 +13807,16 @@ var CheckmarkIcon = function CheckmarkIcon() {
|
|
|
13807
13807
|
transform: "translate(672.000000, 64.000000)"
|
|
13808
13808
|
}, /*#__PURE__*/React.createElement("circle", {
|
|
13809
13809
|
id: "Oval-2",
|
|
13810
|
-
stroke:
|
|
13810
|
+
stroke: SEA_GREEN,
|
|
13811
13811
|
strokeWidth: "2",
|
|
13812
|
-
fill:
|
|
13812
|
+
fill: HINT_GREEN,
|
|
13813
13813
|
cx: "48",
|
|
13814
13814
|
cy: "48",
|
|
13815
13815
|
r: "48"
|
|
13816
13816
|
}), /*#__PURE__*/React.createElement("g", {
|
|
13817
13817
|
id: "Group-2",
|
|
13818
13818
|
transform: "translate(20.800000, 28.400000)",
|
|
13819
|
-
fill:
|
|
13819
|
+
fill: SEA_GREEN
|
|
13820
13820
|
}, /*#__PURE__*/React.createElement("polygon", {
|
|
13821
13821
|
id: "Rectangle-2",
|
|
13822
13822
|
transform: "translate(12.800000, 30.000000) rotate(-45.000000) translate(-12.800000, -30.000000) ",
|
|
@@ -46521,12 +46521,10 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
|
46521
46521
|
var errorMessages = amountErrors;
|
|
46522
46522
|
|
|
46523
46523
|
if (blockPartialPaymentOverpay) {
|
|
46524
|
-
console.log("item amount in form is", itemAmount);
|
|
46525
46524
|
var maxAmountError = "There is a maximum payment of ".concat(displayCurrency(itemAmount));
|
|
46526
46525
|
return _objectSpread2(_objectSpread2({}, errorMessages), {}, _defineProperty({}, numberLessThanOrEqualTo.error, maxAmountError));
|
|
46527
46526
|
}
|
|
46528
46527
|
|
|
46529
|
-
console.log("error messages are", errorMessages);
|
|
46530
46528
|
return errorMessages;
|
|
46531
46529
|
};
|
|
46532
46530
|
|
|
@@ -46569,9 +46567,6 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
|
|
|
46569
46567
|
var minimum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
46570
46568
|
var blockPartialPaymentOverpay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
46571
46569
|
var formConfig = lineItems.reduce(function (acc, item) {
|
|
46572
|
-
console.log("maximum is", maximum);
|
|
46573
|
-
console.log("item amount is", item.amount);
|
|
46574
|
-
console.log("block payment overpay", blockPartialPaymentOverpay);
|
|
46575
46570
|
var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
|
|
46576
46571
|
return lineItem != item;
|
|
46577
46572
|
}).reduce(function (acc, curr) {
|