@k2b/ui 0.61.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/browser/actions/FilterChip.js +3 -0
  2. package/dist/browser/actions/FilterChip.js.map +1 -1
  3. package/dist/browser/content/ActivityList.js +379 -290
  4. package/dist/browser/content/ActivityList.js.map +1 -1
  5. package/dist/browser/content/FileView.js +0 -12
  6. package/dist/browser/content/FileView.js.map +1 -1
  7. package/dist/browser/content/activity-messages.js +2 -2
  8. package/dist/browser/content/activity-messages.js.map +1 -1
  9. package/dist/browser/content/file-view-preview.js +13 -0
  10. package/dist/browser/content/file-view-preview.js.map +1 -1
  11. package/dist/browser/content/index.js +4 -4
  12. package/dist/browser/content/index.js.map +1 -1
  13. package/dist/browser/feedback/dialog-core.js +24 -27
  14. package/dist/browser/feedback/dialog-core.js.map +1 -1
  15. package/dist/browser/feedback/dialog-frame-motion.js +506 -15
  16. package/dist/browser/feedback/dialog-frame-motion.js.map +1 -1
  17. package/dist/browser/feedback/prompt-sheet.js +1 -0
  18. package/dist/browser/feedback/prompt-sheet.js.map +1 -1
  19. package/dist/browser/feedback/prompts.js +5 -1
  20. package/dist/browser/feedback/prompts.js.map +1 -1
  21. package/dist/browser/layout/sheet-motion.js +3 -3
  22. package/dist/browser/layout/sheet-motion.js.map +1 -1
  23. package/dist/ssr/actions/FilterChip.js +3 -0
  24. package/dist/ssr/actions/FilterChip.js.map +1 -1
  25. package/dist/ssr/content/ActivityList.js +199 -114
  26. package/dist/ssr/content/ActivityList.js.map +1 -1
  27. package/dist/ssr/content/FileView.js +0 -12
  28. package/dist/ssr/content/FileView.js.map +1 -1
  29. package/dist/ssr/content/activity-messages.js +2 -2
  30. package/dist/ssr/content/activity-messages.js.map +1 -1
  31. package/dist/ssr/content/file-view-preview.js +13 -0
  32. package/dist/ssr/content/file-view-preview.js.map +1 -1
  33. package/dist/ssr/content/index.js +4 -4
  34. package/dist/ssr/content/index.js.map +1 -1
  35. package/dist/ssr/feedback/dialog-core.js +24 -27
  36. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  37. package/dist/ssr/feedback/dialog-frame-motion.js +506 -15
  38. package/dist/ssr/feedback/dialog-frame-motion.js.map +1 -1
  39. package/dist/ssr/feedback/prompt-sheet.js +1 -0
  40. package/dist/ssr/feedback/prompt-sheet.js.map +1 -1
  41. package/dist/ssr/feedback/prompts.js +5 -1
  42. package/dist/ssr/feedback/prompts.js.map +1 -1
  43. package/dist/ssr/layout/sheet-motion.js +3 -3
  44. package/dist/ssr/layout/sheet-motion.js.map +1 -1
  45. package/dist/styles.css +1 -1
  46. package/dist/types/actions/FilterChip.d.ts +9 -0
  47. package/dist/types/content/ActivityList.d.ts +24 -6
  48. package/dist/types/content/FileView.d.ts +0 -5
  49. package/dist/types/content/file-view-preview.d.ts +5 -0
  50. package/dist/types/content/index.d.ts +3 -3
  51. package/dist/types/feedback/dialog-core.d.ts +3 -1
  52. package/dist/types/feedback/dialog-frame-motion.d.ts +26 -1
  53. package/dist/types/feedback/prompt-sheet.d.ts +1 -0
  54. package/dist/types/feedback/prompts.d.ts +4 -0
  55. package/dist/types/layout/sheet-motion.d.ts +2 -2
  56. package/package.json +1 -1
