@estiva-app/ui 0.104.0 → 0.104.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ResolveDialog.d.ts","sourceRoot":"","sources":["../src/ResolveDialog.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,uJAAuJ;IACvJ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAA;IACrE,mFAAmF;IACnF,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,+BAUjF"}
1
+ {"version":3,"file":"ResolveDialog.d.ts","sourceRoot":"","sources":["../src/ResolveDialog.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,uJAAuJ;IACvJ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAA;IACrE,mFAAmF;IACnF,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,+BAajF"}
package/dist/index.js CHANGED
@@ -5891,12 +5891,15 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
5891
5891
 
5892
5892
  // src/ResolveDialog.tsx
5893
5893
  import { useState as useState21 } from "react";
5894
- import { jsx as jsx80 } from "react/jsx-runtime";
5894
+ import { jsx as jsx80, jsxs as jsxs58 } from "react/jsx-runtime";
5895
5895
  function ResolveDialog({ onResolve, onCancel, refused }) {
5896
5896
  const [note, setNote] = useState21("");
5897
5897
  return (
5898
5898
  // Outlined at rest and green on hover in Signal, the kit's `resolve` look.
5899
- /* @__PURE__ */ jsx80(FormDialog, { title: "Resolve", submitLabel: "Resolve", submitVariant: "resolve", onSubmit: () => onResolve(note), onClose: onCancel, children: /* @__PURE__ */ jsx80(Field, { label: "Resolution message (optional)", error: refused, children: /* @__PURE__ */ jsx80(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }) }) })
5899
+ /* @__PURE__ */ jsx80(FormDialog, { title: "Resolve", submitLabel: "Resolve", submitVariant: "resolve", onSubmit: () => onResolve(note), onClose: onCancel, children: /* @__PURE__ */ jsxs58(Field, { label: "Resolution message (optional)", children: [
5900
+ /* @__PURE__ */ jsx80(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }),
5901
+ refused && /* @__PURE__ */ jsx80(FieldLine, { tone: "error", children: refused })
5902
+ ] }) })
5900
5903
  );
5901
5904
  }
5902
5905
 
@@ -5943,7 +5946,7 @@ function useFaceLine(root, active, toDot = false) {
5943
5946
  }
5944
5947
 
5945
5948
  // src/ConversationCard.tsx
