kz-design-system 0.0.17 → 0.0.19

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
@@ -3071,13 +3071,7 @@ var Pagination = React15.forwardRef(
3071
3071
  className
3072
3072
  ),
3073
3073
  children: [
3074
- showItemRange && total > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "kz-pagination-range text-sm text-[var(--kz-color-text-secondary)]", children: [
3075
- range.startItem,
3076
- "\u2013",
3077
- range.endItem,
3078
- " of ",
3079
- total
3080
- ] }),
3074
+ showItemRange && total > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "kz-pagination-range text-sm text-[var(--kz-color-text-secondary)]", children: range.totalPages <= 1 ? `${total} items` : `${range.startItem}\u2013${range.endItem} of ${total}` }),
3081
3075
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center gap-1", children: [
3082
3076
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3083
3077
  "button",
@@ -3182,6 +3176,7 @@ function TableInner({
3182
3176
  horizontalScroll = false,
3183
3177
  stickyColumns = false,
3184
3178
  stickyHeader = false,
3179
+ maxHeight,
3185
3180
  getRowSticky,
3186
3181
  caption,
3187
3182
  header: headerProp,
@@ -3446,9 +3441,10 @@ function TableInner({
3446
3441
  "div",
3447
3442
  {
3448
3443
  className: cn(
3449
- "kz-table-scroll overflow-auto",
3450
- stickyHeader && "max-h-[60vh]"
3444
+ "kz-table-scroll overflow-auto flex-1",
3445
+ stickyHeader && !maxHeight && "max-h-full"
3451
3446
  ),
3447
+ style: maxHeight ? { maxHeight } : void 0,
3452
3448
  children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3453
3449
  "table",
3454
3450
  {