@nivaro/react 0.3.117 → 0.3.119

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 (138) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +136 -14
  4. package/dist/index.js +488 -485
  5. package/dist/shared/components/ActivityEntry.js +130 -125
  6. package/dist/shared/components/AgentPresenceChip.js +36 -26
  7. package/dist/shared/components/CellCopyLayer.js +50 -45
  8. package/dist/shared/components/CollectionBrowserView.js +3757 -3695
  9. package/dist/shared/components/FilePreviewLightbox.js +96 -58
  10. package/dist/shared/components/InStep.js +18 -17
  11. package/dist/shared/components/ItemEditForm.js +4451 -4385
  12. package/dist/shared/components/JobsTray.js +8 -8
  13. package/dist/shared/components/LiveNewMatchesPill.js +21 -14
  14. package/dist/shared/components/LiveOffNote.js +3 -2
  15. package/dist/shared/components/LiveRowMark.js +53 -23
  16. package/dist/shared/components/LiveTraceView.js +162 -123
  17. package/dist/shared/components/MyWorkView.js +320 -299
  18. package/dist/shared/components/NotificationBell.js +14 -14
  19. package/dist/shared/components/OverflowRail.js +1 -1
  20. package/dist/shared/components/PageRenderer.js +120 -116
  21. package/dist/shared/components/ProfileView.js +203 -202
  22. package/dist/shared/components/RealtimeStatusBanner.js +31 -29
  23. package/dist/shared/components/RecordDrilldownSheet.js +7 -7
  24. package/dist/shared/components/RecordHoverCard.js +102 -84
  25. package/dist/shared/components/RecordReadView.js +146 -146
  26. package/dist/shared/components/ScreenRefreshButton.js +34 -32
  27. package/dist/shared/components/TipLayer.js +65 -58
  28. package/dist/shared/components/WidgetImageMenu.js +83 -43
  29. package/dist/shared/components/activity/RecordActivityStream.js +175 -173
  30. package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
  31. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
  32. package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
  33. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
  34. package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
  35. package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
  36. package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
  37. package/dist/shared/components/collections-directory/page-model.js +72 -67
  38. package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
  39. package/dist/shared/components/integrations/SendStatus.js +65 -59
  40. package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
  41. package/dist/shared/components/integrations/console/SignalCard.js +237 -230
  42. package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
  43. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +135 -94
  44. package/dist/shared/components/item-edit/CloneDialog.js +191 -161
  45. package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
  46. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
  47. package/dist/shared/components/item-edit/FieldComments.js +88 -85
  48. package/dist/shared/components/item-edit/FieldPointer.js +82 -67
  49. package/dist/shared/components/item-edit/FieldRow.js +106 -100
  50. package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
  51. package/dist/shared/components/item-edit/FilePickerField.js +452 -387
  52. package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
  53. package/dist/shared/components/item-edit/HeaderTools.js +245 -141
  54. package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
  55. package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
  56. package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
  57. package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
  58. package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
  59. package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
  60. package/dist/shared/components/item-edit/RecalcValue.js +57 -32
  61. package/dist/shared/components/item-edit/RecordHelpChip.js +15 -16
  62. package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
  63. package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
  64. package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
  65. package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
  66. package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
  67. package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
  68. package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
  69. package/dist/shared/components/item-edit/SectionPresence.js +18 -10
  70. package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
  71. package/dist/shared/components/item-edit/UserChip.js +1 -1
  72. package/dist/shared/components/item-edit/addendum-view.js +6 -0
  73. package/dist/shared/components/item-edit/file-live.js +69 -54
  74. package/dist/shared/components/item-edit/layout-switch.js +98 -89
  75. package/dist/shared/components/item-edit/partner-needs.js +12 -12
  76. package/dist/shared/components/item-edit/removed-line.js +31 -25
  77. package/dist/shared/components/layout-editor/pickers/field-picker.js +151 -130
  78. package/dist/shared/components/list/ListViewers.js +46 -35
  79. package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
  80. package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
  81. package/dist/shared/components/panels/AlertBanners.js +82 -72
  82. package/dist/shared/components/panels/BranchLanes.js +22 -22
  83. package/dist/shared/components/panels/CommentImages.js +123 -102
  84. package/dist/shared/components/panels/CommentPanel.js +186 -185
  85. package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
  86. package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
  87. package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
  88. package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
  89. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
  90. package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
  91. package/dist/shared/components/profile/AgentNameField.js +107 -81
  92. package/dist/shared/components/profile/AgentsPanel.js +184 -184
  93. package/dist/shared/components/profile/PersonAccess.js +599 -495
  94. package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
  95. package/dist/shared/components/profile/SignedInDevices.js +17 -17
  96. package/dist/shared/components/profile/primitives.js +1 -1
  97. package/dist/shared/components/queue/OwnerAvatars.js +91 -54
  98. package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
  99. package/dist/shared/components/queue/QueueWorklist.js +1002 -983
  100. package/dist/shared/components/support/AssignRules.js +1733 -0
  101. package/dist/shared/components/support/PersonPick.js +88 -0
  102. package/dist/shared/components/support/RequestList.js +790 -0
  103. package/dist/shared/components/support/ScreenShare.js +158 -152
  104. package/dist/shared/components/support/SupportRequestDialog.js +50 -48
  105. package/dist/shared/components/support/SupportView.js +140 -246
  106. package/dist/shared/components/support/TicketDetailSheet.js +82 -75
  107. package/dist/shared/components/support/TicketSlowScreens.js +9 -9
  108. package/dist/shared/components/support/assign-rules-text.js +171 -0
  109. package/dist/shared/components/support/support-list.js +125 -0
  110. package/dist/shared/components/ui/SimpleSelect.js +28 -20
  111. package/dist/shared/components/ui/checkbox.js +6 -6
  112. package/dist/shared/components/ui/select.js +43 -39
  113. package/dist/shared/components/ui/sheet.js +9 -9
  114. package/dist/shared/components/ui/switch.js +12 -11
  115. package/dist/shared/components/watch-list/WatchDock.js +532 -459
  116. package/dist/shared/components/watch-list/WatchExtras.js +332 -286
  117. package/dist/shared/components/watch-list/WatchRows.js +164 -140
  118. package/dist/shared/lib/activity-sentence.js +103 -91
  119. package/dist/shared/lib/agent-presence.js +27 -21
  120. package/dist/shared/lib/approval-progress.js +2 -2
  121. package/dist/shared/lib/copy-rules.js +31 -24
  122. package/dist/shared/lib/derived-causes.js +113 -78
  123. package/dist/shared/lib/grid-cursors.js +26 -26
  124. package/dist/shared/lib/label-flash.js +27 -0
  125. package/dist/shared/lib/list-return.js +137 -125
  126. package/dist/shared/lib/live-deltas.js +40 -34
  127. package/dist/shared/lib/live-groups.js +56 -52
  128. package/dist/shared/lib/live-preference.js +64 -59
  129. package/dist/shared/lib/live-screen.js +223 -192
  130. package/dist/shared/lib/partner-failure.js +11 -11
  131. package/dist/shared/lib/rollup-recalc.js +68 -64
  132. package/dist/shared/lib/screen-refresh.js +74 -68
  133. package/dist/shared/lib/screen-share.js +108 -104
  134. package/dist/shared/lib/send-status.js +77 -61
  135. package/dist/shared/lib/text-diff-window.js +29 -0
  136. package/dist/shared/lib/watch-list.js +210 -209
  137. package/dist/shared/lib/widget-image-render.js +72 -49
  138. package/package.json +1 -1
