next-recomponents 1.3.4 → 1.3.5
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.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
- package/src/table/h.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -11487,6 +11487,7 @@ function HTable(_a) {
|
|
|
11487
11487
|
}, [data]);
|
|
11488
11488
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("table", __spreadProps(__spreadValues({}, props), { className: "w-full border-collapse table-auto", children: [
|
|
11489
11489
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("thead", { className: "bg-gray-800 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("tr", { children: head.map((h, key) => {
|
|
11490
|
+
var _a2;
|
|
11490
11491
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
11491
11492
|
"th",
|
|
11492
11493
|
{
|
|
@@ -11502,7 +11503,10 @@ function HTable(_a) {
|
|
|
11502
11503
|
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "text-white w-full bg-black rounded p-1 flex justify-center", children: [
|
|
11503
11504
|
h,
|
|
11504
11505
|
" ",
|
|
11505
|
-
!
|
|
11506
|
+
!((_a2 = mapedData == null ? void 0 : mapedData.map((d) => {
|
|
11507
|
+
var _a3;
|
|
11508
|
+
return (_a3 = d[h]) == null ? void 0 : _a3.exclude;
|
|
11509
|
+
})) == null ? void 0 : _a2.every((d) => d === false)) && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "text-red-300", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FilterOffIcon, {}) })
|
|
11506
11510
|
] })
|
|
11507
11511
|
}
|
|
11508
11512
|
),
|
package/dist/index.mjs
CHANGED
|
@@ -11477,6 +11477,7 @@ function HTable(_a) {
|
|
|
11477
11477
|
}, [data]);
|
|
11478
11478
|
return /* @__PURE__ */ jsx11(Fragment4, { children: /* @__PURE__ */ jsxs8("table", __spreadProps(__spreadValues({}, props), { className: "w-full border-collapse table-auto", children: [
|
|
11479
11479
|
/* @__PURE__ */ jsx11("thead", { className: "bg-gray-800 text-white", children: /* @__PURE__ */ jsx11("tr", { children: head.map((h, key) => {
|
|
11480
|
+
var _a2;
|
|
11480
11481
|
return /* @__PURE__ */ jsxs8(
|
|
11481
11482
|
"th",
|
|
11482
11483
|
{
|
|
@@ -11492,7 +11493,10 @@ function HTable(_a) {
|
|
|
11492
11493
|
children: /* @__PURE__ */ jsxs8("div", { className: "text-white w-full bg-black rounded p-1 flex justify-center", children: [
|
|
11493
11494
|
h,
|
|
11494
11495
|
" ",
|
|
11495
|
-
!
|
|
11496
|
+
!((_a2 = mapedData == null ? void 0 : mapedData.map((d) => {
|
|
11497
|
+
var _a3;
|
|
11498
|
+
return (_a3 = d[h]) == null ? void 0 : _a3.exclude;
|
|
11499
|
+
})) == null ? void 0 : _a2.every((d) => d === false)) && /* @__PURE__ */ jsx11("div", { className: "text-red-300", children: /* @__PURE__ */ jsx11(FilterOffIcon, {}) })
|
|
11496
11500
|
] })
|
|
11497
11501
|
}
|
|
11498
11502
|
),
|
package/package.json
CHANGED
package/src/table/h.tsx
CHANGED
|
@@ -84,8 +84,8 @@ export default function HTable({
|
|
|
84
84
|
<div className="text-white w-full bg-black rounded p-1 flex justify-center">
|
|
85
85
|
{h}{" "}
|
|
86
86
|
{!mapedData
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
?.map((d: any) => d[h]?.exclude)
|
|
88
|
+
?.every((d: any) => d === false) && (
|
|
89
89
|
<div className="text-red-300">
|
|
90
90
|
<FilterOffIcon />
|
|
91
91
|
</div>
|