@@ -1,49 +1,88 @@
1
1
  import { ssrStyleProperty as _$ssrStyleProperty } from "solid-js/web";
2
- import { ssrElement as _$ssrElement } from "solid-js/web";
3
2
  import { mergeProps as _$mergeProps } from "solid-js/web";
4
- import { memo as _$memo } from "solid-js/web";
5
3
  import { ssr as _$ssr } from "solid-js/web";
6
- import { createComponent as _$createComponent } from "solid-js/web";
7
4
  import { ssrAttribute as _$ssrAttribute } from "solid-js/web";
8
5
  import { escape as _$escape } from "solid-js/web";
6
+ import { createComponent as _$createComponent } from "solid-js/web";
7
+ import { memo as _$memo } from "solid-js/web";
9
8
  var _tmpl$ = ["<ol", ">", "</ol>"],
10
9
  _tmpl$2 = ["<li class=\"k2b-activity__day\" aria-hidden=\"true\"><span class=\"k2b-activity__day-line\"></span>", "</li>"],
11
- _tmpl$3 = ["<div class=\"k2b-activity__meta\"><time", ">", "</time> · ", " · ", "</div>"],
10
+ _tmpl$3 = ["<div class=\"k2b-activity__meta\"><time", "><span aria-hidden=\"true\">", "</span><span class=\"k2b-sr-only\">", " · ", "</span></time></div>"],
12
11
  _tmpl$4 = ["<i", " aria-hidden=\"true\"></i>"],
13
12
  _tmpl$5 = ["<a class=\"k2b-activity__action\"", ">", "</a>"],
14
13
  _tmpl$6 = ["<button type=\"button\" class=\"k2b-activity__action\"", ">", "</button>"],
15
14
  _tmpl$7 = ["<span class=\"k2b-activity__icon\"", "><i", "></i></span>"],
