najm-kit 2.2.7 → 2.2.8

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -8
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -13232,13 +13232,7 @@ function NDataCardShell({ row, onClick, onContextMenu, actions, children, classN
13232
13232
  );
13233
13233
  }
13234
13234
  var DEFAULT_ROWS2 = 6;
13235
- var UNMEASURED_ROW_HEIGHT = 56;
13236
- var UNMEASURED_CHROME_HEIGHT = 300;
13237
- function estimateUnmeasuredRows() {
13238
- if (typeof window === "undefined") return DEFAULT_ROWS2;
13239
- const available = window.innerHeight - UNMEASURED_CHROME_HEIGHT;
13240
- return Math.max(DEFAULT_ROWS2, Math.floor(available / UNMEASURED_ROW_HEIGHT));
13241
- }
13235
+ var UNMEASURED_DYNAMIC_ROWS = 12;
13242
13236
  var DEFAULT_CARD_COUNT = 48;
13243
13237
  function NTableCardSkeleton({ surface }) {
13244
13238
  return /* @__PURE__ */ jsx(
@@ -13385,7 +13379,7 @@ function NTableLoadingSkeleton({ rows }) {
13385
13379
  const userGetRowCanExpand = useTableStore.use.getRowCanExpand();
13386
13380
  const hasExpansion = Boolean(renderSubRow || userGetRowCanExpand);
13387
13381
  const loadingText = useTableStore.use.loadingText();
13388
- const rowCount = rows ?? (dynamicHeight ? bodyHeight > 0 ? skeletonRowCount : estimateUnmeasuredRows() : DEFAULT_ROWS2);
13382
+ const rowCount = rows ?? (dynamicHeight ? bodyHeight > 0 ? skeletonRowCount : UNMEASURED_DYNAMIC_ROWS : DEFAULT_ROWS2);
13389
13383
  const renderHeaderLabel = (header) => typeof header === "string" ? header : null;
13390
13384
  return /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col gap-2", children: [
13391
13385
  /* @__PURE__ */ jsx(NTableHeaderSkeleton, {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",