@factorialco/f0-react 1.186.1 → 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
  /**
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.186.1",
3
+ "version": "1.186.2",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,