16
- _tmpl$8 = ["<div class=\"k2b-activity__detail\">", "</div>"],
17
- _tmpl$9 = ["<div>", "</div>"],
18
- _tmpl$0 = ["<div class=\"k2b-activity__body\"><div class=\"k2b-activity__text\">", "</div>", "", "", "", "</div>"],
19
- _tmpl$1 = ["<button type=\"button\" class=\"k2b-activity__text-button\"", ">", "</button>"],
20
- _tmpl$10 = ["<a class=\"k2b-activity__text-link\"", ">", "</a>"],
21
- _tmpl$11 = ["<div class=\"k2b-activity__details\">", "</div>"],
22
- _tmpl$12 = ["<span class=\"k2b-activity__before\">", "</span>"],
23
- _tmpl$13 = ["<div role=\"status\"", "><ol class=\"k2b-activity\" aria-hidden=\"true\">", "</ol></div>"],
24
- _tmpl$14 = ["<li class=\"k2b-activity__entry\"", "><span class=\"k2b-activity__icon\" data-placeholder></span><div class=\"k2b-activity__placeholder\"><div style=\"", "\">", "</div><div style=\"", "\">", "</div></div></li>"],
25
- _tmpl$15 = ["<button type=\"button\" class=\"k2b-activity__reload\">", "</button>"],
26
- _tmpl$16 = ["<p class=\"k2b-activity-empty\">", "</p>"],
27
- _tmpl$17 = ["<div class=\"k2b-activity-card__body\">", "", "</div>"],
28
- _tmpl$18 = ["<div class=\"k2b-activity-card__alert\">", "</div>"],
29
- _tmpl$19 = ["<p class=\"k2b-activity-dialog__subtitle\">", "</p>"],
30
- _tmpl$20 = ["<div class=\"k2b-activity-dialog\" data-activity-dialog>", "", "", "</div>"];
15
+ _tmpl$8 = ["<span class=\"k2b-activity__avatar\"><span aria-hidden=\"true\">", "</span>", "</span>"],
16
+ _tmpl$9 = ["<div class=\"k2b-activity__detail\">", "</div>"],
17
+ _tmpl$0 = ["<div>", "</div>"],
18
+ _tmpl$1 = ["<div class=\"k2b-activity__body\"><div class=\"k2b-activity__text\"><span class=\"k2b-activity__actor\"><span class=\"k2b-activity__actor-name\">", "</span><span> · </span></span>", "</div>", "", "", "</div>"],
19
+ _tmpl$10 = ["<button type=\"button\" class=\"k2b-activity__text-button\"", ">", "</button>"],
20
+ _tmpl$11 = ["<a class=\"k2b-activity__text-link\"", ">", "</a>"],
21
+ _tmpl$12 = ["<div class=\"k2b-activity__details\">", "</div>"],
22
+ _tmpl$13 = ["<span class=\"k2b-activity__before\">", "</span>"],
23
+ _tmpl$14 = ["<div role=\"status\"", "><ol class=\"k2b-activity\" aria-hidden=\"true\">", "</ol></div>"],
24
+ _tmpl$15 = ["<li class=\"k2b-activity__entry\"", "><span class=\"k2b-activity__avatar\" data-placeholder></span><div class=\"k2b-activity__placeholder\"><div style=\"", "\">", "</div></div><div class=\"k2b-activity__placeholder\"><div style=\"", "\">", "</div></div></li>"],
25
+ _tmpl$16 = ["<button type=\"button\" class=\"k2b-activity__reload\">", "</button>"],
26
+ _tmpl$17 = ["<p class=\"k2b-activity-empty\">", "</p>"],
27
+ _tmpl$18 = ["<div class=\"k2b-activity-card__body\">", "", "</div>"],
28
+ _tmpl$19 = ["<div class=\"k2b-activity-card__alert\">", "</div>"],
29
+ _tmpl$20 = ["<p class=\"k2b-activity-dialog__subtitle\">", "</p>"],
30
+ _tmpl$21 = ["<div class=\"k2b-activity-dialog__filters\">", "</div>"],
31
+ _tmpl$22 = ["<div class=\"k2b-activity-dialog\" data-activity-dialog>", "", "", "</div>"];
31
32
  import { createMemo, createSignal, For, onCleanup, onMount, Show } from "solid-js";
33
+ import { Dynamic } from "solid-js/web";
32
34
  import { Button } from "../actions/Button";
33
35
  import { InlineGuidance } from "../feedback/InlineGuidance";
34
36
  import { prompts } from "../feedback/prompts";
35
37
  import { ChoiceChips } from "../inputs/ChoiceChips";
36
38
  import { useDateConfigLocale } from "../intl/locale";
39
+ import { ScrollArea } from "../layout/ScrollArea";
40
+ import { Avatar } from "../surfaces/Avatar";
37
41
  import { Section } from "../surfaces/Section";
38
42
  import { Skeleton } from "../surfaces/Skeleton";
39
43
  import { resolveActivityMessages, useActivityMessages } from "./activity-messages";
40
44
  import { activityAgo, activityDayLabel, activityInstant, activityRows, activityWhen } from "./activity-timeline";
41
45
 
42
- /** Only the icon carries a tone: grey by default, green for a completion, amber for a notice, red only while an action is needed. */
46
+ /** Warning and danger appear as a small mark at the avatar; ordinary kind icons stay out of the sentence. */
43
47
 
44
48
  /** At most one action per entry, a link with an icon in the last line, only while the state needs it. */
45
49
 
