bolt-table 0.1.7 → 0.1.9

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.mjs CHANGED
@@ -172,12 +172,12 @@ var DraggableHeader = React.memo(
172
172
  ...column.pinned === "left" && stickyOffset !== void 0 ? { left: `${stickyOffset}px` } : {},
173
173
  ...column.pinned === "right" && stickyOffset !== void 0 ? { right: `${stickyOffset}px` } : {},
174
174
  ...isPinned ? {
175
- backgroundColor: styles?.pinnedBg ?? "color-mix(in srgb, currentColor 4%, Canvas)",
175
+ backgroundColor: styles?.pinnedBg,
176
176
  ...styles?.pinnedHeader
177
177
  } : {},
178
178
  ...column.style,
179
179
  ...styles?.header,
180
- backgroundColor: styles?.pinnedBg && isPinned ? styles.pinnedBg : isPinned ? "color-mix(in srgb, currentColor 4%, Canvas)" : "rgba(128,128,128,0.06)",
180
+ backgroundColor: styles?.pinnedBg && isPinned ? styles.pinnedBg : isPinned ? "" : "rgba(128,128,128,0.06)",
181
181
  display: "flex",
182
182
  height: 36,
183
183
  alignItems: "center",
@@ -1023,7 +1023,7 @@ var TableBody = ({
1023
1023
  else if (col.pinned === "right" && stickyOffset !== void 0)
1024
1024
  style.right = `${stickyOffset}px`;
1025
1025
  if (isPinned) {
1026
- style.backgroundColor = styles?.pinnedBg ?? "color-mix(in srgb, currentColor 4%, Canvas)";
1026
+ style.backgroundColor = styles?.pinnedBg;
1027
1027
  if (styles?.pinnedCell) Object.assign(style, styles.pinnedCell);
1028
1028
  }
1029
1029
  return { key: col.key, style, isPinned };
@@ -2158,7 +2158,7 @@ function BoltTable({
2158
2158
  textOverflow: "ellipsis",
2159
2159
  whiteSpace: "nowrap",
2160
2160
  borderBottom: "1px solid rgba(128,128,128,0.2)",
2161
- backgroundColor: styles?.pinnedBg ?? "color-mix(in srgb, currentColor 4%, Canvas)",
2161
+ backgroundColor: styles?.pinnedBg,
2162
2162
  position: "sticky",
2163
2163
  left: columnOffsets.get("__expand__") ?? 0,
2164
2164
  top: 0,