@factorialco/f0-react 1.247.4 → 1.249.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 +26 -11
- package/dist/experimental.js +2975 -3000
- package/dist/f0.d.ts +24 -14
- package/dist/f0.js +2 -2
- package/dist/{hooks-CP_0XHUX.js → hooks-MY9wJB8E.js} +33181 -33098
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ export declare type AvatarBadge = ({
|
|
|
253
253
|
tooltip?: string;
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
declare const avatarEmojiSizes: readonly ["sm", "md", "lg"];
|
|
256
|
+
declare const avatarEmojiSizes: readonly ["sm", "md", "lg", "xl"];
|
|
257
257
|
|
|
258
258
|
declare type AvatarFileSize = (typeof avatarFileSizes)[number];
|
|
259
259
|
|
|
@@ -277,6 +277,8 @@ declare const avatarSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
|
277
277
|
export declare type AvatarVariant = DistributiveOmit<({
|
|
278
278
|
type: "person";
|
|
279
279
|
} & F0AvatarPersonProps) | ({
|
|
280
|
+
type: "emoji";
|
|
281
|
+
} & F0AvatarEmojiProps) | ({
|
|
280
282
|
type: "team";
|
|
281
283
|
} & F0AvatarTeamProps) | ({
|
|
282
284
|
type: "company";
|
|
@@ -296,7 +298,9 @@ declare type AvatarVariant_2 = ({
|
|
|
296
298
|
type: "file";
|
|
297
299
|
} & Omit<F0AvatarFileProps, "size">) | ({
|
|
298
300
|
type: "flag";
|
|
299
|
-
} & Omit<F0AvatarFlagProps, "size">)
|
|
301
|
+
} & Omit<F0AvatarFlagProps, "size">) | ({
|
|
302
|
+
type: "emoji";
|
|
303
|
+
} & Omit<F0AvatarEmojiProps, "size">);
|
|
300
304
|
|
|
301
305
|
export declare type AvatarVariants = (typeof avatarVariants)[number];
|
|
302
306
|
|
|
@@ -1694,7 +1698,7 @@ export declare const F0AvatarEmoji: {
|
|
|
1694
1698
|
displayName: string;
|
|
1695
1699
|
};
|
|
1696
1700
|
|
|
1697
|
-
declare type F0AvatarEmojiProps = {
|
|
1701
|
+
export declare type F0AvatarEmojiProps = {
|
|
1698
1702
|
emoji: string;
|
|
1699
1703
|
size?: (typeof avatarEmojiSizes)[number];
|
|
1700
1704
|
} & Partial<Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">>;
|
|
@@ -2049,8 +2053,8 @@ export declare type FilterDefinition = FilterDefinitionsByType[keyof FilterDefin
|
|
|
2049
2053
|
/**
|
|
2050
2054
|
* All the available filter types
|
|
2051
2055
|
*/
|
|
2052
|
-
declare type FilterDefinitionsByType<T = unknown> = {
|
|
2053
|
-
in: InFilterDefinition<T>;
|
|
2056
|
+
declare type FilterDefinitionsByType<T = unknown, R extends RecordType = RecordType> = {
|
|
2057
|
+
in: InFilterDefinition<T, R>;
|
|
2054
2058
|
search: SearchFilterDefinition;
|
|
2055
2059
|
date: DateFilterDefinition;
|
|
2056
2060
|
};
|
|
@@ -2287,8 +2291,8 @@ declare type ImageContextValue = {
|
|
|
2287
2291
|
|
|
2288
2292
|
declare type ImageProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
2289
2293
|
|
|
2290
|
-
declare type InFilterDefinition<T = unknown> = BaseFilterDefinition<"in"> & {
|
|
2291
|
-
options: InFilterOptions_2<T>;
|
|
2294
|
+
declare type InFilterDefinition<T = unknown, R extends RecordType = RecordType> = BaseFilterDefinition<"in"> & {
|
|
2295
|
+
options: InFilterOptions_2<T, R>;
|
|
2292
2296
|
};
|
|
2293
2297
|
|
|
2294
2298
|
/**
|
|
@@ -2307,10 +2311,14 @@ declare type InFilterOptionItem<T = unknown> = {
|
|
|
2307
2311
|
* Represents the options for the InFilter component.
|
|
2308
2312
|
* @template T - Type of the underlying value
|
|
2309
2313
|
*/
|
|
2310
|
-
declare type InFilterOptions_2<T> = {
|
|
2314
|
+
declare type InFilterOptions_2<T, R extends RecordType = RecordType> = {
|
|
2311
2315
|
cache?: boolean;
|
|
2316
|
+
} & ({
|
|
2312
2317
|
options: Array<InFilterOptionItem<T>> | (() => Array<InFilterOptionItem<T>> | Promise<Array<InFilterOptionItem<T>>>);
|
|
2313
|
-
}
|
|
2318
|
+
} | {
|
|
2319
|
+
source: DataSourceDefinition<R, FiltersDefinition, SortingsDefinition, GroupingDefinition<R>>;
|
|
2320
|
+
mapOptions: (item: R) => InFilterOptionItem<T>;
|
|
2321
|
+
});
|
|
2314
2322
|
|
|
2315
2323
|
/**
|
|
2316
2324
|
* Represents a paginated response structure tailored for infinite scroll implementations.
|
|
@@ -2709,6 +2717,8 @@ declare type OneFilterPickerRootProps<Definition extends FiltersDefinition> = {
|
|
|
2709
2717
|
children?: React.ReactNode;
|
|
2710
2718
|
/** The mode of the component */
|
|
2711
2719
|
mode?: FiltersMode;
|
|
2720
|
+
/** Callback fired when filters open state is changed */
|
|
2721
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
2712
2722
|
};
|
|
2713
2723
|
|
|
2714
2724
|
declare type OnLoadDataCallback<Record extends RecordType, Filters extends FiltersDefinition> = (data: {
|
|
@@ -3871,11 +3881,6 @@ declare module "@tiptap/core" {
|
|
|
3871
3881
|
}
|
|
3872
3882
|
|
|
3873
3883
|
|
|
3874
|
-
declare namespace Calendar {
|
|
3875
|
-
var displayName: string;
|
|
3876
|
-
}
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
3884
|
declare module "@tiptap/core" {
|
|
3880
3885
|
interface Commands<ReturnType> {
|
|
3881
3886
|
moodTracker: {
|
|
@@ -3883,3 +3888,8 @@ declare module "@tiptap/core" {
|
|
|
3883
3888
|
};
|
|
3884
3889
|
}
|
|
3885
3890
|
}
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
declare namespace Calendar {
|
|
3894
|
+
var displayName: string;
|
|
3895
|
+
}
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as U, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as _, R as I, T as zt, U as Kt, V as Wt, W as Gt, Z as Vt, _ as qt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Jt, a6 as ze, a7 as Ke, a8 as We, a9 as Ge, aa as Ut, ab as Ve, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as qe, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as He, av as M, aw as Je, ax as da, ay as fa, az as Ce, aA as pa, aB as Ue, aC as ma, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na } from "./hooks-
|
|
2
|
-
import { bp as en, br as tn, bA as an, aO as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aX as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, bw as bn, b2 as gn, b4 as xn, b5 as wn, b6 as Pn, b7 as Sn, ba as Cn, bb as Nn, bc as An, bd as On, bf as kn, b3 as Ln, be as Dn, b9 as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aW as Rn, b1 as zn, b8 as Kn, bg as Wn, bl as Gn, bs as Vn, bt as qn, bu as Yn, bC as Hn, bm as Jn, bv as Un, bz as Xn, bo as Zn, by as Qn } from "./hooks-
|
|
1
|
+
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as U, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as _, R as I, T as zt, U as Kt, V as Wt, W as Gt, Z as Vt, _ as qt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Jt, a6 as ze, a7 as Ke, a8 as We, a9 as Ge, aa as Ut, ab as Ve, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as qe, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as He, av as M, aw as Je, ax as da, ay as fa, az as Ce, aA as pa, aB as Ue, aC as ma, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na } from "./hooks-MY9wJB8E.js";
|
|
2
|
+
import { bp as en, br as tn, bA as an, aO as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aX as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, bw as bn, b2 as gn, b4 as xn, b5 as wn, b6 as Pn, b7 as Sn, ba as Cn, bb as Nn, bc as An, bd as On, bf as kn, b3 as Ln, be as Dn, b9 as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aW as Rn, b1 as zn, b8 as Kn, bg as Wn, bl as Gn, bs as Vn, bt as qn, bu as Yn, bC as Hn, bm as Jn, bv as Un, bz as Xn, bo as Zn, by as Qn } from "./hooks-MY9wJB8E.js";
|
|
3
3
|
import { jsx as n, jsxs as N, Fragment as ae } from "react/jsx-runtime";
|
|
4
4
|
import * as fe from "react";
|
|
5
5
|
import k, { PureComponent as Aa, useState as D, forwardRef as q, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as Oa, Children as ka, createContext as La } from "react";
|