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