@factorialco/f0-react 1.184.0 → 1.185.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.js +2 -2
- package/dist/f0.d.ts +78 -1
- package/dist/f0.js +388 -315
- package/dist/{hooks-DPlQOpZs.js → hooks-mfYg1env.js} +5505 -5503
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { aB as ov, aC as av, aD as k0, aE as La, aF as jk, aG as Vk, aH as Hk, aI as Vc, aJ as Wk, aK as qk, aL as Uk, aM as U, aN as lv, aO as Kk, aP as Gk, aQ as Jk, aR as ks, aS as Jo, aT as Jl, aU as Yk, aV as el, aW as Zk, aX as Hc, aY as Xk, aZ as Qk, a_ as tl, a$ as ew, b0 as tw, b1 as nw, b2 as w0, b3 as iw, b4 as x0, b5 as rw, b6 as dv, b7 as fv, b8 as sw, b9 as Qs, q as At, a as N, ba as nr, P as Ge, bb as Ve, s as de, j as nt, y as re, bc as _f, L as Nr, bd as je, be as ir, _ as cv, bf as Re, bg as ow, bh as aw, bi as lw, bj as Fh, bk as uv, v as Yl, w as ii, x as ai, bl as dw, bm as Zl, bn as Qu, bo as fw, n as Cf, bp as hv, f as cw, bq as uw, br as hw, bs as pw, b as _0, bt as mw, bu as gw, bv as pv, bw as Bh, bx as yw, c as Sf, by as eo, bz as $h, bA as $t, bB as vw, bC as Tn, bD as bw, bE as mv, bF as kw, bG as Bi, bH as ww, bI as xw, bJ as _w, bK as Cw, bL as Sw, bM as gv, bN as Nw, bO as C0, bP as Lw, ax as to, S as Mi, t as zh, bQ as Mw, bR as yv, bS as Jt, $ as Ma, r as rr, bT as Ew, bU as Zr, bV as jh, a8 as Wn, bW as ye, bX as Yt, bY as Nf, bZ as Yo, b_ as Tw, b$ as vv, c0 as bv, h as Lf, i as Mf, k as Ef, c1 as Vh, c2 as Ow, c3 as kv, C as mn, c4 as wv, c5 as Aw, c6 as Dw, G as Iw, c7 as xv, c8 as gt, c9 as e1, ca as _v, a5 as t1, cb as Rw, cc as Pw, cd as Fw, ce as Bw, cf as $w, ay as Tf, a2 as n1, F as Hh, aA as zw, cg as Ln, az as jw, ch as Cv, ci as an, cj as Sv, ck as hr, cl as Vw, cm as Hw, cn as qt, co as Xl, cp as Nv, cq as Ww, ag as Of, a6 as Wh, al as zr, cr as qh, cs as Uh, ct as Lv, cu as qw, a9 as Uw, a1 as Mv, cv as Kw, cw as Ev, cx as Gw, cy as Jw, cz as Yw, D as Tv, u as Ov, cA as S0, cB as Zw, cC as Ea, cD as Xw, cE as Af, K as Qw, m as ex, cF as tx, cG as nx, cH as ix, cI as rx, cJ as sx, cK as ox, cL as ax, cM as lx, p as dx, an as fx, cN as Av, cO as Df, cP as N0, Y as Dv, cQ as Ta, cR as Ts, cS as Iv, cT as Rv, cU as cx, a0 as no, cV as ux, a3 as Pv, I as hx, cW as ft, cX as L0, cY as px, cZ as mx, c_ as gx, c$ as Wc, d0 as yx, d1 as vx, ab as Ql, ao as M0, d2 as Fv, z as If, d3 as Rf, d4 as Pf, E as Ff, aa as Kh, d5 as bx, as as kx, d6 as i1, d7 as wx, d8 as ed, at as xx, d9 as _x, ar as Bv, aq as Cx, ap as Sx, da as Nx, ac as Lx, db as Mx, a4 as Ex, dc as Oa, dd as Gh, de as Jh, df as Aa, dg as $v, dh as zv, di as Tx, au as jv, dj as Vv, ad as Hv, dk as Ox, dl as Ax, dm as Dx, H as Ix, A as Rx, B as Px, e as Fx, g as Bx, V as $x, d as zx, dn as E0, dp as jx, dq as Vx, dr as Hx, ds as Wv, dt as Wx } from "./hooks-mfYg1env.js";
|
|
2
|
+
import { J as LJ, dv as MJ, a7 as EJ, du as TJ } from "./hooks-mfYg1env.js";
|
|
3
3
|
import { jsxs as b, jsx as f, Fragment as Ne } from "react/jsx-runtime";
|
|
4
4
|
import * as I from "react";
|
|
5
5
|
import X, { forwardRef as H, createContext as Rn, useRef as le, useState as B, useCallback as _e, useContext as ln, useMemo as he, useEffect as ne, PureComponent as qx, useId as Xr, useLayoutEffect as Yh, memo as Da, Fragment as sr, useTransition as Ux, isValidElement as Kx, cloneElement as qv, useDeferredValue as Gx, useDebugValue as Uv, createRef as Jx, createElement as Yx, version as T0, useImperativeHandle as Bf, Children as Kv } from "react";
|
package/dist/f0.d.ts
CHANGED
|
@@ -266,6 +266,21 @@ declare type BaseBannerProps = {
|
|
|
266
266
|
children?: React.ReactNode;
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
+
declare interface BaseChipProps extends VariantProps<typeof chipVariants> {
|
|
270
|
+
/**
|
|
271
|
+
* The label of the chip
|
|
272
|
+
* */
|
|
273
|
+
label: string;
|
|
274
|
+
/**
|
|
275
|
+
* If defined, the chip will be clickable
|
|
276
|
+
* */
|
|
277
|
+
onClick?: () => void;
|
|
278
|
+
/**
|
|
279
|
+
* If defined, the close icon will be displayed and the chip will be clickable
|
|
280
|
+
* */
|
|
281
|
+
onClose?: () => void;
|
|
282
|
+
}
|
|
283
|
+
|
|
269
284
|
declare type BaseColor = keyof typeof baseColors;
|
|
270
285
|
|
|
271
286
|
/**
|
|
@@ -564,6 +579,37 @@ declare interface CheckboxProps extends DataAttributes {
|
|
|
564
579
|
name?: string;
|
|
565
580
|
}
|
|
566
581
|
|
|
582
|
+
declare type ChipProps = BaseChipProps & ChipVariants & {
|
|
583
|
+
variant?: "default" | "selected";
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
declare type ChipVariants = {
|
|
587
|
+
/**
|
|
588
|
+
* If defined, an avatar will be displayed in the chip
|
|
589
|
+
* */
|
|
590
|
+
avatar: AvatarVariant;
|
|
591
|
+
icon?: undefined;
|
|
592
|
+
} | {
|
|
593
|
+
/**
|
|
594
|
+
* If defined, an icon will be displayed in the chip
|
|
595
|
+
* */
|
|
596
|
+
icon: IconType;
|
|
597
|
+
avatar?: undefined;
|
|
598
|
+
} | {
|
|
599
|
+
avatar?: undefined;
|
|
600
|
+
icon?: undefined;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
declare const chipVariants: (props?: ({
|
|
604
|
+
variant?: "default" | "selected" | undefined;
|
|
605
|
+
} & ({
|
|
606
|
+
class?: ClassValue;
|
|
607
|
+
className?: never;
|
|
608
|
+
} | {
|
|
609
|
+
class?: never;
|
|
610
|
+
className?: ClassValue;
|
|
611
|
+
})) | undefined) => string;
|
|
612
|
+
|
|
567
613
|
export declare type CompanyAvatarVariant = Extract<AvatarVariant, {
|
|
568
614
|
type: "company";
|
|
569
615
|
}>;
|
|
@@ -1090,6 +1136,14 @@ export declare const F0Checkbox: typeof _F0Checkbox;
|
|
|
1090
1136
|
|
|
1091
1137
|
declare function _F0Checkbox({ title, onCheckedChange, id, disabled, indeterminate, checked, value, hideLabel, presentational, stopPropagation, name, ...rest }: CheckboxProps): JSX_2.Element;
|
|
1092
1138
|
|
|
1139
|
+
/**
|
|
1140
|
+
* @experimental This is an experimental component use it at your own risk
|
|
1141
|
+
*/
|
|
1142
|
+
export declare const F0ChipList: {
|
|
1143
|
+
({ chips, max, remainingCount: initialRemainingCount, layout, }: Props): JSX_2.Element;
|
|
1144
|
+
displayName: string;
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1093
1147
|
export declare const F0Icon: ForwardRefExoticComponent<Omit<Omit<F0IconProps_2, "ref"> & RefAttributes<SVGSVGElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
1094
1148
|
|
|
1095
1149
|
export declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
@@ -1637,6 +1691,29 @@ declare type PromoteAction = {
|
|
|
1637
1691
|
};
|
|
1638
1692
|
|
|
1639
1693
|
declare type Props = {
|
|
1694
|
+
/**
|
|
1695
|
+
* Array of chips to display.
|
|
1696
|
+
*/
|
|
1697
|
+
chips: Array<ChipProps>;
|
|
1698
|
+
/**
|
|
1699
|
+
* The maximum number of chips to display.
|
|
1700
|
+
* @default 4
|
|
1701
|
+
*/
|
|
1702
|
+
max?: number;
|
|
1703
|
+
/**
|
|
1704
|
+
* The remaining number to display.
|
|
1705
|
+
*/
|
|
1706
|
+
remainingCount?: number;
|
|
1707
|
+
/**
|
|
1708
|
+
* The layout of the chip list.
|
|
1709
|
+
* - "fill" - Chips will expand to fill the available width, with overflow items shown in a counter
|
|
1710
|
+
* - "compact" - Chips will be stacked together up to the max limit, with remaining shown in counter
|
|
1711
|
+
* @default "compact"
|
|
1712
|
+
*/
|
|
1713
|
+
layout?: "fill" | "compact";
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
declare type Props_2 = {
|
|
1640
1717
|
count: number;
|
|
1641
1718
|
list?: TagCounterItem[];
|
|
1642
1719
|
};
|
|
@@ -1691,7 +1768,7 @@ export declare interface TagCompanyProps {
|
|
|
1691
1768
|
}
|
|
1692
1769
|
|
|
1693
1770
|
export declare const TagCounter: {
|
|
1694
|
-
({ count, list }:
|
|
1771
|
+
({ count, list }: Props_2): JSX_2.Element;
|
|
1695
1772
|
displayName: string;
|
|
1696
1773
|
};
|
|
1697
1774
|
|