46
- /** `compact` for a card or side column (meta under the sentence); `wide` for a dialog or page (meta on the right). */
50
+ /** Identity for the avatar; the actor text stays application-owned. Deleted people use `deleted`; system events keep their own glyph. */
51
+
52
+ /** `compact` for a card or side column; `wide` for a dialog or page. Both keep time at the end of the row. */
53
+
54
+ /** A single row inside a feed. The caller owns ordering, grouping, pagination, and the clock. */
55
+
56
+ function ActivityStandaloneRow(props) {
57
+ const context = useActivityContext(props);
58
+ const initial = new Date();
59
+ return _$createComponent(ActivityRowItem, {
60
+ get entry() {
61
+ return props.entry;
62
+ },
63
+ get all() {
64
+ return [props.entry];
65
+ },
66
+ get now() {
67
+ return _$memo(() => !!props.now)() ? new Date(props.now) : initial;
68
+ },
69
+ get locale() {
70
+ return context.locale();
71
+ },
72
+ get timeZone() {
73
+ return context.timeZone();
74
+ },
75
+ get selected() {
76
+ return props.selected;
77
+ },
78
+ get onNavigate() {
79
+ return props.onNavigate;
80
+ },
81
+ get ["class"]() {
82
+ return props.class;
83
+ }
84
+ });
85
+ }
47
86
 
48
87
  /** Bundle key of an entry: its bundle key and its actor; without `bundle` never bundled. */
49
88
  const activityBundleKey = entry => entry.bundle ? `${entry.bundle.key}|${typeof entry.actor === "string" ? entry.actor : ""}` : null;
