@bigbinary/neeto-atoms 1.0.96 → 1.0.98
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/{DataTable-C4_wD2t1.js → DataTable-BNMYEa_7.js} +9 -3
- package/dist/{DataTable-C4_wD2t1.js.map → DataTable-BNMYEa_7.js.map} +1 -1
- package/dist/cjs/{DataTable-BNeEEAKb.js → DataTable-CRDwhMUB.js} +9 -3
- package/dist/cjs/{DataTable-BNeEEAKb.js.map → DataTable-CRDwhMUB.js.map} +1 -1
- package/dist/cjs/components/DataTable.js +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/primitives/DropdownMenu.js +16 -10
- package/dist/cjs/primitives/DropdownMenu.js.map +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/primitives/DropdownMenu.js +16 -10
- package/dist/primitives/DropdownMenu.js.map +1 -1
- package/dist/shadcn/components/dropdown-menu.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4358,7 +4358,7 @@ const DataTable = ({
|
|
|
4358
4358
|
const firstRightPinnedId = leafColumns.filter((col) => col.getIsPinned() === "right").at(0)?.id;
|
|
4359
4359
|
const hasProportionalSizing = enableColumnResize && Object.keys(columnSizing).length > 0;
|
|
4360
4360
|
const totalDefaultSize = hasProportionalSizing ? 0 : leafColumns.filter((col) => col.id !== "_selection").reduce((sum, col) => sum + (col.columnDef.size ?? 150), 0);
|
|
4361
|
-
const tableMinWidth = renderBody ? leafColumns.reduce((sum, c) => sum +
|
|
4361
|
+
const tableMinWidth = renderBody ? leafColumns.reduce((sum, c) => sum + c.getSize(), 0) : void 0;
|
|
4362
4362
|
return /* @__PURE__ */ jsxs("div", { className: cn("relative flex min-h-0 w-full flex-col", className), children: [
|
|
4363
4363
|
loading && /* @__PURE__ */ jsx(LoadingOverlay, {}),
|
|
4364
4364
|
(showSelectAllCallout || showAllSelectedCallout) && /* @__PURE__ */ jsx(
|
|
@@ -4387,7 +4387,13 @@ const DataTable = ({
|
|
|
4387
4387
|
className: renderBody ? "table-fixed" : void 0,
|
|
4388
4388
|
style: tableMinWidth ? { minWidth: tableMinWidth } : void 0,
|
|
4389
4389
|
children: [
|
|
4390
|
-
renderBody && /* @__PURE__ */ jsx("colgroup", { children: leafColumns.map((col) => /* @__PURE__ */ jsx(
|
|
4390
|
+
renderBody && /* @__PURE__ */ jsx("colgroup", { children: leafColumns.map((col) => /* @__PURE__ */ jsx(
|
|
4391
|
+
"col",
|
|
4392
|
+
{
|
|
4393
|
+
style: col.id === lastDataColumnId ? void 0 : { width: col.getSize() }
|
|
4394
|
+
},
|
|
4395
|
+
col.id
|
|
4396
|
+
)) }),
|
|
4391
4397
|
/* @__PURE__ */ jsx(TableHeader, { className: "sticky top-0 z-20 bg-muted", children: table.getHeaderGroups().map((headerGroup) => {
|
|
4392
4398
|
const dataHeaders = headerGroup.headers.filter(
|
|
4393
4399
|
(header) => header.column.id !== "_selection"
|
|
@@ -4534,4 +4540,4 @@ const DataTable = ({
|
|
|
4534
4540
|
};
|
|
4535
4541
|
|
|
4536
4542
|
export { DataTable as D, useColumnPinning as a, useColumnVisibility as b, useTablePagination as c, useTableSelection as d, useTableSort as e, useColumnOrdering as u };
|
|
4537
|
-
//# sourceMappingURL=DataTable-
|
|
4543
|
+
//# sourceMappingURL=DataTable-BNMYEa_7.js.map
|