@factorialco/f0-react 1.186.0 → 1.186.2

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.
@@ -3697,6 +3697,11 @@ declare interface ReactionsProps {
3697
3697
  items: ReactionProps[];
3698
3698
  onInteraction?: (emoji: string) => void;
3699
3699
  locale?: string;
3700
+ action?: {
3701
+ label: string;
3702
+ icon: IconType;
3703
+ onClick: () => void;
3704
+ };
3700
3705
  }
3701
3706
 
3702
3707
  /**
@@ -1,5 +1,5 @@
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 ws, 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 zr, bU as Ew, bV as Xr, bW as jh, a8 as Wn, bX as ye, bY as Yt, bZ as Nf, b_ as Yo, b$ as Tw, c0 as vv, c1 as bv, h as Lf, i as Mf, k as Ef, c2 as Vh, c3 as Ow, c4 as kv, C as mn, c5 as wv, c6 as Aw, c7 as Dw, G as Iw, c8 as xv, c9 as gt, ca as e1, cb as _v, a5 as t1, cc as Rw, cd as Pw, ce as Fw, cf as Bw, cg as $w, ay as Tf, a2 as n1, F as Hh, aA as zw, ch as Ln, az as jw, ci as Cv, cj as an, ck as Sv, cl as hr, cm as Vw, cn as Hw, co as qt, cp as Xl, cq as Nv, cr as Ww, ag as Of, a6 as Wh, al as jr, cs as qh, ct as Uh, cu as Lv, cv as qw, a9 as Uw, a1 as Mv, cw as Kw, cx as Ev, cy as Gw, cz as Jw, cA as Yw, D as Tv, u as Ov, cB as S0, cC as Zw, cD as Ea, cE as Xw, cF as Af, K as Qw, m as ex, cG as tx, cH as nx, cI as ix, cJ as rx, cK as sx, cL as ox, cM as ax, cN as lx, p as dx, an as fx, cO as Av, cP as Df, cQ as N0, Y as Dv, cR as Ta, 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-C49mI34Y.js";
2
- import { J as LJ, dv as MJ, a7 as EJ, du as TJ } from "./hooks-C49mI34Y.js";
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 ws, 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 zr, bU as Ew, bV as Xr, bW as jh, a8 as Wn, bX as ye, bY as Yt, bZ as Nf, b_ as Yo, b$ as Tw, c0 as vv, c1 as bv, h as Lf, i as Mf, k as Ef, c2 as Vh, c3 as Ow, c4 as kv, C as mn, c5 as wv, c6 as Aw, c7 as Dw, G as Iw, c8 as xv, c9 as gt, ca as e1, cb as _v, a5 as t1, cc as Rw, cd as Pw, ce as Fw, cf as Bw, cg as $w, ay as Tf, a2 as n1, F as Hh, aA as zw, ch as Ln, az as jw, ci as Cv, cj as an, ck as Sv, cl as hr, cm as Vw, cn as Hw, co as qt, cp as Xl, cq as Nv, cr as Ww, ag as Of, a6 as Wh, al as jr, cs as qh, ct as Uh, cu as Lv, cv as qw, a9 as Uw, a1 as Mv, cw as Kw, cx as Ev, cy as Gw, cz as Jw, cA as Yw, D as Tv, u as Ov, cB as S0, cC as Zw, cD as Ea, cE as Xw, cF as Af, K as Qw, m as ex, cG as tx, cH as nx, cI as ix, cJ as rx, cK as sx, cL as ox, cM as ax, cN as lx, p as dx, an as fx, cO as Av, cP as Df, cQ as N0, Y as Dv, cR as Ta, 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-BmsAvt-I.js";
2
+ import { J as LJ, dv as MJ, a7 as EJ, du as TJ } from "./hooks-BmsAvt-I.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 Qr, 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";
@@ -13087,19 +13087,35 @@ function xE({
13087
13087
  );
13088
13088
  return h ? /* @__PURE__ */ f(an, { label: h, children: p }) : p;
13089
13089
  }
