@snowpact/react-tanstack-query-table 1.8.2 → 1.9.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.
package/README.md CHANGED
@@ -133,6 +133,33 @@ Override CSS variables to match your design. Variables use `@property` so they w
133
133
  }
134
134
  ```
135
135
 
136
+ ### Scoped Theming with `className`
137
+
138
+ For full control over sizes, paddings, typography, etc., pass a `className` to scope your CSS:
139
+
140
+ ```tsx
141
+ <SnowClientDataTable className="my-theme" ... />
142
+ ```
143
+
144
+ ```css
145
+ .my-theme .snow-input { height: 36px; }
146
+ .my-theme .snow-table-header-cell { text-transform: uppercase; }
147
+ .my-theme .snow-table-cell { padding: 0.75rem 1rem; }
148
+ ```
149
+
150
+ The double-class specificity (`.my-theme .snow-*`) wins over defaults — no `!important`, no load-order issues. Multiple tables can use different themes simultaneously.
151
+
152
+ ### HMR Support
153
+
154
+ Use `resetSnowTable` if HMR doesn't pick up changes to your setup:
155
+
156
+ ```tsx
157
+ import { setupSnowTable, resetSnowTable } from '@snowpact/react-tanstack-query-table';
158
+
159
+ if (import.meta.hot) resetSnowTable();
160
+ setupSnowTable({ /* ... */ });
161
+ ```
162
+
136
163
  ---
137
164
 
138
165
  ## Client vs Server Mode
@@ -476,6 +503,7 @@ const columns: SnowColumnConfig<User>[] = [
476
503
  | `defaultPageSize` | `number` | `10` | Initial page size |
477
504
  | `defaultSortBy` | `string` | - | Initial sort column |
478
505
  | `defaultSortOrder` | `'asc' \| 'desc'` | `'asc'` | Initial sort direction |
506
+ | `className` | `string` | - | CSS class on root wrapper (scoped theming) |
479
507
 
480
508
  ### SnowServerDataTable Props
481
509