@kashifd/jwero-components 0.7.42 → 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
|
@@ -46404,11 +46404,15 @@ const oa = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46404
46404
|
mt: 1,
|
|
46405
46405
|
height: "2.375rem",
|
|
46406
46406
|
borderRadius: "0.625rem",
|
|
46407
|
+
overflow: "hidden",
|
|
46407
46408
|
backgroundColor: E
|
|
46408
46409
|
},
|
|
46409
46410
|
fullWidth: !0,
|
|
46410
46411
|
SelectDisplayProps: {
|
|
46411
|
-
style: {
|
|
46412
|
+
style: {
|
|
46413
|
+
backgroundColor: E,
|
|
46414
|
+
borderRadius: "0.625rem"
|
|
46415
|
+
}
|
|
46412
46416
|
},
|
|
46413
46417
|
...s,
|
|
46414
46418
|
children: r == null ? void 0 : r.map((W, te) => {
|
|
@@ -48523,10 +48527,12 @@ const fW = ({
|
|
|
48523
48527
|
tableHeaderList: r,
|
|
48524
48528
|
rowData: a,
|
|
48525
48529
|
onClick: s = () => {
|
|
48526
|
-
}
|
|
48530
|
+
},
|
|
48531
|
+
enableScrollButtons: c = !1,
|
|
48532
|
+
tableTitleNoLineBreak: d = !1
|
|
48527
48533
|
}) => {
|
|
48528
|
-
const
|
|
48529
|
-
return /* @__PURE__ */ v.jsx(
|
|
48534
|
+
const g = jt();
|
|
48535
|
+
return /* @__PURE__ */ v.jsx(v.Fragment, { children: /* @__PURE__ */ v.jsx(
|
|
48530
48536
|
iv,
|
|
48531
48537
|
{
|
|
48532
48538
|
component: lo,
|
|
@@ -48535,48 +48541,57 @@ const fW = ({
|
|
|
48535
48541
|
...e
|
|
48536
48542
|
},
|
|
48537
48543
|
children: /* @__PURE__ */ v.jsxs(ov, { stickyHeader: !0, children: [
|
|
48538
|
-
/* @__PURE__ */ v.jsx(sv, { children: /* @__PURE__ */ v.jsx(xd, { sx: { border: 0 }, children: Gr.isArrayWithValues(r) && r.map((
|
|
48544
|
+
/* @__PURE__ */ v.jsx(sv, { children: /* @__PURE__ */ v.jsx(xd, { sx: { border: 0 }, children: Gr.isArrayWithValues(r) && r.map((m) => /* @__PURE__ */ v.jsx(
|
|
48539
48545
|
bd,
|
|
48540
48546
|
{
|
|
48541
48547
|
sx: {
|
|
48542
|
-
backgroundColor:
|
|
48548
|
+
backgroundColor: g.palette.background.paper,
|
|
48543
48549
|
border: 0,
|
|
48544
48550
|
padding: "1rem 1rem 0.5rem 1rem"
|
|
48545
48551
|
},
|
|
48546
|
-
align:
|
|
48547
|
-
children: /* @__PURE__ */ v.jsx(
|
|
48552
|
+
align: m.align,
|
|
48553
|
+
children: /* @__PURE__ */ v.jsx(
|
|
48554
|
+
vt,
|
|
48555
|
+
{
|
|
48556
|
+
sx: {
|
|
48557
|
+
color: g.colors.text_secondary,
|
|
48558
|
+
whiteSpace: d ? "nowrap" : "normal"
|
|
48559
|
+
},
|
|
48560
|
+
children: m.label
|
|
48561
|
+
}
|
|
48562
|
+
)
|
|
48548
48563
|
},
|
|
48549
|
-
|
|
48564
|
+
m.value
|
|
48550
48565
|
)) }) }),
|
|
48551
|
-
/* @__PURE__ */ v.jsx(av, { children: Gr.isArrayWithValues(t) && t.map((
|
|
48566
|
+
/* @__PURE__ */ v.jsx(av, { children: Gr.isArrayWithValues(t) && t.map((m, b) => /* @__PURE__ */ v.jsx(
|
|
48552
48567
|
xd,
|
|
48553
48568
|
{
|
|
48554
|
-
onClick: (
|
|
48569
|
+
onClick: (w) => s(w, m),
|
|
48555
48570
|
sx: {
|
|
48556
48571
|
"&:last-child td, &:last-child th": { border: 0 },
|
|
48557
48572
|
borderBottom: '1px solid "#f5f6f7"',
|
|
48558
48573
|
cursor: "pointer",
|
|
48559
48574
|
transition: "0.3s ease",
|
|
48560
48575
|
"&:hover": {
|
|
48561
|
-
backgroundColor:
|
|
48576
|
+
backgroundColor: g.palette.background.default
|
|
48562
48577
|
}
|
|
48563
48578
|
},
|
|
48564
|
-
children: r.map((
|
|
48579
|
+
children: r.map((w) => /* @__PURE__ */ v.jsx(
|
|
48565
48580
|
bd,
|
|
48566
48581
|
{
|
|
48567
48582
|
component: "th",
|
|
48568
48583
|
scope: "row",
|
|
48569
|
-
align:
|
|
48570
|
-
children: a == null ? void 0 : a[
|
|
48584
|
+
align: w.align,
|
|
48585
|
+
children: a == null ? void 0 : a[w == null ? void 0 : w.value](m)
|
|
48571
48586
|
},
|
|
48572
|
-
|
|
48587
|
+
w.value
|
|
48573
48588
|
))
|
|
48574
48589
|
},
|
|
48575
|
-
`${
|
|
48590
|
+
`${m.id}_${b}`
|
|
48576
48591
|
)) })
|
|
48577
48592
|
] })
|
|
48578
48593
|
}
|
|
48579
|
-
);
|
|
48594
|
+
) });
|
|
48580
48595
|
}, VF = ({
|
|
48581
48596
|
currentPage: e,
|
|
48582
48597
|
totalPages: t,
|
|
@@ -48645,40 +48660,44 @@ const fW = ({
|
|
|
48645
48660
|
customTableHeader: s,
|
|
48646
48661
|
onClick: c = () => {
|
|
48647
48662
|
},
|
|
48648
|
-
|
|
48663
|
+
enableScrollButtons: d = !1,
|
|
48664
|
+
pagination: g = {
|
|
48649
48665
|
flag: !1,
|
|
48650
48666
|
currentPage: 1,
|
|
48651
48667
|
totalPages: 1
|
|
48652
48668
|
},
|
|
48653
|
-
rowsPerPageProps:
|
|
48669
|
+
rowsPerPageProps: m = {
|
|
48654
48670
|
flag: !1,
|
|
48655
48671
|
rowsPerPage: 10,
|
|
48656
48672
|
rowsPerPageOptions: [10, 25, 50, 100],
|
|
48657
48673
|
onChange: () => {
|
|
48658
48674
|
}
|
|
48659
48675
|
},
|
|
48660
|
-
|
|
48676
|
+
tableTitleNoLineBreak: b = !1,
|
|
48677
|
+
sx: w
|
|
48661
48678
|
}) => {
|
|
48662
|
-
const
|
|
48679
|
+
const S = [
|
|
48663
48680
|
{ value: "title", label: "Title", align: "left" },
|
|
48664
48681
|
{ value: "event", label: "Event", align: "left" }
|
|
48665
|
-
],
|
|
48666
|
-
title: (
|
|
48667
|
-
event: (
|
|
48682
|
+
], O = {
|
|
48683
|
+
title: (P) => /* @__PURE__ */ v.jsx(vt, { children: "EXAMPLE TITLE" }),
|
|
48684
|
+
event: (P) => /* @__PURE__ */ v.jsx(vt, { children: "EXAMPLE EVENT" })
|
|
48668
48685
|
};
|
|
48669
|
-
return /* @__PURE__ */ v.jsxs(Ve, { sx: { gap: "1rem", ...
|
|
48686
|
+
return /* @__PURE__ */ v.jsxs(Ve, { sx: { gap: "1rem", height: "100%", width: "100%", ...w }, children: [
|
|
48670
48687
|
s,
|
|
48671
48688
|
/* @__PURE__ */ v.jsx(
|
|
48672
48689
|
YF,
|
|
48673
48690
|
{
|
|
48674
48691
|
tableSx: e,
|
|
48675
48692
|
data: t,
|
|
48676
|
-
tableHeaderList: r ||
|
|
48677
|
-
rowData: a ||
|
|
48678
|
-
onClick: c
|
|
48693
|
+
tableHeaderList: r || S,
|
|
48694
|
+
rowData: a || O,
|
|
48695
|
+
onClick: c,
|
|
48696
|
+
enableScrollButtons: d,
|
|
48697
|
+
tableTitleNoLineBreak: b
|
|
48679
48698
|
}
|
|
48680
48699
|
),
|
|
48681
|
-
(
|
|
48700
|
+
(g.flag || (m == null ? void 0 : m.flag)) && /* @__PURE__ */ v.jsxs(Ve, { direction: "row", sx: { width: "100%" }, children: [
|
|
48682
48701
|
/* @__PURE__ */ v.jsx(
|
|
48683
48702
|
Ve,
|
|
48684
48703
|
{
|
|
@@ -48686,25 +48705,25 @@ const fW = ({
|
|
|
48686
48705
|
alignItems: "center",
|
|
48687
48706
|
justifyContent: "center",
|
|
48688
48707
|
sx: { width: "100%" },
|
|
48689
|
-
children:
|
|
48708
|
+
children: g.flag && /* @__PURE__ */ v.jsx(
|
|
48690
48709
|
VF,
|
|
48691
48710
|
{
|
|
48692
|
-
currentPage:
|
|
48693
|
-
totalPages:
|
|
48694
|
-
onChange:
|
|
48711
|
+
currentPage: g.currentPage,
|
|
48712
|
+
totalPages: g.totalPages,
|
|
48713
|
+
onChange: g.onChange,
|
|
48695
48714
|
sx: {
|
|
48696
|
-
ml:
|
|
48715
|
+
ml: m.flag ? "10%" : "0"
|
|
48697
48716
|
}
|
|
48698
48717
|
}
|
|
48699
48718
|
)
|
|
48700
48719
|
}
|
|
48701
48720
|
),
|
|
48702
|
-
|
|
48721
|
+
m.flag && /* @__PURE__ */ v.jsx(
|
|
48703
48722
|
UF,
|
|
48704
48723
|
{
|
|
48705
|
-
rowsPerPage:
|
|
48706
|
-
rowsPerPageOptions:
|
|
48707
|
-
onChange:
|
|
48724
|
+
rowsPerPage: m.rowsPerPage,
|
|
48725
|
+
rowsPerPageOptions: m.rowsPerPageOptions,
|
|
48726
|
+
onChange: m.onChange,
|
|
48708
48727
|
sx: { ml: "1rem" }
|
|
48709
48728
|
}
|
|
48710
48729
|
)
|
|
@@ -60220,7 +60239,7 @@ const fy = ({ ...e }) => /* @__PURE__ */ v.jsxs(
|
|
|
60220
60239
|
}, c = [
|
|
60221
60240
|
{
|
|
60222
60241
|
name: e || "",
|
|
60223
|
-
data: r == null ? void 0 : r.map((d, g) => (g + 1) * 20)
|
|
60242
|
+
data: r == null ? void 0 : r.map((d, g) => (g + 1) * 20)
|
|
60224
60243
|
}
|
|
60225
60244
|
];
|
|
60226
60245
|
return /* @__PURE__ */ v.jsx(
|