@snowpact/react-tanstack-query-table 1.7.2 → 1.7.4

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
@@ -116,8 +116,9 @@ Override CSS variables to match your design. Variables use `@property` so they w
116
116
  --snow-table-radius: 0.375rem;
117
117
 
118
118
  /* Optional */
119
- --snow-table-row-even: transparent;
120
119
  --snow-table-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
120
+ --snow-table-row-even: transparent; /* Alternate row background */
121
+ --snow-table-action-surface: #f5f5f5; /* Action buttons background (falls back to surface) */
121
122
  }
122
123
 
123
124
  /* Dark mode */
@@ -214,7 +215,7 @@ For API calls with built-in mutation handling:
214
215
  type: 'endpoint',
215
216
  icon: TrashIcon,
216
217
  label: 'Delete',
217
- className: 'my-danger-btn', // Optional: add custom styling
218
+ className: 'destructive-button', // Add custom styling
218
219
  endpoint: (item) => api.deleteUser(item.id),
219
220
  onSuccess: () => {
220
221
  toast.success('User deleted');