@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 +16 -11
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -11
- package/dist/index.js.map +2 -2
- package/dist/styles/index.css +6 -5
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
- package/.idea/codeStyles/Project.xml +0 -61
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/layer-react.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -4758,6 +4758,7 @@ declare module '@layerfi/components/types/linked_accounts' {
|
|
|
4758
4758
|
connection_external_id?: string;
|
|
4759
4759
|
connection_needs_repair_as_of: string | null;
|
|
4760
4760
|
requires_user_confirmation_as_of: string | null;
|
|
4761
|
+
is_syncing: boolean;
|
|
4761
4762
|
}
|
|
4762
4763
|
export type PublicToken = {
|
|
4763
4764
|
public_token: string;
|
package/dist/index.js
CHANGED
|
@@ -1544,7 +1544,7 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
|
|
|
1544
1544
|
external_account_source: "PLAID",
|
|
1545
1545
|
balance: 435121,
|
|
1546
1546
|
at: "2024-04-03T13:00:00Z",
|
|
1547
|
-
created_at: "2024-04-
|
|
1547
|
+
created_at: "2024-04-06T22:47:59.715458Z"
|
|
1548
1548
|
},
|
|
1549
1549
|
current_ledger_balance: 373717,
|
|
1550
1550
|
institution: {
|
|
@@ -1554,7 +1554,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
|
|
|
1554
1554
|
connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
|
|
1555
1555
|
connection_external_id: "11111",
|
|
1556
1556
|
connection_needs_repair_as_of: null,
|
|
1557
|
-
requires_user_confirmation_as_of: null
|
|
1557
|
+
requires_user_confirmation_as_of: null,
|
|
1558
|
+
is_syncing: true
|
|
1558
1559
|
},
|
|
1559
1560
|
{
|
|
1560
1561
|
id: "f98ec50a-c370-484d-a35b-d00207436075",
|
|
@@ -1577,7 +1578,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
|
|
|
1577
1578
|
connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
|
|
1578
1579
|
connection_external_id: "11111",
|
|
1579
1580
|
connection_needs_repair_as_of: null,
|
|
1580
|
-
requires_user_confirmation_as_of: null
|
|
1581
|
+
requires_user_confirmation_as_of: null,
|
|
1582
|
+
is_syncing: false
|
|
1581
1583
|
},
|
|
1582
1584
|
{
|
|
1583
1585
|
id: "843f1748-fdaa-422d-a73d-2489a40c8dc7",
|
|
@@ -1600,7 +1602,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
|
|
|
1600
1602
|
connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
|
|
1601
1603
|
connection_external_id: "11111",
|
|
1602
1604
|
connection_needs_repair_as_of: "2024-03-06T16:44:35.715458Z",
|
|
1603
|
-
requires_user_confirmation_as_of: null
|
|
1605
|
+
requires_user_confirmation_as_of: null,
|
|
1606
|
+
is_syncing: false
|
|
1604
1607
|
},
|
|
1605
1608
|
{
|
|
1606
1609
|
id: "8f430e29-e339-4d71-a08a-fce469c7a7c1",
|
|
@@ -1623,7 +1626,8 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
|
|
|
1623
1626
|
connection_id: "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
|
|
1624
1627
|
connection_external_id: "11111",
|
|
1625
1628
|
connection_needs_repair_as_of: null,
|
|
1626
|
-
requires_user_confirmation_as_of: "2024-03-06T16:44:35.715458Z"
|
|
1629
|
+
requires_user_confirmation_as_of: "2024-03-06T16:44:35.715458Z",
|
|
1630
|
+
is_syncing: false
|
|
1627
1631
|
}
|
|
1628
1632
|
];
|
|
1629
1633
|
|
|
@@ -3859,13 +3863,13 @@ var LinkedAccountThumb = ({
|
|
|
3859
3863
|
"Layer__linked-account-thumb",
|
|
3860
3864
|
asWidget && "--as-widget"
|
|
3861
3865
|
);
|
|
3862
|
-
let
|
|
3866
|
+
let bankBalance;
|
|
3863
3867
|
if (pillConfig) {
|
|
3864
|
-
|
|
3868
|
+
bankBalance = /* @__PURE__ */ import_react46.default.createElement(LinkedAccountPill, { text: pillConfig.text, config: pillConfig.config });
|
|
3865
3869
|
} else {
|
|
3866
|
-
|
|
3870
|
+
bankBalance = /* @__PURE__ */ import_react46.default.createElement(Text, { as: "span", className: "account-balance" }, account.is_syncing ? "Syncing..." : `${centsToDollars(account.latest_balance_timestamp?.balance)}`);
|
|
3867
3871
|
}
|
|
3868
|
-
return /* @__PURE__ */ import_react46.default.createElement("div", { className: linkedAccountThumbClassName }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "topbar" }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "topbar-details" }, /* @__PURE__ */ import_react46.default.createElement(Text, { as: "
|
|
3872
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { className: linkedAccountThumbClassName }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "topbar" }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "topbar-details" }, /* @__PURE__ */ import_react46.default.createElement(Text, { as: "div", className: "account-name" }, account.external_account_name), !asWidget && account.mask && /* @__PURE__ */ import_react46.default.createElement(AccountNumber, { accountNumber: account.mask }), /* @__PURE__ */ import_react46.default.createElement(
|
|
3869
3873
|
Text,
|
|
3870
3874
|
{
|
|
3871
3875
|
as: "span",
|
|
@@ -3889,7 +3893,7 @@ var LinkedAccountThumb = ({
|
|
|
3889
3893
|
size: "sm"
|
|
3890
3894
|
},
|
|
3891
3895
|
"Bank balance"
|
|
3892
|
-
),
|
|
3896
|
+
), bankBalance), showLedgerBalance && /* @__PURE__ */ import_react46.default.createElement("div", { className: "bottombar" }, asWidget && account.mask ? /* @__PURE__ */ import_react46.default.createElement(AccountNumber, { accountNumber: account.mask }) : /* @__PURE__ */ import_react46.default.createElement(
|
|
3893
3897
|
Text,
|
|
3894
3898
|
{
|
|
3895
3899
|
as: "span",
|
|
@@ -3897,7 +3901,7 @@ var LinkedAccountThumb = ({
|
|
|
3897
3901
|
size: "sm"
|
|
3898
3902
|
},
|
|
3899
3903
|
"Ledger balance"
|
|
3900
|
-
), /* @__PURE__ */ import_react46.default.createElement(Text, { as: "span", className: "account-balance" }, "
|
|
3904
|
+
), /* @__PURE__ */ import_react46.default.createElement(Text, { as: "span", className: "account-balance" }, account.is_syncing ? "Syncing..." : `${centsToDollars(account.current_ledger_balance)}`)));
|
|
3901
3905
|
};
|
|
3902
3906
|
|
|
3903
3907
|
// src/components/LinkedAccounts/LinkedAccountsContent.tsx
|
|
@@ -7628,6 +7632,7 @@ var DatePicker = ({
|
|
|
7628
7632
|
showTimeSelect: mode === "timePicker",
|
|
7629
7633
|
showTimeSelectOnly: mode === "timePicker",
|
|
7630
7634
|
minDate,
|
|
7635
|
+
maxDate: /* @__PURE__ */ new Date(),
|
|
7631
7636
|
...props
|
|
7632
7637
|
},
|
|
7633
7638
|
mode === "dayRangePicker" && /* @__PURE__ */ import_react86.default.createElement(
|