@nivaro/react 0.3.115 → 0.3.117

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 (29) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +15 -1
  4. package/dist/shared/components/CollectionBrowserView.js +3815 -3576
  5. package/dist/shared/components/DataTable.js +611 -551
  6. package/dist/shared/components/OverflowRail.js +326 -0
  7. package/dist/shared/components/ReportView.js +1086 -1091
  8. package/dist/shared/components/TipLayer.js +8 -8
  9. package/dist/shared/components/cbv/column-totals.js +62 -57
  10. package/dist/shared/components/charts/category-axis.js +93 -0
  11. package/dist/shared/components/integrations/console/SignalCard.js +84 -77
  12. package/dist/shared/components/list/PhonePager.js +50 -0
  13. package/dist/shared/components/notifications/NotificationCenterView.js +67 -68
  14. package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
  15. package/dist/shared/components/pipeline/PipelineEditorView.js +1515 -1475
  16. package/dist/shared/components/queue/OwnerAvatars.js +9 -9
  17. package/dist/shared/components/queue/QueueWorklist.js +2016 -1851
  18. package/dist/shared/components/queue/worklist-helpers.js +10 -6
  19. package/dist/shared/components/ui/popover.js +53 -29
  20. package/dist/shared/lib/keep-row-focus.js +43 -0
  21. package/dist/shared/lib/obligation-banner.js +17 -17
  22. package/dist/shared/lib/rail-menu-context.js +9 -0
  23. package/dist/shared/lib/row-surface.js +7 -0
  24. package/dist/shared/lib/table-pins.js +20 -18
  25. package/dist/shared/lib/upload-file.js +48 -19
  26. package/dist/shared/lib/upload-presence.js +33 -33
  27. package/dist/shared/lib/use-below-md.js +29 -0
  28. package/dist/shared/lib/use-query-entry.js +17 -0
  29. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { jsxs as a, jsx as r, Fragment as A } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as o, Fragment as A } from "react/jsx-runtime";
2
2
  import { AlertOctagon as O, AlertTriangle as W, ChevronRight as E, Loader2 as M, ChevronDown as G, ExternalLink as V } from "lucide-react";
3
3
  import { useState as L, useMemo as X, useId as q, useRef as H } from "react";
4
4
  import { useItemEditAuth as J } from "../../../context.js";
