@konstructio/ui 0.1.2-alpha.96 → 0.1.2-alpha.97

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.
@@ -1,13 +1,13 @@
1
1
  import { t as r } from "../../../../utils-COaoD3PI.js";
2
2
  import { n as A } from "../../../../table.provider-BPlFpIAe.js";
3
3
  import { useTableContext as B } from "../../contexts/table.hook.js";
4
- import { Skeleton as H } from "../Skeleton/Skeleton.js";
5
- import { ExpandableRow as L } from "../ExpandableRow/ExpandableRow.js";
4
+ import { Skeleton as F } from "../Skeleton/Skeleton.js";
5
+ import { ExpandableRow as H } from "../ExpandableRow/ExpandableRow.js";
6
6
  import { Fragment as M } from "react";
7
7
  import { jsx as e, jsxs as O } from "react/jsx-runtime";
8
8
  var W = ({ isLoading: h, showPagination: l, emptyState: p }) => {
9
- const { table: m, pageSize: k, tableFetching: N, enableExpandedRow: w, classNameExpandedRow: R, classNameExpandedCell: E, classNameExpandedContent: v, enableHoverRow: g, classNameHoverRow: C, classNameActiveExpandedRow: y, renderExpandedRow: u, isBorderOnAdjacentCell: D, isExpandColumnVisible: j } = B();
10
- if (h || N) return /* @__PURE__ */ e(H, {
9
+ const { table: m, pageSize: k, tableLoading: N, enableExpandedRow: w, classNameExpandedRow: R, classNameExpandedCell: E, classNameExpandedContent: v, enableHoverRow: g, classNameHoverRow: C, classNameActiveExpandedRow: y, renderExpandedRow: u, isBorderOnAdjacentCell: D, isExpandColumnVisible: j } = B();
10
+ if (h || N) return /* @__PURE__ */ e(F, {
11
11
  numberOfRows: k,
12
12
  table: m
13
13
  });
@@ -33,7 +33,7 @@ var W = ({ isLoading: h, showPagination: l, emptyState: p }) => {
33
33
  return /* @__PURE__ */ e("tbody", {
34
34
  className: r("text-slate-800", "text-sm", "font-normal", "relative", "dark:border-x"),
35
35
  children: a.map((n, c) => {
36
- const { id: b, original: i, getVisibleCells: z } = n, { meta: o = {} } = i, s = z(), t = w && n.getIsExpanded(), F = !!o.expandedRow || !!u, x = s[0]?.column.id !== "__expand" || j ? 0 : D ? 1 : null;
36
+ const { id: b, original: i, getVisibleCells: z } = n, { meta: o = {} } = i, s = z(), t = w && n.getIsExpanded(), L = !!o.expandedRow || !!u, x = s[0]?.column.id !== "__expand" || j ? 0 : D ? 1 : null;
37
37
  return /* @__PURE__ */ O(M, { children: [/* @__PURE__ */ e("tr", {
38
38
  className: r({ "group/row": g }, "border-b", "border-b-gray-200", "dark:text-metal-50", "dark:border-b-metal-700", "bg-transparent", o.className),
39
39
  "data-row-id": b,
@@ -54,7 +54,7 @@ var W = ({ isLoading: h, showPagination: l, emptyState: p }) => {
54
54
  children: A(d.columnDef.cell, V())
55
55
  }, S);
56
56
  })
57
- }), F && /* @__PURE__ */ e(L, {
57
+ }), L && /* @__PURE__ */ e(H, {
58
58
  classNameExpandedCell: E,
59
59
  classNameExpandedContent: v,
60
60
  classNameExpandedRow: R,
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.95",
5
+ "version": "0.1.2-alpha.96",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.96",
5
+ "version": "0.1.2-alpha.97",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",