@kashifd/jwero-components 0.8.0 → 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
|
@@ -46457,9 +46457,10 @@ const Na = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46457
46457
|
enterDelay: s = 400,
|
|
46458
46458
|
enterNextDelay: c = 200,
|
|
46459
46459
|
sx: u,
|
|
46460
|
-
childrenSx: g
|
|
46460
|
+
childrenSx: g,
|
|
46461
|
+
tooltipProps: m
|
|
46461
46462
|
}) => {
|
|
46462
|
-
const
|
|
46463
|
+
const b = Ot(), w = a === "primary" ? b.colors.secondary : a === "secondary" ? "#ffffff" : b.colors.positive, T = a === "primary" ? "#ffffff" : a === "secondary" ? "black" : b.colors.positive;
|
|
46463
46464
|
return /* @__PURE__ */ v.jsx(
|
|
46464
46465
|
iv,
|
|
46465
46466
|
{
|
|
@@ -46473,8 +46474,8 @@ const Na = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46473
46474
|
sx: {
|
|
46474
46475
|
fontSize: "0.875rem",
|
|
46475
46476
|
fontWeight: 500,
|
|
46476
|
-
backgroundColor:
|
|
46477
|
-
color:
|
|
46477
|
+
backgroundColor: w,
|
|
46478
|
+
color: T,
|
|
46478
46479
|
padding: "0.75rem",
|
|
46479
46480
|
borderRadius: "0.5rem",
|
|
46480
46481
|
boxShadow: a === "secondary" ? "0px 8px 16px -2px rgba(27, 33, 44, 0.12)" : null,
|
|
@@ -46483,10 +46484,11 @@ const Na = ({ stroke: e = "#000", ...t }) => /* @__PURE__ */ v.jsxs(
|
|
|
46483
46484
|
},
|
|
46484
46485
|
arrow: {
|
|
46485
46486
|
sx: {
|
|
46486
|
-
color:
|
|
46487
|
+
color: w
|
|
46487
46488
|
}
|
|
46488
46489
|
}
|
|
46489
46490
|
},
|
|
46491
|
+
...m,
|
|
46490
46492
|
children: /* @__PURE__ */ v.jsx(Le, { sx: { ...g || {} }, children: e })
|
|
46491
46493
|
}
|
|
46492
46494
|
);
|
|
@@ -49190,44 +49192,47 @@ const OW = ({
|
|
|
49190
49192
|
customTableHeader: s,
|
|
49191
49193
|
onClick: c = () => {
|
|
49192
49194
|
},
|
|
49193
|
-
|
|
49194
|
-
|
|
49195
|
+
onContextMenu: u = () => {
|
|
49196
|
+
},
|
|
49197
|
+
enableScrollButtons: g = !1,
|
|
49198
|
+
pagination: m = {
|
|
49195
49199
|
flag: !1,
|
|
49196
49200
|
currentPage: 1,
|
|
49197
49201
|
totalPages: 1
|
|
49198
49202
|
},
|
|
49199
|
-
rowsPerPageProps:
|
|
49203
|
+
rowsPerPageProps: b = {
|
|
49200
49204
|
flag: !1,
|
|
49201
49205
|
rowsPerPage: 10,
|
|
49202
49206
|
rowsPerPageOptions: [10, 25, 50, 100],
|
|
49203
49207
|
onChange: () => {
|
|
49204
49208
|
}
|
|
49205
49209
|
},
|
|
49206
|
-
tableTitleNoLineBreak:
|
|
49207
|
-
sx:
|
|
49210
|
+
tableTitleNoLineBreak: w = !1,
|
|
49211
|
+
sx: T
|
|
49208
49212
|
}) => {
|
|
49209
|
-
const
|
|
49213
|
+
const D = [
|
|
49210
49214
|
{ value: "title", label: "Title", align: "left" },
|
|
49211
49215
|
{ value: "event", label: "Event", align: "left" }
|
|
49212
|
-
],
|
|
49213
|
-
title: (
|
|
49214
|
-
event: (
|
|
49216
|
+
], I = {
|
|
49217
|
+
title: (O) => /* @__PURE__ */ v.jsx(nt, { children: "EXAMPLE TITLE" }),
|
|
49218
|
+
event: (O) => /* @__PURE__ */ v.jsx(nt, { children: "EXAMPLE EVENT" })
|
|
49215
49219
|
};
|
|
49216
|
-
return /* @__PURE__ */ v.jsxs(Le, { sx: { gap: "1rem", height: "100%", width: "100%", ...
|
|
49220
|
+
return /* @__PURE__ */ v.jsxs(Le, { sx: { gap: "1rem", height: "100%", width: "100%", ...T }, children: [
|
|
49217
49221
|
s,
|
|
49218
49222
|
/* @__PURE__ */ v.jsx(
|
|
49219
49223
|
lz,
|
|
49220
49224
|
{
|
|
49221
49225
|
tableSx: e,
|
|
49222
49226
|
data: t,
|
|
49223
|
-
tableHeaderList: r ||
|
|
49224
|
-
rowData: a ||
|
|
49227
|
+
tableHeaderList: r || D,
|
|
49228
|
+
rowData: a || I,
|
|
49225
49229
|
onClick: c,
|
|
49226
|
-
|
|
49227
|
-
|
|
49230
|
+
onContextMenu: u,
|
|
49231
|
+
enableScrollButtons: g,
|
|
49232
|
+
tableTitleNoLineBreak: w
|
|
49228
49233
|
}
|
|
49229
49234
|
),
|
|
49230
|
-
(
|
|
49235
|
+
(m.flag || (b == null ? void 0 : b.flag)) && /* @__PURE__ */ v.jsxs(Le, { direction: "row", sx: { width: "100%" }, children: [
|
|
49231
49236
|
/* @__PURE__ */ v.jsx(
|
|
49232
49237
|
Le,
|
|
49233
49238
|
{
|
|
@@ -49235,25 +49240,25 @@ const OW = ({
|
|
|
49235
49240
|
alignItems: "center",
|
|
49236
49241
|
justifyContent: "center",
|
|
49237
49242
|
sx: { width: "100%" },
|
|
49238
|
-
children:
|
|
49243
|
+
children: m.flag && /* @__PURE__ */ v.jsx(
|
|
49239
49244
|
cz,
|
|
49240
49245
|
{
|
|
49241
|
-
currentPage:
|
|
49242
|
-
totalPages:
|
|
49243
|
-
onChange:
|
|
49246
|
+
currentPage: m.currentPage,
|
|
49247
|
+
totalPages: m.totalPages,
|
|
49248
|
+
onChange: m.onChange,
|
|
49244
49249
|
sx: {
|
|
49245
|
-
ml:
|
|
49250
|
+
ml: b.flag ? "10%" : "0"
|
|
49246
49251
|
}
|
|
49247
49252
|
}
|
|
49248
49253
|
)
|
|
49249
49254
|
}
|
|
49250
49255
|
),
|
|
49251
|
-
|
|
49256
|
+
b.flag && /* @__PURE__ */ v.jsx(
|
|
49252
49257
|
dz,
|
|
49253
49258
|
{
|
|
49254
|
-
rowsPerPage:
|
|
49255
|
-
rowsPerPageOptions:
|
|
49256
|
-
onChange:
|
|
49259
|
+
rowsPerPage: b.rowsPerPage,
|
|
49260
|
+
rowsPerPageOptions: b.rowsPerPageOptions,
|
|
49261
|
+
onChange: b.onChange,
|
|
49257
49262
|
sx: { ml: "1rem" }
|
|
49258
49263
|
}
|
|
49259
49264
|
)
|