@arbidocs/blocks 0.4.108 → 0.4.110

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.
Files changed (174) hide show
  1. package/dist/{NativeDocxEditor-UAZUKZ77.js → NativeDocxEditor-4PY4YZYC.js} +3 -3
  2. package/dist/{NativeDocxEditor-UAZUKZ77.js.map → NativeDocxEditor-4PY4YZYC.js.map} +1 -1
  3. package/dist/{NativeDocxEditor-YX7B7OFH.cjs → NativeDocxEditor-WODZAURG.cjs} +7 -7
  4. package/dist/{NativeDocxEditor-YX7B7OFH.cjs.map → NativeDocxEditor-WODZAURG.cjs.map} +1 -1
  5. package/dist/agents/index.cjs +286 -286
  6. package/dist/agents/index.js +10 -10
  7. package/dist/agents/tasks/ConversationListView.d.ts +5 -1
  8. package/dist/agents/tasks/TaskActivityTimeline.d.ts +5 -1
  9. package/dist/calendar/EventDetails.d.ts +1 -1
  10. package/dist/calendar/index.cjs +13 -0
  11. package/dist/calendar/index.cjs.map +1 -1
  12. package/dist/calendar/index.js +13 -0
  13. package/dist/calendar/index.js.map +1 -1
  14. package/dist/calendar/types.d.ts +3 -0
  15. package/dist/calls/CallSidePanel.d.ts +17 -0
  16. package/dist/calls/CallStage.d.ts +57 -0
  17. package/dist/calls/ControlBar.d.ts +91 -0
  18. package/dist/calls/ControlButton.d.ts +44 -0
  19. package/dist/calls/PreJoin.d.ts +31 -0
  20. package/dist/calls/cards.d.ts +54 -0
  21. package/dist/calls/hooks.d.ts +20 -0
  22. package/dist/calls/index.cjs +1853 -0
  23. package/dist/calls/index.cjs.map +1 -0
  24. package/dist/calls/index.d.ts +20 -0
  25. package/dist/calls/index.js +1737 -0
  26. package/dist/calls/index.js.map +1 -0
  27. package/dist/calls/join-choices.d.ts +11 -0
  28. package/dist/calls/layout.d.ts +106 -0
  29. package/dist/calls/panels.d.ts +55 -0
  30. package/dist/calls/status.d.ts +69 -0
  31. package/dist/calls/tiles.d.ts +59 -0
  32. package/dist/chat/Message.d.ts +17 -2
  33. package/dist/chat/TranscriptLine.d.ts +50 -0
  34. package/dist/chat/index.cjs +147 -126
  35. package/dist/chat/index.d.ts +3 -1
  36. package/dist/chat/index.js +5 -4
  37. package/dist/chat/transcript-runs.d.ts +6 -0
  38. package/dist/{chunk-QT6EGMAJ.cjs → chunk-2NIL2ASF.cjs} +38 -294
  39. package/dist/chunk-2NIL2ASF.cjs.map +1 -0
  40. package/dist/{chunk-XMBYDLZQ.cjs → chunk-2UAJVK3C.cjs} +4 -4
  41. package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-2UAJVK3C.cjs.map} +1 -1
  42. package/dist/{chunk-TTXK62YI.cjs → chunk-54WBIVHV.cjs} +5 -5
  43. package/dist/{chunk-TTXK62YI.cjs.map → chunk-54WBIVHV.cjs.map} +1 -1
  44. package/dist/{chunk-7C35WXYB.js → chunk-5HFPRI3W.js} +5 -5
  45. package/dist/chunk-5HFPRI3W.js.map +1 -0
  46. package/dist/{chunk-S7RHJI5Q.js → chunk-6RHHMBZ5.js} +158 -5
  47. package/dist/chunk-6RHHMBZ5.js.map +1 -0
  48. package/dist/{chunk-3Y6NQIDE.js → chunk-A35KT2II.js} +37 -19
  49. package/dist/chunk-A35KT2II.js.map +1 -0
  50. package/dist/{chunk-PGDL26TQ.js → chunk-AY32GGKU.js} +10 -4
  51. package/dist/{chunk-PGDL26TQ.js.map → chunk-AY32GGKU.js.map} +1 -1
  52. package/dist/{chunk-IXALYQT7.cjs → chunk-C2CWWEHO.cjs} +2 -2
  53. package/dist/chunk-C2CWWEHO.cjs.map +1 -0
  54. package/dist/{chunk-S55VDTX3.js → chunk-CECWAIHL.js} +3 -3
  55. package/dist/{chunk-S55VDTX3.js.map → chunk-CECWAIHL.js.map} +1 -1
  56. package/dist/{chunk-XQDM6T6C.js → chunk-CXZ7FPTQ.js} +3 -3
  57. package/dist/{chunk-XQDM6T6C.js.map → chunk-CXZ7FPTQ.js.map} +1 -1
  58. package/dist/{chunk-C2HRZSAT.cjs → chunk-DJM7DLCT.cjs} +5 -5
  59. package/dist/chunk-DJM7DLCT.cjs.map +1 -0
  60. package/dist/{chunk-XQKGYGCJ.js → chunk-DQCYCEDR.js} +3 -3
  61. package/dist/{chunk-XQKGYGCJ.js.map → chunk-DQCYCEDR.js.map} +1 -1
  62. package/dist/{chunk-ZYSY4L5L.cjs → chunk-ELDUWTRR.cjs} +4 -4
  63. package/dist/{chunk-ZYSY4L5L.cjs.map → chunk-ELDUWTRR.cjs.map} +1 -1
  64. package/dist/{chunk-A2MN2ZLX.js → chunk-GKDWQLVU.js} +13 -274
  65. package/dist/chunk-GKDWQLVU.js.map +1 -0
  66. package/dist/{chunk-24ND4S6Y.cjs → chunk-HBBJYRGI.cjs} +162 -5
  67. package/dist/{chunk-S7RHJI5Q.js.map → chunk-HBBJYRGI.cjs.map} +1 -1
  68. package/dist/{chunk-P2KPDPFF.js → chunk-IXTQYFIF.js} +23 -15
  69. package/dist/chunk-IXTQYFIF.js.map +1 -0
  70. package/dist/{chunk-JQVPGMLU.js → chunk-JB32KYAH.js} +3 -3
  71. package/dist/{chunk-JQVPGMLU.js.map → chunk-JB32KYAH.js.map} +1 -1
  72. package/dist/{chunk-PBS5MFIY.cjs → chunk-JK45LSIH.cjs} +3 -3
  73. package/dist/{chunk-PBS5MFIY.cjs.map → chunk-JK45LSIH.cjs.map} +1 -1
  74. package/dist/chunk-MWDW5UBW.cjs +199 -0
  75. package/dist/chunk-MWDW5UBW.cjs.map +1 -0
  76. package/dist/{chunk-ZPLG7QYF.js → chunk-N5YEF3LC.js} +2 -2
  77. package/dist/chunk-N5YEF3LC.js.map +1 -0
  78. package/dist/{chunk-EWSEQEPL.js → chunk-NRUPUDWB.js} +17 -7
  79. package/dist/chunk-NRUPUDWB.js.map +1 -0
  80. package/dist/{chunk-DDF5GPIJ.js → chunk-P5ST47VY.js} +3 -3
  81. package/dist/{chunk-DDF5GPIJ.js.map → chunk-P5ST47VY.js.map} +1 -1
  82. package/dist/{chunk-EGDWNEAG.js → chunk-PEHLUB52.js} +3 -3
  83. package/dist/{chunk-EGDWNEAG.js.map → chunk-PEHLUB52.js.map} +1 -1
  84. package/dist/{chunk-W7NZRZ54.js → chunk-SQNAJPNR.js} +4 -4
  85. package/dist/{chunk-W7NZRZ54.js.map → chunk-SQNAJPNR.js.map} +1 -1
  86. package/dist/{chunk-DTBSGG36.cjs → chunk-U6MPHCEB.cjs} +24 -16
  87. package/dist/chunk-U6MPHCEB.cjs.map +1 -0
  88. package/dist/{chunk-MP6FK43E.cjs → chunk-VP4KJ4LK.cjs} +17 -6
  89. package/dist/chunk-VP4KJ4LK.cjs.map +1 -0
  90. package/dist/{chunk-LLFW2T6S.cjs → chunk-VZKBI2KJ.cjs} +85 -67
  91. package/dist/chunk-VZKBI2KJ.cjs.map +1 -0
  92. package/dist/{chunk-5YXG342J.cjs → chunk-W7ZDBPJ3.cjs} +4 -4
  93. package/dist/{chunk-5YXG342J.cjs.map → chunk-W7ZDBPJ3.cjs.map} +1 -1
  94. package/dist/{chunk-SKSE4OT6.cjs → chunk-WPVIOGDG.cjs} +5 -5
  95. package/dist/{chunk-SKSE4OT6.cjs.map → chunk-WPVIOGDG.cjs.map} +1 -1
  96. package/dist/{chunk-3US5OIDQ.cjs → chunk-XSUOEJB3.cjs} +9 -3
  97. package/dist/chunk-XSUOEJB3.cjs.map +1 -0
  98. package/dist/chunk-Z3AZ7Q5X.js +177 -0
  99. package/dist/chunk-Z3AZ7Q5X.js.map +1 -0
  100. package/dist/{chunk-Z5VUZ6YD.cjs → chunk-ZV3BKLFY.cjs} +3 -3
  101. package/dist/{chunk-Z5VUZ6YD.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
  102. package/dist/citations/index.cjs +10 -10
  103. package/dist/citations/index.js +1 -1
  104. package/dist/collaboration/index.cjs +57 -57
  105. package/dist/collaboration/index.js +3 -3
  106. package/dist/connect/docx.cjs +6 -6
  107. package/dist/connect/docx.js +4 -4
  108. package/dist/connect/index.cjs +87 -87
  109. package/dist/connect/index.js +16 -16
  110. package/dist/databases/index.cjs +2 -2
  111. package/dist/databases/index.js +1 -1
  112. package/dist/docx/definitions/fragment.d.ts +2 -6
  113. package/dist/docx/definitions/port.d.ts +2 -57
  114. package/dist/docx/index.cjs +46 -46
  115. package/dist/docx/index.js +3 -3
  116. package/dist/docx/references/commands.d.ts +3 -31
  117. package/dist/docx/references/numbering.d.ts +3 -47
  118. package/dist/facts/index.cjs +5 -5
  119. package/dist/facts/index.js +4 -4
  120. package/dist/files/GridView.d.ts +4 -1
  121. package/dist/files/TagPassagePanel.d.ts +2 -0
  122. package/dist/files/index.cjs +89 -79
  123. package/dist/files/index.cjs.map +1 -1
  124. package/dist/files/index.js +88 -78
  125. package/dist/files/index.js.map +1 -1
  126. package/dist/home/index.cjs +17 -17
  127. package/dist/home/index.js +3 -3
  128. package/dist/index.cjs +739 -718
  129. package/dist/index.cjs.map +1 -1
  130. package/dist/index.js +22 -21
  131. package/dist/index.js.map +1 -1
  132. package/dist/retrieval/index.cjs +1 -1
  133. package/dist/retrieval/index.js +1 -1
  134. package/dist/settings/FirmPool.d.ts +45 -0
  135. package/dist/settings/index.cjs +134 -37
  136. package/dist/settings/index.cjs.map +1 -1
  137. package/dist/settings/index.d.ts +1 -0
  138. package/dist/settings/index.js +100 -6
  139. package/dist/settings/index.js.map +1 -1
  140. package/dist/shell/index.cjs +12 -12
  141. package/dist/shell/index.js +4 -4
  142. package/dist/site/index.cjs +5 -5
  143. package/dist/site/index.js +1 -1
  144. package/dist/studio/index.cjs +5 -5
  145. package/dist/studio/index.js +4 -4
  146. package/dist/workflow-canvas/index.cjs +53 -53
  147. package/dist/workflow-canvas/index.js +10 -10
  148. package/dist/workspaces/index.cjs +3 -3
  149. package/dist/workspaces/index.cjs.map +1 -1
  150. package/dist/workspaces/index.js +3 -3
  151. package/dist/workspaces/index.js.map +1 -1
  152. package/node_modules/@arbidocs/coedit/dist/commands.cjs +356 -0
  153. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -0
  154. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +235 -0
  155. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +235 -0
  156. package/node_modules/@arbidocs/coedit/dist/commands.js +338 -0
  157. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -0
  158. package/node_modules/@arbidocs/coedit/package.json +6 -1
  159. package/package.json +15 -5
  160. package/src/calls/calls.css +157 -0
  161. package/dist/chunk-24ND4S6Y.cjs.map +0 -1
  162. package/dist/chunk-3US5OIDQ.cjs.map +0 -1
  163. package/dist/chunk-3Y6NQIDE.js.map +0 -1
  164. package/dist/chunk-7C35WXYB.js.map +0 -1
  165. package/dist/chunk-A2MN2ZLX.js.map +0 -1
  166. package/dist/chunk-C2HRZSAT.cjs.map +0 -1
  167. package/dist/chunk-DTBSGG36.cjs.map +0 -1
  168. package/dist/chunk-EWSEQEPL.js.map +0 -1
  169. package/dist/chunk-IXALYQT7.cjs.map +0 -1
  170. package/dist/chunk-LLFW2T6S.cjs.map +0 -1
  171. package/dist/chunk-MP6FK43E.cjs.map +0 -1
  172. package/dist/chunk-P2KPDPFF.js.map +0 -1
  173. package/dist/chunk-QT6EGMAJ.cjs.map +0 -1
  174. package/dist/chunk-ZPLG7QYF.js.map +0 -1
@@ -3,24 +3,24 @@ import { ModalBreadcrumbHeader } from '../chunk-RC6VTY2H.js';
3
3
  export { DEFAULT_FOLDER_FILTER_LABELS, DEFAULT_FOLDER_PICKER_LABELS, FilesFilterBar, FilesModalFooter, FilesTagsButton, FilesViewCenter, FolderCommandList, FolderFilterButton, FolderPickerRow, FolderTree } from '../chunk-7RJTEWYM.js';
4
4
  export { ViewerHeaderEnd, ViewerHeaderStart, ViewerPane, ViewerRenderedPane, ViewerStatusNote } from '../chunk-ODWCTAH7.js';
5
5
  export { DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS, DocumentViewToggle, ViewToggle } from '../chunk-JJA6GQKH.js';
6
+ import { ShareControl } from '../chunk-K4BGOPGG.js';
6
7
  import { CellHoverIcon } from '../chunk-RFXJYIDV.js';
7
8
  export { CellHoverIcon, HoverIconCell } from '../chunk-RFXJYIDV.js';
8
9
  import { ToneBadge } from '../chunk-5LXQPP2K.js';
10
+ import { ActionLink } from '../chunk-S7PSMMRG.js';
9
11
  export { UploadDropzone } from '../chunk-EVUEIBNU.js';
10
12
  import { TONE_SURFACE } from '../chunk-AUS3KBHJ.js';
13
+ import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
11
14
  import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
12
15
  export { DEFAULT_SELECTION_BAR_LABELS, SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
13
16
  import { FilterInput } from '../chunk-YU2KUMGE.js';
14
- import { ActionLink } from '../chunk-S7PSMMRG.js';
17
+ import { GridView } from '../chunk-N5YEF3LC.js';
18
+ export { GridView } from '../chunk-N5YEF3LC.js';
19
+ import '../chunk-SLSBJRWW.js';
15
20
  import '../chunk-NPLYHR2E.js';
21
+ import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
16
22
  import '../chunk-76JDDMSP.js';
17
23
  import { formatCount } from '../chunk-OXF2IFXG.js';
18
- import { ShareControl } from '../chunk-K4BGOPGG.js';
19
- import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
20
- import { GridView } from '../chunk-ZPLG7QYF.js';
21
- export { GridView } from '../chunk-ZPLG7QYF.js';
22
- import '../chunk-SLSBJRWW.js';
23
- import { testIdOr } from '../chunk-7F6CBP3Z.js';
24
24
  import '../chunk-VUNV25KB.js';
25
25
  import { cva } from 'class-variance-authority';
26
26
  import { cn, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, Tooltip, TooltipTrigger, TooltipContent, Button, Progress, Badge, RadioGroup, RadioGroupItem, Label, ScrollArea, Checkbox, Dialog, DialogContent, DialogTitle, DialogDescription, TooltipProvider, IconToggle, Textarea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuItem, DialogTrigger, Input, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogHeader, CommandSeparator, getTagTypeIcon, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Switch } from '@arbidocs/react/ui';
@@ -2619,82 +2619,92 @@ function TagPassagePanel({
2619
2619
  group.tags.map((tag) => {
2620
2620
  const hasNote2 = !!tag.note;
2621
2621
  const isEditing = editingNoteTagId === tag.id;
2622
- return /* @__PURE__ */ jsxs("div", { className: "border-b border-border last:border-b-0", children: [
2623
- /* @__PURE__ */ jsxs("div", { className: "flex items-center transition-colors hover:bg-muted", children: [
2624
- /* @__PURE__ */ jsxs(
2625
- "button",
2626
- {
2627
- onClick: () => onToggle(tag.id),
2628
- disabled: isBusy,
2629
- className: "flex flex-1 items-center gap-3 px-4 py-3 disabled:opacity-50 pointer-coarse:min-h-11",
2630
- children: [
2622
+ return /* @__PURE__ */ jsxs(
2623
+ "div",
2624
+ {
2625
+ className: "border-b border-border last:border-b-0",
2626
+ "data-testid": prefixedTestId(testIds?.row, tag.id, {
2627
+ testId: `chunk-tag-row-${tag.id}`
2628
+ }),
2629
+ children: [
2630
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center transition-colors hover:bg-muted", children: [
2631
+ /* @__PURE__ */ jsxs(
2632
+ "button",
2633
+ {
2634
+ onClick: () => onToggle(tag.id),
2635
+ disabled: isBusy,
2636
+ className: "flex flex-1 items-center gap-3 px-4 py-3 disabled:opacity-50 pointer-coarse:min-h-11",
2637
+ children: [
2638
+ /* @__PURE__ */ jsx(
2639
+ "div",
2640
+ {
2641
+ className: "flex size-5 shrink-0 items-center justify-center rounded border-2",
2642
+ style: {
2643
+ borderColor: tag.color,
2644
+ backgroundColor: tag.isApplied ? tag.color : "transparent"
2645
+ },
2646
+ children: tag.isApplied && /* @__PURE__ */ jsx(Check, { className: "size-3 text-white", strokeWidth: 3 })
2647
+ }
2648
+ ),
2649
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
2650
+ tag.badge,
2651
+ hasNote2 && !isEditing && /* @__PURE__ */ jsx(StickyNote, { className: "size-3.5 text-muted-foreground" })
2652
+ ] }),
2653
+ isBusy && /* @__PURE__ */ jsx(Loader2, { className: "size-4 shrink-0 animate-spin" })
2654
+ ]
2655
+ }
2656
+ ),
2657
+ tag.isApplied && onViewTagged && /* @__PURE__ */ jsx(
2658
+ "button",
2659
+ {
2660
+ onClick: () => onViewTagged(tag.id),
2661
+ className: "mr-3 shrink-0 rounded p-1 hover:bg-muted pointer-coarse:min-h-11 pointer-coarse:min-w-11",
2662
+ title: l.viewTagged,
2663
+ "data-testid": testIdOr(testIds?.viewTagged, {
2664
+ testId: "view-tagged-chunks-button"
2665
+ }),
2666
+ children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4 text-muted-foreground" })
2667
+ }
2668
+ )
2669
+ ] }),
2670
+ tag.isApplied && /* @__PURE__ */ jsx("div", { className: "px-4 pb-3", children: isEditing ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2671
+ /* @__PURE__ */ jsx(
2672
+ Textarea,
2673
+ {
2674
+ value: noteValue,
2675
+ onChange: (e) => onNoteChange(e.target.value),
2676
+ placeholder: l.notePlaceholder,
2677
+ className: "min-h-[60px] text-sm",
2678
+ autoFocus: true
2679
+ }
2680
+ ),
2681
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
2682
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onCancelNote, children: l.cancel }),
2631
2683
  /* @__PURE__ */ jsx(
2632
- "div",
2684
+ Button,
2633
2685
  {
2634
- className: "flex size-5 shrink-0 items-center justify-center rounded border-2",
2635
- style: {
2636
- borderColor: tag.color,
2637
- backgroundColor: tag.isApplied ? tag.color : "transparent"
2638
- },
2639
- children: tag.isApplied && /* @__PURE__ */ jsx(Check, { className: "size-3 text-white", strokeWidth: 3 })
2686
+ size: "sm",
2687
+ onClick: () => onSaveNote(tag.id),
2688
+ disabled: isBusy,
2689
+ children: l.save
2640
2690
  }
2641
- ),
2642
- /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
2643
- tag.badge,
2644
- hasNote2 && !isEditing && /* @__PURE__ */ jsx(StickyNote, { className: "size-3.5 text-muted-foreground" })
2645
- ] }),
2646
- isBusy && /* @__PURE__ */ jsx(Loader2, { className: "size-4 shrink-0 animate-spin" })
2647
- ]
2648
- }
2649
- ),
2650
- tag.isApplied && onViewTagged && /* @__PURE__ */ jsx(
2651
- "button",
2652
- {
2653
- onClick: () => onViewTagged(tag.id),
2654
- className: "mr-3 shrink-0 rounded p-1 hover:bg-muted pointer-coarse:min-h-11 pointer-coarse:min-w-11",
2655
- title: l.viewTagged,
2656
- "data-testid": testIdOr(testIds?.viewTagged, {
2657
- testId: "view-tagged-chunks-button"
2658
- }),
2659
- children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4 text-muted-foreground" })
2660
- }
2661
- )
2662
- ] }),
2663
- tag.isApplied && /* @__PURE__ */ jsx("div", { className: "px-4 pb-3", children: isEditing ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2664
- /* @__PURE__ */ jsx(
2665
- Textarea,
2666
- {
2667
- value: noteValue,
2668
- onChange: (e) => onNoteChange(e.target.value),
2669
- placeholder: l.notePlaceholder,
2670
- className: "min-h-[60px] text-sm",
2671
- autoFocus: true
2672
- }
2673
- ),
2674
- /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
2675
- /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onCancelNote, children: l.cancel }),
2676
- /* @__PURE__ */ jsx(
2677
- Button,
2691
+ )
2692
+ ] })
2693
+ ] }) : /* @__PURE__ */ jsx(
2694
+ "button",
2678
2695
  {
2679
- size: "sm",
2680
- onClick: () => onSaveNote(tag.id),
2681
- disabled: isBusy,
2682
- children: l.save
2696
+ onClick: () => onStartNote(tag.id),
2697
+ className: cn(
2698
+ "w-full rounded-md bg-muted px-2 py-1.5 text-left text-sm pointer-coarse:min-h-11",
2699
+ hasNote2 ? "text-foreground" : "text-muted-foreground"
2700
+ ),
2701
+ children: tag.note || l.addNote
2683
2702
  }
2684
- )
2685
- ] })
2686
- ] }) : /* @__PURE__ */ jsx(
2687
- "button",
2688
- {
2689
- onClick: () => onStartNote(tag.id),
2690
- className: cn(
2691
- "w-full rounded-md bg-muted px-2 py-1.5 text-left text-sm pointer-coarse:min-h-11",
2692
- hasNote2 ? "text-foreground" : "text-muted-foreground"
2693
- ),
2694
- children: tag.note || l.addNote
2695
- }
2696
- ) })
2697
- ] }, tag.id);
2703
+ ) })
2704
+ ]
2705
+ },
2706
+ tag.id
2707
+ );
2698
2708
  })
2699
2709
  ] }, group.id)) }) }),
2700
2710
  /* @__PURE__ */ jsx("div", { className: "border-t border-border p-4", children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "w-full", onClick: onCreate, children: l.createField }) })