@kashifd/jwero-components 0.7.43 → 0.7.44

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
@@ -48528,9 +48528,10 @@ const fW = ({
48528
48528
  rowData: a,
48529
48529
  onClick: s = () => {
48530
48530
  },
48531
- enableScrollButtons: c = !1
48531
+ enableScrollButtons: c = !1,
48532
+ tableTitleNoLineBreak: d = !1
48532
48533
  }) => {
48533
- const d = jt();
48534
+ const g = jt();
48534
48535
  return /* @__PURE__ */ v.jsx(v.Fragment, { children: /* @__PURE__ */ v.jsx(
48535
48536
  iv,
48536
48537
  {
@@ -48540,50 +48541,53 @@ const fW = ({
48540
48541
  ...e
48541
48542
  },
48542
48543
  children: /* @__PURE__ */ v.jsxs(ov, { stickyHeader: !0, children: [
48543
- /* @__PURE__ */ v.jsx(sv, { children: /* @__PURE__ */ v.jsx(xd, { sx: { border: 0 }, children: Gr.isArrayWithValues(r) && r.map((g) => /* @__PURE__ */ v.jsx(
48544
+ /* @__PURE__ */ v.jsx(sv, { children: /* @__PURE__ */ v.jsx(xd, { sx: { border: 0 }, children: Gr.isArrayWithValues(r) && r.map((m) => /* @__PURE__ */ v.jsx(
48544
48545
  bd,
48545
48546
  {
48546
48547
  sx: {
48547
- backgroundColor: d.palette.background.paper,
48548
+ backgroundColor: g.palette.background.paper,
48548
48549
  border: 0,
48549
48550
  padding: "1rem 1rem 0.5rem 1rem"
48550
48551
  },
48551
- align: g.align,
48552
+ align: m.align,
48552
48553
  children: /* @__PURE__ */ v.jsx(
48553
48554
  vt,
48554
48555
  {
48555
- sx: { color: d.colors.text_secondary },
48556
- children: g.label
48556
+ sx: {
48557
+ color: g.colors.text_secondary,
48558
+ whiteSpace: d ? "nowrap" : "normal"
48559
+ },
48560
+ children: m.label
48557
48561
  }
48558
48562
  )
48559
48563
  },
48560
- g.value
48564
+ m.value
48561
48565
  )) }) }),
48562
- /* @__PURE__ */ v.jsx(av, { children: Gr.isArrayWithValues(t) && t.map((g, m) => /* @__PURE__ */ v.jsx(
48566
+ /* @__PURE__ */ v.jsx(av, { children: Gr.isArrayWithValues(t) && t.map((m, b) => /* @__PURE__ */ v.jsx(
48563
48567
  xd,
48564
48568
  {
48565
- onClick: (b) => s(b, g),
48569
+ onClick: (w) => s(w, m),
48566
48570
  sx: {
48567
48571
  "&:last-child td, &:last-child th": { border: 0 },
48568
48572
  borderBottom: '1px solid "#f5f6f7"',
48569
48573
  cursor: "pointer",
48570
48574
  transition: "0.3s ease",
48571
48575
  "&:hover": {
48572
- backgroundColor: d.palette.background.default
48576
+ backgroundColor: g.palette.background.default
48573
48577
  }
48574
48578
  },
48575
- children: r.map((b) => /* @__PURE__ */ v.jsx(
48579
+ children: r.map((w) => /* @__PURE__ */ v.jsx(
48576
48580
  bd,
48577
48581
  {
48578
48582
  component: "th",
48579
48583
  scope: "row",
48580
- align: b.align,
48581
- children: a == null ? void 0 : a[b == null ? void 0 : b.value](g)
48584
+ align: w.align,
48585
+ children: a == null ? void 0 : a[w == null ? void 0 : w.value](m)
48582
48586
  },
48583
- b.value
48587
+ w.value
48584
48588
  ))
48585
48589
  },
48586
- `${g.id}_${m}`
48590
+ `${m.id}_${b}`
48587
48591
  )) })
48588
48592
  ] })
48589
48593
  }
@@ -48669,26 +48673,28 @@ const fW = ({
48669
48673
  onChange: () => {
48670
48674
  }
48671
48675
  },
48672
- sx: b
48676
+ tableTitleNoLineBreak: b = !1,
48677
+ sx: w
48673
48678
  }) => {
48674
- const w = [
48679
+ const S = [
48675
48680
  { value: "title", label: "Title", align: "left" },
48676
48681
  { value: "event", label: "Event", align: "left" }
48677
- ], S = {
48678
- title: (O) => /* @__PURE__ */ v.jsx(vt, { children: "EXAMPLE TITLE" }),
48679
- event: (O) => /* @__PURE__ */ v.jsx(vt, { children: "EXAMPLE EVENT" })
48682
+ ], O = {
48683
+ title: (P) => /* @__PURE__ */ v.jsx(vt, { children: "EXAMPLE TITLE" }),
48684
+ event: (P) => /* @__PURE__ */ v.jsx(vt, { children: "EXAMPLE EVENT" })
48680
48685
  };
48681
- return /* @__PURE__ */ v.jsxs(Ve, { sx: { gap: "1rem", height: "100%", width: "100%", ...b }, children: [
48686
+ return /* @__PURE__ */ v.jsxs(Ve, { sx: { gap: "1rem", height: "100%", width: "100%", ...w }, children: [
48682
48687
  s,
48683
48688
  /* @__PURE__ */ v.jsx(
48684
48689
  YF,
48685
48690
  {
48686
48691
  tableSx: e,
48687
48692
  data: t,
48688
- tableHeaderList: r || w,
48689
- rowData: a || S,
48693
+ tableHeaderList: r || S,
48694
+ rowData: a || O,
48690
48695
  onClick: c,
48691
- enableScrollButtons: d
48696
+ enableScrollButtons: d,
48697
+ tableTitleNoLineBreak: b
48692
48698
  }
48693
48699
  ),
48694
48700
  (g.flag || (m == null ? void 0 : m.flag)) && /* @__PURE__ */ v.jsxs(Ve, { direction: "row", sx: { width: "100%" }, children: [