@@ -44,7 +44,7 @@ function De({
44
44
  "aria-controls": _,
45
45
  className: "flex w-full items-start gap-3 px-4 py-3 text-left transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
46
46
  children: [
47
- /* @__PURE__ */ r(
47
+ /* @__PURE__ */ o(
48
48
  "span",
49
49
  {
50
50
  className: x(
@@ -52,15 +52,15 @@ function De({
52
52
  de[v]
53
53
  ),
54
54
  "data-tip": f ? "Critical — something is failing now" : "Worth a look",
55
- children: /* @__PURE__ */ r(S, { className: x("h-3.5 w-3.5", T[v]), "aria-hidden": !0 })
55
+ children: /* @__PURE__ */ o(S, { className: x("h-3.5 w-3.5", T[v]), "aria-hidden": !0 })
56
56
  }
57
57
  ),
58
58
  /* @__PURE__ */ a("span", { className: "min-w-0 flex-1", children: [
59
59
  /* @__PURE__ */ a("span", { className: "flex flex-wrap items-baseline gap-x-2 gap-y-0.5", children: [
60
- /* @__PURE__ */ r("span", { className: "text-[13.5px] font-semibold text-foreground", children: t.label }),
61
- $ && /* @__PURE__ */ r(ee, { windows: z, at: $, className: "self-center" }),
62
- t.error ? /* @__PURE__ */ r("span", { className: x("text-[12px] font-medium", T.negative), children: "Couldn't evaluate" }) : /* @__PURE__ */ a("span", { className: "text-[12px] tabular-nums text-muted-foreground", children: [
63
- /* @__PURE__ */ r("span", { className: x("font-semibold", T[v]), children: t.count }),
60
+ /* @__PURE__ */ o("span", { className: "text-[13.5px] font-semibold text-foreground", children: t.label }),
61
+ $ && /* @__PURE__ */ o(ee, { windows: z, at: $, className: "self-center" }),
62
+ t.error ? /* @__PURE__ */ o("span", { className: x("text-[12px] font-medium", T.negative), children: "Couldn't evaluate" }) : /* @__PURE__ */ a("span", { className: "text-[12px] tabular-nums text-muted-foreground", children: [
63
+ /* @__PURE__ */ o("span", { className: x("font-semibold", T[v]), children: t.count }),
64
64
  " open",
65
65
  y && /* @__PURE__ */ a("span", { "data-tip": `Oldest first seen ${j(y)}`, children: [
66
66
  " ",
@@ -74,9 +74,9 @@ function De({
74
74
  ] })
75
75
  ] })
76
76
  ] }),
77
- /* @__PURE__ */ r("span", { className: "mt-0.5 block truncate text-[12px] text-muted-foreground", children: t.error ? t.error : k ? `${k.title}${k.detail ? ` — ${K(k.detail)}` : ""}` : t.description })
77
+ /* @__PURE__ */ o("span", { className: "mt-0.5 block truncate text-[12px] text-muted-foreground", children: t.error ? t.error : k ? `${k.title}${k.detail ? ` — ${K(k.detail)}` : ""}` : t.description })
78
78
  ] }),
79
- /* @__PURE__ */ r(
79
+ /* @__PURE__ */ o(
80
80
  E,
81
81
  {
82
82
  className: x(
@@ -94,8 +94,8 @@ function De({
94
94
  "Couldn't evaluate · ",
95
95
  t.error
96
96
  ] }) : /* @__PURE__ */ a(A, { children: [
97
- /* @__PURE__ */ r("p", { className: "max-w-[80ch] px-4 pb-1 pt-3 text-[12px] leading-relaxed text-muted-foreground", children: t.description }),
98
- /* @__PURE__ */ r(
97
+ /* @__PURE__ */ o("p", { className: "max-w-[80ch] px-4 pb-1 pt-3 text-[12px] leading-relaxed text-muted-foreground", children: t.description }),
98
+ /* @__PURE__ */ o(
99
99
  he,
100
100
  {
101
101
  signal: t,
@@ -123,7 +123,7 @@ function De({
123
123
  "data-ic-snoozed-fold": t.snoozed.length,
124
124
  className: "flex w-full items-center gap-1.5 px-4 py-2 text-left text-[12px] font-medium text-muted-foreground hover:text-foreground",
125
125
  children: [
126
- /* @__PURE__ */ r(
126
+ /* @__PURE__ */ o(
127
127
  E,
128
128
  {
129
129
  className: x("h-3.5 w-3.5 transition-transform", b && "rotate-90")
@@ -135,7 +135,7 @@ function De({
135
135
  ]
136
136
  }
137
137
  ),
138
- b && /* @__PURE__ */ r(be, { signal: t })
138
+ b && /* @__PURE__ */ o(be, { signal: t })
139
139
  ] })
140
140
  ] })
141
141
  ]
@@ -151,18 +151,18 @@ function he({
151
151
  }) {
152
152
  const l = te(), f = ne(), [v, S] = L({}), [y, z] = L(/* @__PURE__ */ new Set()), [$, k] = L(/* @__PURE__ */ new Set()), b = X(() => {
153
153
  if (!e.some((s) => s.group)) return null;
154
- const o = /* @__PURE__ */ new Map();
154
+ const r = /* @__PURE__ */ new Map();
155
155
  for (const s of e) {
156
- const i = s.group ?? "—", d = o.get(i) ?? { key: i, label: s.group_label ?? s.group ?? "Other", rows: [] };
157
- d.rows.push(s), o.set(i, d);
156
+ const i = s.group ?? "—", d = r.get(i) ?? { key: i, label: s.group_label ?? s.group ?? "Other", rows: [] };
157
+ d.rows.push(s), r.set(i, d);
158
158
  }
159
- return [...o.values()].sort((s, i) => i.rows.length - s.rows.length);
160
- }, [e]), C = async (o, s) => {
159
+ return [...r.values()].sort((s, i) => i.rows.length - s.rows.length);
160
+ }, [e]), C = async (r, s) => {
161
161
  var d;
162
162
  const i = s.map((c) => c.key);
163
163
  z((c) => /* @__PURE__ */ new Set([...c, ...i]));
164
164
  try {
165
- const c = await l.mutateAsync({ signal: t.id, row_keys: i, action: o });
165
+ const c = await l.mutateAsync({ signal: t.id, row_keys: i, action: r });
166
166
  S((n) => {
167
167
  const u = { ...n };
168
168
  for (const h of c) u[h.key] = h;
@@ -178,9 +178,9 @@ function he({
178
178
  } finally {
179
179
  z((c) => new Set([...c].filter((n) => !i.includes(n))));
180
180
  }
181
- }, _ = async (o) => {
181
+ }, _ = async (r) => {
182
182
  var i;
183
- const s = o.map((d) => d.key);
183
+ const s = r.map((d) => d.key);
184
184
  z((d) => /* @__PURE__ */ new Set([...d, ...s]));
185
185
  try {
186
186
  await f.mutateAsync({ signal: t.id, row_keys: s }), k((d) => new Set([...d].filter((c) => !s.includes(c))));
@@ -194,48 +194,48 @@ function he({
194
194
  } finally {
195
195
  z((d) => new Set([...d].filter((c) => !s.includes(c))));
196
196
  }
197
- }, N = (o, s) => {
197
+ }, N = (r, s) => {
198
198
  var i, d, c, n;
199
- if (o.kind === "open") {
200
- const u = ((i = o.payload) == null ? void 0 : i.collection) ?? ((d = s.record) == null ? void 0 : d.collection), h = ((c = o.payload) == null ? void 0 : c.id) ?? ((n = s.record) == null ? void 0 : n.id);
199
+ if (r.kind === "open") {
200
+ const u = ((i = r.payload) == null ? void 0 : i.collection) ?? ((d = s.record) == null ? void 0 : d.collection), h = ((c = r.payload) == null ? void 0 : c.id) ?? ((n = s.record) == null ? void 0 : n.id);
201
201
  u && h && (m == null || m(u, String(h)));
202
202
  return;
203
203
  }
204
- if (o.kind === "explain") {
205
- g == null || g(o, s);
204
+ if (r.kind === "explain") {
205
+ g == null || g(r, s);
206
206
  return;
207
207
  }
208
- C(o, [s]);
209
- }, D = (o, s) => /* @__PURE__ */ r(
208
+ C(r, [s]);
209
+ }, D = (r, s) => /* @__PURE__ */ o(
210
210
  fe,
211
211
  {
212
212
  signal: t,
213
- row: o,
214
- result: v[o.key],
215
- busy: y.has(o.key),
213
+ row: r,
214
+ result: v[r.key],
215
+ busy: y.has(r.key),
216
216
  selectable: s,
217
- selected: $.has(o.key),
217
+ selected: $.has(r.key),
218
218
  onSelect: (i) => k((d) => {
219
219
  const c = new Set(d);
220
- return i ? c.add(o.key) : c.delete(o.key), c;
220
+ return i ? c.add(r.key) : c.delete(r.key), c;
221
221
  }),
222
- onAction: (i) => N(i, o),
222
+ onAction: (i) => N(i, r),
223
223
  onOpenRecord: m,
224
224
  canExplain: p
225
225
  },
226
- o.key
226
+ r.key
227
227
  );
228
228
  if (!b) {
229
- const o = e.length > 0 && e.every((i) => $.has(i.key)), s = e.filter((i) => $.has(i.key));
229
+ const r = e.length > 0 && e.every((i) => $.has(i.key)), s = e.filter((i) => $.has(i.key));
230
230
  return /* @__PURE__ */ a("div", { children: [
231
231
  e.length > 0 && /* @__PURE__ */ a("div", { className: "flex min-h-9 items-center gap-2.5 bg-muted/60 px-4 py-1.5", children: [
232
- /* @__PURE__ */ r(
232
+ /* @__PURE__ */ o(
233
233
  "input",
234
234
  {
235
235
  type: "checkbox",
236
- checked: o,
236
+ checked: r,
237
237
  ref: (i) => {
238
- i && (i.indeterminate = s.length > 0 && !o);
238
+ i && (i.indeterminate = s.length > 0 && !r);
239
239
  },
240
240
  onChange: (i) => k(new Set(i.target.checked ? e.map((d) => d.key) : [])),
241
241
  "aria-label": "Select every problem",
@@ -252,18 +252,18 @@ function he({
252
252
  onClick: () => void _(s),
253
253
  className: "inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-card px-2.5 text-[12px] font-medium text-foreground hover:bg-muted disabled:opacity-60",
254
254
  children: [
255
- s.some((i) => y.has(i.key)) && /* @__PURE__ */ r(M, { className: "h-3 w-3 animate-spin" }),
255
+ s.some((i) => y.has(i.key)) && /* @__PURE__ */ o(M, { className: "h-3 w-3 animate-spin" }),
256
256
  "Dismiss selected ",
257
257
  s.length
258
258
  ]
259
259
  }
260
- ) : /* @__PURE__ */ r("span", { className: "text-[12px] text-muted-foreground", children: "Select problems to dismiss several at once" })
260
+ ) : /* @__PURE__ */ o("span", { className: "text-[12px] text-muted-foreground", children: "Select problems to dismiss several at once" })
261
261
  ] }),
262
- /* @__PURE__ */ r("ul", { className: "divide-y divide-border", children: e.map((i) => D(i, !0)) })
262
+ /* @__PURE__ */ o("ul", { className: "divide-y divide-border", children: e.map((i) => D(i, !0)) })
263
263
  ] });
264
264
  }
265
- return /* @__PURE__ */ r("div", { className: "pb-1", children: b.map((o) => {
266
- const s = o.rows.filter((n) => $.has(n.key)), i = o.rows.length > 0 && s.length === o.rows.length, d = /* @__PURE__ */ new Map();
265
+ return /* @__PURE__ */ o("div", { className: "pb-1", children: b.map((r) => {
266
+ const s = r.rows.filter((n) => $.has(n.key)), i = r.rows.length > 0 && s.length === r.rows.length, d = /* @__PURE__ */ new Map();
267
267
  for (const n of s) {
268
268
  const u = /* @__PURE__ */ new Set();
269
269
  for (const h of n.actions) {
@@ -276,9 +276,9 @@ function he({
276
276
  }
277
277
  }
278
278
  const c = s.some((n) => y.has(n.key));
279
- return /* @__PURE__ */ a("div", { "data-ic-group": o.key, className: "mt-2 first:mt-1", children: [
279
+ return /* @__PURE__ */ a("div", { "data-ic-group": r.key, className: "mt-2 first:mt-1", children: [
280
280
  /* @__PURE__ */ a("div", { className: "flex min-h-9 items-center gap-2.5 bg-muted/60 px-4 py-1.5", children: [
281
- /* @__PURE__ */ r(
281
+ /* @__PURE__ */ o(
282
282
  "input",
283
283
  {
284
284
  type: "checkbox",
@@ -288,17 +288,17 @@ function he({
288
288
  },
289
289
  onChange: (n) => k((u) => {
290
290
  const h = new Set(u);
291
- for (const w of o.rows)
291
+ for (const w of r.rows)
292
292
  n.target.checked ? h.add(w.key) : h.delete(w.key);
293
293
  return h;
294
294
  }),
295
- "aria-label": `Select every problem in ${o.label}`,
296
- "data-ic-group-select": o.key,
295
+ "aria-label": `Select every problem in ${r.label}`,
296
+ "data-ic-group-select": r.key,
297
297
  className: "h-3.5 w-3.5 accent-[rgb(var(--nvr-cyan-rgb))]"
298
298
  }
299
299
  ),
300
- /* @__PURE__ */ r("span", { className: "text-[12.5px] font-semibold text-foreground", children: o.label }),
301
- /* @__PURE__ */ r("span", { className: "text-[12px] tabular-nums text-muted-foreground", children: o.rows.length }),
300
+ /* @__PURE__ */ o("span", { className: "text-[12.5px] font-semibold text-foreground", children: r.label }),
301
+ /* @__PURE__ */ o("span", { className: "text-[12px] tabular-nums text-muted-foreground", children: r.rows.length }),
302
302
  /* @__PURE__ */ a("span", { className: "ml-auto flex items-center gap-1", children: [
303
303
  [...d.entries()].map(([n, u]) => /* @__PURE__ */ a(
304
304
  "button",
@@ -326,25 +326,32 @@ function he({
326
326
  onClick: () => void _(s),
327
327
  className: "inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-card px-2.5 text-[12px] font-medium text-foreground hover:bg-muted disabled:opacity-60",
328
328
  children: [
329
- c && /* @__PURE__ */ r(M, { className: "h-3 w-3 animate-spin" }),
329
+ c && /* @__PURE__ */ o(M, { className: "h-3 w-3 animate-spin" }),
330
330
  "Dismiss selected ",
331
331
  s.length
332
332
  ]
333
333
  }
334
334
  ),
335
- /* @__PURE__ */ r(
335
+ /* @__PURE__ */ o(
336
336
  U,
337
337
  {
338
338
  signal: t.id,
339
339
  signalLabel: t.label,
340
- group: { key: o.key, label: o.label },
340
+ group: { key: r.key, label: r.label },
341
341
  defaultScope: "group"
342
342
  }
343
343
  )
344
344
  ] })
345
345
  ] }),
346
- /* @__PURE__ */ r("ul", { className: "divide-y divide-border", children: o.rows.map((n) => D(n, !0)) })
347
- ] }, o.key);
346
+ /* @__PURE__ */ o(
347
+ "ul",
348
+ {
349
+ "data-ic-group-rows": r.key,
350
+ className: "ml-[23px] divide-y divide-border border-l border-border",
351
+ children: r.rows.map((n) => D(n, !0))
352
+ }
353
+ )
354
+ ] }, r.key);
348
355
  }) });
349
356
  }
350
357
  function P(t) {
@@ -365,7 +372,7 @@ function fe({
365
372
  var i, d, c;
366
373
  const z = e.since ?? e.first_seen, $ = e.actions.filter(
367
374
  (n) => !(n.kind === "open" && e.record) && !(n.kind === "explain" && (y == null ? void 0 : y(n)) === !1)
368
- ), { isAdmin: k } = J(), [b, C] = L(!1), _ = q(), N = H(null), D = oe(e.drill), o = ((i = e.drill) == null ? void 0 : i.kind) === "submission" ? e.actions.find((n) => {
375
+ ), { isAdmin: k } = J(), [b, C] = L(!1), _ = q(), N = H(null), D = oe(e.drill), r = ((i = e.drill) == null ? void 0 : i.kind) === "submission" ? e.actions.find((n) => {
369
376
  var u;
370
377
  return n.kind === "retry_submission" && n.id === ((u = e.drill) == null ? void 0 : u.id);
371
378
  }) : void 0, s = () => {
@@ -380,7 +387,7 @@ function fe({
380
387
  className: x(b && "bg-muted/30"),
381
388
  children: [
382
389
  /* @__PURE__ */ a("div", { className: "flex gap-3 px-4 py-2.5", children: [
383
- p && /* @__PURE__ */ r(
390
+ p && /* @__PURE__ */ o(
384
391
  "input",
385
392
  {
386
393
  type: "checkbox",
@@ -392,8 +399,8 @@ function fe({
392
399
  }
393
400
  ),
394
401
  /* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
395
- /* @__PURE__ */ r("p", { className: "text-[12.5px] font-medium text-foreground", children: e.title }),
396
- e.detail && /* @__PURE__ */ r(
402
+ /* @__PURE__ */ o("p", { className: "text-[12.5px] font-medium text-foreground", children: e.title }),
403
+ e.detail && /* @__PURE__ */ o(
397
404
  "p",
398
405
  {
399
406
  className: "mt-0.5 line-clamp-2 break-words text-[12px] leading-snug text-muted-foreground",
@@ -401,7 +408,7 @@ function fe({
401
408
  children: K(e.detail)
402
409
  }
403
410
  ),
404
- /* @__PURE__ */ r(
411
+ /* @__PURE__ */ o(
405
412
  R,
406
413
  {
407
414
  since: z,
@@ -420,7 +427,7 @@ function fe({
420
427
  T[m.ok ? "positive" : "negative"]
421
428
  ),
422
429
  children: [
423
- /* @__PURE__ */ r(
430
+ /* @__PURE__ */ o(
424
431
  "span",
425
432
  {
426
433
  className: x(
@@ -434,7 +441,7 @@ function fe({
434
441
  }
435
442
  )
436
443
  ] }),
437
- /* @__PURE__ */ r(
444
+ /* @__PURE__ */ o(
438
445
  R,
439
446
  {
440
447
  since: z,
@@ -463,7 +470,7 @@ function fe({
463
470
  ),
464
471
  children: [
465
472
  "Details",
466
- /* @__PURE__ */ r(
473
+ /* @__PURE__ */ o(
467
474
  G,
468
475
  {
469
476
  className: x(
@@ -485,14 +492,14 @@ function fe({
485
492
  onClick: () => v(n),
486
493
  className: "inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-card px-2.5 text-[12px] font-medium text-foreground transition-colors hover:bg-muted disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
487
494
  children: [
488
- g && n.kind !== "explain" && /* @__PURE__ */ r(M, { className: "h-3 w-3 animate-spin" }),
495
+ g && n.kind !== "explain" && /* @__PURE__ */ o(M, { className: "h-3 w-3 animate-spin" }),
489
496
  n.label
490
497
  ]
491
498
  },
492
499
  F(n)
493
500
  )),
494
- /* @__PURE__ */ r(se, { signal: t.id, rowKey: e.key }),
495
- /* @__PURE__ */ r(
501
+ /* @__PURE__ */ o(se, { signal: t.id, rowKey: e.key }),
502
+ /* @__PURE__ */ o(
496
503
  U,
497
504
  {
498
505
  signal: t.id,
@@ -504,7 +511,7 @@ function fe({
504
511
  )
505
512
  ] })
506
513
  ] }),
507
- k && /* @__PURE__ */ r("div", { className: "pb-3 pl-11 pr-4", "data-ic-explain": e.key, children: /* @__PURE__ */ r(
514
+ k && /* @__PURE__ */ o("div", { className: "pb-3 pl-11 pr-4", "data-ic-explain": e.key, children: /* @__PURE__ */ o(
508
515
  Y,
509
516
  {
510
517
  kind: "signal-row",
@@ -513,7 +520,7 @@ function fe({
513
520
  }
514
521
  ) }),
515
522
  b && D && e.drill && // Esc anywhere inside the open drill collapses it.
516
- /* @__PURE__ */ r(
523
+ /* @__PURE__ */ o(
517
524
  "section",
518
525
  {
519
526
  id: _,
@@ -522,12 +529,12 @@ function fe({
522
529
  n.key === "Escape" && !n.defaultPrevented && (n.stopPropagation(), s());
523
530
  },
524
531
  className: "border-t border-border pb-4 pl-11 pr-4 pt-3",
525
- children: /* @__PURE__ */ r(
532
+ children: /* @__PURE__ */ o(
526
533
  ie,
527
534
  {
528
535
  drill: e.drill,
529
536
  onOpenRecord: S,
530
- onRetry: o ? () => v(o) : void 0,
537
+ onRetry: r ? () => v(r) : void 0,
531
538
  retryBusy: g
532
539
  }
533
540
  )
@@ -550,7 +557,7 @@ function R({
550
557
  le(t)
551
558
  ] }),
552
559
  e && /* @__PURE__ */ a(A, { children: [
553
- !p && /* @__PURE__ */ r("span", { "aria-hidden": !0, children: "·" }),
560
+ !p && /* @__PURE__ */ o("span", { "aria-hidden": !0, children: "·" }),
554
561
  m ? /* @__PURE__ */ a(
555
562
  "button",
556
563
  {
@@ -560,10 +567,10 @@ function R({
560
567
  className: "inline-flex max-w-full items-center gap-1 truncate font-medium text-foreground underline decoration-border underline-offset-2 hover:decoration-foreground",
561
568
  children: [
562
569
  P(e),
563
- /* @__PURE__ */ r(V, { className: "h-3 w-3 shrink-0 opacity-60", "aria-hidden": !0 })
570
+ /* @__PURE__ */ o(V, { className: "h-3 w-3 shrink-0 opacity-60", "aria-hidden": !0 })
564
571
  ]
565
572
  }
566
- ) : /* @__PURE__ */ r("span", { className: "font-medium text-foreground", children: P(e) })
573
+ ) : /* @__PURE__ */ o("span", { className: "font-medium text-foreground", children: P(e) })
567
574
  ] })
568
575
  ] });
569
576
  }
@@ -575,7 +582,7 @@ function be({ signal: t }) {
575
582
  l.push(p), m.set(p.snooze.id, l);
576
583
  }
577
584
  const g = (p) => new Set(p.map((f) => f.group ?? "")).size === 1 && p[0].group ? `everything in ${p[0].group_label ?? p[0].group}` : `all of “${t.label}”`;
578
- return /* @__PURE__ */ r("ul", { className: "divide-y divide-border border-t border-border bg-muted/30", children: t.snoozed.map((p) => {
585
+ return /* @__PURE__ */ o("ul", { className: "divide-y divide-border border-t border-border bg-muted/30", children: t.snoozed.map((p) => {
579
586
  const l = p.snooze, f = l ? m.get(l.id) ?? [] : [], v = l != null && l.until_occurrence ? "Dismissed — shows again if it happens again" : `Snoozed ${l != null && l.until_change ? "until it changes" : l != null && l.until ? `until ${new Date(l.until).toLocaleString(void 0, {
580
587
  month: "short",
581
588
  day: "numeric",
@@ -584,14 +591,14 @@ function be({ signal: t }) {
584
591
  })}` : ""}`;
585
592
  return /* @__PURE__ */ a("li", { "data-ic-row": p.key, "data-ic-snoozed": !0, className: "flex gap-3 px-4 py-2", children: [
586
593
  /* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
587
- /* @__PURE__ */ r("p", { className: "truncate text-[12.5px] text-foreground", children: p.title }),
594
+ /* @__PURE__ */ o("p", { className: "truncate text-[12.5px] text-foreground", children: p.title }),
588
595
  /* @__PURE__ */ a("p", { className: "text-[11.5px] text-muted-foreground", children: [
589
596
  v,
590
597
  f.length > 1 ? ` with ${g(f)}` : "",
591
598
  l != null && l.note ? ` — “${l.note}”` : ""
592
599
  ] })
593
600
  ] }),
594
- l && /* @__PURE__ */ r(
601
+ l && /* @__PURE__ */ o(
595
602
  "button",
596
603
  {
597
604
  type: "button",
@@ -0,0 +1,50 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { ChevronLeft as c, Loader2 as h, ChevronRight as m } from "lucide-react";
3
+ import { cn as u } from "../../lib/utils.js";
4
+ function f({
5
+ range: i,
6
+ onPrev: n,
7
+ onNext: r,
8
+ prevDisabled: s,
9
+ nextDisabled: l,
10
+ busy: t,
11
+ className: o
12
+ }) {
13
+ const a = "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-slate-600 hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/60 disabled:opacity-30 dark:text-slate-300 dark:hover:bg-slate-800";
14
+ return /* @__PURE__ */ d(
15
+ "div",
16
+ {
17
+ "data-phone-pager": "",
18
+ className: u("flex min-w-0 items-center justify-between gap-2 md:hidden", o),
19
+ children: [
20
+ /* @__PURE__ */ e(
21
+ "button",
22
+ {
23
+ type: "button",
24
+ disabled: s,
25
+ onClick: n,
26
+ "aria-label": "Previous page",
27
+ className: a,
28
+ children: /* @__PURE__ */ e(c, { className: "h-4 w-4", "aria-hidden": !0 })
29
+ }
30
+ ),
31
+ /* @__PURE__ */ e("p", { className: "min-w-0 truncate whitespace-nowrap text-center text-[12.5px] tabular-nums text-slate-500 dark:text-slate-400", children: i }),
32
+ /* @__PURE__ */ e(
33
+ "button",
34
+ {
35
+ type: "button",
36
+ disabled: l,
37
+ onClick: r,
38
+ "aria-label": "Next page",
39
+ "aria-busy": t || void 0,
40
+ className: a,
41
+ children: t ? /* @__PURE__ */ e(h, { className: "h-4 w-4 animate-spin", "aria-hidden": !0 }) : /* @__PURE__ */ e(m, { className: "h-4 w-4", "aria-hidden": !0 })
42
+ }
43
+ )
44
+ ]
45
+ }
46
+ );
47
+ }
48
+ export {
49
+ f as PhonePager
50
+ };