@snowpact/react-tanstack-query-table 1.7.1 → 1.7.3

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
@@ -107,43 +107,29 @@ Override CSS variables to match your design. Variables use `@property` so they w
107
107
 
108
108
  ```css
109
109
  :root {
110
- /* Base colors */
111
- --snow-table-background: #ffffff;
112
- --snow-table-foreground: #0a0a0a;
113
- --snow-table-border: #e5e5e5; /* Table borders, row separators */
114
- --snow-table-input-border: #e5e5e5; /* Inputs, buttons, dropdowns */
115
- --snow-table-active-ring: #a3a3a3;
116
-
117
- /* UI-specific colors */
118
- --snow-table-header: #f5f5f5; /* Table headers, tab list */
119
- --snow-table-hover: #f5f5f5; /* Hover states */
120
- --snow-table-skeleton: #f5f5f5; /* Skeleton loader */
121
- --snow-table-placeholder: #a3a3a3; /* Input placeholders */
122
- --snow-table-muted: #737373; /* Secondary text (counts, pagination, inactive tabs) */
123
-
124
- /* Optional (transparent/inherited by default) */
125
- --snow-table-row-even: #fafafa; /* Alternating rows - zebra striping */
126
- --snow-table-action-button: #f0f0f0; /* Action button background */
127
-
128
- /* Other */
110
+ --snow-table-background: #ffffff; /* Main background */
111
+ --snow-table-foreground: #0a0a0a; /* Main text color */
112
+ --snow-table-primary: #525252; /* Accent (focus rings, active states) */
113
+ --snow-table-muted: #737373; /* Secondary text */
114
+ --snow-table-surface: #f5f5f5; /* Headers, hover, skeleton */
115
+ --snow-table-border: #e5e5e5; /* All borders */
129
116
  --snow-table-radius: 0.375rem;
117
+
118
+ /* Optional */
130
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) */
131
122
  }
132
123
 
133
- /* Dark mode example */
124
+ /* Dark mode */
134
125
  .dark {
135
126
  --snow-table-background: #1a1a2e;
136
127
  --snow-table-foreground: #eaeaea;
128
+ --snow-table-primary: #3b82f6;
129
+ --snow-table-muted: #a0a0a0;
130
+ --snow-table-surface: #16213e;
137
131
  --snow-table-border: #0f3460;
138
- --snow-table-input-border: #0f3460;
139
- --snow-table-active-ring: #3b82f6;
140
- --snow-table-header: #16213e;
141
- --snow-table-hover: #16213e;
142
- --snow-table-skeleton: #16213e;
143
132
  --snow-table-row-even: #1f1f3a;
144
- --snow-table-placeholder: #6b7280;
145
- --snow-table-muted: #a0a0a0;
146
- --snow-table-action-button: #16213e;
147
133
  }
148
134
  ```
149
135
 
@@ -229,7 +215,7 @@ For API calls with built-in mutation handling:
229
215
  type: 'endpoint',
230
216
  icon: TrashIcon,
231
217
  label: 'Delete',
232
- className: 'my-danger-btn', // Optional: add custom styling
218
+ className: 'destructive-button', // Add custom styling
233
219
  endpoint: (item) => api.deleteUser(item.id),
234
220
  onSuccess: () => {
235
221
  toast.success('User deleted');