@@ -1,17 +1,19 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { Users as I, History as M, ExternalLink as R } from "lucide-react";
3
- import { useMemo as S, useState as $ } from "react";
4
- import { useActorNames as _ } from "../../lib/live-list.js";
5
- import { openNoticeText as E, changedNoticeText as H, changeLineText as B } from "../../lib/selection-watch.js";
6
- import { formatRelative as F } from "../../lib/utils.js";
7
- import { LiveCount as C } from "../LiveCount.js";
8
- const w = {
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { Users as B, History as E, ExternalLink as H } from "lucide-react";
3
+ import { useMemo as T, useState as L } from "react";
4
+ import { useActorNames as K } from "../../lib/live-list.js";
5
+ import { openNoticeText as F, changedNoticeText as P, changeLineText as U } from "../../lib/selection-watch.js";
6
+ import { formatRelative as q } from "../../lib/utils.js";
7
+ import { LiveCount as A } from "../LiveCount.js";
8
+ const S = {
9
9
  dark: {
10
10
  line: "text-slate-200 dark:text-foreground",
11
11
  soft: "text-slate-400 dark:text-muted-foreground",
12
12
  dot: "bg-amber-300 dark:bg-amber-400",
13
- btn: "h-7 rounded-md px-2 text-[12px] font-medium text-slate-200 hover:bg-white/10 hover:text-white dark:text-foreground dark:hover:bg-muted",
14
- btnStrong: "h-7 rounded-md border border-white/20 px-2.5 text-[12px] font-medium text-white hover:bg-white/10 dark:border-border dark:text-foreground dark:hover:bg-muted",
13
+ // Scoped choices read as buttons (a quiet outline), never bare text; Keep all is the
14
+ // filled one.
15
+ btn: "h-7 shrink-0 whitespace-nowrap rounded-md border border-white/15 px-2.5 text-[12px] font-medium text-slate-200 hover:border-white/30 hover:bg-white/10 hover:text-white dark:border-border dark:text-foreground dark:hover:bg-muted",
16
+ btnStrong: "h-7 shrink-0 whitespace-nowrap rounded-md border border-white/25 bg-white/10 px-2.5 text-[12px] font-medium text-white hover:bg-white/20 dark:border-border dark:bg-muted dark:text-foreground dark:hover:bg-muted/70",
15
17
  list: "border-white/10 dark:border-border",
16
18
  link: "text-[#7fe7ff] hover:text-white dark:text-nvr-cyan dark:hover:text-foreground"
17
19
  },
@@ -19,75 +21,96 @@ const w = {
19
21
  line: "text-slate-700 dark:text-slate-200",
20
22
  soft: "text-slate-500 dark:text-slate-400",
21
23
  dot: "bg-amber-500 dark:bg-amber-400",
22
- btn: "h-7 rounded-md px-2 text-[12px] font-medium text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-muted",
23
- btnStrong: "h-7 rounded-md border border-slate-200 px-2.5 text-[12px] font-medium text-slate-700 hover:bg-slate-50 dark:border-border dark:text-slate-200 dark:hover:bg-muted",
24
+ btn: "h-7 shrink-0 whitespace-nowrap rounded-md border border-slate-200 px-2.5 text-[12px] font-medium text-slate-600 hover:bg-slate-50 hover:text-slate-800 dark:border-border dark:text-slate-300 dark:hover:bg-muted",
25
+ btnStrong: "h-7 shrink-0 whitespace-nowrap rounded-md border border-slate-300 bg-white px-2.5 text-[12px] font-medium text-slate-800 shadow-sm hover:bg-slate-50 dark:border-border dark:bg-muted dark:text-slate-100 dark:hover:bg-muted/70",
24
26
  list: "border-slate-100 dark:border-border",
25
27
  link: "text-nvr-navy hover:text-nvr-cyan dark:text-nvr-cyan dark:hover:text-foreground"
26
28
  }
27
29
  };
28
- function T({
29
- tone: s,
30
- icon: l,
31
- text: r,
32
- children: i,
33
- data: o
30
+ function I({
31
+ tone: i,
32
+ icon: o,
33
+ text: s,
34
+ children: n,
35
+ data: l
34
36
  }) {
35
- const d = w[s];
36
- return /* @__PURE__ */ n(
37
+ const d = S[i];
38
+ return /* @__PURE__ */ t(
37
39
  "div",
38
40
  {
39
- [o]: "",
41
+ [l]: "",
40
42
  role: "status",
41
43
  className: "nvr-fade-in flex min-h-7 flex-wrap items-center gap-x-3 gap-y-1",
42
44
  children: [
43
- /* @__PURE__ */ n("span", { className: "flex min-w-0 flex-1 basis-[15rem] items-start gap-2", children: [
44
- /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full ${d.dot}` }),
45
- /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `mt-[2px] shrink-0 ${d.soft}`, children: l }),
46
- /* @__PURE__ */ t("span", { className: `min-w-0 text-[12.5px] leading-5 ${d.line}`, children: r })
45
+ /* @__PURE__ */ t("span", { className: "flex min-w-0 flex-1 basis-[15rem] items-start gap-2", children: [
46
+ /* @__PURE__ */ r("span", { "aria-hidden": !0, className: `mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full ${d.dot}` }),
47
+ /* @__PURE__ */ r("span", { "aria-hidden": !0, className: `mt-[2px] shrink-0 ${d.soft}`, children: o }),
48
+ /* @__PURE__ */ r("span", { className: `min-w-0 text-[12.5px] leading-5 ${d.line}`, children: s })
47
49
  ] }),
48
- /* @__PURE__ */ t("span", { className: "ml-auto flex shrink-0 items-center gap-1", children: i })
50
+ /* @__PURE__ */ r("span", { className: "ml-auto flex shrink-0 items-center gap-1", children: n })
49
51
  ]
50
52
  }
51
53
  );
52
54
  }
53
- function P({
54
- tone: s,
55
- total: l,
56
- open: r,
57
- changed: i,
58
- labelOf: o,
55
+ function X({
56
+ tone: i,
57
+ total: o,
58
+ open: s,
59
+ changed: n,
60
+ labelOf: l,
59
61
  onSkip: d,
60
- onAcknowledgeChanged: p,
61
- onOpenRecord: m,
62
- framed: c
62
+ onAcknowledgeChanged: k,
63
+ onOpenRecord: c,
64
+ framed: p
63
65
  }) {
64
- const a = w[s], b = S(() => [...new Set(r.flatMap((e) => e.viewerIds))], [r]), N = _(b), x = S(
65
- () => r.map((e) => {
66
- const h = e.viewerIds.map((v) => N.get(v)).filter((v) => !!v), A = e.lockName && !h.includes(e.lockName) ? [e.lockName, ...h] : h;
66
+ const a = S[i], f = T(() => [...new Set(s.flatMap((e) => e.viewerIds))], [s]), $ = K(f), x = T(
67
+ () => s.map((e) => {
68
+ const b = e.viewerIds.map((y) => $.get(y)).filter((y) => !!y), R = e.lockName && !b.includes(e.lockName) ? [e.lockName, ...b] : b;
67
69
  return {
68
70
  key: e.key,
69
- names: A,
70
- unnamed: Math.max(0, e.viewerCount - h.length),
71
+ names: R,
72
+ unnamed: Math.max(0, e.viewerCount - b.length),
71
73
  editing: !!e.lockName
72
74
  };
73
75
  }).filter((e) => e.editing || e.names.length > 0 || e.unnamed > 0),
74
- [r, N]
75
- ), f = x.map((e) => e.key).sort().join(","), [L, j] = $(""), [k, y] = $(!1), g = f && f !== L ? E(x, l) : null, u = H(i.length);
76
- return !g && !u ? null : /* @__PURE__ */ n(
76
+ [s, $]
77
+ ), g = x.map((e) => e.key).sort().join(","), [j, _] = L(""), [u, C] = L(!1), h = g && g !== j ? F(x, o) : null, m = P(n.length);
78
+ if (!h && !m) return null;
79
+ const M = () => {
80
+ h && _(g), m && (C(!1), k(n.map((e) => e.key)));
81
+ }, w = /* @__PURE__ */ t(
82
+ "button",
83
+ {
84
+ type: "button",
85
+ className: a.btnStrong,
86
+ onClick: M,
87
+ "data-bulk-keep-all": "",
88
+ "data-tip": "Keep every selected row and stop these notes. Nothing runs until you pick an action.",
89
+ children: [
90
+ "Keep all ",
91
+ o
92
+ ]
93
+ }
94
+ ), v = !(h && m) && !u, N = 25;
95
+ return /* @__PURE__ */ t(
77
96
  "div",
78
97
  {
79
98
  "data-bulk-notices": "",
80
- className: c ? "nvr-fade-in flex w-[min(640px,calc(100vw-2rem))] flex-col gap-1 rounded-xl border border-slate-200 bg-white px-3 py-2 shadow-[0_6px_20px_rgba(15,30,45,0.12)] dark:border-border dark:bg-card dark:shadow-none" : "flex w-full basis-full flex-col gap-1",
99
+ className: p ? "nvr-fade-in flex w-[min(640px,calc(100vw-2rem))] flex-col gap-1 rounded-xl border border-slate-200 bg-white px-3 py-2 shadow-[0_6px_20px_rgba(15,30,45,0.12)] dark:border-border dark:bg-card dark:shadow-none" : (
100
+ // In a full-width bar the block keeps a reading width, so each choice sits beside
101
+ // its sentence (it ended ~1,100 px away on a wide list page).
102
+ "flex w-full max-w-[760px] basis-full flex-col gap-1"
103
+ ),
81
104
  children: [
82
- g && /* @__PURE__ */ n(
83
- T,
105
+ h && /* @__PURE__ */ t(
106
+ I,
84
107
  {
85
- tone: s,
86
- icon: /* @__PURE__ */ t(I, { className: "h-3.5 w-3.5" }),
87
- text: g,
108
+ tone: i,
109
+ icon: /* @__PURE__ */ r(B, { className: "h-3.5 w-3.5" }),
110
+ text: h,
88
111
  data: "data-bulk-open-notice",
89
112
  children: [
90
- /* @__PURE__ */ n(
113
+ /* @__PURE__ */ t(
91
114
  "button",
92
115
  {
93
116
  type: "button",
@@ -100,112 +123,112 @@ function P({
100
123
  ]
101
124
  }
102
125
  ),
103
- /* @__PURE__ */ t("button", { type: "button", className: a.btnStrong, onClick: () => j(f), children: "Continue" })
126
+ v && w
104
127
  ]
105
128
  }
106
129
  ),
107
- u && /* @__PURE__ */ n(
108
- T,
130
+ m && /* @__PURE__ */ t(
131
+ I,
109
132
  {
110
- tone: s,
111
- icon: /* @__PURE__ */ t(M, { className: "h-3.5 w-3.5" }),
112
- text: u,
133
+ tone: i,
134
+ icon: /* @__PURE__ */ r(E, { className: "h-3.5 w-3.5" }),
135
+ text: m,
113
136
  data: "data-bulk-changed-notice",
114
137
  children: [
115
- /* @__PURE__ */ t(
138
+ /* @__PURE__ */ r(
116
139
  "button",
117
140
  {
118
141
  type: "button",
119
142
  className: a.btn,
120
- "aria-expanded": k,
121
- onClick: () => y((e) => !e),
122
- children: k ? "Hide" : "Review"
143
+ "aria-expanded": u,
144
+ onClick: () => C((e) => !e),
145
+ children: u ? "Hide" : "Review"
123
146
  }
124
147
  ),
125
- /* @__PURE__ */ t(
126
- "button",
127
- {
128
- type: "button",
129
- className: a.btnStrong,
130
- onClick: () => {
131
- y(!1), p(i.map((e) => e.key));
132
- },
133
- children: "Continue"
134
- }
135
- )
148
+ v && w
136
149
  ]
137
150
  }
138
151
  ),
139
- u && k && /* @__PURE__ */ t(
152
+ m && u && // Capped: the bar is pinned to the bottom of the screen, so the list scrolls inside
153
+ // itself (never past ~40% of the screen) instead of growing the bar off the top.
154
+ /* @__PURE__ */ t(
140
155
  "ul",
141
156
  {
142
157
  "data-bulk-changed-list": "",
143
- className: `ml-[22px] max-h-40 overflow-y-auto border-l pl-3 text-[12px] ${a.list}`,
144
- children: i.map((e) => /* @__PURE__ */ n("li", { className: "flex min-w-0 items-baseline gap-2 py-0.5", children: [
145
- /* @__PURE__ */ n("span", { className: "flex min-w-0 flex-1 flex-col sm:flex-row sm:items-baseline sm:gap-2", children: [
146
- /* @__PURE__ */ t("span", { className: `min-w-0 truncate font-medium ${a.line}`, children: e.label ?? (o == null ? void 0 : o(e.key)) ?? `#${e.id}` }),
147
- /* @__PURE__ */ n("span", { className: `min-w-0 truncate ${a.soft}`, children: [
148
- B(e),
149
- " · ",
150
- F(e.at)
151
- ] })
152
- ] }),
153
- m && !e.deleted && /* @__PURE__ */ n(
154
- "button",
155
- {
156
- type: "button",
157
- onClick: () => m({ collection: e.collection, id: e.id }),
158
- className: `ml-auto inline-flex shrink-0 items-center gap-1 ${a.link}`,
159
- children: [
160
- "Open",
161
- /* @__PURE__ */ t(R, { "aria-hidden": !0, className: "h-3 w-3" })
162
- ]
163
- }
164
- )
165
- ] }, e.key))
158
+ className: `ml-[22px] max-h-[min(40vh,15rem)] overflow-y-auto overscroll-contain border-l pl-3 text-[12px] ${a.list}`,
159
+ children: [
160
+ n.slice(0, N).map((e) => /* @__PURE__ */ t("li", { className: "flex min-w-0 items-baseline gap-2 py-0.5", children: [
161
+ /* @__PURE__ */ t("span", { className: "flex min-w-0 flex-1 flex-col sm:flex-row sm:items-baseline sm:gap-2", children: [
162
+ /* @__PURE__ */ r("span", { className: `min-w-0 truncate font-medium ${a.line}`, children: e.label ?? (l == null ? void 0 : l(e.key)) ?? `#${e.id}` }),
163
+ /* @__PURE__ */ t("span", { className: `min-w-0 truncate ${a.soft}`, children: [
164
+ U(e),
165
+ " · ",
166
+ q(e.at)
167
+ ] })
168
+ ] }),
169
+ c && !e.deleted && /* @__PURE__ */ t(
170
+ "button",
171
+ {
172
+ type: "button",
173
+ onClick: () => c({ collection: e.collection, id: e.id }),
174
+ className: `ml-auto inline-flex shrink-0 items-center gap-1 ${a.link}`,
175
+ children: [
176
+ "Open",
177
+ /* @__PURE__ */ r(H, { "aria-hidden": !0, className: "h-3 w-3" })
178
+ ]
179
+ }
180
+ )
181
+ ] }, e.key)),
182
+ n.length > N && /* @__PURE__ */ t("li", { className: `py-0.5 ${a.soft}`, "data-bulk-changed-more": "", children: [
183
+ "+",
184
+ n.length - N,
185
+ " more changed"
186
+ ] })
187
+ ]
166
188
  }
167
- )
189
+ ),
190
+ !v && /* @__PURE__ */ r("div", { className: "flex justify-end pt-0.5", "data-bulk-keep-row": "", children: w })
168
191
  ]
