@aircall/ds 0.42.0 → 0.43.1

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.
@@ -42,11 +42,74 @@ const DS_COLORS = [
42
42
  "border",
43
43
  "input",
44
44
  "ring",
45
- "chart-1",
46
- "chart-2",
47
- "chart-3",
48
- "chart-4",
49
- "chart-5",
45
+ "chart-1-default",
46
+ "chart-1-default-foreground",
47
+ "chart-1-colorscale",
48
+ "chart-1-colorscale-foreground",
49
+ "chart-2-default",
50
+ "chart-2-default-foreground",
51
+ "chart-2-colorscale",
52
+ "chart-2-colorscale-foreground",
53
+ "chart-3-default",
54
+ "chart-3-default-foreground",
55
+ "chart-3-colorscale",
56
+ "chart-3-colorscale-foreground",
57
+ "chart-4-default",
58
+ "chart-4-default-foreground",
59
+ "chart-4-colorscale",
60
+ "chart-4-colorscale-foreground",
61
+ "chart-5-default",
62
+ "chart-5-default-foreground",
63
+ "chart-5-colorscale",
64
+ "chart-5-colorscale-foreground",
65
+ "chart-6-default",
66
+ "chart-6-default-foreground",
67
+ "chart-6-colorscale",
68
+ "chart-6-colorscale-foreground",
69
+ "chart-7-default",
70
+ "chart-7-default-foreground",
71
+ "chart-7-colorscale",
72
+ "chart-7-colorscale-foreground",
73
+ "chart-8-default",
74
+ "chart-8-default-foreground",
75
+ "chart-8-colorscale",
76
+ "chart-8-colorscale-foreground",
77
+ "chart-9-default",
78
+ "chart-9-default-foreground",
79
+ "chart-9-colorscale",
80
+ "chart-9-colorscale-foreground",
81
+ "chart-10-default",
82
+ "chart-10-default-foreground",
83
+ "chart-10-colorscale",
84
+ "chart-10-colorscale-foreground",
85
+ "chart-other-default",
86
+ "chart-other-default-foreground",
87
+ "chart-other-colorscale",
88
+ "chart-other-colorscale-foreground",
89
+ "heatmap-1-default",
90
+ "heatmap-1-default-foreground",
91
+ "heatmap-1-colorscale",
92
+ "heatmap-1-colorscale-foreground",
93
+ "heatmap-2-default",
94
+ "heatmap-2-default-foreground",
95
+ "heatmap-2-colorscale",
96
+ "heatmap-2-colorscale-foreground",
97
+ "heatmap-3-default",
98
+ "heatmap-3-default-foreground",
99
+ "heatmap-3-colorscale",
100
+ "heatmap-3-colorscale-foreground",
101
+ "heatmap-4-default",
102
+ "heatmap-4-default-foreground",
103
+ "heatmap-4-colorscale",
104
+ "heatmap-4-colorscale-foreground",
105
+ "heatmap-5-default",
106
+ "heatmap-5-default-foreground",
107
+ "heatmap-5-colorscale",
108
+ "heatmap-5-colorscale-foreground",
109
+ "heatmap-empty-default",
110
+ "heatmap-empty-default-foreground",
111
+ "heatmap-empty-colorscale",
112
+ "heatmap-empty-colorscale-foreground",
50
113
  "sidebar",
51
114
  "sidebar-foreground",
52
115
  "sidebar-primary",
@@ -1475,8 +1538,7 @@ function DataTable(componentProps) {
1475
1538
  /* @__PURE__ */ jsx(TableBody, { children: isInitialLoading ? /* @__PURE__ */ jsx(SkeletonRows, {
1476
1539
  columns: table.getVisibleLeafColumns(),
1477
1540
  count: skeletonCount,
1478
- getCellPinProps,
1479
- groupRows: hasPinnedColumns
1541
+ getCellPinProps
1480
1542
  }) : rows.length ? /* @__PURE__ */ jsxs(Fragment, { children: [
1481
1543
  virtualItems ? /* @__PURE__ */ jsxs(Fragment, { children: [
1482
1544
  paddingTop > 0 && /* @__PURE__ */ jsx("tr", {
@@ -1496,7 +1558,7 @@ function DataTable(componentProps) {
1496
1558
  "data-state": row.getIsSelected() ? "selected" : void 0,
1497
1559
  "aria-disabled": inert || void 0,
1498
1560
  onClick: clickable ? () => handleRowActivate(row) : void 0,
1499
- className: cn(hasPinnedColumns && "group", clickable && "cursor-pointer", inert && "opacity-50"),
1561
+ className: cn("group/row", clickable && "cursor-pointer", inert && "opacity-50"),
1500
1562
  children: row.getVisibleCells().map((cell) => {
1501
1563
  const pinProps = getCellPinProps(cell.column, "body");
1502
1564
  return /* @__PURE__ */ jsx(TableCell, {
@@ -1521,7 +1583,7 @@ function DataTable(componentProps) {
1521
1583
  "data-state": row.getIsSelected() ? "selected" : void 0,
1522
1584
  "aria-disabled": inert || void 0,
1523
1585
  onClick: clickable ? () => handleRowActivate(row) : void 0,
1524
- className: cn(hasPinnedColumns && "group", clickable && "cursor-pointer", inert && "opacity-50"),
1586
+ className: cn("group/row", clickable && "cursor-pointer", inert && "opacity-50"),
1525
1587
  children: row.getVisibleCells().map((cell) => {
1526
1588
  const pinProps = getCellPinProps(cell.column, "body");
1527
1589
  return /* @__PURE__ */ jsx(TableCell, {
@@ -1681,12 +1743,12 @@ function getPinnedCellProps(column, options) {
1681
1743
  if (shadows.length > 0) style.boxShadow = shadows.join(", ");
1682
1744
  return {
1683
1745
  style,
1684
- 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")
1685
1747
  };
1686
1748
  }
1687
- function SkeletonRows({ columns, count, getCellPinProps, groupRows }) {
1749
+ function SkeletonRows({ columns, count, getCellPinProps }) {
1688
1750
  return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx(TableRow, {
1689
- className: groupRows ? "group" : void 0,
1751
+ className: "group/row",
1690
1752
  children: columns.map((col) => {
1691
1753
  const pinProps = getCellPinProps(col, "body");
1692
1754
  return /* @__PURE__ */ jsx(TableCell, {
@@ -1,2 +1,2 @@
1
- import { t as DataTable } from "./data-table-Ciqcsotb.js";
1
+ import { t as DataTable } from "./data-table-sGfJhRvB.js";
2
2
  export { DataTable };