@factorialco/f0-react 1.279.0 → 1.280.0
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 +37 -28
- package/dist/experimental.js +14908 -21895
- package/dist/f0.d.ts +128 -28
- package/dist/f0.js +877 -763
- package/dist/{hooks-BPLedtdk.js → hooks-WCchcl_J.js} +37994 -30931
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -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
|
} | {
|
|
@@ -5902,31 +5911,6 @@ declare global {
|
|
|
5902
5911
|
}
|
|
5903
5912
|
|
|
5904
5913
|
|
|
5905
|
-
declare module "gridstack" {
|
|
5906
|
-
interface GridStackWidget {
|
|
5907
|
-
id?: string;
|
|
5908
|
-
allowedSizes?: Array<{
|
|
5909
|
-
w: number;
|
|
5910
|
-
h: number;
|
|
5911
|
-
}>;
|
|
5912
|
-
renderFn?: () => React.ReactElement | null;
|
|
5913
|
-
meta?: Record<string, unknown>;
|
|
5914
|
-
}
|
|
5915
|
-
interface GridStackNode {
|
|
5916
|
-
id?: string;
|
|
5917
|
-
w?: number;
|
|
5918
|
-
h?: number;
|
|
5919
|
-
x?: number;
|
|
5920
|
-
y?: number;
|
|
5921
|
-
allowedSizes?: Array<{
|
|
5922
|
-
w: number;
|
|
5923
|
-
h: number;
|
|
5924
|
-
}>;
|
|
5925
|
-
renderFn?: () => React.ReactElement | null;
|
|
5926
|
-
}
|
|
5927
|
-
}
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
5914
|
declare module "@tiptap/core" {
|
|
5931
5915
|
interface Commands<ReturnType> {
|
|
5932
5916
|
aiBlock: {
|
|
@@ -5954,8 +5938,28 @@ declare module "@tiptap/core" {
|
|
|
5954
5938
|
}
|
|
5955
5939
|
|
|
5956
5940
|
|
|
5957
|
-
declare
|
|
5958
|
-
|
|
5941
|
+
declare module "gridstack" {
|
|
5942
|
+
interface GridStackWidget {
|
|
5943
|
+
id?: string;
|
|
5944
|
+
allowedSizes?: Array<{
|
|
5945
|
+
w: number;
|
|
5946
|
+
h: number;
|
|
5947
|
+
}>;
|
|
5948
|
+
renderFn?: () => React.ReactElement | null;
|
|
5949
|
+
meta?: Record<string, unknown>;
|
|
5950
|
+
}
|
|
5951
|
+
interface GridStackNode {
|
|
5952
|
+
id?: string;
|
|
5953
|
+
w?: number;
|
|
5954
|
+
h?: number;
|
|
5955
|
+
x?: number;
|
|
5956
|
+
y?: number;
|
|
5957
|
+
allowedSizes?: Array<{
|
|
5958
|
+
w: number;
|
|
5959
|
+
h: number;
|
|
5960
|
+
}>;
|
|
5961
|
+
renderFn?: () => React.ReactElement | null;
|
|
5962
|
+
}
|
|
5959
5963
|
}
|
|
5960
5964
|
|
|
5961
5965
|
|
|
@@ -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
|
+
}
|