@ai-matrx/design-system 0.15.2 → 0.17.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.
@@ -683,6 +683,21 @@ interface MatrxDataTableMobileCardControls {
683
683
  interface MatrxDataTableProps<T> {
684
684
  data: T[];
685
685
  columns: MatrxColumnDef<T>[];
686
+ /** Optional URL/source-owned column order and visibility. */
687
+ columnState?: {
688
+ order: string[];
689
+ hidden: string[];
690
+ onChange: (next: {
691
+ order: string[];
692
+ hidden: string[];
693
+ }) => void;
694
+ };
695
+ /** Enables package-owned drag reordering in table headers. */
696
+ reorderableColumns?: boolean;
697
+ columnManager?: {
698
+ open: boolean;
699
+ onOpenChange: (open: boolean) => void;
700
+ };
686
701
  getRowId: (row: T) => string;
687
702
  /**
688
703
  * Additional row identity included in local global search without becoming
@@ -754,7 +769,7 @@ interface MatrxDataTableProps<T> {
754
769
  rowClassName?: (row: T, index: number) => string | undefined;
755
770
  /** Highlight an index in the currently rendered page without selecting it. */
756
771
  highlightedIndex?: number | undefined;
757
- /** Receives the complete visible local view after local processing, before paging. */
772
+ /** Receives the complete visible local view after local processing, before paging. Attaching after absence receives one snapshot; callback identity changes alone do not notify. */
758
773
  onViewChange?: (rows: T[]) => void;
759
774
  /**
760
775
  * Wrap the whole `<tr>`. Return `children` unchanged for no-op.
@@ -683,6 +683,21 @@ interface MatrxDataTableMobileCardControls {
683
683
  interface MatrxDataTableProps<T> {
684
684
  data: T[];
685
685
  columns: MatrxColumnDef<T>[];
686
+ /** Optional URL/source-owned column order and visibility. */
687
+ columnState?: {
688
+ order: string[];
689
+ hidden: string[];
690
+ onChange: (next: {
691
+ order: string[];
692
+ hidden: string[];
693
+ }) => void;
694
+ };
695
+ /** Enables package-owned drag reordering in table headers. */
696
+ reorderableColumns?: boolean;
697
+ columnManager?: {
698
+ open: boolean;
699
+ onOpenChange: (open: boolean) => void;
700
+ };
686
701
  getRowId: (row: T) => string;
687
702
  /**
688
703
  * Additional row identity included in local global search without becoming
@@ -754,7 +769,7 @@ interface MatrxDataTableProps<T> {
754
769
  rowClassName?: (row: T, index: number) => string | undefined;
755
770
  /** Highlight an index in the currently rendered page without selecting it. */
756
771
  highlightedIndex?: number | undefined;
757
- /** Receives the complete visible local view after local processing, before paging. */
772
+ /** Receives the complete visible local view after local processing, before paging. Attaching after absence receives one snapshot; callback identity changes alone do not notify. */
758
773
  onViewChange?: (rows: T[]) => void;
759
774
  /**
760
775
  * Wrap the whole `<tr>`. Return `children` unchanged for no-op.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/design-system",
3
- "version": "0.15.2",
3
+ "version": "0.17.0",
4
4
  "description": "AI Matrx semantic React primitives shared across Vite, Next.js, desktop, and customer-built applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",