@factorialco/f0-react 1.217.0 → 1.218.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 +18 -6
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +30 -8
- package/dist/f0.js +9 -3
- package/dist/{hooks-R_UN_vQd.js → hooks-BbcaGCWm.js} +41129 -29663
- package/dist/styles.css +1 -1
- package/icons/special/One.d.ts +4 -0
- package/icons/special/One.d.ts.map +1 -0
- package/icons/special/One.js +35 -0
- package/icons/special/index.d.ts +2 -0
- package/icons/special/index.d.ts.map +1 -0
- package/icons/special/index.js +1 -0
- package/package.json +4 -2
package/dist/experimental.d.ts
CHANGED
|
@@ -428,7 +428,9 @@ declare type AvatarVariant = DistributiveOmit<({
|
|
|
428
428
|
type: "company";
|
|
429
429
|
} & F0AvatarCompanyProps) | ({
|
|
430
430
|
type: "file";
|
|
431
|
-
} & F0AvatarFileProps)
|
|
431
|
+
} & F0AvatarFileProps) | ({
|
|
432
|
+
type: "flag";
|
|
433
|
+
} & F0AvatarFlagProps), "size">;
|
|
432
434
|
|
|
433
435
|
export declare const Badge: ({ type, size, icon }: BadgeProps) => JSX_2.Element;
|
|
434
436
|
|
|
@@ -477,6 +479,10 @@ declare type BaseAvatarProps = {
|
|
|
477
479
|
* The source of the avatar's image.
|
|
478
480
|
*/
|
|
479
481
|
src?: string;
|
|
482
|
+
/**
|
|
483
|
+
* This is a workaround until we implement the ability to deal with images
|
|
484
|
+
*/
|
|
485
|
+
flag?: ReactElement;
|
|
480
486
|
/**
|
|
481
487
|
* The color of the avatar.
|
|
482
488
|
* @default "random"
|
|
@@ -2041,6 +2047,12 @@ declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<typeof Avat
|
|
|
2041
2047
|
badge?: AvatarBadge;
|
|
2042
2048
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2043
2049
|
|
|
2050
|
+
declare type F0AvatarFlagProps = {
|
|
2051
|
+
flag: string;
|
|
2052
|
+
size?: BaseAvatarProps["size"];
|
|
2053
|
+
badge?: AvatarBadge;
|
|
2054
|
+
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2055
|
+
|
|
2044
2056
|
/**
|
|
2045
2057
|
* Module avatar
|
|
2046
2058
|
* @description A component that displays a module avatar
|
|
@@ -5113,11 +5125,6 @@ declare module "@tiptap/core" {
|
|
|
5113
5125
|
}
|
|
5114
5126
|
|
|
5115
5127
|
|
|
5116
|
-
declare namespace Calendar {
|
|
5117
|
-
var displayName: string;
|
|
5118
|
-
}
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
5128
|
declare module "@tiptap/core" {
|
|
5122
5129
|
interface Commands<ReturnType> {
|
|
5123
5130
|
moodTracker: {
|
|
@@ -5125,3 +5132,8 @@ declare module "@tiptap/core" {
|
|
|
5125
5132
|
};
|
|
5126
5133
|
}
|
|
5127
5134
|
}
|
|
5135
|
+
|
|
5136
|
+
|
|
5137
|
+
declare namespace Calendar {
|
|
5138
|
+
var displayName: string;
|
|
5139
|
+
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aN as I5, aO as D5, aP as ay, aQ as pl, aR as LC, aS as EC, aT as MC, aU as Gu, aV as TC, aW as AC, aX as OC, aY as de, aZ as R5, a_ as IC, a$ as DC, b0 as RC, b1 as io, b2 as Ra, b3 as Wc, b4 as P5, b5 as Hl, b6 as PC, b7 as Ju, b8 as FC, b9 as BC, ba as Wl, bb as zC, bc as $C, bd as jC, be as ly, bf as VC, bg as cy, bh as HC, bi as F5, bj as B5, bk as WC, bl as Fo, q as Vt, a as T, bm as Ir, P as rt, bn as Xe, s as ge, j as mt, y as ue, bo as _f, bp as z5, L as Gi, bq as He, $ as $5, w as Zi, x as Xn, br as Ze, bs as j5, c as Cf, bt as Bo, bu as ml, bv as tn, bw as Qn, aJ as Os, bx as dy, by as Hr, bz as qc, bA as Uc, bB as qC, n as Sf, bC as V5, bD as te, bE as Ai, bF as xt, bG as H5, bH as W5, f as UC, bI as KC, bJ as GC, bK as JC, b as fy, bL as YC, bM as ZC, bN as Ln, ac as Kc, az as uy, bO as Is, bP as q5, bQ as pm, bR as XC, bS as mm, bT as QC, bU as eS, bV as U5, bW as tS, bX as mr, bY as nS, bZ as iS, b_ as rS, b$ as sS, c0 as oS, c1 as K5, c2 as aS, c3 as hy, c4 as lS, c5 as Dr, S as ei, t as gm, c6 as G5, at as cS, av as J5, aq as Y5, aw as Nf, c7 as ym, a0 as gl, r as nr, c8 as dS, c9 as vm, a9 as Oi, ca as un, cb as Lf, cc as Pa, cd as fS, ce as Z5, cf as uS, h as Ef, i as Mf, k as Tf, cg as bm, ch as hS, ci as X5, C as Pn, cj as Q5, ck as pS, cl as mS, G as gS, cm as e6, cn as xh, co as t6, a6 as Gc, cp as yS, cq as vS, cr as bS, cs as kS, ct as xS, aK as Af, a3 as wh, F as km, aM as wS, cu as Jn, aL as _S, cv as n6, cw as _n, cx as CS, cy as SS, cz as Cn, cA as Jc, cB as i6, ah as Of, a7 as xm, am as ks, cC as wm, cD as _m, cE as r6, cF as NS, aa as LS, a2 as s6, cG as Cm, cH as ES, cI as MS, cJ as TS, D as o6, u as a6, cK as py, cL as AS, cM as OS, cN as If, K as IS, m as DS, cO as _h, cP as RS, cQ as PS, cR as FS, cS as BS, cT as zS, cU as $S, cV as jS, cW as VS, cX as HS, cY as WS, cZ as qS, c_ as US, p as KS, ao as GS, c$ as l6, d0 as Df, v as Ch, d1 as my, Z as c6, d2 as yl, d3 as d6, d4 as f6, d5 as JS, a1 as zo, a4 as u6, I as YS, d6 as _t, d7 as gy, d8 as ZS, d9 as XS, da as QS, db as Yu, dc as eN, dd as tN, ar as nN, ay as Rf, z as Pf, de as Ff, df as Bf, E as zf, ax as h6, ab as p6, dg as iN, aD as rN, dh as Sh, di as sN, dj as Yc, dk as oN, as as Zc, aE as aN, dl as lN, aC as m6, dm as cN, aB as dN, aA as fN, dn as uN, dp as hN, dq as pN, dr as mN, ad as gN, ds as yN, dt as vN, du as bN, a5 as kN, dv as vl, dw as Sm, dx as Nm, dy as bl, dz as g6, dA as xN, dB as y6, dC as wN, aF as v6, dD as b6, ae as k6, dE as _N, dF as CN, dG as SN, H as NN, A as LN, B as EN, e as MN, g as TN, V as AN, d as ON, dH as yy, dI as IN, dJ as DN, dK as RN, dL as x6, dM as PN } from "./hooks-
|
|
2
|
-
import { J as $oe, dO as joe, a8 as Voe, dN as Hoe } from "./hooks-
|
|
1
|
+
import { aN as I5, aO as D5, aP as ay, aQ as pl, aR as LC, aS as EC, aT as MC, aU as Gu, aV as TC, aW as AC, aX as OC, aY as de, aZ as R5, a_ as IC, a$ as DC, b0 as RC, b1 as io, b2 as Ra, b3 as Wc, b4 as P5, b5 as Hl, b6 as PC, b7 as Ju, b8 as FC, b9 as BC, ba as Wl, bb as zC, bc as $C, bd as jC, be as ly, bf as VC, bg as cy, bh as HC, bi as F5, bj as B5, bk as WC, bl as Fo, q as Vt, a as T, bm as Ir, P as rt, bn as Xe, s as ge, j as mt, y as ue, bo as _f, bp as z5, L as Gi, bq as He, $ as $5, w as Zi, x as Xn, br as Ze, bs as j5, c as Cf, bt as Bo, bu as ml, bv as tn, bw as Qn, aJ as Os, bx as dy, by as Hr, bz as qc, bA as Uc, bB as qC, n as Sf, bC as V5, bD as te, bE as Ai, bF as xt, bG as H5, bH as W5, f as UC, bI as KC, bJ as GC, bK as JC, b as fy, bL as YC, bM as ZC, bN as Ln, ac as Kc, az as uy, bO as Is, bP as q5, bQ as pm, bR as XC, bS as mm, bT as QC, bU as eS, bV as U5, bW as tS, bX as mr, bY as nS, bZ as iS, b_ as rS, b$ as sS, c0 as oS, c1 as K5, c2 as aS, c3 as hy, c4 as lS, c5 as Dr, S as ei, t as gm, c6 as G5, at as cS, av as J5, aq as Y5, aw as Nf, c7 as ym, a0 as gl, r as nr, c8 as dS, c9 as vm, a9 as Oi, ca as un, cb as Lf, cc as Pa, cd as fS, ce as Z5, cf as uS, h as Ef, i as Mf, k as Tf, cg as bm, ch as hS, ci as X5, C as Pn, cj as Q5, ck as pS, cl as mS, G as gS, cm as e6, cn as xh, co as t6, a6 as Gc, cp as yS, cq as vS, cr as bS, cs as kS, ct as xS, aK as Af, a3 as wh, F as km, aM as wS, cu as Jn, aL as _S, cv as n6, cw as _n, cx as CS, cy as SS, cz as Cn, cA as Jc, cB as i6, ah as Of, a7 as xm, am as ks, cC as wm, cD as _m, cE as r6, cF as NS, aa as LS, a2 as s6, cG as Cm, cH as ES, cI as MS, cJ as TS, D as o6, u as a6, cK as py, cL as AS, cM as OS, cN as If, K as IS, m as DS, cO as _h, cP as RS, cQ as PS, cR as FS, cS as BS, cT as zS, cU as $S, cV as jS, cW as VS, cX as HS, cY as WS, cZ as qS, c_ as US, p as KS, ao as GS, c$ as l6, d0 as Df, v as Ch, d1 as my, Z as c6, d2 as yl, d3 as d6, d4 as f6, d5 as JS, a1 as zo, a4 as u6, I as YS, d6 as _t, d7 as gy, d8 as ZS, d9 as XS, da as QS, db as Yu, dc as eN, dd as tN, ar as nN, ay as Rf, z as Pf, de as Ff, df as Bf, E as zf, ax as h6, ab as p6, dg as iN, aD as rN, dh as Sh, di as sN, dj as Yc, dk as oN, as as Zc, aE as aN, dl as lN, aC as m6, dm as cN, aB as dN, aA as fN, dn as uN, dp as hN, dq as pN, dr as mN, ad as gN, ds as yN, dt as vN, du as bN, a5 as kN, dv as vl, dw as Sm, dx as Nm, dy as bl, dz as g6, dA as xN, dB as y6, dC as wN, aF as v6, dD as b6, ae as k6, dE as _N, dF as CN, dG as SN, H as NN, A as LN, B as EN, e as MN, g as TN, V as AN, d as ON, dH as yy, dI as IN, dJ as DN, dK as RN, dL as x6, dM as PN } from "./hooks-BbcaGCWm.js";
|
|
2
|
+
import { J as $oe, dO as joe, a8 as Voe, dN as Hoe } from "./hooks-BbcaGCWm.js";
|
|
3
3
|
import { jsxs as k, jsx as f, Fragment as Te } from "react/jsx-runtime";
|
|
4
4
|
import * as F from "react";
|
|
5
5
|
import re, { forwardRef as U, createContext as si, useRef as me, useState as V, useCallback as Ie, useContext as Sn, useMemo as he, useEffect as se, PureComponent as FN, useId as Wr, useLayoutEffect as Lm, memo as kl, Fragment as Rr, useTransition as BN, isValidElement as w6, cloneElement as Em, useDebugValue as _6, createRef as zN, createElement as $N, version as vy, useImperativeHandle as $f, Children as C6 } from "react";
|
package/dist/f0.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ import { PersonCellValue as PersonCellValue_2 } from './types/person.tsx';
|
|
|
52
52
|
import { PieChartProps } from './PieChart';
|
|
53
53
|
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
54
54
|
import * as React_2 from 'react';
|
|
55
|
+
import { ReactElement } from 'react';
|
|
55
56
|
import { ReactNode } from 'react';
|
|
56
57
|
import { RefAttributes } from 'react';
|
|
57
58
|
import { RefObject } from 'react';
|
|
@@ -173,7 +174,9 @@ export declare type AvatarVariant = DistributiveOmit<({
|
|
|
173
174
|
type: "company";
|
|
174
175
|
} & F0AvatarCompanyProps) | ({
|
|
175
176
|
type: "file";
|
|
176
|
-
} & F0AvatarFileProps)
|
|
177
|
+
} & F0AvatarFileProps) | ({
|
|
178
|
+
type: "flag";
|
|
179
|
+
} & F0AvatarFlagProps), "size">;
|
|
177
180
|
|
|
178
181
|
declare type AvatarVariant_2 = ({
|
|
179
182
|
type: "person";
|
|
@@ -183,11 +186,13 @@ declare type AvatarVariant_2 = ({
|
|
|
183
186
|
type: "company";
|
|
184
187
|
} & Omit<F0AvatarCompanyProps, "size">) | ({
|
|
185
188
|
type: "file";
|
|
186
|
-
} & Omit<F0AvatarFileProps, "size">)
|
|
189
|
+
} & Omit<F0AvatarFileProps, "size">) | ({
|
|
190
|
+
type: "flag";
|
|
191
|
+
} & Omit<F0AvatarFlagProps, "size">);
|
|
187
192
|
|
|
188
193
|
export declare type AvatarVariants = (typeof avatarVariants)[number];
|
|
189
194
|
|
|
190
|
-
export declare const avatarVariants: readonly ["person", "team", "company", "file"];
|
|
195
|
+
export declare const avatarVariants: readonly ["person", "team", "company", "file", "flag"];
|
|
191
196
|
|
|
192
197
|
export declare const Await: <T>({ resolve, fallback, error: errorFallback, children, }: AwaitProps<T>) => ReactNode;
|
|
193
198
|
|
|
@@ -257,6 +262,10 @@ declare type BaseAvatarProps = {
|
|
|
257
262
|
* The source of the avatar's image.
|
|
258
263
|
*/
|
|
259
264
|
src?: string;
|
|
265
|
+
/**
|
|
266
|
+
* This is a workaround until we implement the ability to deal with images
|
|
267
|
+
*/
|
|
268
|
+
flag?: ReactElement;
|
|
260
269
|
/**
|
|
261
270
|
* The color of the avatar.
|
|
262
271
|
* @default "random"
|
|
@@ -1428,6 +1437,12 @@ export declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<type
|
|
|
1428
1437
|
badge?: AvatarBadge;
|
|
1429
1438
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
1430
1439
|
|
|
1440
|
+
declare type F0AvatarFlagProps = {
|
|
1441
|
+
flag: string;
|
|
1442
|
+
size?: BaseAvatarProps["size"];
|
|
1443
|
+
badge?: AvatarBadge;
|
|
1444
|
+
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
1445
|
+
|
|
1431
1446
|
export declare const F0AvatarIcon: {
|
|
1432
1447
|
({ icon, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, }: F0AvatarIconProps): JSX_2.Element;
|
|
1433
1448
|
displayName: string;
|
|
@@ -1481,6 +1496,9 @@ declare type F0AvatarListPropsAvatars = {
|
|
|
1481
1496
|
} | {
|
|
1482
1497
|
type: "company";
|
|
1483
1498
|
avatars: (Omit<CompanyAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
1499
|
+
} | {
|
|
1500
|
+
type: "flag";
|
|
1501
|
+
avatars: (Omit<FlagAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
1484
1502
|
} | {
|
|
1485
1503
|
type: "file";
|
|
1486
1504
|
avatars: (Omit<FileAvatarVariant, "type"> & Record<string, unknown>)[];
|
|
@@ -1720,6 +1738,10 @@ declare type FilterTypeSchema<Options extends object = never> = {
|
|
|
1720
1738
|
*/
|
|
1721
1739
|
export declare type FilterValue<T extends FilterDefinition> = T extends InFilterDefinition<infer U> ? U[] : T extends SearchFilterDefinition ? string : T extends DateFilterDefinition ? DateRange | Date | undefined : never;
|
|
1722
1740
|
|
|
1741
|
+
export declare type FlagAvatarVariant = Extract<AvatarVariant, {
|
|
1742
|
+
type: "flag";
|
|
1743
|
+
}>;
|
|
1744
|
+
|
|
1723
1745
|
export declare const getAnimationVariants: (options?: AnimationVariantsOptions) => {
|
|
1724
1746
|
hidden: {
|
|
1725
1747
|
opacity: number;
|
|
@@ -3365,11 +3387,6 @@ declare module "@tiptap/core" {
|
|
|
3365
3387
|
}
|
|
3366
3388
|
|
|
3367
3389
|
|
|
3368
|
-
declare namespace Calendar {
|
|
3369
|
-
var displayName: string;
|
|
3370
|
-
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
3390
|
declare module "@tiptap/core" {
|
|
3374
3391
|
interface Commands<ReturnType> {
|
|
3375
3392
|
moodTracker: {
|
|
@@ -3377,3 +3394,8 @@ declare module "@tiptap/core" {
|
|
|
3377
3394
|
};
|
|
3378
3395
|
}
|
|
3379
3396
|
}
|
|
3397
|
+
|
|
3398
|
+
|
|
3399
|
+
declare namespace Calendar {
|
|
3400
|
+
var displayName: string;
|
|
3401
|
+
}
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as g, L as pe, c as ge, P as G, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as H, i as U, j as Pe, k as W, S as J, l as M, m as Y, n as Se, O as Fe, o as X, p as De, q as ke, F as K, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as Ae, N as qe, Q as Ge, R as He, X as Ue, T as We, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-
|
|
2
|
-
import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Lr, au as Pr, ax as Sr, at as Fr, aL as Dr, as as kr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-
|
|
1
|
+
import { C as g, L as pe, c as ge, P as G, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as H, i as U, j as Pe, k as W, S as J, l as M, m as Y, n as Se, O as Fe, o as X, p as De, q as ke, F as K, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as Ae, N as qe, Q as Ge, R as He, X as Ue, T as We, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-BbcaGCWm.js";
|
|
2
|
+
import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Lr, au as Pr, ax as Sr, at as Fr, aL as Dr, as as kr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-BbcaGCWm.js";
|
|
3
3
|
import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import * as E from "react";
|
|
5
5
|
import Qe, { useState as v, forwardRef as I, useRef as ae, useImperativeHandle as Ze, Children as ea, useEffect as re, createContext as aa } from "react";
|
|
@@ -207,7 +207,13 @@ const Fa = {
|
|
|
207
207
|
type: "info"
|
|
208
208
|
},
|
|
209
209
|
pe
|
|
210
|
-
), ka = [
|
|
210
|
+
), ka = [
|
|
211
|
+
"person",
|
|
212
|
+
"team",
|
|
213
|
+
"company",
|
|
214
|
+
"file",
|
|
215
|
+
"flag"
|
|
216
|
+
];
|
|
211
217
|
var _ = "Progress", j = 100, [ra, Ma] = ge(_), [sa, ta] = ra(_), se = E.forwardRef(
|
|
212
218
|
(a, r) => {
|
|
213
219
|
const {
|