169
192
  }
170
193
  );
171
194
  }
172
- function Q({
173
- tone: s,
174
- total: l,
175
- sums: r,
176
- known: i,
177
- labelOf: o,
195
+ function Y({
196
+ tone: i,
197
+ total: o,
198
+ sums: s,
199
+ known: n,
200
+ labelOf: l,
178
201
  format: d,
179
- noun: p = "item"
202
+ noun: k = "item"
180
203
  }) {
181
- const m = w[s], c = /* @__PURE__ */ n(
204
+ const c = S[i], p = /* @__PURE__ */ t(
182
205
  "span",
183
206
  {
184
- className: s === "dark" ? "text-[13px] font-medium text-nvr-cyan dark:text-nvr-cyan" : "text-[12px] font-semibold text-slate-700 dark:text-slate-200",
207
+ className: i === "dark" ? "text-[13px] font-medium text-nvr-cyan dark:text-nvr-cyan" : "text-[12px] font-semibold text-slate-700 dark:text-slate-200",
185
208
  children: [
186
- /* @__PURE__ */ t(C, { value: l }),
209
+ /* @__PURE__ */ r(A, { value: o }),
187
210
  " ",
188
- p,
189
- l === 1 ? "" : "s",
211
+ k,
212
+ o === 1 ? "" : "s",
190
213
  " selected"
191
214
  ]
192
215
  }
193
216
  );
194
- return r.length === 0 ? c : /* @__PURE__ */ n("span", { "data-selection-figures": "", className: "inline-flex flex-wrap items-baseline gap-x-3", children: [
195
- c,
196
- r.slice(0, 3).map((a) => /* @__PURE__ */ n(
217
+ return s.length === 0 ? p : /* @__PURE__ */ t("span", { "data-selection-figures": "", className: "inline-flex flex-wrap items-baseline gap-x-3", children: [
218
+ p,
219
+ s.slice(0, 3).map((a) => /* @__PURE__ */ t(
197
220
  "span",
198
221
  {
199
222
  className: "inline-flex items-baseline gap-1.5 text-[12px]",
200
- "data-tip": i < l ? `Sum of the ${i} selected rows this list has shown` : `Sum of the ${a.counted} selected rows with a value`,
223
+ "data-tip": n < o ? `Sum of the ${n} selected rows this list has shown` : `Sum of the ${a.counted} selected rows with a value`,
201
224
  children: [
202
- /* @__PURE__ */ t("span", { className: m.soft, children: o(a.key) }),
203
- /* @__PURE__ */ t(
204
- C,
225
+ /* @__PURE__ */ r("span", { className: c.soft, children: l(a.key) }),
226
+ /* @__PURE__ */ r(
227
+ A,
205
228
  {
206
229
  value: a.sum,
207
- format: (b) => d(a.key, Number(b)),
208
- className: `tabular-nums font-medium ${m.line}`
230
+ format: (f) => d(a.key, Number(f)),
231
+ className: `tabular-nums font-medium ${c.line}`
209
232
  }
210
233
  )
211
234
  ]
@@ -215,6 +238,6 @@ function Q({
215
238
  ] });
216
239
  }
217
240
  export {
218
- P as BulkSelectionNotices,
219
- Q as SelectionFigures
241
+ X as BulkSelectionNotices,
242
+ Y as SelectionFigures
220
243
  };