@data-c/ui 0.2.33 → 0.2.34
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 +11 -9
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -877,7 +877,7 @@ declare const Page: {
|
|
|
877
877
|
|
|
878
878
|
interface AutocompleteProps<T = any> {
|
|
879
879
|
onDoubleClick?: () => void;
|
|
880
|
-
onChange?: (value: T | null) => void;
|
|
880
|
+
onChange?: (value: T | T[] | null) => void;
|
|
881
881
|
value?: T | null;
|
|
882
882
|
options: Array<T>;
|
|
883
883
|
renderValue?: (value: T) => string;
|
|
@@ -891,6 +891,8 @@ interface AutocompleteProps<T = any> {
|
|
|
891
891
|
disabled?: boolean;
|
|
892
892
|
autoFocus?: boolean;
|
|
893
893
|
readonly?: boolean;
|
|
894
|
+
multiple?: boolean;
|
|
895
|
+
disableCloseOnSelect?: boolean;
|
|
894
896
|
}
|
|
895
897
|
declare function Autocomplete<T = any>(props: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
|
|
896
898
|
|
|
@@ -902,8 +904,8 @@ declare function TransporterContainer(props: TransporterContainerProps): react_j
|
|
|
902
904
|
|
|
903
905
|
interface TransporterRootProps<T> {
|
|
904
906
|
scope: string;
|
|
905
|
-
value?: T | null;
|
|
906
|
-
onChange?: (value: T) => void;
|
|
907
|
+
value?: T | T[] | null;
|
|
908
|
+
onChange?: (value: T | T[]) => void;
|
|
907
909
|
children: ReactNode;
|
|
908
910
|
}
|
|
909
911
|
declare function TransporterRoot<T = any>(props: TransporterRootProps<T>): react_jsx_runtime.JSX.Element;
|
|
@@ -914,14 +916,14 @@ declare function TransporterTextField(props: TransporterTextFieldProps): react_j
|
|
|
914
916
|
type TransporterStore<T> = {
|
|
915
917
|
isOpen: boolean;
|
|
916
918
|
query?: string;
|
|
917
|
-
value?: T | null;
|
|
919
|
+
value?: T | T[] | null;
|
|
918
920
|
setQuery: (query?: string) => void;
|
|
919
|
-
setValue: (value?: T | null) => void;
|
|
921
|
+
setValue: (value?: T | T[] | null) => void;
|
|
920
922
|
openTransporter: () => void;
|
|
921
|
-
closeTransporter: (value?: T) => Promise<void>;
|
|
922
|
-
onChange?: (value: T) => void;
|
|
923
|
-
setOnChange: (fn?: (value: T) => void) => void;
|
|
924
|
-
triggerOnChange: (value: T) => void;
|
|
923
|
+
closeTransporter: (value?: T | T[]) => Promise<void>;
|
|
924
|
+
onChange?: (value: T | T[]) => void;
|
|
925
|
+
setOnChange: (fn?: (value: T | T[]) => void) => void;
|
|
926
|
+
triggerOnChange: (value: T | T[]) => void;
|
|
925
927
|
};
|
|
926
928
|
declare function useTransporter<T>(id: string): TransporterStore<T>;
|
|
927
929
|
|