@layerfi/components 0.1.35 → 0.1.36

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/esm/index.js CHANGED
@@ -1489,7 +1489,7 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
1489
1489
  external_account_source: "PLAID",
1490
1490
  balance: 435121,
1491
1491
  at: "2024-04-03T13:00:00Z",
1492
- created_at: "2024-04-06T16:44:35.715458Z"
1492
+ created_at: "2024-04-06T22:47:59.715458Z"
1493
1493
  },
1494
1494
  current_ledger_balance: 373717,
1495
1495
  institution: {
@@ -1499,7 +1499,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
1499
1499
  connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
1500
1500
  connection_external_id: "11111",
1501
1501
  connection_needs_repair_as_of: null,
1502
- requires_user_confirmation_as_of: null
1502
+ requires_user_confirmation_as_of: null,
1503
+ is_syncing: true
1503
1504
  },
1504
1505
  {
1505
1506
  id: "f98ec50a-c370-484d-a35b-d00207436075",
@@ -1522,7 +1523,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
1522
1523
  connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
1523
1524
  connection_external_id: "11111",
1524
1525
  connection_needs_repair_as_of: null,
1525
- requires_user_confirmation_as_of: null
1526
+ requires_user_confirmation_as_of: null,
1527
+ is_syncing: false
1526
1528
  },
1527
1529
  {
1528
1530
  id: "843f1748-fdaa-422d-a73d-2489a40c8dc7",
@@ -1545,7 +1547,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
1545
1547
  connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
1546
1548
  connection_external_id: "11111",
1547
1549
  connection_needs_repair_as_of: "2024-03-06T16:44:35.715458Z",
1548
- requires_user_confirmation_as_of: null
1550
+ requires_user_confirmation_as_of: null,
1551
+ is_syncing: false
1549
1552
  },
1550
1553
  {
1551
1554
  id: "8f430e29-e339-4d71-a08a-fce469c7a7c1",
@@ -1568,7 +1571,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
1568
1571
  connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
1569
1572
  connection_external_id: "11111",
1570
1573
  connection_needs_repair_as_of: null,
1571
- requires_user_confirmation_as_of: "2024-03-06T16:44:35.715458Z"
1574
+ requires_user_confirmation_as_of: "2024-03-06T16:44:35.715458Z",
1575
+ is_syncing: false
1572
1576
  }
1573
1577
  ];
1574
1578
 
@@ -3822,13 +3826,13 @@ var LinkedAccountThumb = ({
3822
3826
  "Layer__linked-account-thumb",
3823
3827
  asWidget && "--as-widget"
3824
3828
  );
3825
- let balance;
3829
+ let bankBalance;
3826
3830
  if (pillConfig) {
3827
- balance = /* @__PURE__ */ React53.createElement(LinkedAccountPill, { text: pillConfig.text, config: pillConfig.config });
3831
+ bankBalance = /* @__PURE__ */ React53.createElement(LinkedAccountPill, { text: pillConfig.text, config: pillConfig.config });
3828
3832
  } else {
3829
- balance = /* @__PURE__ */ React53.createElement(Text, { as: "span", className: "account-balance" }, "$", centsToDollars(account.latest_balance_timestamp?.balance));
3833
+ bankBalance = /* @__PURE__ */ React53.createElement(Text, { as: "span", className: "account-balance" }, account.is_syncing ? "Syncing..." : `${centsToDollars(account.latest_balance_timestamp?.balance)}`);
3830
3834
  }
3831
- return /* @__PURE__ */ React53.createElement("div", { className: linkedAccountThumbClassName }, /* @__PURE__ */ React53.createElement("div", { className: "topbar" }, /* @__PURE__ */ React53.createElement("div", { className: "topbar-details" }, /* @__PURE__ */ React53.createElement(Text, { as: "span", className: "account-name" }, account.external_account_name), !asWidget && account.mask && /* @__PURE__ */ React53.createElement(AccountNumber, { accountNumber: account.mask }), /* @__PURE__ */ React53.createElement(
3835
+ return /* @__PURE__ */ React53.createElement("div", { className: linkedAccountThumbClassName }, /* @__PURE__ */ React53.createElement("div", { className: "topbar" }, /* @__PURE__ */ React53.createElement("div", { className: "topbar-details" }, /* @__PURE__ */ React53.createElement(Text, { as: "div", className: "account-name" }, account.external_account_name), !asWidget && account.mask && /* @__PURE__ */ React53.createElement(AccountNumber, { accountNumber: account.mask }), /* @__PURE__ */ React53.createElement(
3832
3836
  Text,
3833
3837
  {
3834
3838
  as: "span",
@@ -3852,7 +3856,7 @@ var LinkedAccountThumb = ({
3852
3856
  size: "sm"
3853
3857
  },
3854
3858
  "Bank balance"
3855
- ), balance), showLedgerBalance && /* @__PURE__ */ React53.createElement("div", { className: "bottombar" }, asWidget && account.mask ? /* @__PURE__ */ React53.createElement(AccountNumber, { accountNumber: account.mask }) : /* @__PURE__ */ React53.createElement(
3859
+ ), bankBalance), showLedgerBalance && /* @__PURE__ */ React53.createElement("div", { className: "bottombar" }, asWidget && account.mask ? /* @__PURE__ */ React53.createElement(AccountNumber, { accountNumber: account.mask }) : /* @__PURE__ */ React53.createElement(
3856
3860
  Text,
3857
3861
  {
3858
3862
  as: "span",
@@ -3860,7 +3864,7 @@ var LinkedAccountThumb = ({
3860
3864
  size: "sm"
3861
3865
  },
3862
3866
  "Ledger balance"
3863
- ), /* @__PURE__ */ React53.createElement(Text, { as: "span", className: "account-balance" }, "$", centsToDollars(account.current_ledger_balance))));
3867
+ ), /* @__PURE__ */ React53.createElement(Text, { as: "span", className: "account-balance" }, account.is_syncing ? "Syncing..." : `${centsToDollars(account.current_ledger_balance)}`)));
3864
3868
  };
3865
3869
 
3866
3870
  // src/components/LinkedAccounts/LinkedAccountsContent.tsx
@@ -7613,6 +7617,7 @@ var DatePicker = ({
7613
7617
  showTimeSelect: mode === "timePicker",
7614
7618
  showTimeSelectOnly: mode === "timePicker",
7615
7619
  minDate,
7620
+ maxDate: /* @__PURE__ */ new Date(),
7616
7621
  ...props
7617
7622
  },
7618
7623
  mode === "dayRangePicker" && /* @__PURE__ */ React100.createElement(