@factorialco/f0-react 1.203.0 → 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.
@@ -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" | "value" | "disabled" | "placeholder" | "loading" | "required" | "readonly" | "append"> {
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
  }
@@ -5041,6 +5042,11 @@ declare module "@tiptap/core" {
5041
5042
  }
5042
5043
 
5043
5044
 
5045
+ declare namespace Calendar {
5046
+ var displayName: string;
5047
+ }
5048
+
5049
+
5044
5050
  declare module "@tiptap/core" {
5045
5051
  interface Commands<ReturnType> {
5046
5052
  moodTracker: {
@@ -5048,8 +5054,3 @@ declare module "@tiptap/core" {
5048
5054
  };
5049
5055
  }
5050
5056
  }
5051
-
5052
-
5053
- declare namespace Calendar {
5054
- var displayName: string;
5055
- }