@thecb/components 4.1.28 → 4.1.29

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 CHANGED
@@ -38566,7 +38566,7 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
38566
38566
  }, []);
38567
38567
  }
38568
38568
 
38569
- var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThanOrEqualTo.error, "Your total payment must be greater than or equal to ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThanOrEqualTo.error, "Your total payment must be less than ".concat(displayCurrency(maximum))), _amountErrors);
38569
+ var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThanOrEqualTo.error, "There is a minimum payment of ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThanOrEqualTo.error, "There is a maximum payment of ".concat(displayCurrency(maximum))), _amountErrors);
38570
38570
  var lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
38571
38571
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
38572
38572
  variant: variant,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "4.1.28",
3
+ "version": "4.1.29",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -29,10 +29,10 @@ const PartialAmountForm = ({
29
29
 
30
30
  const amountErrors = {
31
31
  [required.error]: "Amount is required",
32
- [numberGreaterThanOrEqualTo.error]: `Your total payment must be greater than or equal to ${displayCurrency(
32
+ [numberGreaterThanOrEqualTo.error]: `There is a minimum payment of ${displayCurrency(
33
33
  minimum
34
34
  )}`,
35
- [numberLessThanOrEqualTo.error]: `Your total payment must be less than ${displayCurrency(
35
+ [numberLessThanOrEqualTo.error]: `There is a maximum payment of ${displayCurrency(
36
36
  maximum
37
37
  )}`
38
38
  };