@snowpact/react-tanstack-query-table 1.7.4 → 1.7.6
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 +16 -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
|
@@ -112,6 +112,7 @@ export declare interface DataTableUIOptions<T extends object> {
|
|
|
112
112
|
enableSorting?: boolean;
|
|
113
113
|
enableColumnConfiguration?: boolean;
|
|
114
114
|
enablePagination?: boolean;
|
|
115
|
+
enableResponsive?: boolean;
|
|
115
116
|
paginationSizes?: number[];
|
|
116
117
|
texts?: {
|
|
117
118
|
searchPlaceholder?: string;
|
|
@@ -294,6 +295,11 @@ export declare interface SetupSnowTableOptions {
|
|
|
294
295
|
* Use your router's Link component (react-router, next/link, etc.)
|
|
295
296
|
*/
|
|
296
297
|
LinkComponent: ComponentType<LinkProps>;
|
|
298
|
+
/**
|
|
299
|
+
* Custom CSS class names for SnowTable components (optional)
|
|
300
|
+
* Use this to add your own classes (e.g., Tailwind) without overriding existing styles
|
|
301
|
+
*/
|
|
302
|
+
styles?: StylesConfig;
|
|
297
303
|
}
|
|
298
304
|
|
|
299
305
|
export declare function SingleFilterDropdown<T extends object>({ filter, selectedValues, onFilterChange, }: SingleFilterDropdownProps<T>): JSX.Element | null;
|
|
@@ -359,6 +365,16 @@ export declare interface SortButtonProps {
|
|
|
359
365
|
column: Column<any, any>;
|
|
360
366
|
}
|
|
361
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Styles Registry
|
|
370
|
+
*
|
|
371
|
+
* Stores custom CSS class names for SnowTable components.
|
|
372
|
+
*/
|
|
373
|
+
declare interface StylesConfig {
|
|
374
|
+
/** Custom className for SearchBar input */
|
|
375
|
+
searchBar?: string;
|
|
376
|
+
}
|
|
377
|
+
|
|
362
378
|
export declare type TableAction<T, K = unknown> = ClickAction<T> | LinkAction<T> | EndpointAction<T, K> | ((item: T) => ClickAction<T> | LinkAction<T> | EndpointAction<T, K>);
|
|
363
379
|
|
|
364
380
|
/** Tooltip component rendered via portal */
|