next-recomponents 1.9.2 → 1.9.3

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 CHANGED
@@ -44265,8 +44265,8 @@ function HTable(_a) {
44265
44265
  }) }) }),
44266
44266
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tbody", { className: "divide-y divide-gray-200", children: mapedData.map((md, trKey) => {
44267
44267
  var _a2, _b2;
44268
- const start = (page - 1) * maxItems;
44269
- const end = page * maxItems;
44268
+ const start = maxItems == Infinity ? 0 : (page - 1) * maxItems;
44269
+ const end = maxItems == Infinity ? Infinity : page * maxItems;
44270
44270
  if (!hasFilters) {
44271
44271
  if (trKey < start || trKey >= end) return null;
44272
44272
  }
package/dist/index.mjs CHANGED
@@ -44246,8 +44246,8 @@ function HTable(_a) {
44246
44246
  }) }) }),
44247
44247
  /* @__PURE__ */ jsx12("tbody", { className: "divide-y divide-gray-200", children: mapedData.map((md, trKey) => {
44248
44248
  var _a2, _b2;
44249
- const start = (page - 1) * maxItems;
44250
- const end = page * maxItems;
44249
+ const start = maxItems == Infinity ? 0 : (page - 1) * maxItems;
44250
+ const end = maxItems == Infinity ? Infinity : page * maxItems;
44251
44251
  if (!hasFilters) {
44252
44252
  if (trKey < start || trKey >= end) return null;
44253
44253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-recomponents",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "description 2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/table/h.tsx CHANGED
@@ -182,8 +182,8 @@ export default function HTable({
182
182
  </thead>
183
183
  <tbody className="divide-y divide-gray-200">
184
184
  {mapedData.map((md: any, trKey: number) => {
185
- const start = (page - 1) * maxItems;
186
- const end = page * maxItems;
185
+ const start = maxItems == Infinity ? 0 : (page - 1) * maxItems;
186
+ const end = maxItems == Infinity ? Infinity : page * maxItems;
187
187
 
188
188
  if (!hasFilters) {
189
189
  if (trKey < start || trKey >= end) return null;