@data-c/ui 0.2.30 → 0.2.32
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/dist/index.d.ts +2 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -543,6 +543,7 @@ declare function FilterContainer({ children }: {
|
|
|
543
543
|
children: ReactNode;
|
|
544
544
|
}): react_jsx_runtime.JSX.Element;
|
|
545
545
|
|
|
546
|
+
type FilterAppliedCallback<T = any> = (filters: T) => void;
|
|
546
547
|
interface FilterDataContextProps<T = any> {
|
|
547
548
|
filterValues: T;
|
|
548
549
|
filterValuesAsArray: Array<Record<string, T>>;
|
|
@@ -574,6 +575,7 @@ interface FilterProviderProps<T = any> {
|
|
|
574
575
|
children: ReactNode;
|
|
575
576
|
filterValues?: T;
|
|
576
577
|
storagePath?: string;
|
|
578
|
+
onFilterApplied?: FilterAppliedCallback<T>;
|
|
577
579
|
}
|
|
578
580
|
declare function FilterProvider<T>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
579
581
|
declare function useFilter<T = any>(): FilterDataContextProps<T>;
|