@factorialco/f0-react 1.186.1 → 1.187.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.
@@ -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
  /**
@@ -4462,6 +4467,7 @@ export declare const TwoColumnsList: ForwardRefExoticComponent<TwoColumnsListTyp
4462
4467
 
4463
4468
  declare interface TwoColumnsListType {
4464
4469
  title?: string;
4470
+ titleValue?: string;
4465
4471
  list: TwoColumnsItemType[];
4466
4472
  }
4467
4473
 
@@ -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
13472
+ icon: w_
13458
13473
  }
13459
- ),
13460
- /* @__PURE__ */ f(
13461
- _E,
13462
- {
13463
- items: (c == null ? void 0 : c.items) ?? [],
13464
- onInteraction: c == null ? void 0 : c.onInteraction
13465
- }
13466
- )
13467
- ] })
13474
+ }
13475
+ )
13468
13476
  ] })
13469
13477
  ]
13470
13478
  }
@@ -55121,12 +55129,15 @@ function kJ({
55121
55129
  }
55122
55130
  const xK = ({ title: t, info: e }) => /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
55123
55131
  /* @__PURE__ */ f("p", { className: "flex text-f1-foreground-secondary", children: t }),
55124
- /* @__PURE__ */ f("div", { className: "basis-16 justify-self-end text-right font-medium", children: e })
55132
+ /* @__PURE__ */ f("div", { className: "max-w-32 flex-shrink-0 overflow-hidden text-ellipsis whitespace-nowrap text-right font-medium", children: e })
55125
55133
  ] }), wJ = H(
55126
- function({ title: e, list: n }, i) {
55127
- return /* @__PURE__ */ b("div", { ref: i, className: "flex flex-col gap-2", children: [
55128
- e && /* @__PURE__ */ f("div", { className: "font-medium", children: e }),
55129
- n.map((r) => /* @__PURE__ */ f(xK, { title: r.title, info: r.info }, r.title))
55134
+ function({ title: e, titleValue: n, list: i }, r) {
55135
+ return /* @__PURE__ */ b("div", { ref: r, className: "flex flex-col gap-2", children: [
55136
+ e && /* @__PURE__ */ b("div", { className: "flex items-center justify-between gap-2 font-medium", children: [
55137
+ /* @__PURE__ */ f("div", { children: e }),
55138
+ n && /* @__PURE__ */ f("div", { children: n })
55139
+ ] }),
55140
+ i.map((s) => /* @__PURE__ */ f(xK, { title: s.title, info: s.info }, s.title))
55130
55141
  ] });
55131
55142
  }
55132
55143
  );