@bmsuisse/datagrid 0.35.2 → 0.35.3

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
@@ -3477,7 +3477,7 @@ function DataGrid({
3477
3477
  return { style: column.width ? { width: column.width } : void 0 };
3478
3478
  }
3479
3479
  function structuralCellProps(side, offset, width, area = "body") {
3480
- const base = area === "header" ? "border-b border-border p-1 sticky top-0 z-20" : "border-b border-border p-1 sticky z-10";
3480
+ const base = area === "header" ? "border-b border-border p-1 sticky top-0 z-30" : "border-b border-border p-1 sticky z-10";
3481
3481
  const bg = area === "header" ? "bg-muted" : "bg-background";
3482
3482
  const bgOdd = area === "header" ? "bg-muted" : STRUCTURAL_ZEBRA_BG_CLASS;
3483
3483
  return {
@@ -3521,7 +3521,7 @@ function DataGrid({
3521
3521
  base,
3522
3522
  align,
3523
3523
  pinnedProps.className,
3524
- options.sticky && "sticky top-0 z-20 bg-muted"
3524
+ options.sticky && (column.pinned ? "sticky top-0 z-30 bg-muted" : "sticky top-0 z-20 bg-muted")
3525
3525
  );
3526
3526
  return { className, style: pinnedProps.style };
3527
3527
  }