@layerfi/components 0.1.18 → 0.1.19
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 +44 -7
- package/dist/esm/index.js.map +3 -3
- package/dist/index.js +41 -4
- package/dist/index.js.map +3 -3
- package/dist/styles/index.css +53 -2
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -6923,7 +6923,7 @@ var SkeletonLoader = ({
|
|
|
6923
6923
|
import React82 from "react";
|
|
6924
6924
|
import { PieChart as PieChart2, Pie as Pie2, Cell as Cell3 } from "recharts";
|
|
6925
6925
|
var MiniChart = ({ data }) => {
|
|
6926
|
-
return /* @__PURE__ */ React82.createElement(PieChart2, { width:
|
|
6926
|
+
return /* @__PURE__ */ React82.createElement(PieChart2, { width: 52, height: 52, className: "mini-chart" }, /* @__PURE__ */ React82.createElement(
|
|
6927
6927
|
Pie2,
|
|
6928
6928
|
{
|
|
6929
6929
|
data,
|
|
@@ -6933,7 +6933,7 @@ var MiniChart = ({ data }) => {
|
|
|
6933
6933
|
cy: "50%",
|
|
6934
6934
|
innerRadius: 10,
|
|
6935
6935
|
outerRadius: 16,
|
|
6936
|
-
paddingAngle: 0.
|
|
6936
|
+
paddingAngle: 0.4,
|
|
6937
6937
|
fill: "#8884d8",
|
|
6938
6938
|
width: 24,
|
|
6939
6939
|
height: 24,
|
|
@@ -8579,7 +8579,7 @@ var ChartOfAccountsTable = ({
|
|
|
8579
8579
|
!expandAll || expandAll === "collapsed" ? "expanded" : "collapsed"
|
|
8580
8580
|
)
|
|
8581
8581
|
},
|
|
8582
|
-
!expandAll || expandAll === "collapsed" ? "Expand all rows" : "
|
|
8582
|
+
!expandAll || expandAll === "collapsed" ? "Expand all rows" : "Collapse all rows"
|
|
8583
8583
|
)) : null,
|
|
8584
8584
|
/* @__PURE__ */ React96.createElement("div", { className: "Layer__header__actions-col" }, /* @__PURE__ */ React96.createElement(
|
|
8585
8585
|
Button,
|
|
@@ -10423,7 +10423,7 @@ var OnboardingContent = ({
|
|
|
10423
10423
|
};
|
|
10424
10424
|
|
|
10425
10425
|
// src/views/AccountingOverview/AccountingOverview.tsx
|
|
10426
|
-
import React127 from "react";
|
|
10426
|
+
import React127, { useState as useState36 } from "react";
|
|
10427
10427
|
|
|
10428
10428
|
// src/components/TransactionToReviewCard/TransactionToReviewCard.tsx
|
|
10429
10429
|
import React124, { useEffect as useEffect22, useMemo as useMemo15, useState as useState35 } from "react";
|
|
@@ -10571,11 +10571,13 @@ var View3 = ({ title, children, headerControls }) => {
|
|
|
10571
10571
|
};
|
|
10572
10572
|
|
|
10573
10573
|
// src/views/AccountingOverview/AccountingOverview.tsx
|
|
10574
|
+
import classNames43 from "classnames";
|
|
10574
10575
|
var AccountingOverview = ({
|
|
10575
10576
|
title = "Accounting overview",
|
|
10576
10577
|
enableOnboarding = false,
|
|
10577
10578
|
onTransactionsToReviewClick
|
|
10578
10579
|
}) => {
|
|
10580
|
+
const [pnlToggle, setPnlToggle] = useState36("revenue");
|
|
10579
10581
|
return /* @__PURE__ */ React127.createElement(ProfitAndLoss, { asContainer: false }, /* @__PURE__ */ React127.createElement(View3, { title, headerControls: /* @__PURE__ */ React127.createElement(ProfitAndLoss.DatePicker, null) }, enableOnboarding && /* @__PURE__ */ React127.createElement(Onboarding, null), /* @__PURE__ */ React127.createElement("div", { className: "Layer__accounting-overview__summaries-row" }, /* @__PURE__ */ React127.createElement(ProfitAndLoss.Summaries, { actionable: false }), /* @__PURE__ */ React127.createElement(TransactionToReviewCard, { onClick: onTransactionsToReviewClick })), /* @__PURE__ */ React127.createElement(
|
|
10580
10582
|
Container,
|
|
10581
10583
|
{
|
|
@@ -10585,7 +10587,42 @@ var AccountingOverview = ({
|
|
|
10585
10587
|
},
|
|
10586
10588
|
/* @__PURE__ */ React127.createElement(Header, null, /* @__PURE__ */ React127.createElement(Heading, { size: "secondary" /* secondary */ }, "Profit & Loss")),
|
|
10587
10589
|
/* @__PURE__ */ React127.createElement(ProfitAndLoss.Chart, null)
|
|
10588
|
-
), /* @__PURE__ */ React127.createElement("div", { className: "accounting-overview-profit-and-loss-charts" }, /* @__PURE__ */ React127.createElement(
|
|
10590
|
+
), /* @__PURE__ */ React127.createElement("div", { className: "accounting-overview-profit-and-loss-charts" }, /* @__PURE__ */ React127.createElement(
|
|
10591
|
+
Toggle,
|
|
10592
|
+
{
|
|
10593
|
+
name: "pnl-detailed-charts",
|
|
10594
|
+
options: [
|
|
10595
|
+
{
|
|
10596
|
+
value: "revenue",
|
|
10597
|
+
label: "Revenue"
|
|
10598
|
+
},
|
|
10599
|
+
{
|
|
10600
|
+
value: "expenses",
|
|
10601
|
+
label: "Expenses"
|
|
10602
|
+
}
|
|
10603
|
+
],
|
|
10604
|
+
selected: pnlToggle,
|
|
10605
|
+
onChange: (e) => setPnlToggle(e.target.value)
|
|
10606
|
+
}
|
|
10607
|
+
), /* @__PURE__ */ React127.createElement(
|
|
10608
|
+
Container,
|
|
10609
|
+
{
|
|
10610
|
+
name: classNames43(
|
|
10611
|
+
"accounting-overview-profit-and-loss-chart",
|
|
10612
|
+
pnlToggle !== "revenue" && "accounting-overview-profit-and-loss-chart--hidden"
|
|
10613
|
+
)
|
|
10614
|
+
},
|
|
10615
|
+
/* @__PURE__ */ React127.createElement(ProfitAndLoss.DetailedCharts, { scope: "revenue", hideClose: true })
|
|
10616
|
+
), /* @__PURE__ */ React127.createElement(
|
|
10617
|
+
Container,
|
|
10618
|
+
{
|
|
10619
|
+
name: classNames43(
|
|
10620
|
+
"accounting-overview-profit-and-loss-chart",
|
|
10621
|
+
pnlToggle !== "expenses" && "accounting-overview-profit-and-loss-chart--hidden"
|
|
10622
|
+
)
|
|
10623
|
+
},
|
|
10624
|
+
/* @__PURE__ */ React127.createElement(ProfitAndLoss.DetailedCharts, { scope: "expenses", hideClose: true })
|
|
10625
|
+
))));
|
|
10589
10626
|
};
|
|
10590
10627
|
|
|
10591
10628
|
// src/views/BankTransactionsWithLinkedAccounts/BankTransactionsWithLinkedAccounts.tsx
|
|
@@ -10642,11 +10679,11 @@ var ReportsPanel = ({ containerRef }) => {
|
|
|
10642
10679
|
};
|
|
10643
10680
|
|
|
10644
10681
|
// src/views/GeneralLedger/GeneralLedger.tsx
|
|
10645
|
-
import React130, { useState as
|
|
10682
|
+
import React130, { useState as useState37 } from "react";
|
|
10646
10683
|
var GeneralLedgerView = ({
|
|
10647
10684
|
title = "General Ledger"
|
|
10648
10685
|
}) => {
|
|
10649
|
-
const [activeTab, setActiveTab] =
|
|
10686
|
+
const [activeTab, setActiveTab] = useState37("chartOfAccounts");
|
|
10650
10687
|
return /* @__PURE__ */ React130.createElement(ProfitAndLoss, { asContainer: false }, /* @__PURE__ */ React130.createElement(View3, { title }, /* @__PURE__ */ React130.createElement(
|
|
10651
10688
|
Toggle,
|
|
10652
10689
|
{
|