@kashifd/jwero-components 0.6.69 → 0.6.70

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
@@ -49649,9 +49649,10 @@ const nz = (e, t = 10) => {
49649
49649
  checked: a = !1,
49650
49650
  onClick: s,
49651
49651
  selectType: c = "checkbox",
49652
- onCompleted: d
49652
+ onCompleted: d,
49653
+ isSelectionAllowed: g = !0
49653
49654
  }) => {
49654
- const g = oz((e == null ? void 0 : e.status) || ""), { isOverdue: m, showDueDate: v, label: w } = rz({ 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}`;
49655
+ const m = oz((e == null ? void 0 : e.status) || ""), { isOverdue: v, showDueDate: w, label: T } = rz({ dueDate: e == null ? void 0 : e.dueDate, completedOn: e == null ? void 0 : e.completedOn, type: e == null ? void 0 : e.status }), O = v ? rt.colors.light_red : rt.colors.light_green, R = v ? rt.colors.negative : rt.colors.positive, j = v ? `Overdue ${T}` : `Completed ${T}`, I = g && (e == null ? void 0 : e.status) !== "completed";
49655
49656
  return /* @__PURE__ */ x.jsxs(
49656
49657
  Ue,
49657
49658
  {
@@ -49671,7 +49672,7 @@ const nz = (e, t = 10) => {
49671
49672
  children: [
49672
49673
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { gap: "1rem" }, children: [
49673
49674
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", gap: "0.35rem", children: [
49674
- (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,
49675
+ I && c === "checkbox" ? /* @__PURE__ */ x.jsx(mc, { checked: a, onChange: d }) : I && c === "radio" ? /* @__PURE__ */ x.jsx(gc, { checked: a, onChange: d }) : null,
49675
49676
  /* @__PURE__ */ x.jsx(
49676
49677
  xt,
49677
49678
  {
@@ -49692,15 +49693,15 @@ const nz = (e, t = 10) => {
49692
49693
  }
49693
49694
  )
49694
49695
  ] }),
49695
- v && /* @__PURE__ */ x.jsx(
49696
+ w && /* @__PURE__ */ x.jsx(
49696
49697
  Ci,
49697
49698
  {
49698
49699
  type: "custom",
49699
49700
  customProps: {
49700
- backgroundColor: T,
49701
- color: O,
49702
- value: R,
49703
- label: R
49701
+ backgroundColor: O,
49702
+ color: R,
49703
+ value: j,
49704
+ label: j
49704
49705
  }
49705
49706
  }
49706
49707
  )
@@ -49733,7 +49734,7 @@ const nz = (e, t = 10) => {
49733
49734
  rr,
49734
49735
  {
49735
49736
  sx: {
49736
- backgroundColor: e != null && e.status ? g : rt.colors.secondary,
49737
+ backgroundColor: e != null && e.status ? m : rt.colors.secondary,
49737
49738
  borderRadius: "0 1.25rem 1.25rem 0",
49738
49739
  width: "0.25rem",
49739
49740
  position: "absolute",