@polastack/design-system 0.1.30 → 0.1.31
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 +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2495,7 +2495,7 @@ var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2495
2495
|
{
|
|
2496
2496
|
ref,
|
|
2497
2497
|
className: cn(
|
|
2498
|
-
"border-b border-[var(--color-border)] transition-colors hover:bg-[var(--color-surface-sunken)] data-[state=selected]:bg-
|
|
2498
|
+
"border-b border-[var(--color-border)] transition-colors hover:bg-[var(--color-surface-sunken)] data-[state=selected]:bg-[var(--color-surface-accent)]",
|
|
2499
2499
|
className
|
|
2500
2500
|
),
|
|
2501
2501
|
...props
|
|
@@ -2795,6 +2795,10 @@ function DataTable({
|
|
|
2795
2795
|
TableRow,
|
|
2796
2796
|
{
|
|
2797
2797
|
"data-state": row.getIsSelected() ? "selected" : void 0,
|
|
2798
|
+
...enableRowSelection && {
|
|
2799
|
+
onClick: () => row.toggleSelected(),
|
|
2800
|
+
className: "cursor-pointer"
|
|
2801
|
+
},
|
|
2798
2802
|
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx33(TableCell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
|
|
2799
2803
|
},
|
|
2800
2804
|
row.id
|