@snowpact/react-tanstack-query-table 1.7.4 → 1.7.5
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 +20 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.js +628 -623
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -294,6 +294,11 @@ export declare interface SetupSnowTableOptions {
|
|
|
294
294
|
* Use your router's Link component (react-router, next/link, etc.)
|
|
295
295
|
*/
|
|
296
296
|
LinkComponent: ComponentType<LinkProps>;
|
|
297
|
+
/**
|
|
298
|
+
* Custom CSS class names for SnowTable components (optional)
|
|
299
|
+
* Use this to add your own classes (e.g., Tailwind) without overriding existing styles
|
|
300
|
+
*/
|
|
301
|
+
styles?: StylesConfig;
|
|
297
302
|
}
|
|
298
303
|
|
|
299
304
|
export declare function SingleFilterDropdown<T extends object>({ filter, selectedValues, onFilterChange, }: SingleFilterDropdownProps<T>): JSX.Element | null;
|
|
@@ -359,6 +364,16 @@ export declare interface SortButtonProps {
|
|
|
359
364
|
column: Column<any, any>;
|
|
360
365
|
}
|
|
361
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Styles Registry
|
|
369
|
+
*
|
|
370
|
+
* Stores custom CSS class names for SnowTable components.
|
|
371
|
+
*/
|
|
372
|
+
declare interface StylesConfig {
|
|
373
|
+
/** Custom className for SearchBar input */
|
|
374
|
+
searchBar?: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
362
377
|
export declare type TableAction<T, K = unknown> = ClickAction<T> | LinkAction<T> | EndpointAction<T, K> | ((item: T) => ClickAction<T> | LinkAction<T> | EndpointAction<T, K>);
|
|
363
378
|
|
|
364
379
|
/** Tooltip component rendered via portal */
|