@rafal.lemieszewski/tide-ui 0.39.0 → 0.40.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.
@@ -127,28 +127,27 @@ export interface DataTableProps<TData, TValue> {
127
127
  * only a single item. This flattens single-item groups to show only
128
128
  * the parent row, reducing visual redundancy.
129
129
  *
130
- * When enabled:
130
+ * Per-column configuration using column ID as key:
131
131
  * - Groups with 1 item: Only parent row shown (not expandable)
132
132
  * - Groups with 2+ items: Parent + expandable children shown normally
133
133
  *
134
- * @default false
135
134
  * @example
136
- * hideChildrenForSingleItemGroups={true}
135
+ * hideChildrenForSingleItemGroups={{ category: true, status: false }}
137
136
  */
138
- hideChildrenForSingleItemGroups?: boolean;
137
+ hideChildrenForSingleItemGroups?: Record<string, boolean>;
139
138
  /**
140
- * When both this and hideChildrenForSingleItemGroups are enabled,
139
+ * When both this and hideChildrenForSingleItemGroups are enabled for a column,
141
140
  * removes the expander button spacer for groups without expandable children.
142
141
  * This eliminates the left padding for single-item groups, improving visual alignment.
143
142
  *
144
- * Only takes effect when hideChildrenForSingleItemGroups is also true.
143
+ * Per-column configuration using column ID as key.
144
+ * Only takes effect when hideChildrenForSingleItemGroups is also enabled for that column.
145
145
  *
146
- * @default false
147
146
  * @example
148
- * hideChildrenForSingleItemGroups={true}
149
- * hideExpanderForSingleItemGroups={true}
147
+ * hideChildrenForSingleItemGroups={{ category: true, status: true }}
148
+ * hideExpanderForSingleItemGroups={{ category: true, status: true }}
150
149
  */
151
- hideExpanderForSingleItemGroups?: boolean;
150
+ hideExpanderForSingleItemGroups?: Record<string, boolean>;
152
151
  enableRowPinning?: boolean;
153
152
  keepPinnedRows?: boolean;
154
153
  enableVirtualization?: boolean;