13090
- function _E({ items: t, onInteraction: e, locale: n }) {
13090
+ function _E({
13091
+ items: t,
13092
+ onInteraction: e,
13093
+ locale: n,
13094
+ action: i
13095
+ }) {
13091
13096
  return /* @__PURE__ */ b("div", { className: "flex flex-wrap gap-2", children: [
13097
+ i && /* @__PURE__ */ f(
13098
+ re,
13099
+ {
13100
+ label: i.label,
13101
+ icon: i.icon,
13102
+ onClick: i.onClick,
13103
+ variant: "outline",
13104
+ round: !0,
13105
+ hideLabel: !0
13106
+ }
13107
+ ),
13092
13108
  /* @__PURE__ */ f(vp, { onSelect: e, locale: n }),
13093
- t.map((i) => /* @__PURE__ */ f(
13109
+ t.map((r) => /* @__PURE__ */ f(
13094
13110
  xE,
13095
13111
  {
13096
- emoji: i.emoji,
13097
- initialCount: i.initialCount,
13098
- hasReacted: i.hasReacted,
13099
- users: i.users,
13112
+ emoji: r.emoji,
13113
+ initialCount: r.initialCount,
13114
+ hasReacted: r.hasReacted,
13115
+ users: r.users,
13100
13116
  onInteraction: e
13101
13117
  },
13102
- i.emoji
13118
+ r.emoji
13103
13119
  ))
13104
13120
  ] });
13105
13121
  }
@@ -13445,26 +13461,18 @@ const Ug = (t) => {
13445
13461
  ] }),
13446
13462
  l && /* @__PURE__ */ f("div", { className: "w-full md:max-w-[480px]", children: /* @__PURE__ */ f(N6, { ...l }) }),
13447
13463
  /* @__PURE__ */ f("p", { className: "text-f1-foreground-secondary", children: y }),
13448
- /* @__PURE__ */ b("div", { className: "flex flex-row gap-2.5", children: [
13449
- !m && /* @__PURE__ */ f(
13450
- re,
13451
- {
13464
+ /* @__PURE__ */ f(
13465
+ _E,
13466
+ {
13467
+ items: (c == null ? void 0 : c.items) ?? [],
13468
+ onInteraction: c == null ? void 0 : c.onInteraction,
13469
+ action: m ? void 0 : {
13452
13470
  label: h.label,
13453
13471
  onClick: h.onClick,
13454
- variant: "outline",
13455
- icon: w_,
13456
- round: !0,
13457
- hideLabel: !0
13458
- }
13459
- ),
13460
- /* @__PURE__ */ f(
13461
- _E,
13462
- {
13463
- items: (c == null ? void 0 : c.items) ?? [],
13464
- onInteraction: c == null ? void 0 : c.onInteraction
13472
+ icon: w_
13465
13473
  }
13466
- )
13467
- ] })
13474
+ }
13475
+ )
13468
13476
  ] })
13469
13477
  ]
13470
13478
  }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Re, u as Ie, v as $e, w as Oe, 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 qe, N as Ae, Q as He, R as Ue, X as We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-C49mI34Y.js";
2
- import { ao as Ua, _ as Wa, aq as Ya, ay as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, ad as nr, ae as ir, af as dr, ag as cr, aj as ur, ak as fr, al as hr, am as mr, ac as pr, an as vr, ai as gr, av as br, ap as xr, az as Cr, a7 as yr, ah as wr, ar as Nr, as as Lr, at as Pr, aA as kr, au as Fr, ax as Sr, aw as Mr } from "./hooks-C49mI34Y.js";
1
+ import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Re, u as Ie, v as $e, w as Oe, 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 qe, N as Ae, Q as He, R as Ue, X as We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-BmsAvt-I.js";
2
+ import { ao as Ua, _ as Wa, aq as Ya, ay as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, ad as nr, ae as ir, af as dr, ag as cr, aj as ur, ak as fr, al as hr, am as mr, ac as pr, an as vr, ai as gr, av as br, ap as xr, az as Cr, a7 as yr, ah as wr, ar as Nr, as as Lr, at as Pr, aA as kr, au as Fr, ax as Sr, aw as Mr } from "./hooks-BmsAvt-I.js";
3
3
  import { jsx as e, jsxs as c, Fragment as O } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
5
  import Ke, { useState as g, forwardRef as B, useRef as ae, useImperativeHandle as Qe, Children as Ze, useEffect as re, createContext as ea } from "react";
@@ -18930,9 +18930,9 @@ const the = Gt({
18930
18930
  ), t = c[t] ?? "md";
18931
18931
  }
18932
18932
  const s = {
18933
- xs: -0.5,
18933
+ xs: -2,
18934
18934
  sm: -3,
18935
- md: -10
18935
+ md: -4
18936
18936
  }[t] ?? 0, u = zt(() => ({
18937
18937
  xs: 20,
18938
18938
  sm: 24,
@@ -18968,13 +18968,20 @@ const the = Gt({
18968
18968
  renderDropdownItem: () => null,
18969
18969
  forceShowingOverflowIndicator: a !== void 0,
18970
18970
  renderOverflowIndicator: (c) => /* @__PURE__ */ b(
18971
- nhe,
18971
+ "div",
18972
18972
  {
18973
- count: (a ?? 0) + c,
18974
- size: t,
18975
- type: n === "person" ? "rounded" : "base",
18976
- avatarType: n,
18977
- list: a ? void 0 : e.slice(e.length - c)
18973
+ className: "flex h-fit w-fit items-center",
18974
+ style: { marginLeft: s },
18975
+ children: /* @__PURE__ */ b(
18976
+ nhe,
18977
+ {
18978
+ count: (a ?? 0) + c,
18979
+ size: t,
18980
+ type: n === "person" ? "rounded" : "base",
18981
+ avatarType: n,
18982
+ list: a ? void 0 : e.slice(e.length - c)
18983
+ }
18984
+ )
18978
18985
  }
18979
18986
  ),
18980
18987
  overflowIndicatorWithPopover: !1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.186.0",
3
+ "version": "1.186.2",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,