anarock-widgets 1.0.82 → 1.0.83
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 +1 -1
- package/dist/index.es.js +43 -61
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -45963,81 +45963,63 @@ function Ene({ data: e = {} }) {
|
|
|
45963
45963
|
function wte(e) {
|
|
45964
45964
|
return Je({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinejoin: "round", strokeWidth: "32", d: "M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160" }, child: [] }] })(e);
|
|
45965
45965
|
}
|
|
45966
|
-
|
|
45967
|
-
|
|
45968
|
-
|
|
45969
|
-
|
|
45970
|
-
|
|
45971
|
-
|
|
45972
|
-
|
|
45973
|
-
|
|
45974
|
-
|
|
45966
|
+
const Ote = {
|
|
45967
|
+
open_complaints: {
|
|
45968
|
+
title: "Open Complaints",
|
|
45969
|
+
Icon: E_,
|
|
45970
|
+
iconColor: "text-[#AB0000]",
|
|
45971
|
+
deltaLabel: "Compared to last month"
|
|
45972
|
+
},
|
|
45973
|
+
pending_requests: {
|
|
45974
|
+
title: "Pending Requests",
|
|
45975
|
+
Icon: wte,
|
|
45976
|
+
iconColor: "text-[#E7A015]",
|
|
45977
|
+
deltaLabel: "Compared to last month"
|
|
45978
|
+
},
|
|
45979
|
+
avg_response_time: {
|
|
45980
|
+
title: "Avg Response Time",
|
|
45981
|
+
Icon: vR,
|
|
45982
|
+
iconColor: "text-[#1FA05B]",
|
|
45983
|
+
deltaLabel: "Compared to last month"
|
|
45984
|
+
},
|
|
45985
|
+
resolution_rate: {
|
|
45986
|
+
title: "Resolution Rate",
|
|
45987
|
+
Icon: pR,
|
|
45988
|
+
iconColor: "text-[#329DFF]",
|
|
45989
|
+
deltaLabel: "Compared to last month"
|
|
45990
|
+
}
|
|
45991
|
+
};
|
|
45992
|
+
function _ne({ id: e, data: t }) {
|
|
45993
|
+
const n = Ote[e];
|
|
45994
|
+
if (!n)
|
|
45995
|
+
return console.warn(`Unknown StatCard id: ${e}`), null;
|
|
45996
|
+
const {
|
|
45997
|
+
title: r,
|
|
45998
|
+
Icon: i = Nl,
|
|
45999
|
+
iconColor: o,
|
|
46000
|
+
deltaLabel: a
|
|
46001
|
+
} = n, s = t?.current ?? "—", l = t?.trend_percent ?? "—", c = t?.direction === "good" || t?.direction === "neutral";
|
|
45975
46002
|
return /* @__PURE__ */ w.jsxs(
|
|
45976
46003
|
ft,
|
|
45977
46004
|
{
|
|
45978
|
-
title:
|
|
45979
|
-
icon: /* @__PURE__ */ w.jsx("div", { className: "h-6 w-6
|
|
46005
|
+
title: r,
|
|
46006
|
+
icon: /* @__PURE__ */ w.jsx("div", { className: "h-6 w-6 flex items-center justify-center", children: /* @__PURE__ */ w.jsx(i, { className: `h-6 w-6 ${o}` }) }),
|
|
45980
46007
|
children: [
|
|
45981
|
-
/* @__PURE__ */ w.jsx("div", { className: "text-4xl font-semibold tracking-tight text-[#121212]", children:
|
|
45982
|
-
/* @__PURE__ */ w.jsxs("div", { className: "flex items-center gap-[8px] text-[14px]", children: [
|
|
46008
|
+
/* @__PURE__ */ w.jsx("div", { className: "text-4xl font-semibold tracking-tight text-[#121212]", children: s }),
|
|
46009
|
+
/* @__PURE__ */ w.jsxs("div", { className: "flex items-center gap-[8px] text-[14px] mt-2", children: [
|
|
45983
46010
|
/* @__PURE__ */ w.jsx(
|
|
45984
46011
|
"div",
|
|
45985
46012
|
{
|
|
45986
|
-
className:
|
|
45987
|
-
children:
|
|
46013
|
+
className: c ? "text-emerald-600 font-medium" : "text-rose-600 font-medium",
|
|
46014
|
+
children: l
|
|
45988
46015
|
}
|
|
45989
46016
|
),
|
|
45990
|
-
/* @__PURE__ */ w.jsx("div", { className: "text-slate-500", children:
|
|
46017
|
+
/* @__PURE__ */ w.jsx("div", { className: "text-slate-500", children: a })
|
|
45991
46018
|
] })
|
|
45992
46019
|
]
|
|
45993
46020
|
}
|
|
45994
46021
|
);
|
|
45995
46022
|
}
|
|
45996
|
-
function _ne({ data: e }) {
|
|
45997
|
-
console.log(e, "stats grid data");
|
|
45998
|
-
const n = [
|
|
45999
|
-
{
|
|
46000
|
-
key: "open_complaints",
|
|
46001
|
-
title: "Open Complaints",
|
|
46002
|
-
Icon: E_,
|
|
46003
|
-
iconColor: "text-[#AB0000]",
|
|
46004
|
-
deltaLabel: "Compared to last month"
|
|
46005
|
-
},
|
|
46006
|
-
{
|
|
46007
|
-
key: "pending_requests",
|
|
46008
|
-
title: "Pending Requests",
|
|
46009
|
-
Icon: wte,
|
|
46010
|
-
iconColor: "text-[#E7A015]",
|
|
46011
|
-
deltaLabel: "Compared to last month"
|
|
46012
|
-
},
|
|
46013
|
-
{
|
|
46014
|
-
key: "avg_response_time",
|
|
46015
|
-
title: "Avg Response Time",
|
|
46016
|
-
Icon: vR,
|
|
46017
|
-
iconColor: "text-[#1FA05B]",
|
|
46018
|
-
deltaLabel: "Compared to last month"
|
|
46019
|
-
},
|
|
46020
|
-
{
|
|
46021
|
-
key: "resolution_rate",
|
|
46022
|
-
title: "Resolution Rate",
|
|
46023
|
-
Icon: pR,
|
|
46024
|
-
iconColor: "text-[#329DFF]",
|
|
46025
|
-
deltaLabel: "Compared to last month"
|
|
46026
|
-
}
|
|
46027
|
-
].map((r) => {
|
|
46028
|
-
const i = e?.[r.key] || {};
|
|
46029
|
-
return {
|
|
46030
|
-
title: r.title,
|
|
46031
|
-
value: i.current ?? "—",
|
|
46032
|
-
delta: i.trend_percent ?? "—",
|
|
46033
|
-
positive: i.direction === "good" || i.direction === "neutral",
|
|
46034
|
-
Icon: r.Icon,
|
|
46035
|
-
iconColor: r.iconColor,
|
|
46036
|
-
deltaLabel: r.deltaLabel
|
|
46037
|
-
};
|
|
46038
|
-
});
|
|
46039
|
-
return /* @__PURE__ */ w.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: n.map((r, i) => /* @__PURE__ */ w.jsx(Ote, { ...r }, i)) });
|
|
46040
|
-
}
|
|
46041
46023
|
function AE({ title: e, date: t, rsvp: n, utilisation: r, status: i }) {
|
|
46042
46024
|
return /* @__PURE__ */ w.jsxs("div", { className: " bg-[#F8FAFC] h-[106px] px-3 mt-3", children: [
|
|
46043
46025
|
/* @__PURE__ */ w.jsxs("div", { className: "flex items-center justify-between", children: [
|