@factorialco/f0-react 1.203.1 → 1.203.2
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/experimental.d.ts +6 -5
- package/dist/experimental.js +2518 -2517
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -1882,11 +1882,12 @@ export declare type enhanceTextParams = {
|
|
|
1882
1882
|
|
|
1883
1883
|
export declare type EntityId = number | string;
|
|
1884
1884
|
|
|
1885
|
-
export declare const EntitySelect: (props: EntitySelectProps & {
|
|
1885
|
+
export declare const EntitySelect: <T>(props: EntitySelectProps<T> & {
|
|
1886
1886
|
children?: React.ReactNode;
|
|
1887
1887
|
}) => JSX_2.Element;
|
|
1888
1888
|
|
|
1889
|
-
declare interface EntitySelectCommonProps extends Omit<PopoverProps, "children" | "modal">, Pick<InputFieldProps<string>, "label" | "labelIcon" | "icon" | "error" | "status" | "hint" | "hideLabel" | "maxLength" | "
|
|
1889
|
+
declare interface EntitySelectCommonProps<T> extends Omit<PopoverProps, "children" | "modal">, Pick<InputFieldProps<string>, "label" | "labelIcon" | "icon" | "error" | "status" | "hint" | "hideLabel" | "maxLength" | "disabled" | "placeholder" | "loading" | "required" | "readonly" | "append"> {
|
|
1890
|
+
value?: T;
|
|
1890
1891
|
entities: EntitySelectEntity[];
|
|
1891
1892
|
groups: EntitySelectNamedGroup[];
|
|
1892
1893
|
selectedGroup: string;
|
|
@@ -1922,7 +1923,7 @@ export declare type EntitySelectEntity = {
|
|
|
1922
1923
|
subItems?: EntitySelectSubEntity[];
|
|
1923
1924
|
};
|
|
1924
1925
|
|
|
1925
|
-
export declare interface EntitySelectMultipleProps extends EntitySelectCommonProps {
|
|
1926
|
+
export declare interface EntitySelectMultipleProps<T> extends EntitySelectCommonProps<T> {
|
|
1926
1927
|
onSelect: (entities: EntitySelectEntity[]) => void;
|
|
1927
1928
|
singleSelector: false | undefined;
|
|
1928
1929
|
}
|
|
@@ -1933,9 +1934,9 @@ export declare type EntitySelectNamedGroup = {
|
|
|
1933
1934
|
groupType?: "avatar" | "team";
|
|
1934
1935
|
};
|
|
1935
1936
|
|
|
1936
|
-
export declare type EntitySelectProps = EntitySelectSingleProps | EntitySelectMultipleProps
|
|
1937
|
+
export declare type EntitySelectProps<T> = EntitySelectSingleProps<T> | EntitySelectMultipleProps<T>;
|
|
1937
1938
|
|
|
1938
|
-
export declare interface EntitySelectSingleProps extends EntitySelectCommonProps {
|
|
1939
|
+
export declare interface EntitySelectSingleProps<T> extends EntitySelectCommonProps<T> {
|
|
1939
1940
|
onSelect: (entity: EntitySelectEntity | null) => void;
|
|
1940
1941
|
singleSelector: true;
|
|
1941
1942
|
}
|