@kashifd/jwero-components 0.6.55 → 0.6.57

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
@@ -49646,17 +49646,11 @@ 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 d = nz((e == null ? void 0 : e.status) || ""), { isOverdue: g, showDueDate: m, label: v } = tz({ dueDate: e == null ? void 0 : e.dueDate, completedOn: e == null ? void 0 : e.completedOn, type: e == null ? void 0 : e.status }), w = g ? rt.colors.light_red : rt.colors.light_green, T = g ? rt.colors.negative : rt.colors.positive, O = g ? `Overdue ${v}` : `Completed ${v}`;
49652
- console.log(g, m, v);
49653
- const R = [
49654
- {
49655
- name: (e == null ? void 0 : e.createdBy) || "",
49656
- id: 9999
49657
- }
49658
- ];
49659
- return /* @__PURE__ */ x.jsxs(
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
+ return console.log(m, v, w), /* @__PURE__ */ x.jsxs(
49660
49654
  Ue,
49661
49655
  {
49662
49656
  onClick: s,
@@ -49666,7 +49660,7 @@ const nz = (e) => {
49666
49660
  borderRadius: "1rem",
49667
49661
  backgroundColor: "#fff",
49668
49662
  position: "relative",
49669
- width: "fit-content",
49663
+ width: "100%",
49670
49664
  height: "fit-content",
49671
49665
  boxShadow: "0px 4px 16px 0px rgba(0, 0, 0, 0.12)",
49672
49666
  cursor: "pointer",
@@ -49675,7 +49669,7 @@ const nz = (e) => {
49675
49669
  children: [
49676
49670
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { gap: "1rem" }, children: [
49677
49671
  /* @__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,
49672
+ (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
49673
  /* @__PURE__ */ x.jsx(
49680
49674
  yt,
49681
49675
  {
@@ -49696,15 +49690,15 @@ const nz = (e) => {
49696
49690
  }
49697
49691
  )
49698
49692
  ] }),
49699
- m && /* @__PURE__ */ x.jsx(
49693
+ v && /* @__PURE__ */ x.jsx(
49700
49694
  Ci,
49701
49695
  {
49702
49696
  type: "custom",
49703
49697
  customProps: {
49704
- backgroundColor: w,
49705
- color: T,
49706
- value: O,
49707
- label: O
49698
+ backgroundColor: T,
49699
+ color: O,
49700
+ value: R,
49701
+ label: R
49708
49702
  }
49709
49703
  }
49710
49704
  )
@@ -49719,7 +49713,7 @@ const nz = (e) => {
49719
49713
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { gap: "0.5rem" }, children: [
49720
49714
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", sx: { gap: "0.25rem" }, children: [
49721
49715
  /* @__PURE__ */ x.jsx(yt, { variant: "lRegular", children: "Created by" }),
49722
- /* @__PURE__ */ x.jsx($u, { contributors: R || [] })
49716
+ /* @__PURE__ */ x.jsx($u, { contributors: [e == null ? void 0 : e.createdBy] })
49723
49717
  ] }),
49724
49718
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", sx: { gap: "0.5rem" }, children: [
49725
49719
  /* @__PURE__ */ x.jsx(yt, { variant: "lRegular", children: "For" }),
@@ -49730,7 +49724,7 @@ const nz = (e) => {
49730
49724
  rr,
49731
49725
  {
49732
49726
  sx: {
49733
- backgroundColor: e != null && e.status ? d : rt.colors.secondary,
49727
+ backgroundColor: e != null && e.status ? g : rt.colors.secondary,
49734
49728
  borderRadius: "0 1.25rem 1.25rem 0",
49735
49729
  width: "0.25rem",
49736
49730
  position: "absolute",