@aircall/ds 0.43.0 → 0.44.0

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.
@@ -1538,8 +1538,7 @@ function DataTable(componentProps) {
1538
1538
  /* @__PURE__ */ jsx(TableBody, { children: isInitialLoading ? /* @__PURE__ */ jsx(SkeletonRows, {
1539
1539
  columns: table.getVisibleLeafColumns(),
1540
1540
  count: skeletonCount,
1541
- getCellPinProps,
1542
- groupRows: hasPinnedColumns
1541
+ getCellPinProps
1543
1542
  }) : rows.length ? /* @__PURE__ */ jsxs(Fragment, { children: [
1544
1543
  virtualItems ? /* @__PURE__ */ jsxs(Fragment, { children: [
1545
1544
  paddingTop > 0 && /* @__PURE__ */ jsx("tr", {
@@ -1559,7 +1558,7 @@ function DataTable(componentProps) {
1559
1558
  "data-state": row.getIsSelected() ? "selected" : void 0,
1560
1559
  "aria-disabled": inert || void 0,
1561
1560
  onClick: clickable ? () => handleRowActivate(row) : void 0,
1562
- className: cn(hasPinnedColumns && "group", clickable && "cursor-pointer", inert && "opacity-50"),
1561
+ className: cn("group/row", clickable && "cursor-pointer", inert && "opacity-50"),
1563
1562
  children: row.getVisibleCells().map((cell) => {
1564
1563
  const pinProps = getCellPinProps(cell.column, "body");
1565
1564
  return /* @__PURE__ */ jsx(TableCell, {
@@ -1584,7 +1583,7 @@ function DataTable(componentProps) {
1584
1583
  "data-state": row.getIsSelected() ? "selected" : void 0,
1585
1584
  "aria-disabled": inert || void 0,
1586
1585
  onClick: clickable ? () => handleRowActivate(row) : void 0,
1587
- className: cn(hasPinnedColumns && "group", clickable && "cursor-pointer", inert && "opacity-50"),
1586
+ className: cn("group/row", clickable && "cursor-pointer", inert && "opacity-50"),
1588
1587
  children: row.getVisibleCells().map((cell) => {
1589
1588
  const pinProps = getCellPinProps(cell.column, "body");
1590
1589
  return /* @__PURE__ */ jsx(TableCell, {
@@ -1744,12 +1743,12 @@ function getPinnedCellProps(column, options) {
1744
1743
  if (shadows.length > 0) style.boxShadow = shadows.join(", ");
1745
1744
  return {
1746
1745
  style,
1747
- className: cn(variant === "footer" ? "bg-[color-mix(in_oklch,var(--muted)_50%,var(--background))]" : variant === "body" ? cn("bg-background", "group-hover:bg-[color-mix(in_oklch,var(--accent)_30%,var(--background))]", "group-data-[state=selected]:bg-[color-mix(in_oklch,var(--accent)_50%,var(--background))]", "group-data-[state=selected]:group-hover:bg-[color-mix(in_oklch,var(--accent)_50%,var(--background))]") : "bg-background")
1746
+ className: cn(variant === "footer" ? "bg-[color-mix(in_oklch,var(--muted)_50%,var(--background))]" : variant === "body" ? cn("bg-background", "group-hover/row:bg-[color-mix(in_oklch,var(--accent)_30%,var(--background))]", "group-data-[state=selected]/row:bg-[color-mix(in_oklch,var(--accent)_50%,var(--background))]", "group-data-[state=selected]/row:group-hover/row:bg-[color-mix(in_oklch,var(--accent)_50%,var(--background))]") : "bg-background")
1748
1747
  };
1749
1748
  }
1750
- function SkeletonRows({ columns, count, getCellPinProps, groupRows }) {
1749
+ function SkeletonRows({ columns, count, getCellPinProps }) {
1751
1750
  return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx(TableRow, {
1752
- className: groupRows ? "group" : void 0,
1751
+ className: "group/row",
1753
1752
  children: columns.map((col) => {
1754
1753
  const pinProps = getCellPinProps(col, "body");
1755
1754
  return /* @__PURE__ */ jsx(TableCell, {
@@ -1,2 +1,2 @@
1
- import { t as DataTable } from "./data-table-BsiUfZ3s.js";
1
+ import { t as DataTable } from "./data-table-sGfJhRvB.js";
2
2
  export { DataTable };