@@ -89,9 +128,9 @@ const TONES = {
89
128
  * A vertical timeline: newest at the top, the start at the bottom. Dashed dividers name "Today", "Yesterday", and
90
129
  * each day of the last week; everything older stands under one divider "More than a week ago".
91
130
  *
92
- * A row: the icon of the kind (20 px, grey, without a circle; only the icon carries a tone), one sentence, and the
93
- * meta line "time · distance · person" ("automatic" without a person). Rarely a detail line below, and at most one
94
- * action. Equal entries after each other on the same day become one row with a count (`bundle`). Every row hangs on
131
+ * A row: a small avatar, the actor and one sentence, then the time. Only warnings, failures, and explicitly named
132
+ * icons get a small mark at the avatar. Rarely a detail line below, and at most one action. Equal entries after each
133
+ * other on the same day become one row with a count (`bundle`). Every row hangs on
95
134
  * its newest entry (its `id`, or the object): the minute clock changes only times and dividers, folded-out details,
96
135
  * bundle sentences, and focus stay.
97
136
  */
@@ -143,15 +182,13 @@ function ActivityListRoot(props) {
143
182
  get now() {
144
183
  return now();
145
184
  },
185
+ listItem: true,
146
186
  get first() {
147
187
  return index() === 0;
148
188
  },
149
189
  get end() {
150
190
  return _$memo(() => !!last())() ? fades() ? "more" : "last" : undefined;
151
191
  },
152
- get wide() {
153
- return props.density === "wide";
154
- },
155
192
  get locale() {
156
193
  return context.locale();
157
194
  },
@@ -189,7 +226,17 @@ function ActivityRowItem(props) {
189
226
  if (!target) return trigger();
190
227
  if (event.button === 1 || event.ctrlKey || event.metaKey || event.shiftKey) window.open(target, "_blank", "noopener");else link?.click();
191
228
  };
192
- const meta = () => _$ssr(_tmpl$3, _$ssrAttribute("datetime", _$escape(e().at, true), false) + _$ssrAttribute("title", _$escape(activityInstant(e().at, props.locale, props.timeZone), true), false), _$escape(activityWhen(e().at, props.now, props.locale, props.timeZone)), _$escape(activityAgo(e().at, props.now, props.locale, props.timeZone)), _$escape(e().actor ?? t().activityAutomatic));
229
+ const actor = () => e().actor ?? t().activityAutomatic;
230
+ const avatar = () => {
231
+ const entry = e();
232
+ const actor = entry.actor;
233
+ return entry.avatar ?? {
234
+ name: typeof actor === "string" ? actor : "",
235
+ kind: typeof actor === "string" ? "person" : "system"
236
+ };
237
+ };
238
+ const marked = () => e().tone === "warning" || e().tone === "danger" || Boolean(e().iconLabel);
239
+ const meta = () => _$ssr(_tmpl$3, _$ssrAttribute("datetime", _$escape(e().at, true), false), _$escape(activityWhen(e().at, props.now, props.locale, props.timeZone)), _$escape(activityInstant(e().at, props.locale, props.timeZone)), _$escape(activityAgo(e().at, props.now, props.locale, props.timeZone)));
193
240
  const action = () => {
194
241
  const current = e().action;
195
242
  if (!current) return null;
@@ -197,10 +244,21 @@ function ActivityRowItem(props) {
197
244
  return current.href && !current.disabled ? _$ssr(_tmpl$5, _$ssrAttribute("href", _$escape(current.href, true), false) + _$ssrAttribute("target", _$escape(current.target, true), false) + _$ssrAttribute("rel", current.target ? "noopener" : _$escape(undefined, true), false) + _$ssrAttribute("data-activity-action", _$escape(current.data, true), false), _$escape(content)) : _$ssr(_tmpl$6, _$ssrAttribute("disabled", current.disabled, true) + _$ssrAttribute("data-activity-action", _$escape(current.data, true), false), _$escape(content));
198
245
  };
199
246
  return (// tabindex -1: the target for focus after a reload, never in the tab order.
200
- // biome-ignore lint/a11y/useKeyWithClickEvents: the sentence's own button is the keyboard target; a row click only widens the pointer target.
201
- _$ssrElement("li", _$mergeProps(() => e().attrs, {
247
+ _$createComponent(Dynamic, _$mergeProps({
248
+ get component() {
249
+ return props.listItem ? "li" : "div";
250
+ }
251
+ }, () => e().attrs, {
202
252
  tabindex: "-1",
203
- "class": "k2b-activity__entry",
253
+ get ["class"]() {
254
+ return _$memo(() => !!props.class)() ? `k2b-activity__entry ${props.class}` : "k2b-activity__entry";
255
+ },
256
+ get ["data-tone"]() {
257
+ return TONES[e().tone ?? "neutral"];
258
+ },
259
+ get ["data-selected"]() {
260
+ return props.selected ? "" : undefined;
261
+ },
204
262
  get ["data-first"]() {
205
263
  return props.first ? "" : undefined;
206
264
  },
@@ -211,77 +269,97 @@ function ActivityRowItem(props) {
211
269
  return clickable() ? "" : undefined;
212
270
  },
213
271
  get ["data-count"]() {
214
- return count() > 1 ? count() : undefined;
215
- }
216
- }), [_$ssr(_tmpl$7, _$ssrAttribute("data-tone", _$escape(TONES[e().tone ?? "neutral"], true), false), _$ssrAttribute("class", _$escape(e().icon, true), false) + _$ssrAttribute("role", e().iconLabel ? "img" : _$escape(undefined, true), false) + _$ssrAttribute("aria-label", _$escape(e().iconLabel, true), false) + _$ssrAttribute("aria-hidden", e().iconLabel ? _$escape(undefined, true) : "true", false) + _$ssrAttribute("title", _$escape(e().iconLabel, true), false)), _$ssr(_tmpl$0, _$escape(_$createComponent(Show, {
217
- get when() {
218
- return clickable();
272
+ return _$memo(() => count() > 1)() ? count() : undefined;
219
273
  },
220
- get fallback() {
221
- return text();
274
+ get ["data-expanded"]() {
275
+ return open() ? "" : undefined;
276
+ },
277
+ onClick: onRowClick,
278
+ onAuxClick: event => {
279
+ if (event.button === 1 && href()) onRowClick(event);
222
280
  },
223
281
  get children() {
224
- return _$createComponent(Show, {
282
+ return [_$ssr(_tmpl$8, _$escape(_$createComponent(Avatar, {
283
+ get name() {
284
+ return avatar().name;
285
+ },
286
+ get src() {
287
+ return avatar().src;
288
+ },
289
+ size: "xs",
290
+ get shape() {
291
+ return avatar().kind === "service" ? "square" : "circle";
292
+ },
293
+ get tone() {
294
+ return avatar().kind === "person" ? "person" : "neutral";
295
+ },
296
+ get icon() {
297
+ return _$memo(() => avatar().kind === "service")() ? "ti ti-robot" : _$memo(() => avatar().kind === "system")() ? "ti ti-settings" : avatar().kind === "deleted" ? "ti ti-user-off" : undefined;
298
+ }
299
+ })), _$escape(_$createComponent(Show, {
300
+ get when() {
301
+ return marked();
302
+ },
303
+ get children() {
304
+ return _$ssr(_tmpl$7, _$ssrAttribute("data-tone", _$escape(TONES[e().tone ?? "neutral"], true), false), _$ssrAttribute("class", _$escape(e().icon ?? "ti ti-alert-triangle", true), false) + _$ssrAttribute("role", e().iconLabel ? "img" : _$escape(undefined, true), false) + _$ssrAttribute("aria-label", _$escape(e().iconLabel, true), false) + _$ssrAttribute("aria-hidden", e().iconLabel ? _$escape(undefined, true) : "true", false));
305
+ }
306
+ }))), _$ssr(_tmpl$1, _$escape(actor()), _$escape(_$createComponent(Show, {
225
307
  get when() {
226
- return href();
308
+ return clickable();
227
309
  },
228
310
  get fallback() {
229
- return _$ssr(_tmpl$1, _$ssrAttribute("aria-expanded", e().details ? _$escape(open(), true) : _$escape(undefined, true), false), _$escape(text()));
311
+ return text();
230
312
  },
231
- children: target => _$ssr(_tmpl$10, _$ssrAttribute("href", _$escape(target(), true), false), _$escape(text()))
232
- });
233
- }
234
- })), _$escape(_$createComponent(Show, {
235
- get when() {
236
- return detail();
237
- },
238
- get children() {
239
- return _$ssr(_tmpl$8, _$escape(detail()));
240
- }
241
- })), _$escape(_$createComponent(Show, {
242
- get when() {
243
- return !props.wide;
244
- },
245
- get children() {
246
- return meta();
247
- }
248
- })), _$escape(_$createComponent(Show, {
249
- get when() {
250
- return e().action;
251
- },
252
- get children() {
253
- return _$ssr(_tmpl$9, _$escape(action()));
254
- }
255
- })), _$escape(_$createComponent(Show, {
256
- get when() {
257
- return _$memo(() => !!open())() && e().details;
258
- },
259
- children: show => _$ssr(_tmpl$11, _$escape(show()(props.all)))
260
- }))), _$escape(_$createComponent(Show, {
261
- get when() {
262
- return props.wide;
263
- },
264
- get children() {
265
- return meta();
313
+ get children() {
314
+ return _$createComponent(Show, {
315
+ get when() {
316
+ return href();
317
+ },
318
+ get fallback() {
319
+ return _$ssr(_tmpl$10, _$ssrAttribute("aria-expanded", e().details ? _$escape(open(), true) : _$escape(undefined, true), false), _$escape(text()));
320
+ },
321
+ children: target => _$ssr(_tmpl$11, _$ssrAttribute("href", _$escape(target(), true), false) + _$ssrAttribute("aria-current", props.selected ? "true" : _$escape(undefined, true), false), _$escape(text()))
322
+ });
323
+ }
324
+ })), _$escape(_$createComponent(Show, {
325
+ get when() {
326
+ return detail();
327
+ },
328
+ get children() {
329
+ return _$ssr(_tmpl$9, _$escape(detail()));
330
+ }
331
+ })), _$escape(_$createComponent(Show, {
332
+ get when() {
333
+ return e().action;
334
+ },
335
+ get children() {
336
+ return _$ssr(_tmpl$0, _$escape(action()));
337
+ }
338
+ })), _$escape(_$createComponent(Show, {
339
+ get when() {
340
+ return _$memo(() => !!open())() && e().details;
341
+ },
342
+ children: show => _$ssr(_tmpl$12, _$escape(show()(props.all)))
343
+ }))), meta()];
266
344
  }
267
- }))], false)
345
+ }))
268
346
  );
269
347
  }
270
348
 
271
349
  /** "before → now" of a detail line, the old value quiet. With `term` in front ("Plan: Basic → Team"). */
272
350
  function ActivityChange(props) {
273
- return [props.term ? `${props.term}: ` : "", _$ssr(_tmpl$12, _$escape(props.before)), " → ", props.now];
351
+ return [props.term ? `${props.term}: ` : "", _$ssr(_tmpl$13, _$escape(props.before)), " → ", props.now];
274
352
  }
275
353
  const LOADING_WIDTHS = [150, 110, 170];
276
354
 
277
355
  /** Loading: three quiet rows on the rail, announced to screen readers. */
278
356
  function ActivityLoading(props) {
279
357
  const t = useActivityMessages();
280
- return _$ssr(_tmpl$13, _$ssrAttribute("aria-label", _$escape(props.label ?? t().activityTitle, true), false), _$escape(_$createComponent(For, {
358
+ return _$ssr(_tmpl$14, _$ssrAttribute("aria-label", _$escape(props.label ?? t().activityTitle, true), false), _$escape(_$createComponent(For, {
281
359
  each: LOADING_WIDTHS,
282
- children: (width, index) => _$ssr(_tmpl$14, _$ssrAttribute("data-first", index() === 0 ? "" : _$escape(undefined, true), false) + _$ssrAttribute("data-end", index() === LOADING_WIDTHS.length - 1 ? "last" : _$escape(undefined, true), false), _$ssrStyleProperty("width:", `${_$escape(width, true)}px`), _$escape(_$createComponent(Skeleton, {
360
+ children: (width, index) => _$ssr(_tmpl$15, _$ssrAttribute("data-first", index() === 0 ? "" : _$escape(undefined, true), false) + _$ssrAttribute("data-end", index() === LOADING_WIDTHS.length - 1 ? "last" : _$escape(undefined, true), false), _$ssrStyleProperty("width:", `${_$escape(width, true)}px`), _$escape(_$createComponent(Skeleton, {
283
361
  "class": "k2b-activity__placeholder-line"
284
- })), _$ssrStyleProperty("width:", "120px"), _$escape(_$createComponent(Skeleton, {
362
+ })), _$ssrStyleProperty("width:", "5ch"), _$escape(_$createComponent(Skeleton, {
285
363
  "class": "k2b-activity__placeholder-meta"
286
364
  })))
287
365
  })));
@@ -299,7 +377,7 @@ function ActivityError(props) {
299
377
  get when() {
300
378
  return props.onReload;
301
379
  },
302
- children: reload => _$ssr(_tmpl$15, _$escape(t().activityReload))
380
+ children: reload => _$ssr(_tmpl$16, _$escape(t().activityReload))
303
381
  })];
304
382
  }
305
383
  });
@@ -308,9 +386,10 @@ function ActivityError(props) {
308
386
  /** Empty: one sentence. */
309
387
  function ActivityEmpty(props) {
310
388
  const t = useActivityMessages();
311
- return _$ssr(_tmpl$16, _$escape(props.text ?? t().activityEmpty));
389
+ return _$ssr(_tmpl$17, _$escape(props.text ?? t().activityEmpty));
312
390
  }
313
391
  export const ActivityList = Object.assign(ActivityListRoot, {
392
+ Row: ActivityStandaloneRow,
314
393
  Loading: ActivityLoading,
315
394
  Empty: ActivityEmpty,
316
395
  Error: ActivityError,
@@ -389,7 +468,7 @@ export function ActivityCard(props) {
389
468
  })];
390
469
  },
391
470
  get children() {
392
- return _$ssr(_tmpl$17, _$escape(props.lead), _$escape(_$createComponent(Show, {
471
+ return _$ssr(_tmpl$18, _$escape(props.lead), _$escape(_$createComponent(Show, {
393
472
  get when() {
394
473
  return props.entries;
395
474
  },
@@ -419,7 +498,7 @@ export function ActivityCard(props) {
419
498
  return props.error;
420
499
  },
421
500
  get children() {
422
- return _$ssr(_tmpl$18, _$escape(_$createComponent(ActivityError, {
501
+ return _$ssr(_tmpl$19, _$escape(_$createComponent(ActivityError, {
423
502
  get onReload() {
424
503
  return props.onReload;
425
504
  }
@@ -492,19 +571,19 @@ function ActivityDialogContent(props) {
492
571
  label: `${item.label} ${total(item.key)}`
493
572
  }))];
494
573
  const shown = () => props.entries().filter(entry => kind() === "all" || entry.kind === kind());
495
- return _$ssr(_tmpl$20, _$escape(_$createComponent(Show, {
574
+ return _$ssr(_tmpl$22, _$escape(_$createComponent(Show, {
496
575
  get when() {
497
576
  return props.subtitle;
498
577
  },
499
578
  get children() {
500
- return _$ssr(_tmpl$19, _$escape(props.subtitle));
579
+ return _$ssr(_tmpl$20, _$escape(props.subtitle));
501
580
  }
502
581
  })), _$escape(_$createComponent(Show, {
503
582
  get when() {
504
583
  return options().length > 2;
505
584
  },
506
585
  get children() {
507
- return _$createComponent(ChoiceChips, {
586
+ return _$ssr(_tmpl$21, _$escape(_$createComponent(ChoiceChips, {
508
587
  get ["aria-label"]() {
509
588
  return t().activityFilter;
510
589
  },
@@ -515,36 +594,42 @@ function ActivityDialogContent(props) {
515
594
  return options();
516
595
  },
517
596
  onValueChange: setKind
518
- });
597
+ })));
519
598
  }
520
- })), _$escape(_$createComponent(Show, {
521
- get when() {
522
- return props.entries().length > 0;
523
- },
524
- get fallback() {
525
- return _$createComponent(ActivityEmpty, {
526
- get text() {
527
- return props.emptyText;
528
- }
529
- });
530
- },
599
+ })), _$escape(_$createComponent(ScrollArea, {
600
+ inset: true,
601
+ "class": "k2b-activity-dialog__list",
531
602
  get children() {
532
- return _$createComponent(ActivityListRoot, {
533
- get entries() {
534
- return shown();
535
- },
536
- density: "wide",
537
- get now() {
538
- return props.now;
539
- },
540
- get dateConfig() {
541
- return props.dateConfig;
603
+ return _$createComponent(Show, {
604
+ get when() {
605
+ return props.entries().length > 0;
542
606
  },
543
- get timeZone() {
544
- return props.timeZone;
607
+ get fallback() {
608
+ return _$createComponent(ActivityEmpty, {
609
+ get text() {
610
+ return props.emptyText;
611
+ }
612
+ });
545
613
  },
546
- get label() {
547
- return props.title;
614
+ get children() {
615
+ return _$createComponent(ActivityListRoot, {
616
+ get entries() {
617
+ return shown();
618
+ },
619
+ density: "wide",
620
+ get now() {
621
+ return props.now;
622
+ },
623
+ get dateConfig() {
624
+ return props.dateConfig;
625
+ },
626
+ get timeZone() {
627
+ return props.timeZone;
628
+ },
629
+ get label() {
630
+ return props.title;
631
+ }
632
+ });
548
633
  }
549
634
  });
550
635
  }