@data-c/ui 0.1.72 → 0.1.74

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 CHANGED
@@ -629,6 +629,7 @@ declare function FilterContainer({ children }: {
629
629
  children: ReactNode;
630
630
  }): react_jsx_runtime.JSX.Element;
631
631
 
632
+ type FilterAppliedCallback = (filters: any) => void;
632
633
  interface FilterDataContextProps<T = any> {
633
634
  filterValues: T;
634
635
  filterValuesAsArray: Array<Record<string, T>>;
@@ -656,12 +657,13 @@ interface FilterOptions<T> {
656
657
  label?: string;
657
658
  value?: T;
658
659
  }
659
- interface FilterProviderProps<T = any> {
660
+ interface FilterProviderProps<T = unknown> {
660
661
  children: ReactNode;
661
662
  filterValues?: T;
662
663
  storagePath?: string;
664
+ onFilterApplied?: FilterAppliedCallback;
663
665
  }
664
- declare function FilterProvider<T>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
666
+ declare function FilterProvider<T = any>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
665
667
  declare function useFilter<T = any>(): FilterDataContextProps<T>;
666
668
  declare function useFilterApi<T = any>(): FilterApiContextProps<T>;
667
669