@data-c/ui 0.2.34 → 0.2.36
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 +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -904,8 +904,8 @@ declare function TransporterContainer(props: TransporterContainerProps): react_j
|
|
|
904
904
|
|
|
905
905
|
interface TransporterRootProps<T> {
|
|
906
906
|
scope: string;
|
|
907
|
-
value?: T |
|
|
908
|
-
onChange?: (value: T
|
|
907
|
+
value?: T | null;
|
|
908
|
+
onChange?: (value: T) => void;
|
|
909
909
|
children: ReactNode;
|
|
910
910
|
}
|
|
911
911
|
declare function TransporterRoot<T = any>(props: TransporterRootProps<T>): react_jsx_runtime.JSX.Element;
|
|
@@ -916,14 +916,14 @@ declare function TransporterTextField(props: TransporterTextFieldProps): react_j
|
|
|
916
916
|
type TransporterStore<T> = {
|
|
917
917
|
isOpen: boolean;
|
|
918
918
|
query?: string;
|
|
919
|
-
value?: T |
|
|
919
|
+
value?: T | null;
|
|
920
920
|
setQuery: (query?: string) => void;
|
|
921
|
-
setValue: (value?: T |
|
|
921
|
+
setValue: (value?: T | null) => void;
|
|
922
922
|
openTransporter: () => void;
|
|
923
|
-
closeTransporter: (value?: T
|
|
924
|
-
onChange?: (value: T
|
|
925
|
-
setOnChange: (fn?: (value: T
|
|
926
|
-
triggerOnChange: (value: T
|
|
923
|
+
closeTransporter: (value?: T) => Promise<void>;
|
|
924
|
+
onChange?: (value: T) => void;
|
|
925
|
+
setOnChange: (fn?: (value: T) => void) => void;
|
|
926
|
+
triggerOnChange: (value: T) => void;
|
|
927
927
|
};
|
|
928
928
|
declare function useTransporter<T>(id: string): TransporterStore<T>;
|
|
929
929
|
|