@esportsplus/ui 0.64.4 → 0.64.5

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.
@@ -9,6 +9,7 @@ type Catalog = Record<string, Kind>;
9
9
  type Context = {
10
10
  add: (kind: string, group?: string) => void;
11
11
  addable: [string, Kind][];
12
+ adding: (group: string) => boolean;
12
13
  catalog: Catalog;
13
14
  choose: (e: MouseEvent, group: string) => void;
14
15
  empty: ((group?: string) => Renderable<unknown>) | undefined;
@@ -248,8 +248,9 @@ const group = (context, live) => {
248
248
  template_u1.slot(element_0hnf69a15, context.addable.length > 0 && (() => {
249
249
  let root_0hnf69a1b = template_0hnf69a1c();
250
250
  template_u1.slot(root_0hnf69a1b, icon({ 'aria-hidden': 'true' }, plus), 1);
251
+ template_u1.setProperty(root_0hnf69a1b, 'aria-expanded', () => String(context.adding(group.id)));
251
252
  template_u1.delegate(root_0hnf69a1b, 'click', (e) => context.choose(e, group.id));
252
- template_u1.setClass(root_0hnf69a1b, ["button shell-add"]);
253
+ template_u1.setClass(root_0hnf69a1b, ["button shell-add", () => context.adding(group.id) && '--active']);
253
254
  return root_0hnf69a1b;
254
255
  })(), 1);
255
256
  template_u1.slot(element_0hnf69a18, group.placement === undefined && (() => context.switches() && (() => {
@@ -12,18 +12,30 @@ import { resized, separator } from './resize.js';
12
12
  import { frame, grip, resizer, sidebar, toggle } from './sidebar.js';
13
13
  import subtree from './subtree.js';
14
14
  import './scss/index.scss';
15
- const template_1dhwcf34 = template_u1.template(`<!--$--><!--$-->`);
16
- const template_1dhwcf37 = template_u1.template(`<div aria-hidden='true' class='shell-dock-target shell-dock-target--bottom' data-placement='bottom'>`, true);
17
- const template_1dhwcf38 = template_u1.template(`<div aria-hidden='true' class='shell-dock-target shell-dock-target--left' data-placement='left'>`, true);
18
- const template_1dhwcf39 = template_u1.template(`<div aria-hidden='true' class='shell-dock-target shell-dock-target--right' data-placement='right'>`, true);
19
- const template_1dhwcf3b = template_u1.template(`<div aria-hidden='true'>`, true);
20
- const template_1dhwcf3d = template_u1.template(`<div>`, true);
21
- const template_1dhwcf3g = template_u1.template(`<div></div><!--$-->`);
22
- const template_1dhwcf3k = template_u1.template(`<div class='shell-frame'><!--$--><div class='shell-center'><div class='shell-main'></div></div></div><!--$-->`);
23
- const template_1dhwcf3r = template_u1.template(`<!--$--><!--$--><!--$--><!--$-->`);
24
- const template_1dhwcf3x = template_u1.template(`<!--$--><div>`);
25
- const template_1dhwcf311 = template_u1.template(`<div><div></div><!--$--><!--$-->`, true);
15
+ const template_1dhwcf35 = template_u1.template(`<!--$--><!--$-->`);
16
+ const template_1dhwcf38 = template_u1.template(`<div aria-hidden='true' class='shell-dock-target shell-dock-target--bottom' data-placement='bottom'>`, true);
17
+ const template_1dhwcf39 = template_u1.template(`<div aria-hidden='true' class='shell-dock-target shell-dock-target--left' data-placement='left'>`, true);
18
+ const template_1dhwcf3a = template_u1.template(`<div aria-hidden='true' class='shell-dock-target shell-dock-target--right' data-placement='right'>`, true);
19
+ const template_1dhwcf3c = template_u1.template(`<div aria-hidden='true'>`, true);
20
+ const template_1dhwcf3e = template_u1.template(`<div>`, true);
21
+ const template_1dhwcf3h = template_u1.template(`<div></div><!--$-->`);
22
+ const template_1dhwcf3l = template_u1.template(`<div class='shell-frame'><!--$--><div class='shell-center'><div class='shell-main'></div></div></div><!--$-->`);
23
+ const template_1dhwcf3s = template_u1.template(`<!--$--><!--$--><!--$--><!--$-->`);
24
+ const template_1dhwcf3y = template_u1.template(`<!--$--><div>`);
25
+ const template_1dhwcf312 = template_u1.template(`<div><div></div><!--$--><!--$-->`, true);
26
26
  class ReactiveObject_1dhwcf30 extends reactivity_u0.ReactiveObject {
27
+ #active = this[reactivity_u0.SIGNAL](false);
28
+ constructor() {
29
+ super(null);
30
+ }
31
+ get active() {
32
+ return reactivity_u0.read(this.#active);
33
+ }
34
+ set active(_v0) {
35
+ reactivity_u0.write(this.#active, _v0);
36
+ }
37
+ }
38
+ class ReactiveObject_1dhwcf31 extends reactivity_u0.ReactiveObject {
27
39
  #height = this[reactivity_u0.SIGNAL](0);
28
40
  #width = this[reactivity_u0.SIGNAL](0);
29
41
  constructor() {
@@ -42,7 +54,7 @@ class ReactiveObject_1dhwcf30 extends reactivity_u0.ReactiveObject {
42
54
  reactivity_u0.write(this.#width, _v1);
43
55
  }
44
56
  }
45
- class ReactiveObject_1dhwcf31 extends reactivity_u0.ReactiveObject {
57
+ class ReactiveObject_1dhwcf32 extends reactivity_u0.ReactiveObject {
46
58
  #group = this[reactivity_u0.SIGNAL]('');
47
59
  #surface = this[reactivity_u0.SIGNAL]('');
48
60
  constructor() {
@@ -61,7 +73,7 @@ class ReactiveObject_1dhwcf31 extends reactivity_u0.ReactiveObject {
61
73
  reactivity_u0.write(this.#surface, _v1);
62
74
  }
63
75
  }
64
- class ReactiveObject_1dhwcf32 extends reactivity_u0.ReactiveObject {
76
+ class ReactiveObject_1dhwcf33 extends reactivity_u0.ReactiveObject {
65
77
  #length = this[reactivity_u0.SIGNAL](0);
66
78
  constructor() {
67
79
  super(null);
@@ -162,7 +174,7 @@ function under(workspace, x, y) {
162
174
  return found?.dataset.group;
163
175
  }
164
176
  const shell = component(function ({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, ...attributes }) {
165
- let adding, apple = mac(), carrying = signal(false), controller, frames = { left: frame(), right: frame() }, hosts = new Map(), landing = null, parking, picks = signal([]), regions = {}, size = new ReactiveObject_1dhwcf30(), slots = new Map(), strips = new WeakMap(), subject = new ReactiveObject_1dhwcf31(), switching, unobserve, workspace;
177
+ let adding, added = new ReactiveObject_1dhwcf30(), apple = mac(), carrying = signal(false), controller, frames = { left: frame(), right: frame() }, hosts = new Map(), landing = null, parking, picks = signal([]), regions = {}, size = new ReactiveObject_1dhwcf31(), slots = new Map(), strips = new WeakMap(), subject = new ReactiveObject_1dhwcf32(), switching, unobserve, workspace;
166
178
  let narrow = () => size.width > 0 && size.width <= breakpoint;
167
179
  let edges = {
168
180
  frames,
@@ -199,6 +211,7 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
199
211
  state.open({ id, kind }, group);
200
212
  },
201
213
  addable: Object.entries(catalog).filter(([, entry]) => entry.addable !== false),
214
+ adding: (group) => added.active && subject.group === group,
202
215
  catalog,
203
216
  choose(e, group) {
204
217
  if (!adding) {
@@ -232,18 +245,18 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
232
245
  },
233
246
  picked: (group) => read(picks).includes(group),
234
247
  slot: (surface) => {
235
- let root_1dhwcf3c = template_1dhwcf3d();
236
- template_u1.onconnect(root_1dhwcf3c, (element) => {
248
+ let root_1dhwcf3d = template_1dhwcf3e();
249
+ template_u1.onconnect(root_1dhwcf3d, (element) => {
237
250
  slots.set(surface, element);
238
251
  attach(surface, element);
239
252
  });
240
- template_u1.ondisconnect(root_1dhwcf3c, () => {
253
+ template_u1.ondisconnect(root_1dhwcf3d, () => {
241
254
  if (slots.get(surface)?.isConnected === false) {
242
255
  slots.delete(surface);
243
256
  }
244
257
  });
245
- template_u1.setClass(root_1dhwcf3c, ["shell-slot"]);
246
- return root_1dhwcf3c;
258
+ template_u1.setClass(root_1dhwcf3d, ["shell-slot"]);
259
+ return root_1dhwcf3d;
247
260
  },
248
261
  sorting(strip, group) {
249
262
  strips.set(strip, group);
@@ -394,10 +407,10 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
394
407
  return tree ? node(tree) : '';
395
408
  }
396
409
  return tree ? (() => {
397
- let root_1dhwcf33 = template_1dhwcf34(), element_1dhwcf35 = root_1dhwcf33.firstChild, element_1dhwcf36 = element_1dhwcf35.nextSibling;
398
- template_u1.slot(element_1dhwcf35, node(tree));
399
- template_u1.slot(element_1dhwcf36, switcher(tree));
400
- return root_1dhwcf33;
410
+ let root_1dhwcf34 = template_1dhwcf35(), element_1dhwcf36 = root_1dhwcf34.firstChild, element_1dhwcf37 = element_1dhwcf36.nextSibling;
411
+ template_u1.slot(element_1dhwcf36, node(tree));
412
+ template_u1.slot(element_1dhwcf37, switcher(tree));
413
+ return root_1dhwcf34;
401
414
  })() : launcher(context);
402
415
  }, {
403
416
  onconnect: (element) => {
@@ -406,7 +419,7 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
406
419
  });
407
420
  }
408
421
  function split(current) {
409
- let axis = current.direction === 'row' ? 'x' : 'y', box = new ReactiveObject_1dhwcf32(), unobserve;
422
+ let axis = current.direction === 'row' ? 'x' : 'y', box = new ReactiveObject_1dhwcf33(), unobserve;
410
423
  function sizes() {
411
424
  for (let tree of Object.values(shown(state.layout))) {
412
425
  let found = findSplit(tree, current.id);
@@ -417,16 +430,16 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
417
430
  return current.sizes;
418
431
  }
419
432
  {
420
- let root_1dhwcf3e = template_1dhwcf3d();
421
- template_u1.slot(root_1dhwcf3e, current.children.map((child, index) => {
422
- let root_1dhwcf3f = template_1dhwcf3g(), element_1dhwcf3h = root_1dhwcf3f.firstChild, element_1dhwcf3i = element_1dhwcf3h.nextSibling;
423
- template_u1.slot(element_1dhwcf3h, node(child), 1);
424
- template_u1.slot(element_1dhwcf3i, index < current.children.length - 1 && separator(axis, () => {
433
+ let root_1dhwcf3f = template_1dhwcf3e();
434
+ template_u1.slot(root_1dhwcf3f, current.children.map((child, index) => {
435
+ let root_1dhwcf3g = template_1dhwcf3h(), element_1dhwcf3i = root_1dhwcf3g.firstChild, element_1dhwcf3j = element_1dhwcf3i.nextSibling;
436
+ template_u1.slot(element_1dhwcf3i, node(child), 1);
437
+ template_u1.slot(element_1dhwcf3j, index < current.children.length - 1 && separator(axis, () => {
425
438
  let from = sizes(), length = box.length;
426
439
  return (delta) => state.resize(current.id, resized(from, index, delta, length, MIN_FRACTION), current.children.map((child) => child.id));
427
440
  }));
428
- template_u1.setClass(element_1dhwcf3h, ["shell-pane", () => state.layout.main !== null && contains(child, state.layout.main) && 'shell-pane--current']);
429
- template_u1.setStyle(element_1dhwcf3h, ["", () => {
441
+ template_u1.setClass(element_1dhwcf3i, ["shell-pane", () => state.layout.main !== null && contains(child, state.layout.main) && 'shell-pane--current']);
442
+ template_u1.setStyle(element_1dhwcf3i, ["", () => {
430
443
  let maximized = state.layout.maximized;
431
444
  if (maximized === null || !contains(current, maximized)) {
432
445
  return `--flex: 0 0 ${(sizes()[index] ?? 0) * 100}%;`;
@@ -435,16 +448,16 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
435
448
  ? `--flex: 0 0 calc(100% - ${(current.children.length - 1) * COLLAPSED}px);`
436
449
  : `--flex: 0 0 ${COLLAPSED}px;`;
437
450
  }]);
438
- return root_1dhwcf3f;
451
+ return root_1dhwcf3g;
439
452
  }), 1);
440
- template_u1.onconnect(root_1dhwcf3e, (element) => {
453
+ template_u1.onconnect(root_1dhwcf3f, (element) => {
441
454
  unobserve = observe(element, ([entry]) => {
442
455
  box.length = axis === 'x' ? entry.contentRect.width : entry.contentRect.height;
443
456
  });
444
457
  });
445
- template_u1.ondisconnect(root_1dhwcf3e, () => unobserve?.());
446
- template_u1.setClass(root_1dhwcf3e, ["shell-split", "shell-split--" + (current.direction)]);
447
- return root_1dhwcf3e;
458
+ template_u1.ondisconnect(root_1dhwcf3f, () => unobserve?.());
459
+ template_u1.setClass(root_1dhwcf3f, ["shell-split", "shell-split--" + (current.direction)]);
460
+ return root_1dhwcf3f;
448
461
  }
449
462
  }
450
463
  function switcher(main) {
@@ -489,39 +502,39 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
489
502
  function targets() {
490
503
  return ['bottom', 'left', 'right']
491
504
  .filter((placement) => placement === 'bottom' || !stationary(state.layout.root, placement))
492
- .map((placement) => (placement === "bottom" ? template_1dhwcf37() : placement === "left" ? template_1dhwcf38() : placement === "right" ? template_1dhwcf39() : (() => {
493
- let root_1dhwcf3a = template_1dhwcf3b();
494
- template_u1.setProperty(root_1dhwcf3a, 'data-placement', placement);
495
- template_u1.setClass(root_1dhwcf3a, ["shell-dock-target", "shell-dock-target--" + (placement)]);
496
- return root_1dhwcf3a;
505
+ .map((placement) => (placement === "bottom" ? template_1dhwcf38() : placement === "left" ? template_1dhwcf39() : placement === "right" ? template_1dhwcf3a() : (() => {
506
+ let root_1dhwcf3b = template_1dhwcf3c();
507
+ template_u1.setProperty(root_1dhwcf3b, 'data-placement', placement);
508
+ template_u1.setClass(root_1dhwcf3b, ["shell-dock-target", "shell-dock-target--" + (placement)]);
509
+ return root_1dhwcf3b;
497
510
  })()));
498
511
  }
499
512
  function tree() {
500
513
  let trees = shown(state.layout);
501
514
  {
502
- let root_1dhwcf3j = template_1dhwcf3k(), element_1dhwcf3l = root_1dhwcf3j.firstChild, element_1dhwcf3m = element_1dhwcf3l.firstChild, element_1dhwcf3n = element_1dhwcf3l.firstElementChild.firstElementChild, element_1dhwcf3o = element_1dhwcf3l.firstElementChild, element_1dhwcf3p = element_1dhwcf3l.nextSibling;
503
- template_u1.slot(element_1dhwcf3m, ['left', 'right'].map((edge) => (trees[edge] || options[edge]) && (() => {
504
- let root_1dhwcf3q = template_1dhwcf3r(), element_1dhwcf3s = root_1dhwcf3q.firstChild, element_1dhwcf3t = element_1dhwcf3s.nextSibling, element_1dhwcf3u = element_1dhwcf3t.nextSibling, element_1dhwcf3v = element_1dhwcf3u.nextSibling;
505
- template_u1.slot(element_1dhwcf3s, sidebar(edges, edge, region(edge)));
506
- template_u1.slot(element_1dhwcf3t, grip(edges, edge));
507
- template_u1.slot(element_1dhwcf3u, options[edge]?.resizable && resizer(edges, edge));
508
- template_u1.slot(element_1dhwcf3v, toggle(edges, edge));
509
- return root_1dhwcf3q;
515
+ let root_1dhwcf3k = template_1dhwcf3l(), element_1dhwcf3m = root_1dhwcf3k.firstChild, element_1dhwcf3n = element_1dhwcf3m.firstChild, element_1dhwcf3o = element_1dhwcf3m.firstElementChild.firstElementChild, element_1dhwcf3p = element_1dhwcf3m.firstElementChild, element_1dhwcf3q = element_1dhwcf3m.nextSibling;
516
+ template_u1.slot(element_1dhwcf3n, ['left', 'right'].map((edge) => (trees[edge] || options[edge]) && (() => {
517
+ let root_1dhwcf3r = template_1dhwcf3s(), element_1dhwcf3t = root_1dhwcf3r.firstChild, element_1dhwcf3u = element_1dhwcf3t.nextSibling, element_1dhwcf3v = element_1dhwcf3u.nextSibling, element_1dhwcf3w = element_1dhwcf3v.nextSibling;
518
+ template_u1.slot(element_1dhwcf3t, sidebar(edges, edge, region(edge)));
519
+ template_u1.slot(element_1dhwcf3u, grip(edges, edge));
520
+ template_u1.slot(element_1dhwcf3v, options[edge]?.resizable && resizer(edges, edge));
521
+ template_u1.slot(element_1dhwcf3w, toggle(edges, edge));
522
+ return root_1dhwcf3r;
510
523
  })()));
511
- template_u1.slot(element_1dhwcf3n, region('main'), 1);
512
- template_u1.slot(element_1dhwcf3o, trees.bottom && (() => {
513
- let root_1dhwcf3w = template_1dhwcf3x(), element_1dhwcf3y = root_1dhwcf3w.firstChild, element_1dhwcf3z = element_1dhwcf3y.nextSibling;
514
- template_u1.slot(element_1dhwcf3y, separator('y', () => {
524
+ template_u1.slot(element_1dhwcf3o, region('main'), 1);
525
+ template_u1.slot(element_1dhwcf3p, trees.bottom && (() => {
526
+ let root_1dhwcf3x = template_1dhwcf3y(), element_1dhwcf3z = root_1dhwcf3x.firstChild, element_1dhwcf310 = element_1dhwcf3z.nextSibling;
527
+ template_u1.slot(element_1dhwcf3z, separator('y', () => {
515
528
  let share = bounded(state.layout.bottom.size), length = size.height;
516
529
  return (delta) => state.resizeDock('bottom', resized([1 - share, share], 0, delta, length, MIN_FRACTION)[1]);
517
530
  }, { hidden: () => state.layout.bottom.maximized }));
518
- template_u1.slot(element_1dhwcf3z, region('bottom'), 1);
519
- template_u1.setClass(element_1dhwcf3z, ["shell-dock", () => state.layout.bottom.maximized && 'shell-dock--maximized']);
520
- template_u1.setStyle(element_1dhwcf3z, ["", () => `--flex: 0 0 ${bounded(state.layout.bottom.size) * 100}%;`]);
521
- return root_1dhwcf3w;
531
+ template_u1.slot(element_1dhwcf310, region('bottom'), 1);
532
+ template_u1.setClass(element_1dhwcf310, ["shell-dock", () => state.layout.bottom.maximized && 'shell-dock--maximized']);
533
+ template_u1.setStyle(element_1dhwcf310, ["", () => `--flex: 0 0 ${bounded(state.layout.bottom.size) * 100}%;`]);
534
+ return root_1dhwcf3x;
522
535
  })(), 1);
523
- template_u1.slot(element_1dhwcf3p, targets());
524
- return root_1dhwcf3j;
536
+ template_u1.slot(element_1dhwcf3q, targets());
537
+ return root_1dhwcf3k;
525
538
  }
526
539
  }
527
540
  let kind = () => findSurface(state.layout.root, subject.surface)?.kind ?? '', own = () => !!catalog[kind()]?.menu, items = [
@@ -558,8 +571,8 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
558
571
  }
559
572
  });
560
573
  {
561
- let root_1dhwcf310 = template_1dhwcf311(), element_1dhwcf312 = root_1dhwcf310.firstElementChild, element_1dhwcf313 = root_1dhwcf310.firstChild.nextSibling, element_1dhwcf314 = element_1dhwcf313.nextSibling;
562
- template_u1.slot(element_1dhwcf313, subtree(() => {
574
+ let root_1dhwcf311 = template_1dhwcf312(), element_1dhwcf313 = root_1dhwcf311.firstElementChild, element_1dhwcf314 = root_1dhwcf311.firstChild.nextSibling, element_1dhwcf315 = element_1dhwcf314.nextSibling;
575
+ template_u1.slot(element_1dhwcf314, subtree(() => {
563
576
  let layout = state.layout, trees = shown(layout), key = JSON.stringify([layout.bottom.open, layout.zoom.at(-1)?.groups ?? null, ...Object.values(trees).map((tree) => tree !== null)]), changed = key !== last;
564
577
  if (changed) {
565
578
  park();
@@ -568,7 +581,7 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
568
581
  last = key;
569
582
  return key;
570
583
  }, tree, { class: 'shell-tree' }));
571
- template_u1.slot(element_1dhwcf314, tooltip.context({
584
+ template_u1.slot(element_1dhwcf315, tooltip.context({
572
585
  class: 'shell-menu',
573
586
  controller: (value) => {
574
587
  adding = value;
@@ -578,9 +591,10 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
578
591
  label: typeof entry.title === 'function' ? entry.title({ id: '', kind }) : entry.title,
579
592
  onselect: () => context.add(kind, subject.group)
580
593
  })),
594
+ state: added,
581
595
  [tooltip.context.panel]: { 'aria-label': 'Add panel' }
582
596
  }, ''));
583
- template_u1.slot(root_1dhwcf310, tooltip.context({
597
+ template_u1.slot(root_1dhwcf311, tooltip.context({
584
598
  class: 'shell-menu',
585
599
  controller: (value) => {
586
600
  controller = value;
@@ -588,28 +602,28 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
588
602
  items,
589
603
  [tooltip.context.panel]: { 'aria-label': 'Tab actions' }
590
604
  }, ''), 1);
591
- template_u1.onconnect(element_1dhwcf312, (element) => {
605
+ template_u1.onconnect(element_1dhwcf313, (element) => {
592
606
  parking = element;
593
607
  });
594
- template_u1.setClass(element_1dhwcf312, ["shell-parking"]);
595
- let attributes_1dhwcf315 = attributes;
596
- template_u1.setProperties(root_1dhwcf310, attributes_1dhwcf315, true);
597
- template_u1.onconnect(root_1dhwcf310, (element) => {
608
+ template_u1.setClass(element_1dhwcf313, ["shell-parking"]);
609
+ let attributes_1dhwcf316 = attributes;
610
+ template_u1.setProperties(root_1dhwcf311, attributes_1dhwcf316, true);
611
+ template_u1.onconnect(root_1dhwcf311, (element) => {
598
612
  workspace = element;
599
613
  unobserve = observe(element, ([entry]) => {
600
614
  size.height = entry.contentRect.height;
601
615
  size.width = entry.contentRect.width;
602
616
  });
603
617
  });
604
- template_u1.ondisconnect(root_1dhwcf310, () => unobserve?.());
605
- template_u1.onwindow(root_1dhwcf310, 'blur', () => write(picks, []));
606
- template_u1.onwindow(root_1dhwcf310, 'keydown', (e) => {
618
+ template_u1.ondisconnect(root_1dhwcf311, () => unobserve?.());
619
+ template_u1.onwindow(root_1dhwcf311, 'blur', () => write(picks, []));
620
+ template_u1.onwindow(root_1dhwcf311, 'keydown', (e) => {
607
621
  if (e.key === 'Escape' && read(picks).length) {
608
622
  e.preventDefault();
609
623
  write(picks, []);
610
624
  }
611
625
  });
612
- template_u1.onwindow(root_1dhwcf310, 'keyup', (e) => {
626
+ template_u1.onwindow(root_1dhwcf311, 'keyup', (e) => {
613
627
  let chosen = read(picks);
614
628
  if (e.key !== (apple ? 'Meta' : 'Control') || chosen.length === 0) {
615
629
  return;
@@ -617,14 +631,14 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
617
631
  write(picks, []);
618
632
  state.zoom(chosen);
619
633
  });
620
- template_u1.setClass(root_1dhwcf310, ["shell", attributes_1dhwcf315?.class, [
634
+ template_u1.setClass(root_1dhwcf311, ["shell", attributes_1dhwcf316?.class, [
621
635
  () => read(carrying) && 'shell--dragging',
622
636
  () => narrow() && 'shell--narrow',
623
637
  () => (frames.left.dragging || frames.right.dragging) && 'shell--sliding',
624
638
  () => open('left') && 'shell--left-open',
625
639
  () => open('right') && 'shell--right-open'
626
640
  ]]);
627
- template_u1.setStyle(root_1dhwcf310, ["", attributes_1dhwcf315?.style, () => {
641
+ template_u1.setStyle(root_1dhwcf311, ["", attributes_1dhwcf316?.style, () => {
628
642
  let { left, right } = state.layout;
629
643
  return {
630
644
  '--left': frames.left.space,
@@ -633,7 +647,7 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
633
647
  '--right-size': right.size === null ? undefined : `${right.size}px`
634
648
  };
635
649
  }]);
636
- return root_1dhwcf310;
650
+ return root_1dhwcf311;
637
651
  }
638
652
  });
639
653
  const layout = Object.assign(shell, { state });
@@ -1,2 +1,2 @@
1
- @layer components{.shell-expand{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0}@supports (text-box:trim-both cap alphabetic){.shell-tab-label{text-box:trim-both cap alphabetic}}@supports not (text-box:trim-both cap alphabetic){.shell-tab-label:after{margin-bottom:calc(.618em - .618lh)}.shell-tab-label:after,.shell-tab-label:before{content:"";width:100%;height:0;display:block}.shell-tab-label:before{margin-top:calc(.618em - .618lh)}}.shell-tab-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.shell-handle{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.shell-handle{--background:var(--background-active)}.shell-handle:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.shell-handle:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.shell-action,.shell-add,.shell-launcher-card,.shell-tab,.shell-tab-close{--color-active:var(--color-text-300);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}:where([data-theme=dark]) .shell-action,:where([data-theme=dark]) .shell-add,:where([data-theme=dark]) .shell-launcher-card,:where([data-theme=dark]) .shell-tab,:where([data-theme=dark]) .shell-tab-close{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-500);--color-pressed:var(--color-text-300)}:where([data-theme=light]) .shell-action,:where([data-theme=light]) .shell-add,:where([data-theme=light]) .shell-launcher-card,:where([data-theme=light]) .shell-tab,:where([data-theme=light]) .shell-tab-close{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}.shell-handle{--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .036) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .036) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .036) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .036) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1) calc(c * (1 - clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) calc(c * clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h))}@container style(--surface-level:-2){.shell-handle{--surface-level:-3}}@container style(--surface-level:-1){.shell-handle{--surface-level:-2}}@container style(--surface-level:0){.shell-handle{--surface-level:-1}}@container style(--surface-level:1){.shell-handle{--surface-level:0}}@container style(--surface-level:2){.shell-handle{--surface-level:1}}@container style(--surface-level:3){.shell-handle{--surface-level:2}}@container style(--surface-level:4){.shell-handle{--surface-level:3}}@container style(--surface-level:5){.shell-handle{--surface-level:4}}@container style(--surface-level:6){.shell-handle{--surface-level:5}}.shell{--drop-background:oklch(from var(--color-primary-400) l c h / .12);--drop-ring:oklch(from var(--color-primary-400) l c h / .5);--header-height:36px;--left:0px;--left-width:clamp(var(--sidebar-min-width), var(--left-size,var(--space)), min(var(--sidebar-max-width), 100% - var(--main-min-width) - var(--right-claim)));--main-min-width:320px;--right:0px;--right-claim:0px;--right-width:clamp(var(--sidebar-min-width), var(--right-size,var(--space)), min(var(--sidebar-max-width), 100% - var(--main-min-width) - var(--left)));--sidebar-max-width:calc(100% - 88px);--sidebar-min-width:200px;--slide-duration:.3s;--slide-timing-function:cubic-bezier(.32, .72, 0, 1);--space:280px;--toggle-left:var(--size-100);--toggle-right:var(--size-100);--toggle-size:28px;--toggle-top:calc((var(--header-height) - var(--toggle-size)) / 2)}@media (prefers-reduced-motion:reduce){.shell{--slide-duration:0s}}.shell--left-open{--left:var(--left-width)}.shell--narrow{--main-min-width:0px}.shell--right-open{--right:var(--right-width);--right-claim:clamp(var(--sidebar-min-width), var(--right-size,var(--space)), var(--sidebar-max-width))}.shell-action,.shell-add{--background-default:transparent;--border-radius:var(--border-radius-300);--padding-horizontal:0px;--padding-vertical:0px}.shell-action{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--size:28px}.shell-add{--background-active:transparent;--background-hover:transparent;--background-pressed:transparent;--size:24px}.shell-body{--min-width:200px;--scrollbar-behavior:auto}.shell-body .--scrollbar{--scrollbar-behavior:smooth}.shell-dock{--background:var(--surface-background-default);--min-height:80px;--z-index:3}.shell-dock-target,.shell-edge,.shell-group--picked{--background:var(--drop-background);--ring-color:var(--drop-ring);--ring-width:var(--border-width-500)}.shell-dock-target{--size:48px;--z-index:45}.shell-edge,.shell-expand{--z-index:2}.shell-edge-grip{--width:24px;--z-index:30}.shell-edge-grip:is(:active,:hover) .shell-edge-handle{--color:var(--color-primary-400);--inset:3px}.shell-edge-handle{--border-radius:var(--border-radius-200);--color:var(--surface-border-hover);--height:10svh;--inset:calc(var(--width) * -1);--width:3px}.shell-handle{--background-default:var(--surface-border-default);--background-hover:var(--surface-border-hover);--background-pressed:var(--surface-border-pressed);--line-width:1px;--size:8px;--z-index:1}.shell-handle:is(:active,:hover) .shell-handle-pill{--opacity:1;--scale:1}.shell-handle-pill{--border-radius:var(--border-radius-200);--color:var(--surface-border-pressed);--length:10svh;--opacity:0;--scale:.8;--thickness:3px}.shell-header{--gap-horizontal:calc(var(--size-300) / 4);--gap-vertical:calc(var(--size-300) / 4);--height:var(--header-height);--left:calc(var(--toggle-left) * 1.5 + var(--toggle-size));--padding-horizontal:calc(var(--size-300) / 2);--right:calc(var(--toggle-right) * 1.5 + var(--toggle-size))}.shell-launcher{--padding-horizontal:var(--size-600);--padding-vertical:var(--size-600)}.shell-launcher-card{--background-active:var(--surface-background-hover);--background-default:transparent;--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--border-color-default:var(--surface-border-default);--border-radius:var(--border-radius-400);--border-width:var(--border-width-400);--gap-vertical:calc(var(--size-100) / 2);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.shell-launcher-card-description{--color:var(--color-text-300);--font-size:var(--font-size-300);--line-height:1.5}.shell-launcher-card-icon.icon{--size:16px}.shell-launcher-card-key{--inset:var(--size-300)}.shell-launcher-card-title{--font-size:var(--font-size-300);--gap-horizontal:var(--size-200);--gap-vertical:0px;--padding-end:var(--size-700)}.shell-launcher-cards{--column-width:180px;--gap-horizontal:var(--size-200);--gap-vertical:var(--size-200)}.shell-launcher-content{--max-width:512px}.shell-launcher-description{--color:var(--color-text-300);--font-size:var(--font-size-300)}.shell-launcher-header{--gap-horizontal:0px;--gap-vertical:calc(var(--size-100) / 2);--spacer:var(--size-500)}.shell-launcher-title{--font-size:var(--font-size-300)}.shell-sidebar{--background:var(--surface-background-default);--z-index:31}.shell-sidebar-resize{--line-width:0px;--size:12px;--z-index:32}.shell-tab{--background-active:transparent;--background-default:transparent;--background-hover:transparent;--background-pressed:transparent;--border-radius:var(--border-radius-300);--font-size:var(--font-size-300);--gap-horizontal:calc(var(--size-300) / 4);--gap-vertical:calc(var(--size-300) / 4);--height:24px;--max-width:144px;--padding-horizontal:calc(var(--size-300) / 2);--padding-vertical:0px}.shell-tab-close{--border-radius:var(--border-radius-300);--padding-horizontal:0px;--padding-vertical:0px;--size:16px}.shell-tab-close .icon{--size:12px}.shell-tab-close.button{--background-default:transparent;--box-shadow-default:none}.shell-tab-icon.icon{--size:12px}.shell-tab-label{--padding-vertical:.25em}.shell-tabs{--gap-horizontal:calc(var(--size-300) / 4);--gap-vertical:calc(var(--size-300) / 4)}.shell-tabs-highlight{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed)}.shell-toggle{--background-default:transparent;--border-radius:var(--border-radius-400);--color-default:var(--color-text-400);--color-hover:var(--color-text-400);--color-pressed:var(--color-text-500);--left:var(--toggle-left);--padding-horizontal:0px;--padding-vertical:0px;--right:var(--toggle-right);--size:var(--toggle-size);--top:var(--toggle-top);--z-index:40}@property --slide-translate{syntax:"*";inherits:false}.shell{contain:inline-size;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.shell--dragging .shell-dock-target,.shell--dragging .shell-edge{pointer-events:auto}.shell--left-open>.shell-tree>.shell-frame>.shell-edge-grip--left{visibility:hidden;transition-delay:0s}.shell--left-open:not(.shell--narrow)>.shell-tree>.shell-frame>.shell-sidebar-resize--left,.shell:not(.shell--narrow)>.shell-tree>.shell-frame:has(>.shell-sidebar--left.--peek)>.shell-sidebar-resize--left{display:block}.shell--right-open>.shell-tree>.shell-frame>.shell-edge-grip--right{visibility:hidden;transition-delay:0s}.shell--right-open:not(.shell--narrow)>.shell-tree>.shell-frame>.shell-sidebar-resize--right,.shell:not(.shell--narrow)>.shell-tree>.shell-frame:has(>.shell-sidebar--right.--peek)>.shell-sidebar-resize--right{display:block}.shell--narrow>.shell-tree>.shell-frame{grid-template-columns:var(--left) 100% 0px}.shell--narrow>.shell-tree>.shell-frame>.shell-center{translate:calc(var(--right) * -1) 0}.shell--narrow>.shell-tree>.shell-frame>.shell-center>.shell-main .shell-handle,.shell--narrow>.shell-tree>.shell-frame>.shell-center>.shell-main .shell-pane{display:none}.shell--narrow>.shell-tree>.shell-frame>.shell-center>.shell-main .shell-pane--current{flex:100%;display:flex}.shell--sliding>.shell-tree>.shell-frame,.shell--sliding>.shell-tree>.shell-frame>.shell-center{transition:none}.shell-action,.shell-add{height:var(--size);width:var(--size);flex:none}.shell-body{min-height:0;min-width:var(--min-width);flex-direction:column;flex:1;display:flex;position:relative;overflow:hidden}.shell-center{min-width:0;min-height:0;transition:translate var(--slide-duration) var(--slide-timing-function);flex-direction:column;grid-column:2;display:flex;position:relative}.shell-dock{flex:var(--flex);min-height:var(--min-height);min-width:0;display:flex;overflow:hidden}.shell-dock--maximized{background:var(--background);z-index:var(--z-index);position:absolute;inset:0}.shell-dock-target,.shell-edge{pointer-events:none;z-index:var(--z-index);position:absolute}.shell-dock-target--bottom{height:var(--size);bottom:0;left:var(--left);right:var(--right)}.shell-dock-target--left{width:var(--size);left:0;inset-block:0}.shell-dock-target--right{width:var(--size);right:0;inset-block:0}.shell-dock-target.--over,.shell-edge.--over,.shell-group--picked{background:var(--background);box-shadow:inset 0 0 0 var(--ring-width) var(--ring-color)}.shell-edge--bottom{bottom:0;height:50%;inset-inline:0}.shell-edge--left{left:0;width:50%;inset-block:0}.shell-edge--right{right:0;width:50%;inset-block:0}.shell-edge--top{top:0;height:50%;inset-inline:0}.shell-edge-grip{touch-action:none;transition:visibility 0s var(--slide-duration);-webkit-user-select:none;user-select:none;width:var(--width);z-index:var(--z-index);position:absolute;inset-block:0}.shell-edge-grip--left{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' stroke='white' stroke-width='5'/%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 12 12,e-resize;left:0}.shell-edge-grip--right{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6' stroke='white' stroke-width='5'/%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 12 12,w-resize;right:0}.shell-edge-grip--left .shell-edge-handle{left:var(--inset)}.shell-edge-grip--right .shell-edge-handle{right:var(--inset)}.shell-edge-grip:active{cursor:grabbing}.shell-edge-handle{background:var(--color);border-radius:var(--border-radius);height:var(--height);transition:background var(--transition-duration) var(--transition-timing-function), left var(--slide-duration) var(--slide-timing-function), right var(--slide-duration) var(--slide-timing-function);translate:0 calc(var(--offset,0px) - 50%);width:var(--width);position:absolute;top:50%}.shell-expand{z-index:var(--z-index);position:absolute;inset:0}.shell-frame{grid-template-columns:var(--left) minmax(0, 1fr) var(--right);min-height:0;transition:grid-template-columns var(--slide-duration) var(--slide-timing-function);flex:1;grid-template-rows:minmax(0,1fr);display:grid;position:relative;overflow:clip}.shell-group{flex-flow:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.shell-group--inset-left>.shell-header{padding-inline-start:var(--left)}.shell-group--inset-right>.shell-header{padding-inline-end:var(--right)}.shell-handle{touch-action:none;-webkit-user-select:none;user-select:none;z-index:var(--z-index);flex-shrink:0;position:relative}.shell-handle:after{background:var(--background);content:"";pointer-events:none;transition:background var(--transition-duration) var(--transition-timing-function);position:absolute}.shell-handle--x{cursor:col-resize;height:100%;margin-inline:calc(var(--size) / -2);width:var(--size)}.shell-handle--x:after{width:var(--line-width);inset-block:0;left:50%;translate:-50%}.shell-handle--x .shell-handle-pill{height:var(--length);scale:1 var(--scale);translate:-50% calc(var(--offset,0px) - 50%);width:var(--thickness)}.shell-handle--y{cursor:row-resize;height:var(--size);margin-block:calc(var(--size) / -2);width:100%}.shell-handle--y:after{height:var(--line-width);inset-inline:0;top:50%;translate:0 -50%}.shell-handle--y .shell-handle-pill{height:var(--thickness);scale:var(--scale) 1;translate:calc(var(--offset,0px) - 50%) -50%;width:var(--length)}.shell-handle-pill{background:var(--color);border-radius:var(--border-radius);opacity:var(--opacity);pointer-events:none;transition-duration:var(--transition-duration);transition-property:opacity,scale;transition-timing-function:var(--transition-timing-function);position:absolute;top:50%;left:50%}.shell-handle[hidden]{display:none}.shell-header{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-inline:var(--padding-horizontal);flex-shrink:0;display:flex}.shell-host,.shell-slot,.shell-subtree{display:contents}.shell-launcher{min-height:0;padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);outline:none;flex:1;justify-content:center;align-items:center;display:flex;overflow-y:auto}.shell-launcher-card{border:var(--border-width) solid var(--border-color);align-items:flex-start;gap:var(--gap-vertical) var(--gap-horizontal);text-align:start;white-space:normal;flex-direction:column;justify-content:flex-start;width:100%;position:relative}.shell-launcher-card-description{color:var(--color);font-size:var(--font-size);line-height:var(--line-height)}.shell-launcher-card-key{position:absolute;inset-block-start:var(--inset);inset-inline-end:var(--inset)}.shell-launcher-card-title{font-size:var(--font-size);font-weight:var(--font-weight-500);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);padding-inline-end:var(--padding-end);display:flex}.shell-launcher-cards{gap:var(--gap-vertical) var(--gap-horizontal);grid-template-columns:repeat(auto-fill, minmax(var(--column-width), 1fr));display:grid}.shell-launcher-content{max-width:var(--max-width);width:100%}.shell-launcher-description{color:var(--color);font-size:var(--font-size)}.shell-launcher-header{gap:var(--gap-vertical) var(--gap-horizontal);text-align:center;flex-direction:column;margin-block-end:var(--spacer);display:flex}.shell-launcher-title{font-size:var(--font-size);font-weight:var(--font-weight-500)}.shell-main{flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.shell-menu{width:0;height:0;position:absolute;top:0;left:0}.shell-pane{flex:var(--flex);min-width:0;min-height:0;display:flex;overflow:hidden}.shell-parking{display:none}.shell-sidebar{background-color:var(--background);touch-action:pan-y;transition:translate var(--slide-duration) var(--slide-timing-function), visibility 0s var(--slide-duration);visibility:hidden;z-index:var(--z-index);flex-direction:column;display:flex;position:absolute;inset-block:0;overflow:hidden}.shell-sidebar--dragging{cursor:grabbing;visibility:visible;transition:none}.shell-sidebar--left{translate:var(--slide-translate,-100% 0);width:min(var(--left-width), 100%);left:0}.shell-sidebar--right{translate:var(--slide-translate,100% 0);width:min(var(--right-width), 100%);right:0}.shell-sidebar-resize{display:none;position:absolute;inset-block:0}.shell-sidebar-resize--left{left:var(--left-width)}.shell-sidebar-resize--right{right:var(--right-width)}.shell-sidebar.--peek,.shell-sidebar.--active{translate:var(--slide-translate,0 0);visibility:visible;transition-delay:0s}.shell-split{width:100%;min-width:0;height:100%;min-height:0;display:flex}.shell-split--column{flex-direction:column}.shell-tab{gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);max-width:var(--max-width);-webkit-user-select:none;user-select:none;flex:none;padding-inline-end:calc(var(--padding-horizontal) / 2)}.shell-tab--icon.button{width:var(--height);justify-content:center;padding-inline:0}.shell-tab-close.button{height:var(--size);width:var(--size);flex:none}.shell-tab-icon{flex:none}.shell-tab-label{min-width:0;padding-block:var(--padding-vertical);flex:1}.shell-tabs{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);flex:1;min-width:0;height:100%;display:flex;position:relative;overflow:auto hidden}.shell-toggle{height:var(--size);top:var(--top);width:var(--size);z-index:var(--z-index);display:flex;position:absolute}.shell-toggle--left{left:var(--left)}.shell-toggle--right{right:var(--right)}.shell-toggle:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.shell:not(.shell--narrow) .shell-switch{display:none}:root.shell-resizing,:root.shell-resizing *{-webkit-user-select:none;user-select:none}:root.shell-resizing--x,:root.shell-resizing--x *{cursor:col-resize}:root.shell-resizing--y,:root.shell-resizing--y *{cursor:row-resize}:root.shell-resizing .shell-frame{transition:none}:root.shell-sweeping,:root.shell-sweeping *{-webkit-user-select:none;user-select:none}}
1
+ @layer components{.shell-expand{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0}@supports (text-box:trim-both cap alphabetic){.shell-tab-label{text-box:trim-both cap alphabetic}}@supports not (text-box:trim-both cap alphabetic){.shell-tab-label:after{margin-bottom:calc(.618em - .618lh)}.shell-tab-label:after,.shell-tab-label:before{content:"";width:100%;height:0;display:block}.shell-tab-label:before{margin-top:calc(.618em - .618lh)}}.shell-tab-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.shell-handle{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.shell-handle{--background:var(--background-active)}.shell-handle:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.shell-handle:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.shell-action,.shell-add,.shell-launcher-card,.shell-tab,.shell-tab-close{--color-active:var(--color-text-300);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}:where([data-theme=dark]) .shell-action,:where([data-theme=dark]) .shell-add,:where([data-theme=dark]) .shell-launcher-card,:where([data-theme=dark]) .shell-tab,:where([data-theme=dark]) .shell-tab-close{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-500);--color-pressed:var(--color-text-300)}:where([data-theme=light]) .shell-action,:where([data-theme=light]) .shell-add,:where([data-theme=light]) .shell-launcher-card,:where([data-theme=light]) .shell-tab,:where([data-theme=light]) .shell-tab-close{--color-active:var(--color-text-500);--color-default:var(--color-text-400);--color-hover:var(--color-text-300);--color-pressed:var(--color-text-500)}.shell-handle{--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .036) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .036) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .036) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .036) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1) calc(c * (1 - clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) calc(c * clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h))}@container style(--surface-level:-2){.shell-handle{--surface-level:-3}}@container style(--surface-level:-1){.shell-handle{--surface-level:-2}}@container style(--surface-level:0){.shell-handle{--surface-level:-1}}@container style(--surface-level:1){.shell-handle{--surface-level:0}}@container style(--surface-level:2){.shell-handle{--surface-level:1}}@container style(--surface-level:3){.shell-handle{--surface-level:2}}@container style(--surface-level:4){.shell-handle{--surface-level:3}}@container style(--surface-level:5){.shell-handle{--surface-level:4}}@container style(--surface-level:6){.shell-handle{--surface-level:5}}.shell{--drop-background:oklch(from var(--color-primary-400) l c h / .12);--drop-ring:oklch(from var(--color-primary-400) l c h / .5);--header-height:36px;--left:0px;--left-width:clamp(var(--sidebar-min-width), var(--left-size,var(--space)), min(var(--sidebar-max-width), 100% - var(--main-min-width) - var(--right-claim)));--main-min-width:320px;--right:0px;--right-claim:0px;--right-width:clamp(var(--sidebar-min-width), var(--right-size,var(--space)), min(var(--sidebar-max-width), 100% - var(--main-min-width) - var(--left)));--sidebar-max-width:calc(100% - 88px);--sidebar-min-width:200px;--slide-duration:.3s;--slide-timing-function:cubic-bezier(.32, .72, 0, 1);--space:280px;--toggle-left:var(--size-100);--toggle-right:var(--size-100);--toggle-size:28px;--toggle-top:calc((var(--header-height) - var(--toggle-size)) / 2)}@media (prefers-reduced-motion:reduce){.shell{--slide-duration:0s}}.shell--left-open{--left:var(--left-width)}.shell--narrow{--main-min-width:0px}.shell--right-open{--right:var(--right-width);--right-claim:clamp(var(--sidebar-min-width), var(--right-size,var(--space)), var(--sidebar-max-width))}.shell-action,.shell-add{--background-default:transparent;--border-radius:var(--border-radius-300);--padding-horizontal:0px;--padding-vertical:0px}.shell-action{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--size:28px}.shell-add{--background-active:var(--surface-background-active);--background-hover:transparent;--background-pressed:transparent;--size:24px}.shell-body{--min-width:200px;--scrollbar-behavior:auto}.shell-body .--scrollbar{--scrollbar-behavior:smooth}.shell-dock{--background:var(--surface-background-default);--min-height:80px;--z-index:3}.shell-dock-target,.shell-edge,.shell-group--picked{--background:var(--drop-background);--ring-color:var(--drop-ring);--ring-width:var(--border-width-500)}.shell-dock-target{--size:48px;--z-index:45}.shell-edge,.shell-expand{--z-index:2}.shell-edge-grip{--width:24px;--z-index:30}.shell-edge-grip:is(:active,:hover) .shell-edge-handle{--color:var(--color-primary-400);--inset:3px}.shell-edge-handle{--border-radius:var(--border-radius-200);--color:var(--surface-border-hover);--height:10svh;--inset:calc(var(--width) * -1);--width:3px}.shell-handle{--background-default:var(--surface-border-default);--background-hover:var(--surface-border-hover);--background-pressed:var(--surface-border-pressed);--line-width:1px;--size:8px;--z-index:1}.shell-handle:is(:active,:hover) .shell-handle-pill{--opacity:1;--scale:1}.shell-handle-pill{--border-radius:var(--border-radius-200);--color:var(--surface-border-pressed);--length:10svh;--opacity:0;--scale:.8;--thickness:3px}.shell-header{--gap-horizontal:calc(var(--size-300) / 4);--gap-vertical:calc(var(--size-300) / 4);--height:var(--header-height);--left:calc(var(--toggle-left) * 1.5 + var(--toggle-size));--padding-horizontal:calc(var(--size-300) / 2);--right:calc(var(--toggle-right) * 1.5 + var(--toggle-size))}.shell-launcher{--padding-horizontal:var(--size-600);--padding-vertical:var(--size-600)}.shell-launcher-card{--background-active:var(--surface-background-hover);--background-default:transparent;--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--border-color-default:var(--surface-border-default);--border-radius:var(--border-radius-400);--border-width:var(--border-width-400);--gap-vertical:calc(var(--size-100) / 2);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.shell-launcher-card-description{--color:var(--color-text-300);--font-size:var(--font-size-300);--line-height:1.5}.shell-launcher-card-icon.icon{--size:16px}.shell-launcher-card-key{--inset:var(--size-300)}.shell-launcher-card-title{--font-size:var(--font-size-300);--gap-horizontal:var(--size-200);--gap-vertical:0px;--padding-end:var(--size-700)}.shell-launcher-cards{--column-width:180px;--gap-horizontal:var(--size-200);--gap-vertical:var(--size-200)}.shell-launcher-content{--max-width:512px}.shell-launcher-description{--color:var(--color-text-300);--font-size:var(--font-size-300)}.shell-launcher-header{--gap-horizontal:0px;--gap-vertical:calc(var(--size-100) / 2);--spacer:var(--size-500)}.shell-launcher-title{--font-size:var(--font-size-300)}.shell-sidebar{--background:var(--surface-background-default);--z-index:31}.shell-sidebar-resize{--line-width:0px;--size:12px;--z-index:32}.shell-tab{--background-active:transparent;--background-default:transparent;--background-hover:transparent;--background-pressed:transparent;--border-radius:var(--border-radius-300);--font-size:var(--font-size-300);--gap-horizontal:calc(var(--size-300) / 4);--gap-vertical:calc(var(--size-300) / 4);--height:24px;--max-width:144px;--padding-horizontal:calc(var(--size-300) / 2);--padding-vertical:0px}.shell-tab-close{--border-radius:var(--border-radius-300);--padding-horizontal:0px;--padding-vertical:0px;--size:16px}.shell-tab-close .icon{--size:12px}.shell-tab-close.button{--background-default:transparent;--box-shadow-default:none}.shell-tab-icon.icon{--size:12px}.shell-tab-label{--padding-vertical:.25em}.shell-tabs{--gap-horizontal:calc(var(--size-300) / 4);--gap-vertical:calc(var(--size-300) / 4)}.shell-tabs-highlight{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed)}.shell-toggle{--background-default:transparent;--border-radius:var(--border-radius-400);--color-default:var(--color-text-400);--color-hover:var(--color-text-400);--color-pressed:var(--color-text-500);--left:var(--toggle-left);--padding-horizontal:0px;--padding-vertical:0px;--right:var(--toggle-right);--size:var(--toggle-size);--top:var(--toggle-top);--z-index:40}@property --slide-translate{syntax:"*";inherits:false}.shell{contain:inline-size;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.shell--dragging .shell-dock-target,.shell--dragging .shell-edge{pointer-events:auto}.shell--left-open>.shell-tree>.shell-frame>.shell-edge-grip--left{visibility:hidden;transition-delay:0s}.shell--left-open:not(.shell--narrow)>.shell-tree>.shell-frame>.shell-sidebar-resize--left,.shell:not(.shell--narrow)>.shell-tree>.shell-frame:has(>.shell-sidebar--left.--peek)>.shell-sidebar-resize--left{display:block}.shell--right-open>.shell-tree>.shell-frame>.shell-edge-grip--right{visibility:hidden;transition-delay:0s}.shell--right-open:not(.shell--narrow)>.shell-tree>.shell-frame>.shell-sidebar-resize--right,.shell:not(.shell--narrow)>.shell-tree>.shell-frame:has(>.shell-sidebar--right.--peek)>.shell-sidebar-resize--right{display:block}.shell--narrow>.shell-tree>.shell-frame{grid-template-columns:var(--left) 100% 0px}.shell--narrow>.shell-tree>.shell-frame>.shell-center{translate:calc(var(--right) * -1) 0}.shell--narrow>.shell-tree>.shell-frame>.shell-center>.shell-main .shell-handle,.shell--narrow>.shell-tree>.shell-frame>.shell-center>.shell-main .shell-pane{display:none}.shell--narrow>.shell-tree>.shell-frame>.shell-center>.shell-main .shell-pane--current{flex:100%;display:flex}.shell--sliding>.shell-tree>.shell-frame,.shell--sliding>.shell-tree>.shell-frame>.shell-center{transition:none}.shell-action,.shell-add{height:var(--size);width:var(--size);flex:none}.shell-body{min-height:0;min-width:var(--min-width);flex-direction:column;flex:1;display:flex;position:relative;overflow:hidden}.shell-center{min-width:0;min-height:0;transition:translate var(--slide-duration) var(--slide-timing-function);flex-direction:column;grid-column:2;display:flex;position:relative}.shell-dock{flex:var(--flex);min-height:var(--min-height);min-width:0;display:flex;overflow:hidden}.shell-dock--maximized{background:var(--background);z-index:var(--z-index);position:absolute;inset:0}.shell-dock-target,.shell-edge{pointer-events:none;z-index:var(--z-index);position:absolute}.shell-dock-target--bottom{height:var(--size);bottom:0;left:var(--left);right:var(--right)}.shell-dock-target--left{width:var(--size);left:0;inset-block:0}.shell-dock-target--right{width:var(--size);right:0;inset-block:0}.shell-dock-target.--over,.shell-edge.--over,.shell-group--picked{background:var(--background);box-shadow:inset 0 0 0 var(--ring-width) var(--ring-color)}.shell-edge--bottom{bottom:0;height:50%;inset-inline:0}.shell-edge--left{left:0;width:50%;inset-block:0}.shell-edge--right{right:0;width:50%;inset-block:0}.shell-edge--top{top:0;height:50%;inset-inline:0}.shell-edge-grip{touch-action:none;transition:visibility 0s var(--slide-duration);-webkit-user-select:none;user-select:none;width:var(--width);z-index:var(--z-index);position:absolute;inset-block:0}.shell-edge-grip--left{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' stroke='white' stroke-width='5'/%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 12 12,e-resize;left:0}.shell-edge-grip--right{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6' stroke='white' stroke-width='5'/%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 12 12,w-resize;right:0}.shell-edge-grip--left .shell-edge-handle{left:var(--inset)}.shell-edge-grip--right .shell-edge-handle{right:var(--inset)}.shell-edge-grip:active{cursor:grabbing}.shell-edge-handle{background:var(--color);border-radius:var(--border-radius);height:var(--height);transition:background var(--transition-duration) var(--transition-timing-function), left var(--slide-duration) var(--slide-timing-function), right var(--slide-duration) var(--slide-timing-function);translate:0 calc(var(--offset,0px) - 50%);width:var(--width);position:absolute;top:50%}.shell-expand{z-index:var(--z-index);position:absolute;inset:0}.shell-frame{grid-template-columns:var(--left) minmax(0, 1fr) var(--right);min-height:0;transition:grid-template-columns var(--slide-duration) var(--slide-timing-function);flex:1;grid-template-rows:minmax(0,1fr);display:grid;position:relative;overflow:clip}.shell-group{flex-flow:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.shell-group--inset-left>.shell-header{padding-inline-start:var(--left)}.shell-group--inset-right>.shell-header{padding-inline-end:var(--right)}.shell-handle{touch-action:none;-webkit-user-select:none;user-select:none;z-index:var(--z-index);flex-shrink:0;position:relative}.shell-handle:after{background:var(--background);content:"";pointer-events:none;transition:background var(--transition-duration) var(--transition-timing-function);position:absolute}.shell-handle--x{cursor:col-resize;height:100%;margin-inline:calc(var(--size) / -2);width:var(--size)}.shell-handle--x:after{width:var(--line-width);inset-block:0;left:50%;translate:-50%}.shell-handle--x .shell-handle-pill{height:var(--length);scale:1 var(--scale);translate:-50% calc(var(--offset,0px) - 50%);width:var(--thickness)}.shell-handle--y{cursor:row-resize;height:var(--size);margin-block:calc(var(--size) / -2);width:100%}.shell-handle--y:after{height:var(--line-width);inset-inline:0;top:50%;translate:0 -50%}.shell-handle--y .shell-handle-pill{height:var(--thickness);scale:var(--scale) 1;translate:calc(var(--offset,0px) - 50%) -50%;width:var(--length)}.shell-handle-pill{background:var(--color);border-radius:var(--border-radius);opacity:var(--opacity);pointer-events:none;transition-duration:var(--transition-duration);transition-property:opacity,scale;transition-timing-function:var(--transition-timing-function);position:absolute;top:50%;left:50%}.shell-handle[hidden]{display:none}.shell-header{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);padding-inline:var(--padding-horizontal);flex-shrink:0;display:flex}.shell-host,.shell-slot,.shell-subtree{display:contents}.shell-launcher{min-height:0;padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);outline:none;flex:1;justify-content:center;align-items:center;display:flex;overflow-y:auto}.shell-launcher-card{border:var(--border-width) solid var(--border-color);align-items:flex-start;gap:var(--gap-vertical) var(--gap-horizontal);text-align:start;white-space:normal;flex-direction:column;justify-content:flex-start;width:100%;position:relative}.shell-launcher-card-description{color:var(--color);font-size:var(--font-size);line-height:var(--line-height)}.shell-launcher-card-key{position:absolute;inset-block-start:var(--inset);inset-inline-end:var(--inset)}.shell-launcher-card-title{font-size:var(--font-size);font-weight:var(--font-weight-500);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);padding-inline-end:var(--padding-end);display:flex}.shell-launcher-cards{gap:var(--gap-vertical) var(--gap-horizontal);grid-template-columns:repeat(auto-fill, minmax(var(--column-width), 1fr));display:grid}.shell-launcher-content{max-width:var(--max-width);width:100%}.shell-launcher-description{color:var(--color);font-size:var(--font-size)}.shell-launcher-header{gap:var(--gap-vertical) var(--gap-horizontal);text-align:center;flex-direction:column;margin-block-end:var(--spacer);display:flex}.shell-launcher-title{font-size:var(--font-size);font-weight:var(--font-weight-500)}.shell-main{flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.shell-menu{width:0;height:0;position:absolute;top:0;left:0}.shell-pane{flex:var(--flex);min-width:0;min-height:0;display:flex;overflow:hidden}.shell-parking{display:none}.shell-sidebar{background-color:var(--background);touch-action:pan-y;transition:translate var(--slide-duration) var(--slide-timing-function), visibility 0s var(--slide-duration);visibility:hidden;z-index:var(--z-index);flex-direction:column;display:flex;position:absolute;inset-block:0;overflow:hidden}.shell-sidebar--dragging{cursor:grabbing;visibility:visible;transition:none}.shell-sidebar--left{translate:var(--slide-translate,-100% 0);width:min(var(--left-width), 100%);left:0}.shell-sidebar--right{translate:var(--slide-translate,100% 0);width:min(var(--right-width), 100%);right:0}.shell-sidebar-resize{display:none;position:absolute;inset-block:0}.shell-sidebar-resize--left{left:var(--left-width)}.shell-sidebar-resize--right{right:var(--right-width)}.shell-sidebar.--peek,.shell-sidebar.--active{translate:var(--slide-translate,0 0);visibility:visible;transition-delay:0s}.shell-split{width:100%;min-width:0;height:100%;min-height:0;display:flex}.shell-split--column{flex-direction:column}.shell-tab{gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);max-width:var(--max-width);-webkit-user-select:none;user-select:none;flex:none;padding-inline-end:calc(var(--padding-horizontal) / 2)}.shell-tab--icon.button{width:var(--height);justify-content:center;padding-inline:0}.shell-tab-close.button{height:var(--size);width:var(--size);flex:none}.shell-tab-icon{flex:none}.shell-tab-label{min-width:0;padding-block:var(--padding-vertical);flex:1}.shell-tabs{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);flex:1;min-width:0;height:100%;display:flex;position:relative;overflow:auto hidden}.shell-toggle{height:var(--size);top:var(--top);width:var(--size);z-index:var(--z-index);display:flex;position:absolute}.shell-toggle--left{left:var(--left)}.shell-toggle--right{right:var(--right)}.shell-toggle:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.shell:not(.shell--narrow) .shell-switch{display:none}:root.shell-resizing,:root.shell-resizing *{-webkit-user-select:none;user-select:none}:root.shell-resizing--x,:root.shell-resizing--x *{cursor:col-resize}:root.shell-resizing--y,:root.shell-resizing--y *{cursor:row-resize}:root.shell-resizing .shell-frame{transition:none}:root.shell-sweeping,:root.shell-sweeping *{-webkit-user-select:none;user-select:none}}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "**/*.scss"
55
55
  ],
56
56
  "type": "module",
57
- "version": "0.64.4",
57
+ "version": "0.64.5",
58
58
  "scripts": {
59
59
  "build": "run-s build:vite build:ts",
60
60
  "build:ts": "tsc",
@@ -22,6 +22,8 @@ type Context = {
22
22
  add: (kind: string, group?: string) => void;
23
23
  // The kinds the add menu and launcher offer.
24
24
  addable: [string, Kind][];
25
+ // Whether the add menu is open from the group's add button.
26
+ adding: (group: string) => boolean;
25
27
  catalog: Catalog;
26
28
  // Opens the add menu under the pressed button, adding to the group.
27
29
  choose: (e: MouseEvent, group: string) => void;
@@ -405,7 +407,11 @@ const group = (context: Context, live: Live) => {
405
407
  class='button shell-add'
406
408
  title='Add panel'
407
409
  type='button'
408
- ${{ onclick: (e: MouseEvent) => context.choose(e, group.id) }}
410
+ ${{
411
+ 'aria-expanded': () => String(context.adding(group.id)),
412
+ class: () => context.adding(group.id) && '--active',
413
+ onclick: (e: MouseEvent) => context.choose(e, group.id)
414
+ }}
409
415
  >
410
416
  ${icon({ 'aria-hidden': 'true' }, plus)}
411
417
  </button>
@@ -192,6 +192,8 @@ function under(workspace: HTMLElement, x: number, y: number) {
192
192
  const shell = component(
193
193
  function({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, ...attributes }: A) {
194
194
  let adding: Controller | undefined,
195
+ // The add menu shows, opened from 'subject.group''s add button.
196
+ added = reactive({ active: false }),
195
197
  apple = mac(),
196
198
  // A tab is being dragged, which lights the docks and group halves it can drop onto.
197
199
  carrying = signal(false),
@@ -264,6 +266,7 @@ const shell = component(
264
266
  state.open({ id, kind }, group);
265
267
  },
266
268
  addable: Object.entries(catalog).filter(([, entry]) => entry.addable !== false),
269
+ adding: (group: string) => added.active && subject.group === group,
267
270
  catalog,
268
271
  choose(e: MouseEvent, group: string) {
269
272
  if (!adding) {
@@ -846,6 +849,7 @@ const shell = component(
846
849
  label: typeof entry.title === 'function' ? entry.title({ id: '', kind }) : entry.title,
847
850
  onselect: () => context.add(kind, subject.group)
848
851
  })),
852
+ state: added,
849
853
  [tooltip.context.panel]: { 'aria-label': 'Add panel' }
850
854
  },
851
855
  ''
@@ -67,9 +67,10 @@
67
67
  --size: 28px;
68
68
  }
69
69
 
70
- // Lit by the tab strip's highlight, as the tabs are, so it stays transparent itself.
70
+ // Lit by the tab strip's highlight, as the tabs are, so it stays transparent itself; the strip's active layer stays
71
+ // on the current tab, so while its menu is open it fills itself.
71
72
  &-add {
72
- --background-active: transparent;
73
+ --background-active: var(--surface-background-active);
73
74
  --background-hover: transparent;
74
75
  --background-pressed: transparent;
75
76
  --size: 24px;