@bigbinary/neeto-atoms 1.0.95 → 1.0.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.
@@ -4379,7 +4379,7 @@ const DataTable = ({
4379
4379
  const firstRightPinnedId = leafColumns.filter((col) => col.getIsPinned() === "right").at(0)?.id;
4380
4380
  const hasProportionalSizing = enableColumnResize && Object.keys(columnSizing).length > 0;
4381
4381
  const totalDefaultSize = hasProportionalSizing ? 0 : leafColumns.filter((col) => col.id !== "_selection").reduce((sum, col) => sum + (col.columnDef.size ?? 150), 0);
4382
- const tableMinWidth = renderBody ? leafColumns.reduce((sum, c) => sum + (c.columnDef.size ?? c.getSize()), 0) : void 0;
4382
+ const tableMinWidth = renderBody ? leafColumns.reduce((sum, c) => sum + c.getSize(), 0) : void 0;
4383
4383
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: utils.cn("relative flex min-h-0 w-full flex-col", className), children: [
4384
4384
  loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingOverlay, {}),
4385
4385
  (showSelectAllCallout || showAllSelectedCallout) && /* @__PURE__ */ jsxRuntime.jsx(
@@ -4408,7 +4408,13 @@ const DataTable = ({
4408
4408
  className: renderBody ? "table-fixed" : void 0,
4409
4409
  style: tableMinWidth ? { minWidth: tableMinWidth } : void 0,
4410
4410
  children: [
4411
- renderBody && /* @__PURE__ */ jsxRuntime.jsx("colgroup", { children: leafColumns.map((col) => /* @__PURE__ */ jsxRuntime.jsx("col", { style: { width: col.getSize() } }, col.id)) }),
4411
+ renderBody && /* @__PURE__ */ jsxRuntime.jsx("colgroup", { children: leafColumns.map((col) => /* @__PURE__ */ jsxRuntime.jsx(
4412
+ "col",
4413
+ {
4414
+ style: col.id === lastDataColumnId ? void 0 : { width: col.getSize() }
4415
+ },
4416
+ col.id
4417
+ )) }),
4412
4418
  /* @__PURE__ */ jsxRuntime.jsx(primitives_Table.TableHeader, { className: "sticky top-0 z-20 bg-muted", children: table.getHeaderGroups().map((headerGroup) => {
4413
4419
  const dataHeaders = headerGroup.headers.filter(
4414
4420
  (header) => header.column.id !== "_selection"
@@ -4561,4 +4567,4 @@ exports.useColumnVisibility = useColumnVisibility;
4561
4567
  exports.useTablePagination = useTablePagination;
4562
4568
  exports.useTableSelection = useTableSelection;
4563
4569
  exports.useTableSort = useTableSort;
4564
- //# sourceMappingURL=DataTable-BNeEEAKb.js.map
4570
+ //# sourceMappingURL=DataTable-CRDwhMUB.js.map