@rafal.lemieszewski/tide-ui 0.39.0 → 0.40.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.
@@ -74,8 +74,10 @@ interface DataTableColumnHeaderProps<_TData = any, _TValue = any> extends React.
74
74
  declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
75
75
  interface DataTablePaginationProps<_TData = any> {
76
76
  table: any;
77
+ enableGrouping?: boolean;
78
+ hideChildrenForSingleItemGroups?: Record<string, boolean>;
77
79
  }
78
- declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
80
+ declare function DataTablePagination<TData>({ table, enableGrouping, hideChildrenForSingleItemGroups }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
79
81
  export type BorderStyle = "vertical" | "horizontal" | "both" | "none";
80
82
  export interface DataTableProps<TData, TValue> {
81
83
  columns: ColumnDef<TData, TValue>[];
@@ -127,28 +129,27 @@ export interface DataTableProps<TData, TValue> {
127
129
  * only a single item. This flattens single-item groups to show only
128
130
  * the parent row, reducing visual redundancy.
129
131
  *
130
- * When enabled:
132
+ * Per-column configuration using column ID as key:
131
133
  * - Groups with 1 item: Only parent row shown (not expandable)
132
134
  * - Groups with 2+ items: Parent + expandable children shown normally
133
135
  *
134
- * @default false
135
136
  * @example
136
- * hideChildrenForSingleItemGroups={true}
137
+ * hideChildrenForSingleItemGroups={{ category: true, status: false }}
137
138
  */
138
- hideChildrenForSingleItemGroups?: boolean;
139
+ hideChildrenForSingleItemGroups?: Record<string, boolean>;
139
140
  /**
140
- * When both this and hideChildrenForSingleItemGroups are enabled,
141
+ * When both this and hideChildrenForSingleItemGroups are enabled for a column,
141
142
  * removes the expander button spacer for groups without expandable children.
142
143
  * This eliminates the left padding for single-item groups, improving visual alignment.
143
144
  *
144
- * Only takes effect when hideChildrenForSingleItemGroups is also true.
145
+ * Per-column configuration using column ID as key.
146
+ * Only takes effect when hideChildrenForSingleItemGroups is also enabled for that column.
145
147
  *
146
- * @default false
147
148
  * @example
148
- * hideChildrenForSingleItemGroups={true}
149
- * hideExpanderForSingleItemGroups={true}
149
+ * hideChildrenForSingleItemGroups={{ category: true, status: true }}
150
+ * hideExpanderForSingleItemGroups={{ category: true, status: true }}
150
151
  */
151
- hideExpanderForSingleItemGroups?: boolean;
152
+ hideExpanderForSingleItemGroups?: Record<string, boolean>;
152
153
  enableRowPinning?: boolean;
153
154
  keepPinnedRows?: boolean;
154
155
  enableVirtualization?: boolean;