design-zystem 1.0.524 → 1.0.525

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/ui/index.js CHANGED
@@ -5220,6 +5220,7 @@ var TableCell = ({
5220
5220
  onClick();
5221
5221
  } : void 0;
5222
5222
  const hoverableText = tooltip ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Tooltip, { content: tooltip, children: text }) : text;
5223
+ const cellContent = centerContent ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Layout, { justify: "center", children: hoverableText }) : hoverableText;
5223
5224
  const cell = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5224
5225
  "td",
5225
5226
  {
@@ -5240,7 +5241,6 @@ var TableCell = ({
5240
5241
  sticky && !backgroundColor && cn("z-[2]", SURFACE_CLASS2[surface]),
5241
5242
  sticky && backgroundColor && "z-[2]",
5242
5243
  accentColor && ACCENT_WIDTH_CLASS[accentWidth],
5243
- revealOnRowHover && "opacity-0 transition-opacity group-focus-within/row:opacity-100 group-hover/row:opacity-100",
5244
5244
  cursor && CURSOR_CLASS[cursor],
5245
5245
  onClick && "cursor-pointer",
5246
5246
  theme && TABLE_CELL_THEME_CLASS[theme],
@@ -5256,7 +5256,10 @@ var TableCell = ({
5256
5256
  backgroundColor,
5257
5257
  borderLeftColor: accentColor
5258
5258
  },
5259
- children: centerContent ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Layout, { justify: "center", children: hoverableText }) : hoverableText
5259
+ children: revealOnRowHover ? (
5260
+ // Only the content fades: an invisible <td> would also hide its borders.
5261
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "block opacity-0 transition-opacity group-focus-within/row:opacity-100 group-hover/row:opacity-100", children: cellContent })
5262
+ ) : cellContent
5260
5263
  }
5261
5264
  );
5262
5265
  return tooltip ? cell : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(OverflowTooltip, { children: cell });
package/dist/ui/index.mjs CHANGED
@@ -4992,6 +4992,7 @@ var TableCell = ({
4992
4992
  onClick();
4993
4993
  } : void 0;
4994
4994
  const hoverableText = tooltip ? /* @__PURE__ */ jsx57(Tooltip, { content: tooltip, children: text }) : text;
4995
+ const cellContent = centerContent ? /* @__PURE__ */ jsx57(Layout, { justify: "center", children: hoverableText }) : hoverableText;
4995
4996
  const cell = /* @__PURE__ */ jsx57(
4996
4997
  "td",
4997
4998
  {
@@ -5012,7 +5013,6 @@ var TableCell = ({
5012
5013
  sticky && !backgroundColor && cn("z-[2]", SURFACE_CLASS2[surface]),
5013
5014
  sticky && backgroundColor && "z-[2]",
5014
5015
  accentColor && ACCENT_WIDTH_CLASS[accentWidth],
5015
- revealOnRowHover && "opacity-0 transition-opacity group-focus-within/row:opacity-100 group-hover/row:opacity-100",
5016
5016
  cursor && CURSOR_CLASS[cursor],
5017
5017
  onClick && "cursor-pointer",
5018
5018
  theme && TABLE_CELL_THEME_CLASS[theme],
@@ -5028,7 +5028,10 @@ var TableCell = ({
5028
5028
  backgroundColor,
5029
5029
  borderLeftColor: accentColor
5030
5030
  },
5031
- children: centerContent ? /* @__PURE__ */ jsx57(Layout, { justify: "center", children: hoverableText }) : hoverableText
5031
+ children: revealOnRowHover ? (
5032
+ // Only the content fades: an invisible <td> would also hide its borders.
5033
+ /* @__PURE__ */ jsx57("span", { className: "block opacity-0 transition-opacity group-focus-within/row:opacity-100 group-hover/row:opacity-100", children: cellContent })
5034
+ ) : cellContent
5032
5035
  }
5033
5036
  );
5034
5037
  return tooltip ? cell : /* @__PURE__ */ jsx57(OverflowTooltip, { children: cell });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.524",
3
+ "version": "1.0.525",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",