@factorialco/f0-react 1.279.0 → 1.279.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.
@@ -2598,7 +2598,7 @@ declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<typeof Avat
2598
2598
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
2599
2599
 
2600
2600
  declare type F0AvatarFlagProps = {
2601
- flag: CountryCode;
2601
+ flag: CountryCode | (string & {});
2602
2602
  size?: BaseAvatarProps["size"];
2603
2603
  badge?: AvatarBadge;
2604
2604
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
@@ -3201,6 +3201,15 @@ declare type InFilterOptionItem<T = unknown> = {
3201
3201
  */
3202
3202
  declare type InFilterOptions_2<T, _R extends RecordType = RecordType> = {
3203
3203
  cache?: boolean;
3204
+ /**
3205
+ * Optional function to resolve labels for specific values without fetching all options.
3206
+ * This is useful when you have a dynamic source and want to avoid fetching all options
3207
+ * just to display labels for selected values.
3208
+ * @param value - The value to get the label for
3209
+ * @returns The label for the value, or a promise that resolves to the label
3210
+ * @note The parameter type is `unknown` to allow compatibility when T is different types
3211
+ */
3212
+ getLabel?: (value: unknown) => string | Promise<string>;
3204
3213
  } & ({
3205
3214
  options: Array<InFilterOptionItem<T>> | (() => Array<InFilterOptionItem<T>> | Promise<Array<InFilterOptionItem<T>>>);
3206
3215
  } | {
@@ -5954,11 +5963,6 @@ declare module "@tiptap/core" {
5954
5963
  }
5955
5964
 
5956
5965
 
5957
- declare namespace Calendar {
5958
- var displayName: string;
5959
- }
5960
-
5961
-
5962
5966
  declare module "@tiptap/core" {
5963
5967
  interface Commands<ReturnType> {
5964
5968
  moodTracker: {
@@ -5966,3 +5970,8 @@ declare module "@tiptap/core" {
5966
5970
  };
5967
5971
  }
5968
5972
  }
5973
+
5974
+
5975
+ declare namespace Calendar {
5976
+ var displayName: string;
5977
+ }