5946
- import { Fragment as Fragment23, jsx as jsx81, jsxs as jsxs58 } from "react/jsx-runtime";
5949
+ import { Fragment as Fragment23, jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
5947
5950
  function When({ time, at: given, timeHref, timeLabel = "Link to this" }) {
5948
5951
  const at = momentOf(given);
5949
5952
  const exact = at === void 0 ? void 0 : exactTime(at);
@@ -5954,8 +5957,8 @@ function When({ time, at: given, timeHref, timeLabel = "Link to this" }) {
5954
5957
  return /* @__PURE__ */ jsx81(MetaText, { className: "shrink-0", children: exact ? /* @__PURE__ */ jsx81(WithTooltip, { label: exact, children: said }) : time });
5955
5958
  }
5956
5959
  function Head({ author, time, at, timeHref, timeLabel, edited, isNew, urgent, meta }) {
5957
- return /* @__PURE__ */ jsxs58("div", { className: "flex w-full items-center gap-2", children: [
5958
- /* @__PURE__ */ jsxs58("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
5960
+ return /* @__PURE__ */ jsxs59("div", { className: "flex w-full items-center gap-2", children: [
5961
+ /* @__PURE__ */ jsxs59("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
5959
5962
  /* @__PURE__ */ jsx81("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx81(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }) }),
5960
5963
  /* @__PURE__ */ jsx81("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
5961
5964
  /* @__PURE__ */ jsx81(When, { time, at, timeHref, timeLabel }),
@@ -5970,13 +5973,13 @@ function attentionOf(fresh, urgent, inThreadCard) {
5970
5973
  return urgent ? "warning" : "accent";
5971
5974
  }
5972
5975
  function EndedLine({ by, note, at }) {
5973
- return /* @__PURE__ */ jsxs58("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
5976
+ return /* @__PURE__ */ jsxs59("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
5974
5977
  /* @__PURE__ */ jsx81("span", { className: "flex h-[17px] w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx81("span", { "data-dot": true, className: "relative z-10 flex size-2 items-center justify-center rounded-full bg-bg-surface", children: /* @__PURE__ */ jsx81("span", { className: "size-1 rounded-full bg-success-default" }) }) }),
5975
- /* @__PURE__ */ jsxs58("p", { className: "min-w-0 text-h5 leading-snug", children: [
5978
+ /* @__PURE__ */ jsxs59("p", { className: "min-w-0 text-h5 leading-snug", children: [
5976
5979
  /* @__PURE__ */ jsx81("span", { className: "whitespace-nowrap text-text-primary", children: by }),
5977
5980
  /* @__PURE__ */ jsx81(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
5978
5981
  /* @__PURE__ */ jsx81("span", { className: "text-text-secondary", children: note }),
5979
- at && /* @__PURE__ */ jsxs58(MetaText, { size: "chip", children: [
5982
+ at && /* @__PURE__ */ jsxs59(MetaText, { size: "chip", children: [
5980
5983
  " \xB7 ",
5981
5984
  at
5982
5985
  ] })
@@ -5985,7 +5988,7 @@ function EndedLine({ by, note, at }) {
5985
5988
  }
5986
5989
  function ResolvedCheck({ by, note, at }) {
5987
5990
  const said = `Resolved by ${by}${at ? `, ${at}` : ""}${note ? `: ${note}` : ""}`;
5988
- return /* @__PURE__ */ jsx81(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs58("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
5991
+ return /* @__PURE__ */ jsx81(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs59("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
5989
5992
  /* @__PURE__ */ jsx81(IconCircleCheck4, { size: 14, stroke: 1.5 }),
5990
5993
  "Resolved"
5991
5994
  ] }) });
@@ -5995,9 +5998,9 @@ function Words({ children }) {
5995
5998
  }
5996
5999
  function Reactions({ reactions, refused, readOnly }) {
5997
6000
  if ((!reactions || reactions.reactions.length === 0) && !refused) return null;
5998
- return /* @__PURE__ */ jsxs58("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
6001
+ return /* @__PURE__ */ jsxs59("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
5999
6002
  reactions && /* @__PURE__ */ jsx81(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
6000
- refused && /* @__PURE__ */ jsxs58(FieldLine, { tone: "error", children: [
6003
+ refused && /* @__PURE__ */ jsxs59(FieldLine, { tone: "error", children: [
6001
6004
  "Not reacted: ",
6002
6005
  refused,
6003
6006
  "."
@@ -6005,7 +6008,7 @@ function Reactions({ reactions, refused, readOnly }) {
6005
6008
  ] });
6006
6009
  }
6007
6010
  function Editing({ author, children }) {
6008
- return /* @__PURE__ */ jsx81("div", { className: "p-2", children: /* @__PURE__ */ jsxs58("div", { className: "flex items-start gap-2", children: [
6011
+ return /* @__PURE__ */ jsx81("div", { className: "p-2", children: /* @__PURE__ */ jsxs59("div", { className: "flex items-start gap-2", children: [
6009
6012
  /* @__PURE__ */ jsx81(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
6010
6013
  /* @__PURE__ */ jsx81("div", { className: "min-w-0 flex-1", children })
6011
6014
  ] }) });
@@ -6054,8 +6057,8 @@ function ConversationCard(props) {
6054
6057
  const marked = selected ?? (item && !item.under ? item.open : void 0);
6055
6058
  const under = !!item?.under;
6056
6059
  const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx81(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
6057
- return /* @__PURE__ */ jsxs58(Fragment23, { children: [
6058
- /* @__PURE__ */ jsxs58(
6060
+ return /* @__PURE__ */ jsxs59(Fragment23, { children: [
6061
+ /* @__PURE__ */ jsxs59(
6059
6062
  Card,
6060
6063
  {
6061
6064
  ref: root,
@@ -6080,11 +6083,11 @@ function ConversationCard(props) {
6080
6083
  setHovered(false);
6081
6084
  },
6082
6085
  children: [
6083
- isEditing ? /* @__PURE__ */ jsx81(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs58("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6084
- deleted ? /* @__PURE__ */ jsxs58(Fragment23, { children: [
6086
+ isEditing ? /* @__PURE__ */ jsx81(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs59("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6087
+ deleted ? /* @__PURE__ */ jsxs59(Fragment23, { children: [
6085
6088
  !!about && /* @__PURE__ */ jsx81("div", { className: "relative w-full pl-8 pr-2", children: about }),
6086
6089
  /* @__PURE__ */ jsx81("p", { className: cn("w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", !!about && "pt-1"), children: "This comment was deleted." })
6087
- ] }) : /* @__PURE__ */ jsxs58(Fragment23, { children: [
6090
+ ] }) : /* @__PURE__ */ jsxs59(Fragment23, { children: [
6088
6091
  /* @__PURE__ */ jsx81(
6089
6092
  Head,
6090
6093
  {
@@ -6152,9 +6155,9 @@ function ConversationCard(props) {
6152
6155
  ]
6153
6156
  }
6154
6157
  ),
6155
- deleting && onDelete && /* @__PURE__ */ jsx81(ConfirmDialog, { title: `Delete this ${noun}?`, confirmLabel: `Delete ${noun}`, destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), refused: deleteRefused, children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx81("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs58(Fragment23, { children: [
6158
+ deleting && onDelete && /* @__PURE__ */ jsx81(ConfirmDialog, { title: `Delete this ${noun}?`, confirmLabel: `Delete ${noun}`, destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), refused: deleteRefused, children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx81("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs59(Fragment23, { children: [
6156
6159
  /* @__PURE__ */ jsx81("p", { children: "It is deleted for everyone." }),
6157
- replies && replies.count > 0 && /* @__PURE__ */ jsxs58("p", { children: [
6160
+ replies && replies.count > 0 && /* @__PURE__ */ jsxs59("p", { children: [
6158
6161
  "Its ",
6159
6162
  replies.count === 1 ? "reply stays" : `${replies.count} replies stay`,
6160
6163
  "."
@@ -6191,8 +6194,8 @@ function ReplyCard(props) {
6191
6194
  useLayoutEffect7(() => {
6192
6195
  if (drawn) drawn.added += 1;
6193
6196
  }, [drawn]);
6194
- return /* @__PURE__ */ jsxs58(Fragment23, { children: [
6195
- /* @__PURE__ */ jsxs58(
6197
+ return /* @__PURE__ */ jsxs59(Fragment23, { children: [
6198
+ /* @__PURE__ */ jsxs59(
6196
6199
  Card,
6197
6200
  {
6198
6201
  ref: root,
@@ -6215,7 +6218,7 @@ function ReplyCard(props) {
6215
6218
  setHovered(false);
6216
6219
  },
6217
6220
  children: [
6218
- isEditing ? /* @__PURE__ */ jsx81(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs58("div", { className: "flex flex-col items-start px-2 pt-2", children: [
6221
+ isEditing ? /* @__PURE__ */ jsx81(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs59("div", { className: "flex flex-col items-start px-2 pt-2", children: [
6219
6222
  /* @__PURE__ */ jsx81(Head, { author, time: props.time, at: props.at, timeHref: props.timeHref, timeLabel: props.timeLabel, edited: props.edited, isNew, urgent }),
6220
6223
  about && /* @__PURE__ */ jsx81("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
6221
6224
  /* @__PURE__ */ jsx81(Words, { children }),
@@ -6263,9 +6266,9 @@ function ReplyCard(props) {
6263
6266
  import { Fragment as Fragment24, useCallback as useCallback6, useEffect as useEffect14, useLayoutEffect as useLayoutEffect8, useRef as useRef20, useState as useState25 } from "react";
6264
6267
 
6265
6268
  // src/Panel.tsx
6266
- import { jsx as jsx82, jsxs as jsxs59 } from "react/jsx-runtime";
6269
+ import { jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
6267
6270
  function Frame({ title, chevron = false, actions, header, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
6268
- return /* @__PURE__ */ jsxs59("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
6271
+ return /* @__PURE__ */ jsxs60("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
6269
6272
  header ?? /* @__PURE__ */ jsx82(ContainerHeader, { title, chevron, actions }),
6270
6273
  broken ? (
6271
6274
  // The message takes the room the body had and centres itself in it.
@@ -6387,7 +6390,7 @@ function useWatchSeen(seen, root, attribute) {
6387
6390
  }
6388
6391
 
6389
6392
  // src/ConversationLayout.tsx
6390
- import { Fragment as Fragment25, jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
6393
+ import { Fragment as Fragment25, jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
6391
6394
  var threadOf = (item) => typeof item?.thread === "function" ? item.thread() : item?.thread;
6392
6395
  function List({ items, open, under, above, loading, empty, change, caret }) {
6393
6396
  if (loading) return /* @__PURE__ */ jsx83(SkeletonConversation, {});
@@ -6400,7 +6403,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6400
6403
  } : null;
6401
6404
  const draw2 = (item) => {
6402
6405
  if (!under) {
6403
- return /* @__PURE__ */ jsxs60(Fragment24, { children: [
6406
+ return /* @__PURE__ */ jsxs61(Fragment24, { children: [
6404
6407
  item.before,
6405
6408
  /* @__PURE__ */ jsx83("div", { "data-conversation-item": item.id, className: cn("flex flex-col", SHOWN_CLASSES), children: /* @__PURE__ */ jsx83(InConversationItem.Provider, { value: stateOf(item), children: item.card }) })
6406
6409
  ] }, item.id);
@@ -6421,10 +6424,10 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6421
6424
  seen.set(name, count);
6422
6425
  stretches.push({ key: `${item.day === void 0 ? "no-day" : `day:${name}`}#${count}`, day: item.day, items: [item] });
6423
6426
  }
6424
- return /* @__PURE__ */ jsxs60(Fragment25, { children: [
6427
+ return /* @__PURE__ */ jsxs61(Fragment25, { children: [
6425
6428
  above,
6426
6429
  stretches.map(
6427
- (stretch) => stretch.day === void 0 ? /* @__PURE__ */ jsx83(Fragment24, { children: stretch.items.map(draw2) }, stretch.key) : /* @__PURE__ */ jsxs60("div", { className: "flex flex-col gap-2", children: [
6430
+ (stretch) => stretch.day === void 0 ? /* @__PURE__ */ jsx83(Fragment24, { children: stretch.items.map(draw2) }, stretch.key) : /* @__PURE__ */ jsxs61("div", { className: "flex flex-col gap-2", children: [
6428
6431
  /* @__PURE__ */ jsx83(Divider, { look: "section", label: stretch.day, sticky: true }),
6429
6432
  stretch.items.map(draw2)
6430
6433
  ] }, stretch.key)
@@ -6445,7 +6448,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6445
6448
  children: list.map(draw2)
6446
6449
  }
6447
6450
  );
6448
- return /* @__PURE__ */ jsxs60(Fragment25, { children: [
6451
+ return /* @__PURE__ */ jsxs61(Fragment25, { children: [
6449
6452
  above,
6450
6453
  items.filter((item) => !item.resolved && !item.gone).map(draw2),
6451
6454
  group("On deleted blocks", gone),
@@ -6455,7 +6458,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6455
6458
  function UnderItem({ item, isOpen, state, caret }) {
6456
6459
  const root = useRef20(null);
6457
6460
  const line = useFaceLine(root, isOpen);
6458
- return /* @__PURE__ */ jsxs60(
6461
+ return /* @__PURE__ */ jsxs61(
6459
6462
  Card,
6460
6463
  {
6461
6464
  ref: root,
@@ -6467,7 +6470,7 @@ function UnderItem({ item, isOpen, state, caret }) {
6467
6470
  quietUntilHover: !isOpen,
6468
6471
  className: cn("relative flex flex-col", isOpen && "pb-2", SHOWN_CLASSES),
6469
6472
  children: [
6470
- /* @__PURE__ */ jsx83(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx83(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs60(LineByLayout.Provider, { value: true, children: [
6473
+ /* @__PURE__ */ jsx83(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx83(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs61(LineByLayout.Provider, { value: true, children: [
6471
6474
  /* @__PURE__ */ jsx83("div", { className: "-m-px flex flex-col", children: item.card }),
6472
6475
  isOpen && /* @__PURE__ */ jsx83(caretOnOpen.Provider, { value: caret, children: threadOf(item) })
6473
6476
  ] }) }) }),
@@ -6596,7 +6599,7 @@ function ConversationLayout({
6596
6599
  // The body at least the column's height: the comments start at its top, and the note under them (`below`) is pushed
6597
6600
  // to its foot, so with few comments it sits on the box, as a short conversation's last line does in Peek's two
6598
6601
  // columns (Katerina, 2 November); with many it comes after them, and scrolls with them.
6599
- /* @__PURE__ */ jsxs60(Panel, { className: cn("w-[384px] flex-none", className), title, actions, bodyRef: setBody, bodyClassName: "flex min-h-full flex-col gap-2 p-3", footer: box && /* @__PURE__ */ jsx83("div", { className: "p-3", children: box }), children: [
6602
+ /* @__PURE__ */ jsxs61(Panel, { className: cn("w-[384px] flex-none", className), title, actions, bodyRef: setBody, bodyClassName: "flex min-h-full flex-col gap-2 p-3", footer: box && /* @__PURE__ */ jsx83("div", { className: "p-3", children: box }), children: [
6600
6603
  /* @__PURE__ */ jsx83(List, { items, open, under: true, above, loading, empty, change, caret }),
6601
6604
  !loading && below != null && below !== false && below !== "" && /* @__PURE__ */ jsx83("div", { className: "mt-auto flex flex-col gap-2", children: below })
6602
6605
  ] })
@@ -6604,21 +6607,21 @@ function ConversationLayout({
6604
6607
  }
6605
6608
  const opened = threadOf(items.find((item) => item.id === open));
6606
6609
  const side = opened || aside;
6607
- return /* @__PURE__ */ jsxs60("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
6610
+ return /* @__PURE__ */ jsxs61("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
6608
6611
  /* @__PURE__ */ jsx83(
6609
6612
  ErrorBoundary,
6610
6613
  {
6611
6614
  label: "conversation",
6612
- frame: (message) => /* @__PURE__ */ jsxs60("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6615
+ frame: (message) => /* @__PURE__ */ jsxs61("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6613
6616
  /* @__PURE__ */ jsx83(ContainerHeader, { title }),
6614
6617
  /* @__PURE__ */ jsx83("div", { className: "flex min-h-0 flex-1 flex-col px-4", children: message })
6615
6618
  ] }),
6616
- children: /* @__PURE__ */ jsxs60("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6619
+ children: /* @__PURE__ */ jsxs61("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6617
6620
  header,
6618
- /* @__PURE__ */ jsxs60(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
6621
+ /* @__PURE__ */ jsxs61(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
6619
6622
  top != null && top !== false && top !== "" && /* @__PURE__ */ jsx83("div", { className: "shrink-0 px-4 pt-4", children: top }),
6620
6623
  /* @__PURE__ */ jsx83("div", { className: "min-h-0 flex-1" }),
6621
- /* @__PURE__ */ jsxs60("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
6624
+ /* @__PURE__ */ jsxs61("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
6622
6625
  /* @__PURE__ */ jsx83(List, { items, open, under: false, above, loading, empty, change, caret }),
6623
6626
  !loading && below
6624
6627
  ] })
@@ -6635,10 +6638,10 @@ function ConversationLayout({
6635
6638
  }
6636
6639
 
6637
6640
  // src/ConversationPlace.tsx
6638
- import { jsx as jsx84, jsxs as jsxs61 } from "react/jsx-runtime";
6641
+ import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
6639
6642
  function ConversationPlace({ relation, place, children, className, ...props }) {
6640
- return /* @__PURE__ */ jsxs61("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
6641
- /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2", children: [
6643
+ return /* @__PURE__ */ jsxs62("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
6644
+ /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2", children: [
6642
6645
  /* @__PURE__ */ jsx84(Chip, { type: "neutral", label: relation }),
6643
6646
  place && /* @__PURE__ */ jsx84("span", { className: "truncate text-caption text-text-muted", children: place })
6644
6647
  ] }),
@@ -6647,21 +6650,21 @@ function ConversationPlace({ relation, place, children, className, ...props }) {
6647
6650
  }
6648
6651
 
6649
6652
  // src/QuotedLine.tsx
6650
- import { jsx as jsx85, jsxs as jsxs62 } from "react/jsx-runtime";
6653
+ import { jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
6651
6654
  var SINCE = { reworded: "Changed since", gone: "Deleted from the page" };
6652
6655
  function QuotedLine({ words, state = "here", label }) {
6653
6656
  const shown2 = words ?? label ?? "";
6654
6657
  const inThePage = !!words && state === "here";
6655
- return /* @__PURE__ */ jsxs62("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
6658
+ return /* @__PURE__ */ jsxs63("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
6656
6659
  /* @__PURE__ */ jsx85(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx85("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx85("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", inThePage ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 }) }) }),
6657
6660
  state !== "here" && /* @__PURE__ */ jsx85("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
6658
6661
  ] });
6659
6662
  }
6660
6663
 
6661
6664
  // src/ReactionHorizon.tsx
6662
- import { Fragment as Fragment26, jsx as jsx86, jsxs as jsxs63 } from "react/jsx-runtime";
6665
+ import { Fragment as Fragment26, jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
6663
6666
  function Said({ limit, omitted, noun }) {
6664
- return /* @__PURE__ */ jsxs63(Fragment26, { children: [
6667
+ return /* @__PURE__ */ jsxs64(Fragment26, { children: [
6665
6668
  "Reactions are shown for the latest ",
6666
6669
  limit,
6667
6670
  " ",
@@ -6676,8 +6679,8 @@ function Said({ limit, omitted, noun }) {
6676
6679
  function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepRoom = false }) {
6677
6680
  const room = keepRoom && omitted <= 0 && /* @__PURE__ */ jsx86("p", { "aria-hidden": true, className: "invisible text-caption text-text-muted", children: /* @__PURE__ */ jsx86(Said, { limit, omitted: 1, noun }) });
6678
6681
  if (omitted <= 0 && !cut) return room || null;
6679
- return /* @__PURE__ */ jsxs63(Fragment26, { children: [
6680
- /* @__PURE__ */ jsxs63("p", { className: "text-caption text-text-muted", children: [
6682
+ return /* @__PURE__ */ jsxs64(Fragment26, { children: [
6683
+ /* @__PURE__ */ jsxs64("p", { className: "text-caption text-text-muted", children: [
6681
6684
  omitted > 0 && /* @__PURE__ */ jsx86(Said, { limit, omitted, noun }),
6682
6685
  omitted > 0 && cut && " ",
6683
6686
  cut && "Some reactions may be missing."
@@ -6687,11 +6690,11 @@ function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepR
6687
6690
  }
6688
6691
 
6689
6692
  // src/PinnedComment.tsx
6690
- import { jsx as jsx87, jsxs as jsxs64 } from "react/jsx-runtime";
6693
+ import { jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
6691
6694
  function PinnedComment({ author, time, at: given, words, deleted = false }) {
6692
6695
  const at = momentOf(given);
6693
- return /* @__PURE__ */ jsx87(Card, { fill: "elevated", clip: true, children: deleted ? /* @__PURE__ */ jsx87("p", { className: "p-2 text-caption italic text-text-muted", children: "This comment was deleted." }) : /* @__PURE__ */ jsxs64("div", { className: "flex flex-col p-2", children: [
6694
- /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2", children: [
6696
+ return /* @__PURE__ */ jsx87(Card, { fill: "elevated", clip: true, children: deleted ? /* @__PURE__ */ jsx87("p", { className: "p-2 text-caption italic text-text-muted", children: "This comment was deleted." }) : /* @__PURE__ */ jsxs65("div", { className: "flex flex-col p-2", children: [
6697
+ /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2", children: [
6695
6698
  /* @__PURE__ */ jsx87(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }),
6696
6699
  /* @__PURE__ */ jsx87("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6697
6700
  /* @__PURE__ */ jsx87(MetaText, { className: "shrink-0", children: at === void 0 ? time : /* @__PURE__ */ jsx87(WithTooltip, { label: exactTime(at), children: /* @__PURE__ */ jsx87("time", { dateTime: new Date(at).toISOString(), children: time }) }) })
@@ -6702,13 +6705,13 @@ function PinnedComment({ author, time, at: given, words, deleted = false }) {
6702
6705
 
6703
6706
  // src/ArchiveDialog.tsx
6704
6707
  import { useState as useState26 } from "react";
6705
- import { jsx as jsx88, jsxs as jsxs65 } from "react/jsx-runtime";
6708
+ import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
6706
6709
  var listOf = (parts) => parts.length <= 1 ? parts[0] ?? "" : `${parts.slice(0, -1).join(", ")} and ${parts.at(-1)}`;
6707
6710
  function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, onClose, onArchive }) {
6708
6711
  const [resolution, setResolution] = useState26("");
6709
6712
  const where = apps.length ? `, ${listOf(apps.map((app) => `in ${app}`))}` : "";
6710
- return /* @__PURE__ */ jsxs65(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
6711
- /* @__PURE__ */ jsxs65("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
6713
+ return /* @__PURE__ */ jsxs66(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
6714
+ /* @__PURE__ */ jsxs66("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
6712
6715
  /* @__PURE__ */ jsx88("p", { children: hides === null ? `Counting what archiving this ${what} would hide\u2026` : hides.length ? `This hides the ${what} and ${listOf(hides)} from every list${where}.` : `This hides the ${what} from every list${where}.` }),
6713
6716
  staysVisible.length > 0 && /* @__PURE__ */ jsx88("p", { children: `${listOf(staysVisible)} stay visible there.` }),
6714
6717
  /* @__PURE__ */ jsx88("p", { className: "text-text-secondary", children: getBack })
@@ -6728,15 +6731,15 @@ function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, o
6728
6731
  // src/ArchivedNotice.tsx
6729
6732
  import { useState as useState27 } from "react";
6730
6733
  import { IconArchive } from "@tabler/icons-react";
6731
- import { jsx as jsx89, jsxs as jsxs66 } from "react/jsx-runtime";
6734
+ import { jsx as jsx89, jsxs as jsxs67 } from "react/jsx-runtime";
6732
6735
  function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive, onOpenParent }) {
6733
6736
  const [unarchiving, setUnarchiving] = useState27(false);
6734
6737
  const parent = withWhat ?? (withTitle ? "parent" : void 0);
6735
6738
  const named2 = withTitle ? ` \u201C${withTitle}\u201D` : "";
6736
6739
  const line = parent ? `Archived with its ${parent}${named2} by ${by} \xB7 ${when}` : `Archived by ${by} \xB7 ${when}`;
6737
- return /* @__PURE__ */ jsxs66(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
6740
+ return /* @__PURE__ */ jsxs67(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
6738
6741
  /* @__PURE__ */ jsx89(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
6739
- /* @__PURE__ */ jsxs66("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
6742
+ /* @__PURE__ */ jsxs67("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
6740
6743
  /* @__PURE__ */ jsx89("span", { className: "text-body-2-strong text-text-primary", children: line }),
6741
6744
  resolution && /* @__PURE__ */ jsx89("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
6742
6745
  ] }),
@@ -6760,10 +6763,10 @@ function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive
6760
6763
  // src/DeletedNotice.tsx
6761
6764
  import { useState as useState28 } from "react";
6762
6765
  import { IconTrash } from "@tabler/icons-react";
6763
- import { jsx as jsx90, jsxs as jsxs67 } from "react/jsx-runtime";
6766
+ import { jsx as jsx90, jsxs as jsxs68 } from "react/jsx-runtime";
6764
6767
  function DeletedNotice({ by, when, onRestore }) {
6765
6768
  const [restoring, setRestoring] = useState28(false);
6766
- return /* @__PURE__ */ jsxs67(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
6769
+ return /* @__PURE__ */ jsxs68(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
6767
6770
  /* @__PURE__ */ jsx90(IconTrash, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
6768
6771
  /* @__PURE__ */ jsx90("span", { className: "min-w-0 flex-1 text-body-2-strong text-text-primary", children: `Deleted by ${by} \xB7 ${when}` }),
6769
6772
  onRestore && /* @__PURE__ */ jsx90(
@@ -6793,7 +6796,7 @@ function NoAccessNotice({ what }) {
6793
6796
  // src/Thread.tsx
6794
6797
  import { Children, useCallback as useCallback7, useContext as useContext15, useLayoutEffect as useLayoutEffect9, useRef as useRef21, useState as useState29 } from "react";
6795
6798
  import { IconX as IconX6 } from "@tabler/icons-react";
6796
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs68 } from "react/jsx-runtime";
6799
+ import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs69 } from "react/jsx-runtime";
6797
6800
  var always = () => true;
6798
6801
  var anyIn = (children) => Children.toArray(children).length > 0;
6799
6802
  function Replies({ children, loading, empty }) {
@@ -6844,27 +6847,27 @@ function Thread({
6844
6847
  const foot = notice ?? box;
6845
6848
  const layoutLine = useContext15(LineByLayout);
6846
6849
  if (place === "under") {
6847
- return /* @__PURE__ */ jsxs68("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
6850
+ return /* @__PURE__ */ jsxs69("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
6848
6851
  (loading || anyIn(children)) && // The replies hang from a line under the comment's face (20px in: its 8px and half its 24px), one step in (Ship's way).
6849
6852
  // 8px from the one card's right edge too, as the box under them: a hovered reply never touches it (Katerina, 31 October).
6850
6853
  // 2px, as the line from the comment's face that runs into it (Katerina, 1 November), and drawn the same way, a
6851
6854
  // filled bar rather than a border: a border snaps to the screen's pixels on its own, and at some zooms the two
6852
6855
  // stood a pixel apart (Katerina: "the line breaks in the middle").
6853
- /* @__PURE__ */ jsxs68("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
6856
+ /* @__PURE__ */ jsxs69("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
6854
6857
  !layoutLine && /* @__PURE__ */ jsx92("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
6855
6858
  /* @__PURE__ */ jsx92(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx92(SkeletonConversation, {}) : children })
6856
6859
  ] }),
6857
6860
  foot && /* @__PURE__ */ jsx92("div", { className: "px-2 pt-2", children: foot })
6858
6861
  ] });
6859
6862
  }
6860
- return /* @__PURE__ */ jsxs68(
6863
+ return /* @__PURE__ */ jsxs69(
6861
6864
  Panel,
6862
6865
  {
6863
6866
  className,
6864
6867
  bodyRef: setBody,
6865
6868
  bodyClassName: "flex flex-col",
6866
6869
  title,
6867
- actions: /* @__PURE__ */ jsxs68(Fragment27, { children: [
6870
+ actions: /* @__PURE__ */ jsxs69(Fragment27, { children: [
6868
6871
  resolved && /* @__PURE__ */ jsx92(Chip, { type: "success", label: "Resolved" }),
6869
6872
  actions,
6870
6873
  onClose && /* @__PURE__ */ jsx92(IconButton, { tooltip: "Close", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx92(IconX6, { size: 16, stroke: 1.5 }) })
@@ -6926,9 +6929,9 @@ function showInConversationWhenDrawn(id, { wait = WAIT_MS, ...options } = {}) {
6926
6929
  // src/SearchInput.tsx
6927
6930
  import "react";
6928
6931
  import { Input as Input3 } from "@base-ui/react/input";
6929
- import { jsx as jsx93, jsxs as jsxs69 } from "react/jsx-runtime";
6932
+ import { jsx as jsx93, jsxs as jsxs70 } from "react/jsx-runtime";
6930
6933
  function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...props }) {
6931
- return /* @__PURE__ */ jsxs69(
6934
+ return /* @__PURE__ */ jsxs70(
6932
6935
  "div",
6933
6936
  {
6934
6937
  className: cn(
@@ -6957,21 +6960,21 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
6957
6960
  // src/PageHeader.tsx
6958
6961
  import { Fragment as Fragment28 } from "react";
6959
6962
  import { IconLock as IconLock2 } from "@tabler/icons-react";
6960
- import { Fragment as Fragment29, jsx as jsx94, jsxs as jsxs70 } from "react/jsx-runtime";
6963
+ import { Fragment as Fragment29, jsx as jsx94, jsxs as jsxs71 } from "react/jsx-runtime";
6961
6964
  function PageHeader({ title, leading, private: locked = false, after, meta, time, members, actions, className }) {
6962
6965
  const words = (meta ?? []).map((one) => typeof one === "string" ? { label: one } : one);
6963
6966
  const quiet = words.length > 0 || time != null || members != null;
6964
- const name = /* @__PURE__ */ jsxs70("div", { className: "flex min-w-0 items-center gap-2", children: [
6967
+ const name = /* @__PURE__ */ jsxs71("div", { className: "flex min-w-0 items-center gap-2", children: [
6965
6968
  leading != null && /* @__PURE__ */ jsx94("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
6966
6969
  locked && /* @__PURE__ */ jsx94(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx94(IconLock2, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
6967
6970
  typeof title === "string" ? /* @__PURE__ */ jsx94("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx94("div", { className: "flex min-w-0 items-center", children: title }),
6968
6971
  after != null && /* @__PURE__ */ jsx94("span", { className: "flex shrink-0 items-center", children: after })
6969
6972
  ] });
6970
- const right = quiet || actions != null ? /* @__PURE__ */ jsxs70(Fragment29, { children: [
6973
+ const right = quiet || actions != null ? /* @__PURE__ */ jsxs71(Fragment29, { children: [
6971
6974
  quiet && // The quiet group: 12px between its parts, and 12px clear of the buttons — the bar sets
6972
6975
  // its actions 4px apart, so the group adds the other 8px, as Peek's and Leaf's bars do.
6973
- /* @__PURE__ */ jsxs70("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
6974
- words.length > 0 && /* @__PURE__ */ jsx94("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs70(Fragment28, { children: [
6976
+ /* @__PURE__ */ jsxs71("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
6977
+ words.length > 0 && /* @__PURE__ */ jsx94("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs71(Fragment28, { children: [
6975
6978
  i > 0 && // eslint-disable-next-line token-spacing/no-restricted-classes -- @estiva-escape: Peek's dot between its counts, 3px measured on 31 October; the scale steps from 2px to 4px
6976
6979
  /* @__PURE__ */ jsx94("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
6977
6980
  /* @__PURE__ */ jsx94(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
@@ -6985,9 +6988,9 @@ function PageHeader({ title, leading, private: locked = false, after, meta, time
6985
6988
  }
6986
6989
 
6987
6990
  // src/ListColumn.tsx
6988
- import { jsx as jsx95, jsxs as jsxs71 } from "react/jsx-runtime";
6991
+ import { jsx as jsx95, jsxs as jsxs72 } from "react/jsx-runtime";
6989
6992
  function Column({ title, chevron = false, titleMenu, actions, above, collapsed = false, children, className, broken = false }) {
6990
- return /* @__PURE__ */ jsxs71(
6993
+ return /* @__PURE__ */ jsxs72(
6991
6994
  "div",
6992
6995
  {
6993
6996
  className: cn(
@@ -7026,7 +7029,7 @@ function ListColumn(props) {
7026
7029
 
7027
7030
  // src/Tabs.tsx
7028
7031
  import { Tabs as BaseTabs } from "@base-ui/react/tabs";
7029
- import { Fragment as Fragment30, jsx as jsx96, jsxs as jsxs72 } from "react/jsx-runtime";
7032
+ import { Fragment as Fragment30, jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
7030
7033
  function Tabs({ tabs, active, onChange, size = "default", className, ...aria }) {
7031
7034
  return /* @__PURE__ */ jsx96(
7032
7035
  BaseTabs.Root,
@@ -7043,7 +7046,7 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7043
7046
  "aria-label": aria["aria-label"],
7044
7047
  "aria-labelledby": aria["aria-labelledby"],
7045
7048
  className: "flex items-center gap-2",
7046
- children: tabs.map((tab) => /* @__PURE__ */ jsxs72(
7049
+ children: tabs.map((tab) => /* @__PURE__ */ jsxs73(
7047
7050
  BaseTabs.Tab,
7048
7051
  {
7049
7052
  value: tab.id,
@@ -7056,11 +7059,11 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7056
7059
  ),
7057
7060
  children: [
7058
7061
  tab.icon,
7059
- /* @__PURE__ */ jsxs72("span", { className: "flex items-baseline", children: [
7062
+ /* @__PURE__ */ jsxs73("span", { className: "flex items-baseline", children: [
7060
7063
  tab.label,
7061
7064
  tab.count !== void 0 ? /* @__PURE__ */ jsx96("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
7062
7065
  ] }),
7063
- tab.unread ? /* @__PURE__ */ jsxs72(Fragment30, { children: [
7066
+ tab.unread ? /* @__PURE__ */ jsxs73(Fragment30, { children: [
7064
7067
  /* @__PURE__ */ jsx96(UnreadDot, { className: "h-auto w-auto" }),
7065
7068
  /* @__PURE__ */ jsx96("span", { className: "sr-only", children: "new" })
7066
7069
  ] }) : null
@@ -7078,7 +7081,7 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7078
7081
  import { createContext as createContext13, useContext as useContext16, useMemo as useMemo7 } from "react";
7079
7082
  import { Toast as BaseToast } from "@base-ui/react/toast";
7080
7083
  import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck5, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
7081
- import { jsx as jsx97, jsxs as jsxs73 } from "react/jsx-runtime";
7084
+ import { jsx as jsx97, jsxs as jsxs74 } from "react/jsx-runtime";
7082
7085
  var SURFACE_STYLES = {
7083
7086
  success: "bg-success-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
7084
7087
  brand: "bg-accent-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
@@ -7118,8 +7121,8 @@ function LeadingIcon({ type }) {
7118
7121
  }
7119
7122
  function Toast({ label, type = "neutral", leadingIcon = true, actionLabel, onAction, className }) {
7120
7123
  const hasAction = !!(actionLabel && onAction);
7121
- return /* @__PURE__ */ jsxs73("div", { className: pillClassName(type, hasAction, className), children: [
7122
- /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 shrink-0", children: [
7124
+ return /* @__PURE__ */ jsxs74("div", { className: pillClassName(type, hasAction, className), children: [
7125
+ /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 shrink-0", children: [
7123
7126
  leadingIcon && /* @__PURE__ */ jsx97(LeadingIcon, { type }),
7124
7127
  /* @__PURE__ */ jsx97("span", { className: LABEL_CLASSES, children: label })
7125
7128
  ] }),
@@ -7145,7 +7148,7 @@ function ToastProvider({ children }) {
7145
7148
  }),
7146
7149
  [manager]
7147
7150
  );
7148
- return /* @__PURE__ */ jsx97(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs73(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
7151
+ return /* @__PURE__ */ jsx97(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs74(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
7149
7152
  children,
7150
7153
  /* @__PURE__ */ jsx97(BaseToast.Portal, { children: /* @__PURE__ */ jsx97(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx97(ToastList, {}) }) })
7151
7154
  ] }) });
@@ -7155,14 +7158,14 @@ function ToastList() {
7155
7158
  return toasts.map((toast) => {
7156
7159
  const type = toast.type ?? "neutral";
7157
7160
  const { leadingIcon = true, actionLabel, onAction } = toast.data ?? {};
7158
- return /* @__PURE__ */ jsxs73(
7161
+ return /* @__PURE__ */ jsxs74(
7159
7162
  BaseToast.Root,
7160
7163
  {
7161
7164
  toast,
7162
7165
  swipeDirection: ["left", "down"],
7163
7166
  className: pillClassName(type, !!actionLabel, "pointer-events-auto data-[limited]:hidden"),
7164
7167
  children: [
7165
- /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 shrink-0", children: [
7168
+ /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 shrink-0", children: [
7166
7169
  leadingIcon && /* @__PURE__ */ jsx97(LeadingIcon, { type }),
7167
7170
  /* @__PURE__ */ jsx97(BaseToast.Title, { render: /* @__PURE__ */ jsx97("span", {}), className: LABEL_CLASSES })
7168
7171
  ] }),