@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.
@@ -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 + (c.columnDef.size ?? c.getSize()), 0) : void 0;
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("col", { style: { width: col.getSize() } }, col.id)) }),
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-C4_wD2t1.js.map
4543
+ //# sourceMappingURL=DataTable-BNMYEa_7.js.map