@esportsplus/ui 0.64.6 → 0.66.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.
package/README.md CHANGED
@@ -92,7 +92,7 @@ html`
92
92
  | `loading` | Border loading indicator |
93
93
  | `typewriter` | Animated typing effect; `typewriter.retype` is a headline word that is selected and typed over with a jittered, human rhythm, landing whole words under reduced motion. Both share the caret variables and `--block`/`--hard`/`--underscore` modifiers. `typewriter.rotate` is a rotating word (`state.index`, `state.paused`) whose shared letters glide into place while the others blur out and in; `typewriter-rotate--accent` |
94
94
  | `group` | Items in a row that wraps, spaced by `--gap-horizontal` / `--gap-vertical`; `group--column` stacks a `group-label`, a control and a `group-description` / `group-error` / `group-footer` under it, `group--grid` sets the label beside the control (held to `--control-width`) with the description on its own line, `group--row` holds every item on one line without wrapping, `group-header` bolds the label, `group--invalid` reddens the description; `group-item--overlay` items float over a control's start or end (by which side of it they're written on), which `group()` measures and pads the control to clear; attributes under `[group.highlight]` add a `highlight` behind the items; `button--group` items sit joined as a segmented control, medium weight while `--active` | `group.highlight`, `group-item--overlay` |
95
- | `shell` | The app frame: tabbed groups of surfaces in resizable splits, in a main area between a sidebar on either edge, above a bottom dock. Built from a `catalog` of kinds (`title`, read reactively, `render`, optional `icon`, `description`, `shortcut`, `multiple`, `addable: false` to keep a kind out of `+` and the launcher, `tooltip`, `tab(surface)` returning `attributes` spread on the tab, `badges` after its title and an `icon` in place of the kind's, and `menu(surface)` returning the tab menu's items in place of the layout's own) and a `shell.state()` holding the layout (`root`, `open` for which docks start open, `closing(surfaces)` asked before a close takes surfaces away, which keeps them by returning or resolving `false`, and an optional `store`, any `@esportsplus/web-storage` `Local<{ shell: Saved }>` or object with its async `get` / `set`, which restores the tree once it reads back unless the tree changed first, and saves it after each change); besides its moves and closes the state can `replace(previous, surface)` in place without asking `closing`, `load(root)` a whole tree, and `back()` step back one view as a double click does, returning false once there is nothing left to step out of; `empty` renders what an empty group or main area shows in place of the launcher; `icons: true` shows tabs as their kind's icon alone, closed from their menu, and `sidebars: { left, right }` give each sidebar a `label`, `hover` to peek while the pointer rests on its edge, and `resizable` to drag its inner border; a sidebar named there always shows its toggle, and a sidebar's last group stays when its tabs close, showing the empty state until it is filled or closed. A group's `placement` (`left`, `right`, `bottom`) docks it. Tabs drag to reorder, into another group, onto a group's half to split it, or onto the strip along the left, right or bottom edge to dock there; separators resize, a double-clicked header maximizes, groups clicked with Ctrl (⌘ on Apple platforms) held fill the main area together once it is let go (Esc cancels), or at once when a press with it held sweeps across them and is released; in a layout nested inside a group the innermost layout picks, and a double click on any header steps back one view at a time (out of a maximized group, then each zoom in turn, restoring the group maximized before it) until the layout is back at its own view, where it maximizes again; tabs carry a close menu. `+` and an empty group's launcher open a kind. Each surface renders once and moves between slots, keeping its state until its tab closes. A surface with `sortable: false` stays in its group; alone there, the group is static, showing it without tabs and taking no drops, and a static sidebar swipes closed toward its edge. Sidebars toggle from their top corner (`state.toggle(placement, open?)`), open by clicking or dragging their edge, and, when `resizable`, resize from their inner border between `--sidebar-min-width` and `--sidebar-max-width`, never leaving the main area narrower than `--main-min-width` (`320px`); `--space` is their width until resized, `--toggle-size` / `--toggle-top` / `--toggle-left` / `--toggle-right` place the toggles (by default centred on the group headers' `--header-height`, so they line up with the tabs) and `--slide-duration` / `--slide-timing-function` time the motion. At or below `narrow` (default `1024`) px of the layout's own width, one sidebar opens at a time, pushing the main area aside, and the main area shows one group, switched from its header. A static group docks whole into an empty dock (`state.dock`). Each sidebar, the main area and the bottom dock rebuild only when their own groups change | `shell.state` |
95
+ | `shell` | The app frame: tabbed groups of surfaces in resizable splits, in a main area between a sidebar on either edge, above a bottom dock. Built from a `catalog` of kinds (`title`, read reactively, `render`, optional `icon`, `description`, `shortcut`, `multiple`, `addable: false` to keep a kind out of `+` and the launcher, `tooltip`, `tab(surface)` returning `attributes` spread on the tab, `badges` after its title and an `icon` in place of the kind's, and `menu(surface)` returning the tab menu's items in place of the layout's own) and a `shell.state()` holding the layout (`root`, `open` for which docks start open, `closing(surfaces)` asked before a close takes surfaces away, which keeps them by returning or resolving `false`, and an optional `store`, any `@esportsplus/web-storage` `Local<{ shell: Saved }>` or object with its async `get` / `set`, which restores the tree once it reads back unless the tree changed first, and saves it after each change); besides its moves and closes the state can `replace(previous, surface)` in place without asking `closing`, `load(root)` a whole tree, and `back()` step back one view as a double click does, returning false once there is nothing left to step out of; `empty` renders what an empty group or main area shows in place of the launcher; `icons: true` shows tabs as their kind's icon alone, closed from their menu, and `sidebars: { left, right }` give each sidebar a `label`, `hover` to peek while the pointer rests on its edge, and `resizable` to drag its inner border; a sidebar named there always shows its toggle, and a sidebar's last group stays when its tabs close, showing the empty state until it is filled or closed. `tabs: { scrollbar }` passes scrollbar options to every group's tab strip, over its hidden horizontal bar, such as `fade: true` to shade the edges it scrolls past. A group's `placement` (`left`, `right`, `bottom`) docks it. Tabs drag to reorder, into another group, onto a group's half to split it, or onto the strip along the left, right or bottom edge to dock there; separators resize, a double-clicked header maximizes, groups clicked with Ctrl (⌘ on Apple platforms) held fill the main area together once it is let go (Esc cancels), or at once when a press with it held sweeps across them and is released; in a layout nested inside a group the innermost layout picks, and a double click on any header steps back one view at a time (out of a maximized group, then each zoom in turn, restoring the group maximized before it) until the layout is back at its own view, where it maximizes again; tabs carry a close menu. `+` and an empty group's launcher open a kind. Each surface renders once and moves between slots, keeping its state until its tab closes. A surface with `sortable: false` stays in its group; alone there, the group is static, showing it without tabs and taking no drops, and a static sidebar swipes closed toward its edge. Sidebars toggle from their top corner (`state.toggle(placement, open?)`), open by clicking or dragging their edge, and, when `resizable`, resize from their inner border between `--sidebar-min-width` and `--sidebar-max-width`, never leaving the main area narrower than `--main-min-width` (`320px`); `--space` is their width until resized, `--toggle-size` / `--toggle-top` / `--toggle-left` / `--toggle-right` place the toggles (by default centred on the group headers' `--header-height`, so they line up with the tabs) and `--slide-duration` / `--slide-timing-function` time the motion. At or below `narrow` (default `1024`) px of the layout's own width, one sidebar opens at a time, pushing the main area aside, and the main area shows one group, switched from its header. A static group docks whole into an empty dock (`state.dock`). Each sidebar, the main area and the bottom dock rebuild only when their own groups change | `shell.state` |
96
96
  | `highlight` | Layer that glides behind its parent's children on hover and focus and rests on the `--active` one (`target` for nested items, `hover: false` for the active layer only); `border: 'bottom' \| 'left' \| 'right' \| 'top'` adds an edge border to the active layer with both fills kept `--border-inset-horizontal` / `--border-inset-vertical` clear of it, `fill: false` drops the active background, `--glide-tail-duration-active` longer than `--glide-duration-active` stretches it toward the next item, `--inset-horizontal` / `--inset-vertical` pull the fill in from the item; `highlight--rail` on the highlight and `--highlight-rail` with `--highlight-rail-{bottom,left,right,top}` on its container make tabs along a rail at `--rail-width`, the border on the same edge lying over it |
97
97
  | `ellipsis` | Animated dots |
98
98
  | `icon` | SVG sprite wrapper, `icon(attributes, href)`: the sized box (`--size`, or `--width`/`--height`) colored by `--color`, whose `fill` the `<svg>` inherits, so a stroked icon sets `fill: none` on the box; attributes under `[icon.svg]` go on the `<svg>` itself, `class` included; it turns by `--rotate` (default `0deg`), and the directional sprites (`arrow.svg`, `chevron.svg`), which point right, take `icon--down`, `icon--left` or `icon--up`; `icon--rotate` eases between turns, skipped under reduced motion | `icon.svg` |
@@ -3,6 +3,7 @@ import * as template_u1 from '@esportsplus/template';
3
3
  import { type Attributes, type Renderable } from '@esportsplus/template';
4
4
  import { type SortableOptions } from '../sortable/index.js';
5
5
  import type { Item } from '../tooltip/menu.js';
6
+ import { type Options as ScrollbarOptions } from '../../modifiers/scrollbar/index.js';
6
7
  import { type Group, type Layout, type Surface } from './model.js';
7
8
  import type state from './model.js';
8
9
  type Catalog = Record<string, Kind>;
@@ -17,8 +18,10 @@ type Context = {
17
18
  icons: boolean;
18
19
  inset: (group: string, edge: 'left' | 'right') => boolean;
19
20
  menu: (e: MouseEvent, group: string, surface: string) => void;
21
+ offering: (group: string) => boolean;
20
22
  pick: (group: string) => void;
21
23
  picked: (group: string) => boolean;
24
+ scrollbar: ScrollbarOptions;
22
25
  slot: (surface: string) => Renderable<unknown>;
23
26
  sorting: (strip: ReactiveArray<Surface>, group: string) => SortableOptions<Surface>;
24
27
  state: ReturnType<typeof state>;
@@ -249,6 +249,7 @@ const group = (context, live) => {
249
249
  let root_0hnf69a1b = template_0hnf69a1c();
250
250
  template_u1.slot(root_0hnf69a1b, icon({ 'aria-hidden': 'true' }, plus), 1);
251
251
  template_u1.setProperty(root_0hnf69a1b, 'aria-expanded', () => String(context.adding(group.id)));
252
+ template_u1.setProperty(root_0hnf69a1b, 'hidden', () => !context.offering(group.id));
252
253
  template_u1.delegate(root_0hnf69a1b, 'click', (e) => context.choose(e, group.id));
253
254
  template_u1.setClass(root_0hnf69a1b, ["button shell-add", () => context.adding(group.id) && '--active']);
254
255
  return root_0hnf69a1b;
@@ -273,7 +274,7 @@ const group = (context, live) => {
273
274
  template_u1.slot(element_0hnf69a1a, icon({ 'aria-hidden': 'true' }, close), 1);
274
275
  template_u1.delegate(element_0hnf69a1a, 'click', () => void context.state.closeGroup(group.id));
275
276
  template_u1.setClass(element_0hnf69a1a, ["button shell-action"]);
276
- let attributes_0hnf69a1h = scrollbar({ hidden: true });
277
+ let attributes_0hnf69a1h = scrollbar(context.scrollbar);
277
278
  template_u1.setProperties(element_0hnf69a15, attributes_0hnf69a1h, true);
278
279
  template_u1.setProperties(element_0hnf69a15, list.attributes);
279
280
  template_u1.onconnect(element_0hnf69a15, (element) => {
@@ -1,5 +1,6 @@
1
1
  import * as template_u1 from '@esportsplus/template';
2
2
  import { type Attributes, type Renderable } from '@esportsplus/template';
3
+ import type { Options as Scrollbar } from '../../modifiers/scrollbar/index.js';
3
4
  import { type Catalog, type Kind } from './group.js';
4
5
  import state, { type Layout, type Node, type Placement, type Saved, type Store, type Surface } from './model.js';
5
6
  import { type Edge, type Options } from './sidebar.js';
@@ -12,6 +13,9 @@ type A = Attributes & {
12
13
  onconnect?: never;
13
14
  sidebars?: Partial<Record<Edge, Options>>;
14
15
  state: ReturnType<typeof state>;
16
+ tabs?: {
17
+ scrollbar?: Scrollbar;
18
+ };
15
19
  };
16
20
  declare const shell: template_u1.Factory<A, Renderable<any>, Renderable<any>, {}>;
17
21
  declare const layout: typeof shell & {
@@ -173,7 +173,7 @@ function under(workspace, x, y) {
173
173
  let found = document.elementsFromPoint(x, y).find((element) => element.matches('.shell-group') && element.closest('.shell') === workspace);
174
174
  return found?.dataset.group;
175
175
  }
176
- const shell = component(function ({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, ...attributes }) {
176
+ const shell = component(function ({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, tabs = {}, ...attributes }) {
177
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;
178
178
  let narrow = () => size.width > 0 && size.width <= breakpoint;
179
179
  let edges = {
@@ -195,6 +195,9 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
195
195
  state.split(surface.id, group, direction, side);
196
196
  }
197
197
  }
198
+ function holds(group, kind) {
199
+ return !catalog[kind]?.multiple && !!findGroup(state.layout.root, group)?.surfaces.some((surface) => surface.kind === kind);
200
+ }
198
201
  let context = {
199
202
  add(kind, group) {
200
203
  let entry = catalog[kind];
@@ -239,11 +242,13 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
239
242
  flush();
240
243
  controller.open(e.button === 2 ? { x: e.clientX, y: e.clientY } : undefined);
241
244
  },
245
+ offering: (group) => context.addable.some(([kind]) => !holds(group, kind)),
242
246
  pick(group) {
243
247
  let current = read(picks);
244
248
  write(picks, current.includes(group) ? current.filter((id) => id !== group) : [...current, group]);
245
249
  },
246
250
  picked: (group) => read(picks).includes(group),
251
+ scrollbar: { hidden: true, ...tabs.scrollbar, horizontal: true },
247
252
  slot: (surface) => {
248
253
  let root_1dhwcf3d = template_1dhwcf3e();
249
254
  template_u1.onconnect(root_1dhwcf3d, (element) => {
@@ -588,6 +593,7 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
588
593
  },
589
594
  items: context.addable.map(([kind, entry]) => ({
590
595
  ...(entry.icon ? { icon: () => icon({ 'aria-hidden': 'true' }, entry.icon) } : {}),
596
+ hidden: () => holds(subject.group, kind),
591
597
  label: typeof entry.title === 'function' ? entry.title({ id: '', kind }) : entry.title,
592
598
  onselect: () => context.add(kind, subject.group)
593
599
  })),
@@ -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.button,.shell-add.button,.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.button,:where([data-theme=dark]) .shell-add.button,: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.button,:where([data-theme=light]) .shell-add.button,: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.button,.shell-add.button{--background-default:transparent;--border-radius:var(--border-radius-300);--padding-horizontal:0px;--padding-vertical:0px}.shell-action.button{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--size:28px}.shell-add.button{--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}}
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.button,.shell-add.button,.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.button,:where([data-theme=dark]) .shell-add.button,: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.button,:where([data-theme=light]) .shell-add.button,: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.button,.shell-add.button{--background-default:transparent;--border-radius:var(--border-radius-300);--padding-horizontal:0px;--padding-vertical:0px}.shell-action.button{--background-active:var(--surface-background-active);--background-hover:var(--surface-background-hover);--background-pressed:var(--surface-background-pressed);--size:28px}.shell-add.button{--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-add[hidden]{display: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.6",
57
+ "version": "0.66.0",
58
58
  "scripts": {
59
59
  "build": "run-s build:vite build:ts",
60
60
  "build:ts": "tsc",
@@ -4,7 +4,7 @@ import highlight from '~/components/highlight';
4
4
  import icon from '~/components/icon';
5
5
  import sortable, { type SortableOptions } from '~/components/sortable';
6
6
  import type { Item } from '~/components/tooltip/menu';
7
- import scrollbar from '~/modifiers/scrollbar';
7
+ import scrollbar, { type Options as ScrollbarOptions } from '~/modifiers/scrollbar';
8
8
  import { fixed, type Group, type Layout, type Surface } from './model';
9
9
  import type state from './model';
10
10
  import subtree from './subtree';
@@ -37,9 +37,13 @@ type Context = {
37
37
  inset: (group: string, edge: 'left' | 'right') => boolean;
38
38
  // Opens the tab context menu for the surface.
39
39
  menu: (e: MouseEvent, group: string, surface: string) => void;
40
+ // Whether the add menu has a kind to offer the group, one it doesn't already hold.
41
+ offering: (group: string) => boolean;
40
42
  // Picks or unpicks the group for the zoom made when the modifier is let go.
41
43
  pick: (group: string) => void;
42
44
  picked: (group: string) => boolean;
45
+ // Each tab strip's scrollbar.
46
+ scrollbar: ScrollbarOptions;
43
47
  // The slot a surface's long-lived host moves into while it shows.
44
48
  slot: (surface: string) => Renderable<unknown>;
45
49
  // How a group's tab strip sorts, shared by every strip so tabs move between them; 'strip' is the group's tabs.
@@ -390,7 +394,7 @@ const group = (context: Context, live: Live) => {
390
394
  aria-label='Tabs'
391
395
  class='shell-tabs'
392
396
  role='tablist'
393
- ${scrollbar({ hidden: true })}
397
+ ${scrollbar(context.scrollbar)}
394
398
  ${list.attributes}
395
399
  ${{
396
400
  onconnect: (element: HTMLElement) => {
@@ -410,6 +414,7 @@ const group = (context: Context, live: Live) => {
410
414
  ${{
411
415
  'aria-expanded': () => String(context.adding(group.id)),
412
416
  class: () => context.adding(group.id) && '--active',
417
+ hidden: () => !context.offering(group.id),
413
418
  onclick: (e: MouseEvent) => context.choose(e, group.id)
414
419
  }}
415
420
  >
@@ -3,6 +3,7 @@ import { component, html, render, type Attributes, type Renderable } from '@espo
3
3
  import icon from '~/components/icon';
4
4
  import tooltip from '~/components/tooltip';
5
5
  import type { Controller, Item } from '~/components/tooltip/menu';
6
+ import type { Options as Scrollbar } from '~/modifiers/scrollbar';
6
7
  import { mac } from '~/shared/platform';
7
8
  import { observe } from '~/shared/resize';
8
9
  import { group, launcher, title, type Catalog, type Context, type Kind } from './group';
@@ -26,6 +27,8 @@ type A = Attributes & {
26
27
  // Each sidebar's label, whether it peeks while the pointer rests on its edge, and whether it resizes.
27
28
  sidebars?: Partial<Record<Edge, Options>>;
28
29
  state: ReturnType<typeof state>;
30
+ // Every group's tab strip: 'scrollbar' over the strip's own hidden horizontal bar, such as 'fade' for edge shadows.
31
+ tabs?: { scrollbar?: Scrollbar };
29
32
  };
30
33
 
31
34
  type Host = { dispose: VoidFunction; element: HTMLElement };
@@ -190,7 +193,7 @@ function under(workspace: HTMLElement, x: number, y: number) {
190
193
  // corner, and a closed sidebar's edge holds a handle to drag it out by. A sidebar holding a single unsortable surface
191
194
  // is static: it shows the surface without tabs, takes no drops, and swipes closed toward its edge.
192
195
  const shell = component(
193
- function({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, ...attributes }: A) {
196
+ function({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, tabs = {}, ...attributes }: A) {
194
197
  let adding: Controller | undefined,
195
198
  // The add menu shows, opened from 'subject.group''s add button.
196
199
  added = reactive({ active: false }),
@@ -244,6 +247,12 @@ const shell = component(
244
247
  }
245
248
  }
246
249
 
250
+ // Whether the group already holds the kind, where adding it would only reselect its tab. A kind that opens a new
251
+ // surface on every add never is.
252
+ function holds(group: string, kind: string) {
253
+ return !catalog[kind]?.multiple && !!findGroup(state.layout.root, group)?.surfaces.some((surface) => surface.kind === kind);
254
+ }
255
+
247
256
  let context: Context = {
248
257
  add(kind: string, group?: string) {
249
258
  let entry = catalog[kind];
@@ -301,12 +310,14 @@ const shell = component(
301
310
  flush();
302
311
  controller.open(e.button === 2 ? { x: e.clientX, y: e.clientY } : undefined);
303
312
  },
313
+ offering: (group: string) => context.addable.some(([kind]) => !holds(group, kind)),
304
314
  pick(group: string) {
305
315
  let current = read(picks);
306
316
 
307
317
  write(picks, current.includes(group) ? current.filter((id) => id !== group) : [...current, group]);
308
318
  },
309
319
  picked: (group: string) => read(picks).includes(group),
320
+ scrollbar: { hidden: true, ...tabs.scrollbar, horizontal: true },
310
321
  slot: (surface: string) => html`
311
322
  <div
312
323
  class='shell-slot'
@@ -846,6 +857,7 @@ const shell = component(
846
857
  },
847
858
  items: context.addable.map(([kind, entry]) => ({
848
859
  ...(entry.icon ? { icon: () => icon({ 'aria-hidden': 'true' }, entry.icon!) } : {}),
860
+ hidden: () => holds(subject.group, kind),
849
861
  label: typeof entry.title === 'function' ? entry.title({ id: '', kind }) : entry.title,
850
862
  onselect: () => context.add(kind, subject.group)
851
863
  })),
@@ -76,6 +76,11 @@
76
76
  width: var(--size);
77
77
  }
78
78
 
79
+ // Out of the strip once the group holds every kind it could add.
80
+ &-add[hidden] {
81
+ display: none;
82
+ }
83
+
79
84
  &-body {
80
85
  display: flex;
81
86
  flex: 1;