@kashifd/jwero-components 0.6.69 → 0.6.71

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
@@ -5484,7 +5484,7 @@ const Lh = (e) => {
5484
5484
  let t;
5485
5485
  return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2);
5486
5486
  }, AC = Ee(Y1)(
5487
- ({ stroke: e, type: t }) => ({
5487
+ ({ stroke: e, type: t, sx: r }) => ({
5488
5488
  "& .MuiBadge-badge": {
5489
5489
  backgroundColor: "#E30000",
5490
5490
  color: "white",
@@ -5492,25 +5492,26 @@ const Lh = (e) => {
5492
5492
  width: t === "off" ? "8px" : "auto",
5493
5493
  height: t === "off" ? "8px" : "auto",
5494
5494
  minWidth: t === "off" ? "8px" : "auto",
5495
- padding: t === "0" ? "0.125rem 0.25rem" : "0.125rem 0.5rem"
5495
+ padding: t === "off" ? "0.25rem 0.25rem" : "0.25rem 0.5rem",
5496
+ ...r
5496
5497
  }
5497
5498
  })
5498
- ), Q1 = ({ type: e, count: t = 0, stroke: r = !1 }) => {
5499
- let a;
5499
+ ), Q1 = ({ type: e, count: t = 0, stroke: r = !1, sx: a }) => {
5500
+ let s;
5500
5501
  switch (e) {
5501
5502
  case "off":
5502
- a = " ";
5503
+ s = " ";
5503
5504
  break;
5504
5505
  case "single":
5505
- a = t > 99 ? "99+" : t > 0 ? t : " ";
5506
+ s = t > 99 ? "99+" : t > 0 ? t : " ";
5506
5507
  break;
5507
5508
  case "multi":
5508
- a = t > 0 ? t : " ";
5509
+ s = t > 0 ? t : " ";
5509
5510
  break;
5510
5511
  default:
5511
- a = " ";
5512
+ s = " ";
5512
5513
  }
5513
- return /* @__PURE__ */ x.jsx(AC, { badgeContent: a, stroke: r, type: e });
5514
+ return /* @__PURE__ */ x.jsx(AC, { badgeContent: s, stroke: r, type: e, sx: a });
5514
5515
  };
5515
5516
  function wC(e) {
5516
5517
  return pt("MuiSvgIcon", e);
@@ -49649,9 +49650,10 @@ const nz = (e, t = 10) => {
49649
49650
  checked: a = !1,
49650
49651
  onClick: s,
49651
49652
  selectType: c = "checkbox",
49652
- onCompleted: d
49653
+ onCompleted: d,
49654
+ isSelectionAllowed: g = !0
49653
49655
  }) => {
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}`;
49656
+ 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
49657
  return /* @__PURE__ */ x.jsxs(
49656
49658
  Ue,
49657
49659
  {
@@ -49671,7 +49673,7 @@ const nz = (e, t = 10) => {
49671
49673
  children: [
49672
49674
  /* @__PURE__ */ x.jsxs(Ue, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: { gap: "1rem" }, children: [
49673
49675
  /* @__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,
49676
+ I && c === "checkbox" ? /* @__PURE__ */ x.jsx(mc, { checked: a, onChange: d }) : I && c === "radio" ? /* @__PURE__ */ x.jsx(gc, { checked: a, onChange: d }) : null,
49675
49677
  /* @__PURE__ */ x.jsx(
49676
49678
  xt,
49677
49679
  {
@@ -49692,15 +49694,15 @@ const nz = (e, t = 10) => {
49692
49694
  }
49693
49695
  )
49694
49696
  ] }),
49695
- v && /* @__PURE__ */ x.jsx(
49697
+ w && /* @__PURE__ */ x.jsx(
49696
49698
  Ci,
49697
49699
  {
49698
49700
  type: "custom",
49699
49701
  customProps: {
49700
- backgroundColor: T,
49701
- color: O,
49702
- value: R,
49703
- label: R
49702
+ backgroundColor: O,
49703
+ color: R,
49704
+ value: j,
49705
+ label: j
49704
49706
  }
49705
49707
  }
49706
49708
  )
@@ -49733,7 +49735,7 @@ const nz = (e, t = 10) => {
49733
49735
  rr,
49734
49736
  {
49735
49737
  sx: {
49736
- backgroundColor: e != null && e.status ? g : rt.colors.secondary,
49738
+ backgroundColor: e != null && e.status ? m : rt.colors.secondary,
49737
49739
  borderRadius: "0 1.25rem 1.25rem 0",
49738
49740
  width: "0.25rem",
49739
49741
  position: "absolute",