@tesouro/embedded-components-react 0.2.328 → 0.2.330

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.
@@ -4,7 +4,6 @@ import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoney
4
4
  var n = {
5
5
  unnamedSourceAccount: "Bank account",
6
6
  availableBalancePrefix: (e) => `Available balance: ${e}`,
7
- sufficientFunds: "Funds available",
8
7
  futureInsufficientFunds: "Not enough funds right now. Add funds before the payment date.",
9
8
  todayInsufficientFunds: "Not enough funds to pay today. Choose a different account or a later date."
10
9
  };
@@ -24,10 +23,7 @@ function i(i, a = n) {
24
23
  }
25
24
  function a({ selectedAccount: e, amountDueMinorUnits: t, isToday: r, labels: i = n }) {
26
25
  let a = e?.balanceMinorUnits;
27
- return a === void 0 ? { state: "warning" } : a >= t ? {
28
- state: "sufficient",
29
- message: i.sufficientFunds
30
- } : r ? {
26
+ return a === void 0 ? { state: "warning" } : a >= t ? { state: "sufficient" } : r ? {
31
27
  state: "error",
32
28
  message: i.todayInsufficientFunds
33
29
  } : {
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.2.328", n = "2a5843c89f188a5b3f01de8e2be850aa29b35020", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.330", n = "de566328ad63827811f3e1c48acb43270f25a77f", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.2.328",
3
+ "version": "0.2.330",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {