@kashifd/jwero-components 0.8.1 → 0.8.2

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
@@ -49192,44 +49192,47 @@ const OW = ({
49192
49192
  customTableHeader: s,
49193
49193
  onClick: c = () => {
49194
49194
  },
49195
- enableScrollButtons: u = !1,
49196
- pagination: g = {
49195
+ onContextMenu: u = () => {
49196
+ },
49197
+ enableScrollButtons: g = !1,
49198
+ pagination: m = {
49197
49199
  flag: !1,
49198
49200
  currentPage: 1,
49199
49201
  totalPages: 1
49200
49202
  },
49201
- rowsPerPageProps: m = {
49203
+ rowsPerPageProps: b = {
49202
49204
  flag: !1,
49203
49205
  rowsPerPage: 10,
49204
49206
  rowsPerPageOptions: [10, 25, 50, 100],
49205
49207
  onChange: () => {
49206
49208
  }
49207
49209
  },
49208
- tableTitleNoLineBreak: b = !1,
49209
- sx: w
49210
+ tableTitleNoLineBreak: w = !1,
49211
+ sx: T
49210
49212
  }) => {
49211
- const T = [
49213
+ const D = [
49212
49214
  { value: "title", label: "Title", align: "left" },
49213
49215
  { value: "event", label: "Event", align: "left" }
49214
- ], D = {
49215
- title: (I) => /* @__PURE__ */ v.jsx(nt, { children: "EXAMPLE TITLE" }),
49216
- event: (I) => /* @__PURE__ */ v.jsx(nt, { children: "EXAMPLE EVENT" })
49216
+ ], I = {
49217
+ title: (O) => /* @__PURE__ */ v.jsx(nt, { children: "EXAMPLE TITLE" }),
49218
+ event: (O) => /* @__PURE__ */ v.jsx(nt, { children: "EXAMPLE EVENT" })
49217
49219
  };
49218
- return /* @__PURE__ */ v.jsxs(Le, { sx: { gap: "1rem", height: "100%", width: "100%", ...w }, children: [
49220
+ return /* @__PURE__ */ v.jsxs(Le, { sx: { gap: "1rem", height: "100%", width: "100%", ...T }, children: [
49219
49221
  s,
49220
49222
  /* @__PURE__ */ v.jsx(
49221
49223
  lz,
49222
49224
  {
49223
49225
  tableSx: e,
49224
49226
  data: t,
49225
- tableHeaderList: r || T,
49226
- rowData: a || D,
49227
+ tableHeaderList: r || D,
49228
+ rowData: a || I,
49227
49229
  onClick: c,
49228
- enableScrollButtons: u,
49229
- tableTitleNoLineBreak: b
49230
+ onContextMenu: u,
49231
+ enableScrollButtons: g,
49232
+ tableTitleNoLineBreak: w
49230
49233
  }
49231
49234
  ),
49232
- (g.flag || (m == null ? void 0 : m.flag)) && /* @__PURE__ */ v.jsxs(Le, { direction: "row", sx: { width: "100%" }, children: [
49235
+ (m.flag || (b == null ? void 0 : b.flag)) && /* @__PURE__ */ v.jsxs(Le, { direction: "row", sx: { width: "100%" }, children: [
49233
49236
  /* @__PURE__ */ v.jsx(
49234
49237
  Le,
49235
49238
  {
@@ -49237,25 +49240,25 @@ const OW = ({
49237
49240
  alignItems: "center",
49238
49241
  justifyContent: "center",
49239
49242
  sx: { width: "100%" },
49240
- children: g.flag && /* @__PURE__ */ v.jsx(
49243
+ children: m.flag && /* @__PURE__ */ v.jsx(
49241
49244
  cz,
49242
49245
  {
49243
- currentPage: g.currentPage,
49244
- totalPages: g.totalPages,
49245
- onChange: g.onChange,
49246
+ currentPage: m.currentPage,
49247
+ totalPages: m.totalPages,
49248
+ onChange: m.onChange,
49246
49249
  sx: {
49247
- ml: m.flag ? "10%" : "0"
49250
+ ml: b.flag ? "10%" : "0"
49248
49251
  }
49249
49252
  }
49250
49253
  )
49251
49254
  }
49252
49255
  ),
49253
- m.flag && /* @__PURE__ */ v.jsx(
49256
+ b.flag && /* @__PURE__ */ v.jsx(
49254
49257
  dz,
49255
49258
  {
49256
- rowsPerPage: m.rowsPerPage,
49257
- rowsPerPageOptions: m.rowsPerPageOptions,
49258
- onChange: m.onChange,
49259
+ rowsPerPage: b.rowsPerPage,
49260
+ rowsPerPageOptions: b.rowsPerPageOptions,
49261
+ onChange: b.onChange,
49259
49262
  sx: { ml: "1rem" }
49260
49263
  }
49261
49264
  )