@polastack/design-system 0.1.29 → 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.d.ts CHANGED
@@ -873,6 +873,8 @@ declare function getChartTheme(): {
873
873
  textColor: string;
874
874
  tooltipBg: string;
875
875
  tooltipBorder: string;
876
+ /** Hover cursor fill — theme-aware for dark mode */
877
+ cursorFill: string;
876
878
  fontSize: number;
877
879
  fontFamily: string;
878
880
  };
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-primary-50 dark:data-[state=selected]:bg-primary-950",
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
@@ -4364,6 +4368,8 @@ function getChartTheme() {
4364
4368
  textColor: cssVar("--color-neutral-500", chartColors.text.light),
4365
4369
  tooltipBg: cssVar("--color-surface-raised", "#ffffff"),
4366
4370
  tooltipBorder: cssVar("--color-border", "#e4e4e7"),
4371
+ /** Hover cursor fill — theme-aware for dark mode */
4372
+ cursorFill: cssVar("--color-surface-muted", "#f4f4f5"),
4367
4373
  fontSize: 12,
4368
4374
  fontFamily: 'Inter, "Noto Sans JP", sans-serif'
4369
4375
  };