@kashifd/jwero-components 0.6.55 → 0.6.56
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 +13 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -49646,11 +49646,12 @@ const nz = (e) => {
|
|
|
49646
49646
|
},
|
|
49647
49647
|
checked: a = !1,
|
|
49648
49648
|
onClick: s,
|
|
49649
|
-
selectType: c = "checkbox"
|
|
49649
|
+
selectType: c = "checkbox",
|
|
49650
|
+
onCompleted: d
|
|
49650
49651
|
}) => {
|
|
49651
|
-
const
|
|
49652
|
-
console.log(
|
|
49653
|
-
const
|
|
49652
|
+
const g = nz((e == null ? void 0 : e.status) || ""), { isOverdue: m, showDueDate: v, label: w } = tz({ dueDate: e == null ? void 0 : e.dueDate, completedOn: e == null ? void 0 : e.completedOn, type: e == null ? void 0 : e.status }), T = m ? rt.colors.light_red : rt.colors.light_green, O = m ? rt.colors.negative : rt.colors.positive, R = m ? `Overdue ${w}` : `Completed ${w}`;
|
|
49653
|
+
console.log(m, v, w);
|
|
49654
|
+
const j = [
|
|
49654
49655
|
{
|
|
49655
49656
|
name: (e == null ? void 0 : e.createdBy) || "",
|
|
49656
49657
|
id: 9999
|
|
@@ -49675,7 +49676,7 @@ const nz = (e) => {
|
|
|
49675
49676
|
children: [
|
|
49676
49677
|
/* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { gap: "1rem" }, children: [
|
|
49677
49678
|
/* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", gap: "0.35rem", children: [
|
|
49678
|
-
(e == null ? void 0 : e.status) !== "completed" && c === "checkbox" ? /* @__PURE__ */ x.jsx(mc, { checked: a }) : (e == null ? void 0 : e.status) !== "completed" && c === "radio" ? /* @__PURE__ */ x.jsx(gc, { checked: a }) : null,
|
|
49679
|
+
(e == null ? void 0 : e.status) !== "completed" && c === "checkbox" ? /* @__PURE__ */ x.jsx(mc, { checked: a, onChange: d }) : (e == null ? void 0 : e.status) !== "completed" && c === "radio" ? /* @__PURE__ */ x.jsx(gc, { checked: a, onChange: d }) : null,
|
|
49679
49680
|
/* @__PURE__ */ x.jsx(
|
|
49680
49681
|
yt,
|
|
49681
49682
|
{
|
|
@@ -49696,15 +49697,15 @@ const nz = (e) => {
|
|
|
49696
49697
|
}
|
|
49697
49698
|
)
|
|
49698
49699
|
] }),
|
|
49699
|
-
|
|
49700
|
+
v && /* @__PURE__ */ x.jsx(
|
|
49700
49701
|
Ci,
|
|
49701
49702
|
{
|
|
49702
49703
|
type: "custom",
|
|
49703
49704
|
customProps: {
|
|
49704
|
-
backgroundColor:
|
|
49705
|
-
color:
|
|
49706
|
-
value:
|
|
49707
|
-
label:
|
|
49705
|
+
backgroundColor: T,
|
|
49706
|
+
color: O,
|
|
49707
|
+
value: R,
|
|
49708
|
+
label: R
|
|
49708
49709
|
}
|
|
49709
49710
|
}
|
|
49710
49711
|
)
|
|
@@ -49719,7 +49720,7 @@ const nz = (e) => {
|
|
|
49719
49720
|
/* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { gap: "0.5rem" }, children: [
|
|
49720
49721
|
/* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", sx: { gap: "0.25rem" }, children: [
|
|
49721
49722
|
/* @__PURE__ */ x.jsx(yt, { variant: "lRegular", children: "Created by" }),
|
|
49722
|
-
/* @__PURE__ */ x.jsx($u, { contributors:
|
|
49723
|
+
/* @__PURE__ */ x.jsx($u, { contributors: j || [] })
|
|
49723
49724
|
] }),
|
|
49724
49725
|
/* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", sx: { gap: "0.5rem" }, children: [
|
|
49725
49726
|
/* @__PURE__ */ x.jsx(yt, { variant: "lRegular", children: "For" }),
|
|
@@ -49730,7 +49731,7 @@ const nz = (e) => {
|
|
|
49730
49731
|
rr,
|
|
49731
49732
|
{
|
|
49732
49733
|
sx: {
|
|
49733
|
-
backgroundColor: e != null && e.status ?
|
|
49734
|
+
backgroundColor: e != null && e.status ? g : rt.colors.secondary,
|
|
49734
49735
|
borderRadius: "0 1.25rem 1.25rem 0",
|
|
49735
49736
|
width: "0.25rem",
|
|
49736
49737
|
position: "absolute",
|