anarock-widgets 1.0.261 → 1.0.263
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 +2 -2
- package/dist/index.es.js +25 -16
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -50784,8 +50784,11 @@ const Mue = [
|
|
|
50784
50784
|
{ name: "Pool Maintenance", value: 7e5, color: "#8B5CF6" },
|
|
50785
50785
|
{ name: "Administration", value: 52e4, color: "#10B981" }
|
|
50786
50786
|
];
|
|
50787
|
-
function Wfe({ data: e }) {
|
|
50788
|
-
const
|
|
50787
|
+
function Wfe({ data: e, currency: t = "AED" }) {
|
|
50788
|
+
const n = Array.isArray(e) && e.length > 0 ? e : Nue, r = n.reduce(
|
|
50789
|
+
(i, o) => i + Number(o.value ?? 0),
|
|
50790
|
+
0
|
|
50791
|
+
);
|
|
50789
50792
|
return /* @__PURE__ */ g.jsx(
|
|
50790
50793
|
Ke,
|
|
50791
50794
|
{
|
|
@@ -50799,47 +50802,53 @@ function Wfe({ data: e }) {
|
|
|
50799
50802
|
/* @__PURE__ */ g.jsx(
|
|
50800
50803
|
ci,
|
|
50801
50804
|
{
|
|
50802
|
-
data:
|
|
50805
|
+
data: n,
|
|
50803
50806
|
innerRadius: 60,
|
|
50804
50807
|
outerRadius: 90,
|
|
50805
50808
|
paddingAngle: 2,
|
|
50806
50809
|
dataKey: "value",
|
|
50807
50810
|
nameKey: "name",
|
|
50808
|
-
children:
|
|
50811
|
+
children: n.map((i, o) => /* @__PURE__ */ g.jsx(xn, { fill: i.color }, `cell-${o}`))
|
|
50809
50812
|
}
|
|
50810
50813
|
),
|
|
50811
|
-
/* @__PURE__ */ g.jsx(
|
|
50814
|
+
/* @__PURE__ */ g.jsx(
|
|
50815
|
+
It,
|
|
50816
|
+
{
|
|
50817
|
+
formatter: (i) => `${t} ${Number(i).toLocaleString()}`
|
|
50818
|
+
}
|
|
50819
|
+
)
|
|
50812
50820
|
] }) }),
|
|
50813
50821
|
/* @__PURE__ */ g.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center pointer-events-none", children: [
|
|
50814
50822
|
/* @__PURE__ */ g.jsxs("div", { className: "font-medium text-lg leading-[12px] ", children: [
|
|
50815
|
-
|
|
50816
|
-
|
|
50823
|
+
t,
|
|
50824
|
+
" ",
|
|
50825
|
+
(r / 1e6).toFixed(2),
|
|
50817
50826
|
"M"
|
|
50818
50827
|
] }),
|
|
50819
50828
|
/* @__PURE__ */ g.jsx("div", { className: "text-[10px] leading-[12.59px] text-[#121212] mt-[6px]", children: "Total Assets" })
|
|
50820
50829
|
] })
|
|
50821
50830
|
] }),
|
|
50822
50831
|
/* @__PURE__ */ g.jsxs("div", { className: "flex justify-between w-full px-[16px] sm:px-[32px] mt-4 text-[14px]", children: [
|
|
50823
|
-
/* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-[8px]", children:
|
|
50832
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-[8px]", children: n.slice(0, 3).map((i) => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
50824
50833
|
/* @__PURE__ */ g.jsx(
|
|
50825
50834
|
"div",
|
|
50826
50835
|
{
|
|
50827
50836
|
className: "inline-block h-[7px] w-[7px] rotate-45",
|
|
50828
|
-
style: { backgroundColor:
|
|
50837
|
+
style: { backgroundColor: i.color }
|
|
50829
50838
|
}
|
|
50830
50839
|
),
|
|
50831
|
-
/* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children:
|
|
50832
|
-
] },
|
|
50833
|
-
/* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-[8px] items-start", children:
|
|
50840
|
+
/* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children: i.name })
|
|
50841
|
+
] }, i.name)) }),
|
|
50842
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-[8px] items-start", children: n.slice(3).map((i) => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
50834
50843
|
/* @__PURE__ */ g.jsx(
|
|
50835
50844
|
"div",
|
|
50836
50845
|
{
|
|
50837
50846
|
className: "inline-block h-[7px] w-[7px] rotate-45",
|
|
50838
|
-
style: { backgroundColor:
|
|
50847
|
+
style: { backgroundColor: i.color }
|
|
50839
50848
|
}
|
|
50840
50849
|
),
|
|
50841
|
-
/* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children:
|
|
50842
|
-
] },
|
|
50850
|
+
/* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children: i.name })
|
|
50851
|
+
] }, i.name)) })
|
|
50843
50852
|
] })
|
|
50844
50853
|
] })
|
|
50845
50854
|
}
|
|
@@ -51429,7 +51438,7 @@ const cde = ["10 AM", "12 PM", "2 PM", "4 PM", "6 PM", "8 PM", "10 PM"], nf = {
|
|
|
51429
51438
|
usePointStyle: !0,
|
|
51430
51439
|
boxWidth: 10,
|
|
51431
51440
|
boxHeight: 10,
|
|
51432
|
-
padding:
|
|
51441
|
+
padding: 64
|
|
51433
51442
|
}
|
|
51434
51443
|
},
|
|
51435
51444
|
tooltip: {
|