@factorialco/f0-react 1.306.1 → 1.306.3

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/f0.d.ts CHANGED
@@ -30,7 +30,6 @@ import { default as default_2 } from 'react';
30
30
  import { DotTagCellValue } from '../../value-display/types/dotTag';
31
31
  import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
32
32
  import { F0GridStackProps as F0GridStackProps_2 } from './F0GridStack';
33
- import { F0IconProps as F0IconProps_2 } from './F0Icon';
34
33
  import { F0SelectProps as F0SelectProps_2 } from './types';
35
34
  import { f1Colors } from '@factorialco/f0-core';
36
35
  import { FileCellValue } from '../../value-display/types/file';
@@ -249,7 +248,7 @@ declare const alertAvatarSizes: readonly ["sm", "md", "lg"];
249
248
  declare const alertAvatarTypes: readonly ["critical", "warning", "info", "positive"];
250
249
 
251
250
  declare const alertAvatarVariants: (props?: ({
252
- type?: "info" | "positive" | "critical" | "warning" | undefined;
251
+ type?: "info" | "critical" | "warning" | "positive" | undefined;
253
252
  size?: "lg" | "md" | "sm" | undefined;
254
253
  } & ({
255
254
  class?: ClassValue;
@@ -379,7 +378,7 @@ declare interface BadgeProps extends VariantProps<typeof badgeVariants> {
379
378
  }
380
379
 
381
380
  declare const badgeVariants: (props?: ({
382
- type?: "positive" | "critical" | "warning" | "neutral" | "highlight" | undefined;
381
+ type?: "critical" | "warning" | "positive" | "neutral" | "highlight" | undefined;
383
382
  size?: "lg" | "md" | "sm" | "xs" | undefined;
384
383
  } & ({
385
384
  class?: ClassValue;
@@ -1008,7 +1007,7 @@ declare type ChipVariants = {
1008
1007
  };
1009
1008
 
1010
1009
  declare const chipVariants: (props?: ({
1011
- variant?: "selected" | "default" | undefined;
1010
+ variant?: "default" | "selected" | undefined;
1012
1011
  } & ({
1013
1012
  class?: ClassValue;
1014
1013
  className?: never;
@@ -2357,11 +2356,10 @@ export declare type F0HeadingProps = Omit<TextProps, "className" | "variant" | "
2357
2356
  as?: HeadingTags;
2358
2357
  };
2359
2358
 
2360
- export declare const F0Icon: ForwardRefExoticComponent<Omit<Omit<F0IconProps_2, "ref"> & RefAttributes<SVGSVGElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
2359
+ export declare const F0Icon: ForwardRefExoticComponent<Omit<Omit<F0IconProps, "ref"> & RefAttributes<SVGSVGElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
2361
2360
 
2362
2361
  export declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
2363
2362
  icon: IconType;
2364
- tooltip?: string;
2365
2363
  size?: "lg" | "md" | "sm" | "xs";
2366
2364
  state?: "normal" | "animate";
2367
2365
  color?: "default" | "currentColor" | `#${string}` | Lowercase<NestedKeyOf<typeof f1Colors.icon>>;
@@ -4216,7 +4214,7 @@ declare type TextVariant = NonNullable<TextVariants["variant"]>;
4216
4214
  declare type TextVariants = VariantProps<typeof textVariants>;
4217
4215
 
4218
4216
  declare const textVariants: (props?: ({
4219
- variant?: "info" | "small" | "body" | "code" | "label" | "description" | "heading" | "selected" | "positive" | "inverse" | "critical" | "warning" | "heading-large" | "label-input" | "warning-strong" | "critical-strong" | "positive-strong" | "info-strong" | undefined;
4217
+ variant?: "info" | "small" | "body" | "code" | "label" | "description" | "heading" | "inverse" | "critical" | "warning" | "positive" | "selected" | "heading-large" | "label-input" | "warning-strong" | "critical-strong" | "positive-strong" | "info-strong" | undefined;
4220
4218
  align?: "center" | "left" | "right" | undefined;
4221
4219
  } & ({
4222
4220
  class?: ClassValue;
@@ -4528,7 +4526,7 @@ export declare const usePrivacyMode: () => {
4528
4526
 
4529
4527
  export declare const useReducedMotion: () => boolean;
4530
4528
 
4531
- export declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll, }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
4529
+ export declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll, isSearchActive, }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
4532
4530
 
4533
4531
  export declare type UseSelectableProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>> = {
4534
4532
  data: Data<R>;
@@ -4542,6 +4540,12 @@ export declare type UseSelectableProps<R extends RecordType, Filters extends Fil
4542
4540
  * When true, allSelected will always be false even if all items are checked.
4543
4541
  */
4544
4542
  disableSelectAll?: boolean;
4543
+ /**
4544
+ * Indicates if search is currently active.
4545
+ * When true, selecting all visible items won't trigger "all selected" state,
4546
+ * because the visible items are a filtered subset.
4547
+ */
4548
+ isSearchActive?: boolean;
4545
4549
  };
4546
4550
 
4547
4551
  export declare type UseSelectableReturn<R extends RecordType, Filters extends FiltersDefinition> = {
@@ -4741,11 +4745,6 @@ declare module "gridstack" {
4741
4745
  }
4742
4746
 
4743
4747
 
4744
- declare namespace Calendar {
4745
- var displayName: string;
4746
- }
4747
-
4748
-
4749
4748
  declare module "@tiptap/core" {
4750
4749
  interface Commands<ReturnType> {
4751
4750
  moodTracker: {
@@ -4753,3 +4752,8 @@ declare module "@tiptap/core" {
4753
4752
  };
4754
4753
  }
4755
4754
  }
4755
+
4756
+
4757
+ declare namespace Calendar {
4758
+ var displayName: string;
4759
+ }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { L as Cn, C as Wr, c as j, a as Di, u as _n, m as Ri, i as En, B as Si, O as Gr, p as $r, w as jr, S as Fe, b as Ur, F as Dn, d as Kr, A as Xr, D as Yr, e as qr, f as Re, g as Vr, h as me, j as Vi, k as Jr, l as di, n as lt, o as Zr, q as Qr, r as Ot, s as Rn, E as es, t as zt, v as ts, x as is, y as ns, z as rs, G as Xe, H as Sn, I as ss, J as os, K as as, M as Ji, N as ls, P as Nn, Q as cs, R as On, X as An, Y as vi, T as ds, U as kn, V as us, W as hs, Z as fs, _ as gs, $ as ps, a0 as ms, a1 as vs, a2 as ys, a3 as Zi, a4 as bs, a5 as ct, a6 as ui, a7 as xs, a8 as ws, a9 as Cs, aa as _s, ab as Es, ac as Ds, ad as Rs, ae as Ss, af as Ns, ag as Os, ah as Tn, ai as As, aj as Mt, ak as zn, al as Pn, am as ks, an as Mn, ao as Ln, ap as In, aq as Ts, ar as zs, as as Hn, at as Ps, au as Ms, av as Ls, aw as Is, ax as Hs, ay as Bs, az as Bn, aA as Ve, aB as Fn, aC as Fs, aD as Ws, aE as Qi, aF as Gs, aG as Wn, aH as $s, aI as js, aJ as Us, aK as Ks, aL as Xs, aM as Ys, aN as qs, aO as Vs, aP as Js, aQ as Zs, aR as Qs, aS as eo } from "./hooks-D3oC4CsE.js";
2
- import { bl as Vc, by as Jc, bH as Zc, aT as Qc, aU as ed, aV as td, aW as id, aX as nd, aY as rd, aZ as sd, a_ as od, b0 as ad, b1 as ld, b2 as cd, b3 as dd, b4 as ud, b5 as hd, b6 as fd, bD as gd, b8 as pd, b9 as md, bc as vd, bd as yd, be as bd, bf as xd, bi as wd, bj as Cd, bk as _d, bn as Ed, bb as Dd, bm as Rd, bh as Sd, bE as Nd, bx as Od, bs as Ad, bv as kd, br as Td, bI as zd, bq as Pd, bp as Md, a$ as Ld, b7 as Id, ba as Hd, bg as Bd, bo as Fd, bt as Wd, bz as Gd, bA as $d, bB as jd, bJ as Ud, bu as Kd, bC as Xd, bG as Yd, bw as qd, bF as Vd } from "./hooks-D3oC4CsE.js";
1
+ import { L as Cn, C as Wr, c as j, a as Di, u as _n, m as Ri, i as En, B as Si, O as Gr, p as $r, w as jr, S as Fe, b as Ur, F as Dn, d as Kr, A as Xr, D as Yr, e as qr, f as Re, g as Vr, h as me, j as Vi, k as Jr, l as di, n as lt, o as Zr, q as Qr, r as Ot, s as Rn, E as es, t as zt, v as ts, x as is, y as ns, z as rs, G as Xe, H as Sn, I as ss, J as os, K as as, M as Ji, N as ls, P as Nn, Q as cs, R as On, X as An, Y as vi, T as ds, U as kn, V as us, W as hs, Z as fs, _ as gs, $ as ps, a0 as ms, a1 as vs, a2 as ys, a3 as Zi, a4 as bs, a5 as ct, a6 as ui, a7 as xs, a8 as ws, a9 as Cs, aa as _s, ab as Es, ac as Ds, ad as Rs, ae as Ss, af as Ns, ag as Os, ah as Tn, ai as As, aj as Mt, ak as zn, al as Pn, am as ks, an as Mn, ao as Ln, ap as In, aq as Ts, ar as zs, as as Hn, at as Ps, au as Ms, av as Ls, aw as Is, ax as Hs, ay as Bs, az as Bn, aA as Ve, aB as Fn, aC as Fs, aD as Ws, aE as Qi, aF as Gs, aG as Wn, aH as $s, aI as js, aJ as Us, aK as Ks, aL as Xs, aM as Ys, aN as qs, aO as Vs, aP as Js, aQ as Zs, aR as Qs, aS as eo } from "./hooks-B2RzD_VX.js";
2
+ import { bl as Vc, by as Jc, bH as Zc, aT as Qc, aU as ed, aV as td, aW as id, aX as nd, aY as rd, aZ as sd, a_ as od, b0 as ad, b1 as ld, b2 as cd, b3 as dd, b4 as ud, b5 as hd, b6 as fd, bD as gd, b8 as pd, b9 as md, bc as vd, bd as yd, be as bd, bf as xd, bi as wd, bj as Cd, bk as _d, bn as Ed, bb as Dd, bm as Rd, bh as Sd, bE as Nd, bx as Od, bs as Ad, bv as kd, br as Td, bI as zd, bq as Pd, bp as Md, a$ as Ld, b7 as Id, ba as Hd, bg as Bd, bo as Fd, bt as Wd, bz as Gd, bA as $d, bB as jd, bJ as Ud, bu as Kd, bC as Xd, bG as Yd, bw as qd, bF as Vd } from "./hooks-B2RzD_VX.js";
3
3
  import { jsx as g, jsxs as M, Fragment as Vt } from "react/jsx-runtime";
4
4
  import L, { forwardRef as le, useRef as I, useImperativeHandle as to, Children as Lt, createContext as Ne, useContext as we, useState as W, useMemo as B, useEffect as H, useCallback as K, useLayoutEffect as yi, createElement as en, isValidElement as Gn, Fragment as io, memo as no, useReducer as ro, cloneElement as so, PureComponent as oo } from "react";
5
5
  import { createPortal as $n, unstable_batchedUpdates as At } from "react-dom";