anarock-widgets 1.0.263 → 1.0.264

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.es.js CHANGED
@@ -50784,11 +50784,8 @@ 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, 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
- );
50787
+ function Wfe({ data: e }) {
50788
+ const t = Array.isArray(e) && e.length > 0 ? e : Nue, n = t.reduce((r, i) => r + Number(i.value ?? 0), 0);
50792
50789
  return /* @__PURE__ */ g.jsx(
50793
50790
  Ke,
50794
50791
  {
@@ -50802,53 +50799,47 @@ function Wfe({ data: e, currency: t = "AED" }) {
50802
50799
  /* @__PURE__ */ g.jsx(
50803
50800
  ci,
50804
50801
  {
50805
- data: n,
50802
+ data: t,
50806
50803
  innerRadius: 60,
50807
50804
  outerRadius: 90,
50808
50805
  paddingAngle: 2,
50809
50806
  dataKey: "value",
50810
50807
  nameKey: "name",
50811
- children: n.map((i, o) => /* @__PURE__ */ g.jsx(xn, { fill: i.color }, `cell-${o}`))
50808
+ children: t.map((r, i) => /* @__PURE__ */ g.jsx(xn, { fill: r.color }, `cell-${i}`))
50812
50809
  }
50813
50810
  ),
50814
- /* @__PURE__ */ g.jsx(
50815
- It,
50816
- {
50817
- formatter: (i) => `${t} ${Number(i).toLocaleString()}`
50818
- }
50819
- )
50811
+ /* @__PURE__ */ g.jsx(It, { formatter: (r) => `AED ${r.toLocaleString()}` })
50820
50812
  ] }) }),
50821
50813
  /* @__PURE__ */ g.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center pointer-events-none", children: [
50822
50814
  /* @__PURE__ */ g.jsxs("div", { className: "font-medium text-lg leading-[12px] ", children: [
50823
- t,
50824
- " ",
50825
- (r / 1e6).toFixed(2),
50815
+ "AED ",
50816
+ (n / 1e6).toFixed(2),
50826
50817
  "M"
50827
50818
  ] }),
50828
50819
  /* @__PURE__ */ g.jsx("div", { className: "text-[10px] leading-[12.59px] text-[#121212] mt-[6px]", children: "Total Assets" })
50829
50820
  ] })
50830
50821
  ] }),
50831
50822
  /* @__PURE__ */ g.jsxs("div", { className: "flex justify-between w-full px-[16px] sm:px-[32px] mt-4 text-[14px]", 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: [
50823
+ /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-[8px]", children: t.slice(0, 3).map((r) => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-[8px]", children: [
50833
50824
  /* @__PURE__ */ g.jsx(
50834
50825
  "div",
50835
50826
  {
50836
50827
  className: "inline-block h-[7px] w-[7px] rotate-45",
50837
- style: { backgroundColor: i.color }
50828
+ style: { backgroundColor: r.color }
50838
50829
  }
50839
50830
  ),
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: [
50831
+ /* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children: r.name })
50832
+ ] }, r.name)) }),
50833
+ /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-[8px] items-start", children: t.slice(3).map((r) => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-[8px]", children: [
50843
50834
  /* @__PURE__ */ g.jsx(
50844
50835
  "div",
50845
50836
  {
50846
50837
  className: "inline-block h-[7px] w-[7px] rotate-45",
50847
- style: { backgroundColor: i.color }
50838
+ style: { backgroundColor: r.color }
50848
50839
  }
50849
50840
  ),
50850
- /* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children: i.name })
50851
- ] }, i.name)) })
50841
+ /* @__PURE__ */ g.jsx("div", { className: "text-[#64748B] leading-[16px] !text-[12px]", children: r.name })
50842
+ ] }, r.name)) })
50852
50843
  ] })
50853
50844
  ] })
50854
50845
  }
@@ -51381,7 +51372,15 @@ qn.register(
51381
51372
  ei,
51382
51373
  ui
51383
51374
  );
51384
- const cde = ["10 AM", "12 PM", "2 PM", "4 PM", "6 PM", "8 PM", "10 PM"], nf = {
51375
+ const cde = [
51376
+ "10 AM",
51377
+ "12 PM",
51378
+ "2 PM",
51379
+ "4 PM",
51380
+ "6 PM",
51381
+ "8 PM",
51382
+ "10 PM"
51383
+ ], nf = {
51385
51384
  guest: [9, 5, 12, 7, 3, 6, 4],
51386
51385
  cab: [15, 12, 10, 14, 7, 12, 8],
51387
51386
  delivery: [22, 18, 16, 20, 22, 14, 17],
@@ -51438,7 +51437,7 @@ const cde = ["10 AM", "12 PM", "2 PM", "4 PM", "6 PM", "8 PM", "10 PM"], nf = {
51438
51437
  usePointStyle: !0,
51439
51438
  boxWidth: 10,
51440
51439
  boxHeight: 10,
51441
- padding: 64
51440
+ padding: 20
51442
51441
  }
51443
51442
  },
51444
51443
  tooltip: {