@tactics/lokaal-loket 0.0.238 → 0.0.239

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -771,8 +771,13 @@ interface AutocompleteFocusEvent {
771
771
  event: React__default.FocusEvent<HTMLInputElement>;
772
772
  }
773
773
 
774
+ interface AutocompleteInputHandle<T> {
775
+ setValue: (value: T) => void;
776
+ focus: () => void;
777
+ blur: () => void;
778
+ }
774
779
  declare const AutocompleteInput: <T>(props: AutocompleteInputI<T> & {
775
- ref?: Ref<HTMLInputElement>;
780
+ ref?: Ref<AutocompleteInputHandle<T>>;
776
781
  }) => JSX.Element;
777
782
 
778
783
  declare const AutocompleteOptions: <T>(args: AutocompleteOptionsI<T>) => react_jsx_runtime.JSX.Element;
@@ -803,7 +808,14 @@ interface LocationBlurEvent extends AutocompleteBlurEvent {
803
808
  interface LocationFocusEvent extends AutocompleteFocusEvent {
804
809
  }
805
810
 
806
- declare const Location: <T>(args: LocationI<T>) => react_jsx_runtime.JSX.Element;
811
+ interface LocationHandle<T> {
812
+ setValue: (value: T) => void;
813
+ focus: () => void;
814
+ blur: () => void;
815
+ }
816
+ declare const Location: <T>(props: LocationI<T> & {
817
+ ref?: Ref<LocationHandle<T>>;
818
+ }) => JSX.Element;
807
819
 
808
820
  interface NameI<T> {
809
821
  name: string;
package/build/index.d.ts CHANGED
@@ -771,8 +771,13 @@ interface AutocompleteFocusEvent {
771
771
  event: React__default.FocusEvent<HTMLInputElement>;
772
772
  }
773
773
 
774
+ interface AutocompleteInputHandle<T> {
775
+ setValue: (value: T) => void;
776
+ focus: () => void;
777
+ blur: () => void;
778
+ }
774
779
  declare const AutocompleteInput: <T>(props: AutocompleteInputI<T> & {
775
- ref?: Ref<HTMLInputElement>;
780
+ ref?: Ref<AutocompleteInputHandle<T>>;
776
781
  }) => JSX.Element;
777
782
 
778
783
  declare const AutocompleteOptions: <T>(args: AutocompleteOptionsI<T>) => react_jsx_runtime.JSX.Element;
@@ -803,7 +808,14 @@ interface LocationBlurEvent extends AutocompleteBlurEvent {
803
808
  interface LocationFocusEvent extends AutocompleteFocusEvent {
804
809
  }
805
810
 
806
- declare const Location: <T>(args: LocationI<T>) => react_jsx_runtime.JSX.Element;
811
+ interface LocationHandle<T> {
812
+ setValue: (value: T) => void;
813
+ focus: () => void;
814
+ blur: () => void;
815
+ }
816
+ declare const Location: <T>(props: LocationI<T> & {
817
+ ref?: Ref<LocationHandle<T>>;
818
+ }) => JSX.Element;
807
819
 
808
820
  interface NameI<T> {
809
821
  name: string;