@data-c/ui 0.2.29 → 0.2.31

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
@@ -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>;
@@ -888,6 +890,7 @@ interface AutocompleteProps<T = any> {
888
890
  required?: boolean;
889
891
  disabled?: boolean;
890
892
  autoFocus?: boolean;
893
+ readonly?: boolean;
891
894
  }
892
895
  declare function Autocomplete<T = any>(props: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
893
896