@rebasepro/ui 0.20.0 → 0.21.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.
@@ -25,7 +25,12 @@ export type CardViewProps<T> = {
25
25
  selected: boolean;
26
26
  highlighted: boolean;
27
27
  onSelectionChange: (selected: boolean) => void;
28
- onClick: (e: React.MouseEvent) => void;
28
+ /**
29
+ * Absent on a keyboard activation — a card is a `role="button"` and
30
+ * Enter/Space reach this with no event. Only the modifier branch
31
+ * needs one; the click itself does not.
32
+ */
33
+ onClick: (e?: React.MouseEvent) => void;
29
34
  }) => React.ReactNode;
30
35
  emptyComponent?: React.ReactNode;
31
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/ui",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Rebase design system — React components and design tokens built on Radix UI, Tailwind CSS and lucide-react",
5
5
  "keywords": [
6
6
  "rebase",