@esportsplus/ui 0.67.0 → 0.68.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 +1 -1
- package/build/components/shell/group.js +2 -2
- package/build/components/shell/index.js +1 -1
- package/build/components/shell/model.d.ts +2 -2
- package/build/components/shell/model.js +6 -6
- package/build/components/tooltip/menu.d.ts +1 -0
- package/build/components/tooltip/menu.js +119 -113
- package/build/components/tooltip/scss/index.scss +1 -1
- package/package.json +1 -1
- package/src/components/shell/group.ts +2 -2
- package/src/components/shell/index.ts +2 -1
- package/src/components/shell/model.ts +11 -7
- package/src/components/tooltip/menu.ts +12 -3
- package/src/components/tooltip/scss/variables.scss +12 -0
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ html`
|
|
|
71
71
|
|-----------|-------------|----------|
|
|
72
72
|
| `button` | Standard button, filled by `button--black`, `button--primary` (the theme's ink, lettered in the page color), `button--surface` (its raised surface), `button--surface-primary` or `button--white`; `button.copy` is an icon button copying `value` (a string or a function read on click) whose copy icon turns into a check that draws in, then back after `timeout` ms (default `3000`), with `label`, `success` and `error` as its accessible name per state; `button.faces(status, faces)` stacks keyed faces in one grid cell and shows the one whose `key` matches `status()`; `button.morph` runs an async `onaction` through idle, loading, success and error, carrying the status as a `button--morph-{status}` class (also readable through a passed `state`), collapsing to a circle while `compact(status)` holds (default: loading and success), shaking on error and announcing `announce[status]`; its content is yours, layered with `button-morph-text` (mark the shown one `--active`) and `button-morph-icon--loading` / `--success`; `button.morph.save` is the ready-made save (`onsave`, `label`, `retryLabel`) that morphs into a spinner circle and confirms with a check, coloured by its `--background-default` | `button.copy`, `button.faces`, `button.morph`, `button.morph.save`, `button--black`, `button--primary`, `button--surface`, `button--surface-primary`, `button--white` |
|
|
73
73
|
| `toolbar` | Bar of flat buttons on a raised surface, as the inline editor's formatting toolbar is (which reuses its button and divider styles), built from consumer-defined items: `toolbar.button({ label, hint, icon \| thumbnail, ...attributes })` spreads the consumer's attributes (`onclick`, `aria-pressed`, ...) on the button, its label and hint (text or a function) naming it and showing on hover, `toolbar.item(render, { hint, label })` carries any control (a select, a field), `toolbar.divider()` separates groups, and `toolbar.drawer()` places the drawer's button; as a toolbar it takes one tab stop that the arrow keys, Home and End rove between its controls, and `sortable` (on in a dock) lets buttons drag, with one `tooltip.shared` label gliding between them after `delay`, `arrows` paging through whole buttons once they outgrow the bar, and `direction` (`n`, `s`, `e`, `w`) setting the side the drawer and labels open toward, east and west standing it upright; `drawer` morphs the bar into a panel of the `apps` buttons laid out like `command`, with an optional `search` and arrow keys and Enter, `alphabetical` laying its buttons out under `#` and A to Z headings with a rail of the letters beside them that swells under the pointer and scrolls to each letter it passes, `groups` letting a button let go over another on the bar (or in a group's panel) group with it, or over a group join it at its end, what it is over swelling as it is reached, each group (`toolbar.group({ items, label })`) a 2x2 preview opening a panel of its members that sorts by dragging and is named in place by an `inlineEdit` (`onrename` reports it), nests groups, the ones on the way in listed above it as a dimmed menu panel whose rows go back to them, closes as a button is carried out of it and gives way to its last member, `labels` naming the bar's buttons under them instead of on hover, buttons dragging between bar and drawer and one thrown off the bar going back to it (`state.active` opens it, `onsort` reports each move); `mode: 'dock'` makes the buttons apps that launch with a hop-and-squash and light a running dot (per-item `state.running`, `onlaunch`) | `toolbar.button`, `toolbar.divider`, `toolbar.drawer`, `toolbar.group`, `toolbar.item` |
|
|
74
|
-
| `tooltip` | Popup content that comes out of its trigger; a tooltip or menu reopens on the side it last opened on while it still fits there, and otherwise tries the opposite side, then the other axis (a first open tries above and below first, whichever has more room), kept `--viewport-margin` (default `--size-100`) off the window's edges and capped to the room it has, past which it scrolls; `axis: 'x' | 'y'` (on `tooltip.onclick`, `tooltip.onhover` and `tooltip.shared`) keeps it beside its trigger or above and below it. `tooltip-content--expand` / `tooltip-message--expand` content, like `tooltip.menu({ expand: true })`, covers its trigger instead and grows out of it, keeping the corner it last grew toward on each axis that still fits; `--morph` grows out from behind it; `tooltip.menu` panels scroll their rows with the scrollbar modifier and `scroll-padding-block`, branch panels lift to stay on screen, and `align: 'end'` hangs a menu from its trigger's end edge; `tooltip.onhover` also opens on keyboard focus and closes on Escape, and `tooltip.onhover.trigger({ axis, delay, state })` is the same behaviour to spread on your own `.tooltip` element; `delay: { open?, close? }` (ms, on `tooltip.onhover` and `tooltip.shared`; each left out is instant) holds the pointer before opening and after leaving, and for 500ms after a delayed tooltip closes the next opens at once, without its entrance; `tooltip.menu` is a keyboard menu (arrows, Home/End, Escape returns focus, Tab closes) that opens in the top layer, above every stacking context around it, and closes once an option is chosen, `highlight` (default `false`; `true` or the highlight's own attributes) glides a layer between its rows on hover and keyboard focus in place of each item's own fill, its panels a surface whose item hover and pressed fills and highlight are surface primary, `tooltip-menu--surface` restoring that fill on the menu or any ancestor (such as a `button.split`); `tooltip.nestedMenu({ animate, items, onnavigate, state })` is a drill-down menu whose `items` nest to any depth: a branch's panel grows out of its row over the dimmed parent, and its header or the parent's scrim goes back; arrows/Home/End move, Right/Left drill and return, Escape goes back a level then closes (`animate: false` skips the motion, `tooltip.nestedMenu.trigger` styles the button); `tooltip.shared({ axis, delay, dismiss, interactive, keep, state, ...attributes })` is one tooltip for any number of triggers: spread `tip.bind(content)` on a trigger (a string, or a function returning a template, rendered on every open unless `keep`), or `tip.delegate({ content, edge, selector })` on a container to make every matching descendant a trigger (default `[data-tooltip]`, its value the content; `edge` lines the tooltip up past the container's edge, beside it on the `'x'` axis, else above or below), and place `tip.render()` once, carrying the remaining attributes; it opens in the top layer beside the trigger, flips when out of room, and glides between triggers while its content slides in the direction of travel; `interactive` makes it a card the pointer can enter, toggled by taps and keys, with Tab carried into it; `keep` mounts each bound trigger's content on its first open and keeps it for reopening until that trigger unmounts; `dismiss` is a selector whose clicks inside close it (`'a[href]'` for navigation); `state.active` is whether it is open and `state.index` which bound trigger, numbered in `bind()` order (-1 for none), and setting it opens that trigger | `tooltip.context`, `tooltip.menu`, `tooltip.nestedMenu`, `tooltip.onclick`, `tooltip.onhover`, `tooltip.onhover.trigger`, `tooltip.shared`, `tooltip-menu--surface` |
|
|
74
|
+
| `tooltip` | Popup content that comes out of its trigger; a tooltip or menu reopens on the side it last opened on while it still fits there, and otherwise tries the opposite side, then the other axis (a first open tries above and below first, whichever has more room), kept `--viewport-margin` (default `--size-100`) off the window's edges and capped to the room it has, past which it scrolls; `axis: 'x' | 'y'` (on `tooltip.onclick`, `tooltip.onhover` and `tooltip.shared`) keeps it beside its trigger or above and below it. `tooltip-content--expand` / `tooltip-message--expand` content, like `tooltip.menu({ expand: true })`, covers its trigger instead and grows out of it, keeping the corner it last grew toward on each axis that still fits; `--morph` grows out from behind it; `tooltip.menu` panels scroll their rows with the scrollbar modifier and `scroll-padding-block`, branch panels lift to stay on screen, and `align: 'end'` hangs a menu from its trigger's end edge; `tooltip.onhover` also opens on keyboard focus and closes on Escape, and `tooltip.onhover.trigger({ axis, delay, state })` is the same behaviour to spread on your own `.tooltip` element; `delay: { open?, close? }` (ms, on `tooltip.onhover` and `tooltip.shared`; each left out is instant) holds the pointer before opening and after leaving, and for 500ms after a delayed tooltip closes the next opens at once, without its entrance; `tooltip.menu` is a keyboard menu (arrows, Home/End, Escape returns focus, Tab closes), whose items with `checked: () => boolean` are `menuitemcheckbox` rows led by a checkbox showing whether it holds, checked in the panel's own fill, that toggle without closing the menu that opens in the top layer, above every stacking context around it, and closes once an option is chosen, `highlight` (default `false`; `true` or the highlight's own attributes) glides a layer between its rows on hover and keyboard focus in place of each item's own fill, its panels a surface whose item hover and pressed fills and highlight are surface primary, `tooltip-menu--surface` restoring that fill on the menu or any ancestor (such as a `button.split`); `tooltip.nestedMenu({ animate, items, onnavigate, state })` is a drill-down menu whose `items` nest to any depth: a branch's panel grows out of its row over the dimmed parent, and its header or the parent's scrim goes back; arrows/Home/End move, Right/Left drill and return, Escape goes back a level then closes (`animate: false` skips the motion, `tooltip.nestedMenu.trigger` styles the button); `tooltip.shared({ axis, delay, dismiss, interactive, keep, state, ...attributes })` is one tooltip for any number of triggers: spread `tip.bind(content)` on a trigger (a string, or a function returning a template, rendered on every open unless `keep`), or `tip.delegate({ content, edge, selector })` on a container to make every matching descendant a trigger (default `[data-tooltip]`, its value the content; `edge` lines the tooltip up past the container's edge, beside it on the `'x'` axis, else above or below), and place `tip.render()` once, carrying the remaining attributes; it opens in the top layer beside the trigger, flips when out of room, and glides between triggers while its content slides in the direction of travel; `interactive` makes it a card the pointer can enter, toggled by taps and keys, with Tab carried into it; `keep` mounts each bound trigger's content on its first open and keeps it for reopening until that trigger unmounts; `dismiss` is a selector whose clicks inside close it (`'a[href]'` for navigation); `state.active` is whether it is open and `state.index` which bound trigger, numbered in `bind()` order (-1 for none), and setting it opens that trigger | `tooltip.context`, `tooltip.menu`, `tooltip.nestedMenu`, `tooltip.onclick`, `tooltip.onhover`, `tooltip.onhover.trigger`, `tooltip.shared`, `tooltip-menu--surface` |
|
|
75
75
|
| `accordion` | Collapsible sections driven by `state.active`; `group` (from `accordion.group()`) keeps at most one member open, closing the rest when one opens, and `accordion.group({ required: true })` keeps exactly one open, reopening a member closed while nothing else is. Several opened at once leave the last to join or open; a required group opens its first member when none starts open. Members join while mounted | `accordion.group` |
|
|
76
76
|
| `clipboard` | `clipboard.write(value)` copies text, resolving `true` once it lands and `false` if the browser refuses | `clipboard.write` |
|
|
77
77
|
| `command` | ⌘K/Ctrl+K command palette on `overlay` + `input`: substring-then-subsequence matching with highlighted runs, grouped results, arrow/Enter keys, `onrun`; `tabs` adds a row of tabs under the search, marked by `highlight`, whose views are `frame--swap`s, drifting in from their side, and cycle with Tab/Shift+Tab (All leads with recent commands, persisted through any `store` implementing `get`/`set`, then lists every command; each command group gets its own tab; a Shortcuts tab lists `shortcuts`); setting `state.tab` (`'all'`, `'shortcuts'` or a group name) switches views and clears the search. `render(groups)` supplies custom result markup: each item exposes its `label`, highlighted `content`, command `id`, and `attributes` to spread onto the option element so selection and keyboard navigation keep working. Icons are sprite ids. The built-in trigger, and `command.search.trigger` beside a separately mounted `command.search.modal`, is a `search.button` that opens the palette and shows its hotkey; the palette's own field is a `search.input`; `command.trigger` passes attributes to it | `command.dialog` (e.g. `overlay--blur`), `command.input`, `command.option`, `command.trigger`, `command--centered`, `command-dialog--glass` (via `command.dialog`) |
|
|
@@ -100,7 +100,7 @@ function tab(context, live, surface, attributes) {
|
|
|
100
100
|
void context.state.close(surface.id);
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
template_u1.delegate(root_0hnf69ac, 'click', () => context.state.activate(surface.id));
|
|
103
|
+
template_u1.delegate(root_0hnf69ac, 'click', () => context.state.activate(surface.id, false));
|
|
104
104
|
template_u1.delegate(root_0hnf69ac, 'contextmenu', (e) => context.menu(e, group.id, surface.id));
|
|
105
105
|
template_u1.delegate(root_0hnf69ac, 'keydown', (e) => {
|
|
106
106
|
if (e.key === 'Delete') {
|
|
@@ -109,7 +109,7 @@ function tab(context, live, surface, attributes) {
|
|
|
109
109
|
}
|
|
110
110
|
else if (e.key === 'Enter' || e.key === ' ') {
|
|
111
111
|
e.preventDefault();
|
|
112
|
-
context.state.activate(surface.id);
|
|
112
|
+
context.state.activate(surface.id, false);
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
template_u1.delegate(root_0hnf69ac, 'mousedown', (e) => {
|
|
@@ -217,7 +217,7 @@ const shell = component(function ({ catalog, empty, icons = false, narrow: break
|
|
|
217
217
|
n++;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
state.open({ id, kind }, group);
|
|
220
|
+
state.open({ id, kind }, group, group === undefined);
|
|
221
221
|
},
|
|
222
222
|
addable: Object.entries(catalog).filter(([, entry]) => entry.addable !== false),
|
|
223
223
|
adding: (group) => added.active && subject.group === group,
|
|
@@ -73,7 +73,7 @@ declare function findSurfaceGroup(node: Node | null, id: string): Group | null;
|
|
|
73
73
|
declare function fixed(group: Group): boolean;
|
|
74
74
|
declare function stationary(root: Node | null, placement: Placement): boolean;
|
|
75
75
|
declare const state: ({ closing, open, root, sharing, store }?: Options) => {
|
|
76
|
-
activate(surface: string): void;
|
|
76
|
+
activate(surface: string, reveal?: boolean): void;
|
|
77
77
|
back(): boolean;
|
|
78
78
|
close(surface: string): Promise<boolean>;
|
|
79
79
|
closeAll(): Promise<boolean>;
|
|
@@ -86,7 +86,7 @@ declare const state: ({ closing, open, root, sharing, store }?: Options) => {
|
|
|
86
86
|
load(root: Node | null): void;
|
|
87
87
|
maximize(group: string): void;
|
|
88
88
|
move(surface: string, group: string, index?: number): void;
|
|
89
|
-
open(surface: Surface, group?: string): void;
|
|
89
|
+
open(surface: Surface, group?: string, reveal?: boolean): void;
|
|
90
90
|
replace(previous: string, surface: Surface): void;
|
|
91
91
|
resize(split: string, sizes: number[], shown?: string[]): void;
|
|
92
92
|
resizeDock(placement: Placement, size: number): void;
|
|
@@ -292,14 +292,14 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store } = {}) =>
|
|
|
292
292
|
return placement ? { ...current, [placement]: { ...current[placement], open: true } } : current;
|
|
293
293
|
}
|
|
294
294
|
return {
|
|
295
|
-
activate(surface) {
|
|
295
|
+
activate(surface, reveal = true) {
|
|
296
296
|
update((current) => {
|
|
297
297
|
let group = findSurfaceGroup(current.root, surface);
|
|
298
298
|
if (!group) {
|
|
299
299
|
return current;
|
|
300
300
|
}
|
|
301
301
|
return {
|
|
302
|
-
...visible(group, current),
|
|
302
|
+
...(reveal ? visible(group, current) : current),
|
|
303
303
|
active: group.id,
|
|
304
304
|
root: updateGroup(current.root, group.id, (entry) => ({ ...entry, active: surface }))
|
|
305
305
|
};
|
|
@@ -440,7 +440,7 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store } = {}) =>
|
|
|
440
440
|
}
|
|
441
441
|
let root = source.id === target.id ? current.root : take(current.root, source, surface);
|
|
442
442
|
return {
|
|
443
|
-
...visible(target, current),
|
|
443
|
+
...(source.placement === target.placement ? current : visible(target, current)),
|
|
444
444
|
active: target.id,
|
|
445
445
|
root: updateGroup(root, target.id, (entry) => {
|
|
446
446
|
let surfaces = entry.surfaces.filter((other) => other.id !== surface);
|
|
@@ -450,12 +450,12 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store } = {}) =>
|
|
|
450
450
|
};
|
|
451
451
|
});
|
|
452
452
|
},
|
|
453
|
-
open(surface, group) {
|
|
453
|
+
open(surface, group, reveal = true) {
|
|
454
454
|
structural((current) => {
|
|
455
455
|
let existing = findSurfaceGroup(current.root, surface.id), target = group ? findGroup(current.root, group) : null;
|
|
456
456
|
if (existing && (!target || existing.id === target.id || !shared(existing, target.placement))) {
|
|
457
457
|
return {
|
|
458
|
-
...visible(existing, current),
|
|
458
|
+
...(reveal ? visible(existing, current) : current),
|
|
459
459
|
active: existing.id,
|
|
460
460
|
root: updateGroup(current.root, existing.id, (entry) => ({ ...entry, active: surface.id }))
|
|
461
461
|
};
|
|
@@ -474,7 +474,7 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store } = {}) =>
|
|
|
474
474
|
}
|
|
475
475
|
let root = existing ? take(current.root, existing, surface.id) : current.root;
|
|
476
476
|
return {
|
|
477
|
-
...visible(target, current),
|
|
477
|
+
...(reveal ? visible(target, current) : current),
|
|
478
478
|
active: target.id,
|
|
479
479
|
root: updateGroup(root, target.id, (entry) => ({ ...entry, active: surface.id, surfaces: [...entry.surfaces, surface] }))
|
|
480
480
|
};
|
|
@@ -2,6 +2,7 @@ import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
|
2
2
|
import { flush, onCleanup } from '@esportsplus/reactivity';
|
|
3
3
|
import * as template_u1 from '@esportsplus/template';
|
|
4
4
|
import { component } from '@esportsplus/template';
|
|
5
|
+
import checkbox from '../checkbox/index.js';
|
|
5
6
|
import highlight from '../highlight/index.js';
|
|
6
7
|
import icon from '../icon/index.js';
|
|
7
8
|
import overlay from '../overlay/index.js';
|
|
@@ -11,17 +12,17 @@ import { expand as cover, margin, place } from '../../shared/placement.js';
|
|
|
11
12
|
import { viewport } from '../../shared/viewport.js';
|
|
12
13
|
import { morph, px } from './utilities.js';
|
|
13
14
|
import chevron from '@esportsplus/ui/svg/chevron.svg';
|
|
14
|
-
const template_0p4v5175 = template_u1.template(
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
15
|
+
const template_0p4v5175 = template_u1.template(`<!--$--><!--$--><span class='tooltip-menu-label'></span><!--$--><!--$-->`);
|
|
16
|
+
const template_0p4v517c = template_u1.template(`<span class='tooltip-menu-icon'>`, true);
|
|
17
|
+
const template_0p4v517e = template_u1.template(`<span class='tooltip-menu-hint'>`, true);
|
|
18
|
+
const template_0p4v517g = template_u1.template(`<div>`, true);
|
|
19
|
+
const template_0p4v517i = template_u1.template(`<a role='menuitem' tabindex='-1'>`, true);
|
|
20
|
+
const template_0p4v517l = template_u1.template(`<button tabindex='-1' type='button'>`, true);
|
|
21
|
+
const template_0p4v517o = template_u1.template(`<div role='menu'><!--$--><div><!--$-->`, true);
|
|
22
|
+
const template_0p4v517t = template_u1.template(`<div class='tooltip-menu-header'><!--$--><span class='tooltip-menu-title'><span class='tooltip-menu-title-regular'></span><span aria-hidden='true' class='tooltip-menu-title-bold'>`, true);
|
|
23
|
+
const template_0p4v517z = template_u1.template(`<!--$-->`);
|
|
24
|
+
const template_0p4v51713 = template_u1.template(`<!--$--><div popover='manual'>`);
|
|
25
|
+
const template_0p4v51719 = template_u1.template(`<button aria-haspopup='menu' type='button'>`, true);
|
|
25
26
|
class ReactiveObject_0p4v5170 extends reactivity_u0.ReactiveObject {
|
|
26
27
|
#active = this[reactivity_u0.SIGNAL](false);
|
|
27
28
|
constructor() {
|
|
@@ -303,22 +304,24 @@ function createMenu(context = false) {
|
|
|
303
304
|
node.state.render = true;
|
|
304
305
|
}
|
|
305
306
|
function entry(node) {
|
|
306
|
-
let branch = node.children.length > 0, { danger, disabled, hint, icon: glyph, items: _items, label, onselect: _onselect, ...itemAttributes } = node.item, contents = (() => {
|
|
307
|
-
let root_0p4v5174 = template_0p4v5175(), element_0p4v5176 = root_0p4v5174.firstChild, element_0p4v5177 = element_0p4v5176.nextSibling, element_0p4v5178 = element_0p4v5177.nextSibling, element_0p4v5179 = element_0p4v5178.nextSibling;
|
|
308
|
-
template_u1.slot(element_0p4v5176,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
307
|
+
let branch = node.children.length > 0, { checked, danger, disabled, hint, icon: glyph, items: _items, label, onselect: _onselect, ...itemAttributes } = node.item, contents = (() => {
|
|
308
|
+
let root_0p4v5174 = template_0p4v5175(), element_0p4v5176 = root_0p4v5174.firstChild, element_0p4v5177 = element_0p4v5176.nextSibling, element_0p4v5178 = element_0p4v5177.nextSibling, element_0p4v5179 = element_0p4v5178.nextSibling, element_0p4v517a = element_0p4v5179.nextSibling;
|
|
309
|
+
template_u1.slot(element_0p4v5176, checked && checkbox({ 'aria-hidden': 'true', class: 'tooltip-menu-check', inert: true, [checkbox.input]: { checked, tabindex: -1 } }));
|
|
310
|
+
template_u1.slot(element_0p4v5177, glyph && (() => {
|
|
311
|
+
let root_0p4v517b = template_0p4v517c();
|
|
312
|
+
template_u1.slot(root_0p4v517b, glyph(), 1);
|
|
313
|
+
return root_0p4v517b;
|
|
312
314
|
})());
|
|
313
|
-
template_u1.slot(
|
|
314
|
-
template_u1.slot(
|
|
315
|
-
let
|
|
316
|
-
template_u1.slot(
|
|
317
|
-
return
|
|
315
|
+
template_u1.slot(element_0p4v5178, label, 1);
|
|
316
|
+
template_u1.slot(element_0p4v5179, hint && (() => {
|
|
317
|
+
let root_0p4v517d = template_0p4v517e();
|
|
318
|
+
template_u1.slot(root_0p4v517d, hint, 1);
|
|
319
|
+
return root_0p4v517d;
|
|
318
320
|
})());
|
|
319
|
-
template_u1.slot(
|
|
321
|
+
template_u1.slot(element_0p4v517a, branch && icon({ 'aria-hidden': 'true', class: 'tooltip-menu-chevron icon--rotate' }, chevron));
|
|
320
322
|
return root_0p4v5174;
|
|
321
323
|
})(), bindings = {
|
|
324
|
+
'aria-checked': checked && (() => String(checked())),
|
|
322
325
|
'aria-disabled': disabled === true && 'true',
|
|
323
326
|
'aria-expanded': branch && (() => String(node.state.open)),
|
|
324
327
|
'aria-haspopup': branch && 'menu',
|
|
@@ -340,31 +343,32 @@ function createMenu(context = false) {
|
|
|
340
343
|
}
|
|
341
344
|
};
|
|
342
345
|
{
|
|
343
|
-
let
|
|
344
|
-
|
|
345
|
-
let
|
|
346
|
-
template_u1.slot(
|
|
347
|
-
let
|
|
348
|
-
template_u1.setProperties(
|
|
349
|
-
template_u1.setProperties(
|
|
350
|
-
template_u1.setProperties(
|
|
351
|
-
template_u1.setClass(
|
|
352
|
-
template_u1.setStyle(
|
|
353
|
-
return
|
|
346
|
+
let root_0p4v517f = template_0p4v517g();
|
|
347
|
+
root_0p4v517f.appendChild(itemAttributes.href ? (() => {
|
|
348
|
+
let root_0p4v517h = template_0p4v517i();
|
|
349
|
+
template_u1.slot(root_0p4v517h, contents, 1);
|
|
350
|
+
let attributes_0p4v517j = attributes[MENU_ITEM];
|
|
351
|
+
template_u1.setProperties(root_0p4v517h, attributes_0p4v517j, true);
|
|
352
|
+
template_u1.setProperties(root_0p4v517h, itemAttributes);
|
|
353
|
+
template_u1.setProperties(root_0p4v517h, bindings);
|
|
354
|
+
template_u1.setClass(root_0p4v517h, ["tooltip-menu-item", danger && 'tooltip-menu-item--danger', attributes_0p4v517j?.class]);
|
|
355
|
+
template_u1.setStyle(root_0p4v517h, ["", attributes_0p4v517j?.style]);
|
|
356
|
+
return root_0p4v517h;
|
|
354
357
|
})() : (() => {
|
|
355
|
-
let
|
|
356
|
-
template_u1.slot(
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
template_u1.setProperties(
|
|
360
|
-
template_u1.setProperties(
|
|
361
|
-
template_u1.
|
|
362
|
-
template_u1.
|
|
363
|
-
template_u1.
|
|
364
|
-
|
|
358
|
+
let root_0p4v517k = template_0p4v517l();
|
|
359
|
+
template_u1.slot(root_0p4v517k, contents, 1);
|
|
360
|
+
template_u1.setProperty(root_0p4v517k, 'role', checked ? 'menuitemcheckbox' : 'menuitem');
|
|
361
|
+
let attributes_0p4v517m = attributes[MENU_ITEM];
|
|
362
|
+
template_u1.setProperties(root_0p4v517k, attributes_0p4v517m, true);
|
|
363
|
+
template_u1.setProperties(root_0p4v517k, itemAttributes);
|
|
364
|
+
template_u1.setProperties(root_0p4v517k, bindings);
|
|
365
|
+
template_u1.setProperty(root_0p4v517k, 'disabled', disabled === true);
|
|
366
|
+
template_u1.setClass(root_0p4v517k, ["tooltip-menu-item", danger && 'tooltip-menu-item--danger', attributes_0p4v517m?.class]);
|
|
367
|
+
template_u1.setStyle(root_0p4v517k, ["", attributes_0p4v517m?.style]);
|
|
368
|
+
return root_0p4v517k;
|
|
365
369
|
})());
|
|
366
|
-
template_u1.setClass(
|
|
367
|
-
return
|
|
370
|
+
template_u1.setClass(root_0p4v517f, ["tooltip-menu-entry", disabled && '--disabled']);
|
|
371
|
+
return root_0p4v517f;
|
|
368
372
|
}
|
|
369
373
|
}
|
|
370
374
|
function expand(node) {
|
|
@@ -488,53 +492,53 @@ function createMenu(context = false) {
|
|
|
488
492
|
function panel(node) {
|
|
489
493
|
let item = node.item;
|
|
490
494
|
{
|
|
491
|
-
let
|
|
492
|
-
template_u1.slot(
|
|
493
|
-
let
|
|
494
|
-
template_u1.slot(
|
|
495
|
-
let
|
|
496
|
-
template_u1.slot(
|
|
497
|
-
return
|
|
495
|
+
let root_0p4v517n = template_0p4v517o(), element_0p4v517p = root_0p4v517n.firstChild, element_0p4v517q = root_0p4v517n.firstElementChild, element_0p4v517r = element_0p4v517q.firstChild;
|
|
496
|
+
template_u1.slot(element_0p4v517p, item && (() => {
|
|
497
|
+
let root_0p4v517s = template_0p4v517t(), element_0p4v517u = root_0p4v517s.firstChild, element_0p4v517v = root_0p4v517s.firstElementChild.firstElementChild, element_0p4v517w = element_0p4v517v.nextElementSibling;
|
|
498
|
+
template_u1.slot(element_0p4v517u, item.icon && (() => {
|
|
499
|
+
let root_0p4v517x = template_0p4v517c();
|
|
500
|
+
template_u1.slot(root_0p4v517x, item.icon(), 1);
|
|
501
|
+
return root_0p4v517x;
|
|
498
502
|
})());
|
|
499
|
-
template_u1.slot(element_0p4v517u, item.label, 1);
|
|
500
503
|
template_u1.slot(element_0p4v517v, item.label, 1);
|
|
501
|
-
template_u1.slot(
|
|
502
|
-
template_u1.
|
|
503
|
-
|
|
504
|
+
template_u1.slot(element_0p4v517w, item.label, 1);
|
|
505
|
+
template_u1.slot(root_0p4v517s, icon({ 'aria-hidden': 'true', class: 'tooltip-menu-chevron tooltip-menu-chevron--down icon--rotate' }, chevron), 1);
|
|
506
|
+
template_u1.delegate(root_0p4v517s, 'click', pop);
|
|
507
|
+
return root_0p4v517s;
|
|
504
508
|
})());
|
|
505
|
-
template_u1.slot(
|
|
506
|
-
template_u1.slot(
|
|
507
|
-
template_u1.slot(
|
|
508
|
-
let
|
|
509
|
-
new template_u1.EffectSlot(
|
|
510
|
-
return
|
|
509
|
+
template_u1.slot(element_0p4v517r, node.children.map(entry));
|
|
510
|
+
template_u1.slot(element_0p4v517q, highlighted && highlight({ ...(highlighted === true ? {} : highlighted), target: '.tooltip-menu-entry' }), 1);
|
|
511
|
+
template_u1.slot(root_0p4v517n, node.children.map((child) => child.children.length > 0 && (() => {
|
|
512
|
+
let root_0p4v517y = template_0p4v517z(), element_0p4v51710 = root_0p4v517y.firstChild;
|
|
513
|
+
new template_u1.EffectSlot(element_0p4v51710, () => child.state.render && panel(child));
|
|
514
|
+
return root_0p4v517y;
|
|
511
515
|
})()), 1);
|
|
512
|
-
let
|
|
513
|
-
template_u1.setProperties(
|
|
514
|
-
template_u1.setClass(
|
|
515
|
-
template_u1.setStyle(
|
|
516
|
-
template_u1.setProperties(
|
|
517
|
-
template_u1.setProperty(
|
|
518
|
-
template_u1.delegate(
|
|
516
|
+
let attributes_0p4v51711 = scrollbar({ fade: true });
|
|
517
|
+
template_u1.setProperties(element_0p4v517q, attributes_0p4v51711, true);
|
|
518
|
+
template_u1.setClass(element_0p4v517q, ["tooltip-menu-scroller", attributes_0p4v51711?.class]);
|
|
519
|
+
template_u1.setStyle(element_0p4v517q, ["", attributes_0p4v51711?.style]);
|
|
520
|
+
template_u1.setProperties(root_0p4v517n, node === root && attributes[MENU_PANEL]);
|
|
521
|
+
template_u1.setProperty(root_0p4v517n, 'inert', () => node === root ? !state.active : !node.state.open);
|
|
522
|
+
template_u1.delegate(root_0p4v517n, 'click', (event) => {
|
|
519
523
|
if (event.target === node.panel && node !== stack[stack.length - 1]) {
|
|
520
524
|
popTo(node);
|
|
521
525
|
}
|
|
522
526
|
});
|
|
523
|
-
template_u1.onconnect(
|
|
527
|
+
template_u1.onconnect(root_0p4v517n, (element) => {
|
|
524
528
|
node.panel = element;
|
|
525
529
|
});
|
|
526
|
-
template_u1.onfirstpaint(
|
|
530
|
+
template_u1.onfirstpaint(root_0p4v517n, () => {
|
|
527
531
|
if (node !== root && stack.includes(node)) {
|
|
528
532
|
expand(node);
|
|
529
533
|
}
|
|
530
534
|
});
|
|
531
|
-
template_u1.delegate(
|
|
535
|
+
template_u1.delegate(root_0p4v517n, 'mousedown', (event) => {
|
|
532
536
|
let target = event.target;
|
|
533
537
|
if (target === node.panel || target.closest('.tooltip-menu-header')) {
|
|
534
538
|
event.preventDefault();
|
|
535
539
|
}
|
|
536
540
|
});
|
|
537
|
-
template_u1.delegate(
|
|
541
|
+
template_u1.delegate(root_0p4v517n, 'transitionend', (e) => {
|
|
538
542
|
if (e.target !== node.panel) {
|
|
539
543
|
return;
|
|
540
544
|
}
|
|
@@ -550,12 +554,12 @@ function createMenu(context = false) {
|
|
|
550
554
|
node.state.settled = true;
|
|
551
555
|
}
|
|
552
556
|
});
|
|
553
|
-
template_u1.setClass(
|
|
557
|
+
template_u1.setClass(root_0p4v517n, ["tooltip-menu-panel", node === root && expansion && 'tooltip-menu-panel--expand', [
|
|
554
558
|
() => (node === root ? state.active : node.state.open) && '--active',
|
|
555
559
|
() => covered(node) && 'tooltip-menu-panel--covered',
|
|
556
560
|
() => node.state.settled && 'tooltip-menu-panel--settled'
|
|
557
561
|
]]);
|
|
558
|
-
template_u1.setStyle(
|
|
562
|
+
template_u1.setStyle(root_0p4v517n, ["", node === root
|
|
559
563
|
? [attributes[MENU_PANEL]?.style, () => ({
|
|
560
564
|
'--expand-direction': expansion ? placement.direction : undefined,
|
|
561
565
|
'--max-height': px(placement.height),
|
|
@@ -567,7 +571,7 @@ function createMenu(context = false) {
|
|
|
567
571
|
'--max-height': px(node.state.height),
|
|
568
572
|
top: `${node.state.top}px`
|
|
569
573
|
})]);
|
|
570
|
-
return
|
|
574
|
+
return root_0p4v517n;
|
|
571
575
|
}
|
|
572
576
|
}
|
|
573
577
|
function pop() {
|
|
@@ -606,7 +610,9 @@ function createMenu(context = false) {
|
|
|
606
610
|
if (item.disabled) {
|
|
607
611
|
return;
|
|
608
612
|
}
|
|
609
|
-
|
|
613
|
+
if (!item.checked) {
|
|
614
|
+
close(true);
|
|
615
|
+
}
|
|
610
616
|
item.onselect?.(item, event);
|
|
611
617
|
onselect?.(item);
|
|
612
618
|
}
|
|
@@ -639,28 +645,28 @@ function createMenu(context = false) {
|
|
|
639
645
|
}) : undefined
|
|
640
646
|
};
|
|
641
647
|
{
|
|
642
|
-
let
|
|
643
|
-
|
|
644
|
-
let
|
|
645
|
-
template_u1.slot(
|
|
646
|
-
let
|
|
647
|
-
template_u1.setProperties(
|
|
648
|
-
template_u1.setProperties(
|
|
649
|
-
template_u1.delegate(
|
|
650
|
-
template_u1.onconnect(
|
|
651
|
-
template_u1.setClass(
|
|
652
|
-
template_u1.setStyle(
|
|
653
|
-
return
|
|
648
|
+
let root_0p4v51712 = template_0p4v51713(), element_0p4v51714 = root_0p4v51712.firstChild, element_0p4v51715 = element_0p4v51714.nextSibling;
|
|
649
|
+
element_0p4v51714.parentNode.insertBefore(context ? (() => {
|
|
650
|
+
let root_0p4v51716 = template_0p4v517g();
|
|
651
|
+
template_u1.slot(root_0p4v51716, content, 1);
|
|
652
|
+
let attributes_0p4v51717 = attributes;
|
|
653
|
+
template_u1.setProperties(root_0p4v51716, attributes_0p4v51717, true);
|
|
654
|
+
template_u1.setProperties(root_0p4v51716, spanning);
|
|
655
|
+
template_u1.delegate(root_0p4v51716, 'contextmenu', contextmenu);
|
|
656
|
+
template_u1.onconnect(root_0p4v51716, connect);
|
|
657
|
+
template_u1.setClass(root_0p4v51716, ["tooltip-menu-trigger", attributes_0p4v51717?.class]);
|
|
658
|
+
template_u1.setStyle(root_0p4v51716, ["", "anchor-name: " + (name), attributes_0p4v51717?.style]);
|
|
659
|
+
return root_0p4v51716;
|
|
654
660
|
})() : (() => {
|
|
655
|
-
let
|
|
656
|
-
template_u1.slot(
|
|
657
|
-
let
|
|
658
|
-
template_u1.setProperties(
|
|
659
|
-
let
|
|
660
|
-
template_u1.setProperties(
|
|
661
|
-
template_u1.setProperties(
|
|
662
|
-
template_u1.setProperty(
|
|
663
|
-
template_u1.delegate(
|
|
661
|
+
let root_0p4v51718 = template_0p4v51719();
|
|
662
|
+
template_u1.slot(root_0p4v51718, content, 1);
|
|
663
|
+
let attributes_0p4v5171a = attributes;
|
|
664
|
+
template_u1.setProperties(root_0p4v51718, attributes_0p4v5171a, true);
|
|
665
|
+
let attributes_0p4v5171b = attributes[MENU_TRIGGER];
|
|
666
|
+
template_u1.setProperties(root_0p4v51718, attributes_0p4v5171b, true);
|
|
667
|
+
template_u1.setProperties(root_0p4v51718, spanning);
|
|
668
|
+
template_u1.setProperty(root_0p4v51718, 'aria-expanded', () => String(state.active));
|
|
669
|
+
template_u1.delegate(root_0p4v51718, 'click', () => {
|
|
664
670
|
if (state.active || pending) {
|
|
665
671
|
close(false);
|
|
666
672
|
}
|
|
@@ -668,22 +674,22 @@ function createMenu(context = false) {
|
|
|
668
674
|
open();
|
|
669
675
|
}
|
|
670
676
|
});
|
|
671
|
-
template_u1.onconnect(
|
|
672
|
-
template_u1.setClass(
|
|
673
|
-
template_u1.setStyle(
|
|
674
|
-
return
|
|
675
|
-
})(),
|
|
676
|
-
template_u1.slot(
|
|
677
|
-
template_u1.onconnect(
|
|
677
|
+
template_u1.onconnect(root_0p4v51718, connect);
|
|
678
|
+
template_u1.setClass(root_0p4v51718, ["tooltip-menu-trigger", attributes_0p4v5171a?.class, attributes_0p4v5171b?.class]);
|
|
679
|
+
template_u1.setStyle(root_0p4v51718, ["", "anchor-name: " + (name), attributes_0p4v5171a?.style, attributes_0p4v5171b?.style]);
|
|
680
|
+
return root_0p4v51718;
|
|
681
|
+
})(), element_0p4v51714);
|
|
682
|
+
template_u1.slot(element_0p4v51715, panel(root), 1);
|
|
683
|
+
template_u1.onconnect(element_0p4v51715, (element) => {
|
|
678
684
|
layer = element;
|
|
679
685
|
});
|
|
680
|
-
template_u1.onwindow(
|
|
681
|
-
let
|
|
682
|
-
template_u1.setProperties(
|
|
683
|
-
template_u1.setProperties(
|
|
684
|
-
template_u1.setClass(
|
|
685
|
-
template_u1.setStyle(
|
|
686
|
-
return
|
|
686
|
+
template_u1.onwindow(element_0p4v51715, 'resize', () => state.active && arrange());
|
|
687
|
+
let attributes_0p4v5171c = popup;
|
|
688
|
+
template_u1.setProperties(element_0p4v51715, attributes_0p4v5171c, true);
|
|
689
|
+
template_u1.setProperties(element_0p4v51715, spanning);
|
|
690
|
+
template_u1.setClass(element_0p4v51715, ["tooltip tooltip--menu tooltip-menu-layer", context && 'tooltip--context', !animate && 'tooltip--instant', attributes_0p4v5171c?.class]);
|
|
691
|
+
template_u1.setStyle(element_0p4v51715, ["", "position-anchor: " + (name), attributes_0p4v5171c?.style]);
|
|
692
|
+
return root_0p4v51712;
|
|
687
693
|
}
|
|
688
694
|
}, { item: MENU_ITEM, panel: MENU_PANEL, trigger: MENU_TRIGGER });
|
|
689
695
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.tooltip-menu-panel:after,.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{border-radius:inherit;pointer-events:none;position:absolute;inset:0}.tooltip-menu-layer.tooltip,.tooltip-shared{color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.tooltip-menu-label,.tooltip-menu-title{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}}.tooltip-content,.tooltip-message,.tooltip-menu-item,.tooltip-menu-panel,.tooltip-shared{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-item,.--active.tooltip-menu-panel,.--active.tooltip-shared{--background:var(--background-active)}.tooltip-content:not(.--active):is(:hover,.--hover),.tooltip-message:not(.--active):is(:hover,.--hover),.tooltip-menu-item:not(.--active):is(:hover,.--hover),.tooltip-menu-panel:not(.--active):is(:hover,.--hover),.tooltip-shared:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.tooltip-content:not(.--active):is(:active,.--pressed),.tooltip-message:not(.--active):is(:active,.--pressed),.tooltip-menu-item:not(.--active):is(:active,.--pressed),.tooltip-menu-panel:not(.--active):is(:active,.--pressed),.tooltip-shared:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--box-shadow:var(--box-shadow-default);--box-shadow-active:var(--box-shadow-default);--box-shadow-default:none;--box-shadow-hover:var(--box-shadow-default);--box-shadow-pressed:var(--box-shadow-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-panel,.--active.tooltip-shared{--box-shadow:var(--box-shadow-active)}.tooltip-content:not(.--active):is(:hover,.--hover),.tooltip-message:not(.--active):is(:hover,.--hover),.tooltip-menu-panel:not(.--active):is(:hover,.--hover),.tooltip-shared:not(.--active):is(:hover,.--hover){--box-shadow:var(--box-shadow-hover)}.tooltip-content:not(.--active):is(:active,.--pressed),.tooltip-message:not(.--active):is(:active,.--pressed),.tooltip-menu-panel:not(.--active):is(:active,.--pressed),.tooltip-shared:not(.--active):is(:active,.--pressed){--box-shadow:var(--box-shadow-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--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 - .048) c h),oklch(from var(--surface-background-active) min(1, l + .048) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .048) c h),oklch(from var(--surface-background-default) min(1, l + .048) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .048) c h),oklch(from var(--surface-background-hover) min(1, l + .048) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .048) c h),oklch(from var(--surface-background-pressed) min(1, l + .048) 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));--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}@container style(--surface-level:-3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-2;--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))}}@container style(--surface-level:-2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-1;--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))}}@container style(--surface-level:-1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:0;--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))}}@container style(--surface-level:0){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 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 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 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--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))}}@container style(--surface-level:1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 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 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0075),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 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 .25px 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))}}@container style(--surface-level:3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0175),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.tooltip{--safe-color:transparent}.tooltip--menu{--border-radius:var(--border-radius-400);--close-duration:.128s;--close-timing-function:cubic-bezier(.2, 0, 0, 1);--color:var(--color-text-500);--font-size:var(--font-size-300);--offset:var(--size-200);--open-duration:.16s;--open-timing-function:cubic-bezier(.2, 0, 0, 1);--scrim:oklch(from light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .018),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .072)) 0 0 0 / alpha);--viewport-margin:var(--size-100);--width:17rem}.tooltip--menu.tooltip--instant{--close-duration:0s;--open-duration:0s}.tooltip--menu.tooltip--instant.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-content-duration:0s;--expand-duration:0s;--expand-fade-delay:0s;--expand-fade-duration:0s;--expand-stagger:0s}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:60ms;--expand-content-duration:.15s;--expand-content-timing-function:cubic-bezier(.23, 1, .32, 1);--expand-direction:1;--expand-offset:var(--size-100);--expand-shift:calc(var(--expand-offset) * var(--expand-direction) * -1) 0;--expand-stagger:20ms}@media (prefers-reduced-motion:reduce){.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-offset:0px;--expand-stagger:0s}}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>*,.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:first-child{--index:0}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(2){--index:1}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(3){--index:2}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(4){--index:3}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(5){--index:4}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(6){--index:5}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(7){--index:6}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(8){--index:7}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(9){--index:8}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(10){--index:9}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(11){--index:10}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(12){--index:11}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{--expand-fade-delay:0s}.tooltip-arrow{--margin-horizontal:-1px;--rotate:0deg}.tooltip-content,.tooltip-message{--border-radius:var(--border-radius-400);--box-shadow-default:var(--surface-shadow-default);--max-width:calc(90vw - (var(--size-700) * 2));--min-width:auto;--offset:calc(var(--spacer) * 2);--scale:1;--spacer:var(--size-300);--transition-duration:.24s;--transition-timing-function:cubic-bezier(.34, 1.56, .64, 1);--viewport-margin:var(--size-100);--width:auto}.tooltip-content--expand,.tooltip-message--expand{--offset:0px}.tooltip.--active>.tooltip-content--expand,.tooltip.--active :not(.tooltip)>.tooltip-content--expand,.tooltip.--active>.tooltip-message--expand,.tooltip.--active :not(.tooltip)>.tooltip-message--expand{--expand-fade-delay:0s}.tooltip-content--morph,.tooltip-message--morph{--morph-blur:var(--blur-400);--morph-close-duration:.16s;--morph-close-timing-function:cubic-bezier(.16, 1, .3, 1);--morph-focus-timing-function:cubic-bezier(.25, .1, .25, 1);--morph-land:2px;--morph-open-duration:.12s;--morph-open-timing-function:cubic-bezier(.2, 0, 0, 1);--morph-settle-timing-function:cubic-bezier(.4, 0, .2, 1);--morph-shrink-timing-function:cubic-bezier(.3, 0, .2, 1);--offset:0px}.tooltip-content--scale,.tooltip-content--scale-spring,.tooltip-message--scale,.tooltip-message--scale-spring{--offset:var(--spacer);--scale:.88}.tooltip-content--spring,.tooltip-message--spring{--offset:calc(var(--spacer) * 3);--scale:.96}.tooltip-content--expand,.tooltip-message--expand,.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-bleed:24px;--expand-duration:.4s;--expand-fade-delay:calc(var(--expand-duration) / 2);--expand-fade-duration:.15s;--expand-fade-timing-function:linear;--expand-timing-function:linear(0, .072, .22, .382, .529, .651, .747, .82, .874, .913, .94, .96, .973, .982, .988, .992, .995, .997, .998, .999, 1)}@media (prefers-reduced-motion:reduce){.tooltip-content--expand,.tooltip-message--expand,.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-duration:0s;--expand-fade-delay:0s}}.tooltip-menu-chevron.icon{--margin-horizontal:calc(var(--size-100) / 4);--opacity:.6;--rotate:0deg;--size:var(--size-400);--transition-duration:var(--open-duration);--transition-timing-function:var(--open-timing-function)}@media (prefers-reduced-motion:reduce){.tooltip-menu-chevron.icon{--transition-duration:0s}}.tooltip-menu-chevron.icon.tooltip-menu-chevron--down{--rotate:90deg}.tooltip-menu-header,.tooltip-menu-item.tooltip-menu-item{--border-radius:var(--item-border-radius);--gap-horizontal:var(--size-200);--gap-vertical:var(--size-200);--height:var(--item-height);--padding-horizontal:var(--size-200)}.tooltip-menu-hint{--color:var(--color-text-300);--font-size:var(--font-size-300)}.tooltip-menu-item{--background-hover:var(--item-background-hover);--background-pressed:var(--item-background-pressed);--color-danger:var(--color-red-400);--color-disabled:var(--color-text-300);--transition-duration:.13s;--transition-timing-function:linear(0, .0491, .1571, .2846, .4106, .5248, .6231, .7049, .7714, .8243, .866, .8984, .9234, .9425, .957, .9679, .9762, .9824, .987, .9904, .9929, .9948, .9962, .9972, 1)}.tooltip-menu-item:focus-visible{--background:var(--background-hover)}.tooltip-menu-item:disabled,.tooltip-menu-item[aria-disabled=true]{--background-hover:var(--background-default);--background-pressed:var(--background-default)}.tooltip-menu-panel{--background-default:var(--surface-background-default);--box-shadow-default:var(--surface-shadow-default);--inset-horizontal:calc(var(--size-100) / 2);--inset-vertical:calc(var(--size-100) / 2);--item-background-hover:var(--surface-primary-default);--item-background-pressed:var(--surface-primary-pressed);--item-border-radius:var(--border-radius-400);--item-height:36px;--lift:0px;--max-height:none;--title-bold-opacity:0;--title-regular-opacity:1}@media (pointer:coarse){.tooltip-menu-panel{--item-height:44px}}.tooltip-menu-panel>.tooltip-menu-panel{--bleed:48px}.tooltip-menu-panel.--active{--title-bold-opacity:1;--title-regular-opacity:0}.tooltip-menu-scroller{--scrollbar-gutter:auto}.tooltip-menu-scroller>.highlight{--background-default:var(--item-background-hover);--background-pressed:var(--item-background-pressed)}.tooltip-menu-scroller:has(>.highlight)>.tooltip-menu-entry>.tooltip-menu-item{--background-hover:var(--background-default);--background-pressed:var(--background-default)}.tooltip-menu-title-bold{--font-weight:var(--font-weight-600)}:where(.tooltip-menu-trigger){--font-size:var(--font-size-300)}.tooltip-message{--background-default:var(--color-primary-400);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip-shared{--background-default:var(--color-primary-400);--blur:var(--blur-500);--border-radius:var(--border-radius-400);--box-shadow-default:var(--surface-shadow-default);--close-duration:.128s;--close-timing-function:cubic-bezier(.23, 1, .32, 1);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--glide-duration:.4s;--glide-timing-function:cubic-bezier(.22, 1.12, .36, 1);--max-width:calc(90vw - (var(--size-700) * 2));--open-duration:.16s;--open-timing-function:cubic-bezier(.23, 1, .32, 1);--rise:4px;--scale:.94;--spacer:var(--size-300);--viewport-margin:var(--size-100);--white-space:nowrap}@media (prefers-reduced-motion:reduce){.tooltip-shared{--blur:0px;--glide-duration:0s;--rise:0px;--scale:1}}.tooltip-shared--e{--box-translate:calc(var(--rise) * -1) 0}.tooltip-shared--interactive{--white-space:normal}.tooltip-shared--n{--box-translate:0 var(--rise)}.tooltip-shared--s{--box-translate:0 calc(var(--rise) * -1)}.tooltip-shared--w{--box-translate:var(--rise) 0}.tooltip-shared-box{--border-radius:inherit}.tooltip-shared-layer{--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip-shared-layer strong{--color:inherit}.tooltip-menu--surface :is(.tooltip-menu-panel,.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand){--background-default:var(--surface-background-default);--color:var(--color-text-500);--item-background-hover:var(--surface-primary-default);--item-background-pressed:var(--surface-primary-pressed)}.tooltip{cursor:pointer;z-index:0;position:relative}.tooltip--context,.tooltip--menu{cursor:inherit}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));opacity:0;transition:clip-path var(--expand-duration) var(--expand-timing-function), opacity var(--expand-fade-duration) var(--expand-fade-timing-function) var(--expand-fade-delay);z-index:9;background:0 0;overflow:visible}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand:before{background:var(--background);border-radius:var(--morph-radius);box-shadow:var(--box-shadow);content:"";inset:var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left);transition-duration:var(--expand-duration);transition-property:border-radius,inset;transition-timing-function:var(--expand-timing-function);z-index:-1;position:absolute}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:not(.highlight){animation:tooltip-menu-expand-out var(--expand-content-duration) var(--expand-content-timing-function);opacity:0}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{clip-path:inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)));opacity:1}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active:before{border-radius:var(--border-radius);inset:0}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>.tooltip-menu-scroller>:not(.highlight){animation:tooltip-menu-expand-in var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index) * var(--expand-stagger)) backwards;opacity:1}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>.tooltip-menu-scroller>:not(.highlight)>*{animation:tooltip-menu-expand-slide var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index) * var(--expand-stagger)) backwards}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel:not(.tooltip-menu-panel--expand){opacity:0;left:0;top:calc(100% + var(--offset));transition:opacity var(--close-duration) var(--close-timing-function), visibility 0s linear var(--close-duration);visibility:hidden;z-index:9}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel:not(.tooltip-menu-panel--expand).--active{opacity:1;transition:opacity var(--close-duration) var(--close-timing-function);visibility:visible}.tooltip--morphing{filter:url(#tooltip-morph-goo)}.tooltip-arrow{margin-inline:var(--margin-horizontal);rotate:var(--rotate)}.tooltip-content,.tooltip-message{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);max-width:var(--max-width);min-width:var(--min-width);opacity:0;scale:var(--scale);transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function);width:var(--width);z-index:9;position:absolute;overflow:hidden}.tooltip-content:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*),.tooltip-message:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*){transition:none}.tooltip-content--expand,.tooltip-message--expand{clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));transition:clip-path var(--expand-duration) var(--expand-timing-function), opacity var(--expand-fade-duration) var(--expand-fade-timing-function) var(--expand-fade-delay)}.tooltip.--active>.tooltip-content--expand,.tooltip.--active :not(.tooltip)>.tooltip-content--expand,.tooltip.--active>.tooltip-message--expand,.tooltip.--active :not(.tooltip)>.tooltip-message--expand{clip-path:inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)))}.tooltip-content--morph,.tooltip-message--morph{animation:tooltip-morph-close var(--morph-close-duration) linear;box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));filter:blur(var(--morph-blur));opacity:1;transition:filter var(--morph-close-duration) var(--morph-close-timing-function), visibility 0s linear var(--morph-close-duration);visibility:hidden;z-index:-2;background:0 0;overflow:visible}.tooltip-content--morph:before,.tooltip-message--morph:before{background:var(--background);content:"";inset:min(var(--morph-blur) * -3, var(--morph-top) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-right) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-bottom) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-left) - var(--morph-land));z-index:-1;position:absolute}.tooltip.--active>.tooltip-content--morph,.tooltip.--active :not(.tooltip)>.tooltip-content--morph,.tooltip.--active>.tooltip-message--morph,.tooltip.--active :not(.tooltip)>.tooltip-message--morph{clip-path:inset(0 round var(--border-radius));filter:none;transition:clip-path var(--morph-open-duration) var(--morph-open-timing-function), filter var(--morph-open-duration) var(--morph-focus-timing-function);visibility:visible;animation:none}.tooltip-content.--placed,.tooltip-message.--placed{left:var(--place-x);max-height:var(--place-max-height);max-width:min(var(--max-width), var(--place-max-width));top:var(--place-y);transform-origin:var(--place-origin);translate:calc(var(--offset) * var(--place-travel-x) * -1) calc(var(--offset) * var(--place-travel-y) * -1);width:var(--place-width,var(--width))}.tooltip.--active>.tooltip-content.--placed,.tooltip.--active :not(.tooltip)>.tooltip-content.--placed,.tooltip.--active>.tooltip-message.--placed,.tooltip.--active :not(.tooltip)>.tooltip-message.--placed{translate:0}.tooltip-content.--placed:not(.tooltip-content--morph,.tooltip-message--morph),.tooltip-message.--placed:not(.tooltip-content--morph,.tooltip-message--morph){overscroll-behavior:contain;overflow-y:auto}.tooltip.--active>.tooltip-content,.tooltip.--active :not(.tooltip)>.tooltip-content,.tooltip.--active>.tooltip-message,.tooltip.--active :not(.tooltip)>.tooltip-message{opacity:1;scale:1}.tooltip:not(.--active)>.tooltip-content,.tooltip:not(.--active)>.tooltip-content *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content *,.tooltip:not(.--active)>.tooltip-message,.tooltip:not(.--active)>.tooltip-message *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message *{pointer-events:none}.tooltip-menu-chevron.icon{margin-inline:calc(var(--margin-horizontal) - var(--size) / 4);opacity:var(--opacity)}.tooltip-menu-entry:has(>[hidden]){display:none}.tooltip-menu-header,.tooltip-menu-item{border-radius:var(--border-radius);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);min-height:var(--height);padding-inline:var(--padding-horizontal);display:flex}.tooltip-menu-header{cursor:pointer;margin:var(--inset-vertical) var(--inset-horizontal) 0;flex-shrink:0}.tooltip-menu-hint{color:var(--color);font-size:var(--font-size)}.tooltip-menu-icon{flex-shrink:0;display:inline-flex}.tooltip-menu-item{appearance:none;background:var(--background);color:inherit;cursor:pointer;font:inherit;text-align:start;transition:background var(--transition-duration) var(--transition-timing-function);border:0;outline:none;width:100%;text-decoration:none}.tooltip-menu-item.tooltip-menu-item--danger{color:var(--color-danger)}.tooltip-menu-item:disabled,.tooltip-menu-item[aria-disabled=true]{color:var(--color-disabled);cursor:not-allowed}.tooltip-menu-label,.tooltip-menu-title{flex:1;min-width:0}.tooltip-menu-layer.tooltip{height:anchor-size(height);left:anchor(left);top:anchor(top);width:anchor-size(width)}.tooltip-menu-layer.tooltip>.tooltip-menu-panel{pointer-events:auto}.tooltip-menu-panel{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);font-size:var(--font-size);isolation:isolate;max-height:var(--max-height);width:var(--width);flex-direction:column;display:flex;position:absolute}.tooltip-menu-panel:after{background:var(--scrim);content:"";opacity:0;transition:opacity var(--open-duration) var(--open-timing-function);z-index:1}.tooltip-menu-panel>.tooltip-menu-panel{clip-path:inset(calc(var(--inset-vertical) + var(--lift)) var(--inset-horizontal) calc(100% - var(--inset-vertical) - var(--item-height) - var(--lift)) var(--inset-horizontal) round var(--item-border-radius));pointer-events:none;transition:clip-path var(--close-duration) var(--close-timing-function), visibility 0s linear var(--close-duration);visibility:hidden;z-index:2;width:auto;inset-inline:0}@media (prefers-reduced-motion:reduce){.tooltip-menu-panel>.tooltip-menu-panel{transition-duration:0s}}.tooltip-menu-panel>.tooltip-menu-panel.--active{clip-path:inset(calc(var(--bleed) * -1) round calc(var(--border-radius) + var(--bleed)));pointer-events:auto;transition:clip-path var(--open-duration) var(--open-timing-function);visibility:visible}@media (prefers-reduced-motion:reduce){.tooltip-menu-panel>.tooltip-menu-panel.--active{transition-duration:0s}}.tooltip-menu-panel>.tooltip-menu-panel.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip-menu-panel--covered:after{cursor:pointer;opacity:1;pointer-events:auto}.tooltip-menu-scroller{overscroll-behavior:contain;min-height:0;padding:var(--inset-vertical) var(--inset-horizontal);scroll-padding-block:var(--inset-vertical);position:relative}.tooltip-menu-header+.tooltip-menu-scroller{padding-top:0}.tooltip-menu-scroller>.highlight{border-radius:var(--item-border-radius)}.tooltip-menu-title{display:grid}.tooltip-menu-title-bold,.tooltip-menu-title-regular{text-overflow:ellipsis;transition:opacity var(--open-duration) var(--open-timing-function);grid-area:1/1;overflow:hidden}.tooltip-menu-title-bold{font-weight:var(--font-weight);opacity:var(--title-bold-opacity)}.tooltip-menu-title-regular{opacity:var(--title-regular-opacity)}.tooltip-menu-trigger:is(button){cursor:pointer}.tooltip-message{color:var(--color);cursor:auto;font-size:var(--font-size);font-weight:var(--font-weight);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);pointer-events:none;white-space:nowrap}.tooltip-shared{box-sizing:content-box;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);height:var(--shared-height);translate:var(--shared-x) var(--shared-y);width:var(--shared-width);top:0;left:0}.tooltip-shared--e{padding-left:var(--spacer)}.tooltip-shared--n{padding-bottom:var(--spacer)}.tooltip-shared--s{padding-top:var(--spacer)}.tooltip-shared--w{padding-right:var(--spacer)}.tooltip-shared--gliding{transition-duration:var(--glide-duration);transition-property:height,translate,width;transition-timing-function:var(--glide-timing-function)}.tooltip-shared--interactive.--active{pointer-events:auto}.tooltip-shared-box{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);filter:blur(var(--blur));opacity:0;height:100%;scale:var(--scale);transform-origin:var(--shared-origin);transition:filter var(--close-duration) var(--close-timing-function), opacity var(--close-duration) var(--close-timing-function), scale var(--close-duration) var(--close-timing-function), translate var(--close-duration) var(--close-timing-function);translate:var(--box-translate);display:block;position:relative;overflow:hidden}.tooltip-shared.--active>.tooltip-shared-box{filter:none;opacity:1;transition:filter var(--open-duration) var(--open-timing-function), opacity var(--open-duration) var(--open-timing-function), scale var(--open-duration) var(--open-timing-function), translate var(--open-duration) var(--open-timing-function);translate:0;scale:1}.tooltip-shared.tooltip-shared--instant>.tooltip-shared-box{transition:none}.tooltip-shared-layer{max-width:var(--max-width);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);white-space:var(--white-space);width:max-content;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tooltip-shared:not(.tooltip-shared--gliding) .tooltip-shared-layer{transition:none}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{background:inherit;content:"";z-index:-1;display:block}.tooltip.--active:before{background:var(--safe-color);clip-path:var(--safe-area);content:"";height:var(--safe-height);left:var(--safe-left);top:var(--safe-top);width:var(--safe-width);z-index:-3;position:absolute}.tooltip.--active :not(.tooltip) .tooltip-arrow,.tooltip.--active>.tooltip-arrow{scale:-1 1}.tooltip.--active,.tooltip:not(.--active):is(:hover,.--hover){z-index:9}@keyframes tooltip-menu-expand-in{0%{opacity:0}}@keyframes tooltip-menu-expand-out{0%{opacity:1}to{opacity:0}}@keyframes tooltip-menu-expand-slide{0%{translate:var(--expand-shift)}}@keyframes tooltip-morph-close{0%{animation-timing-function:var(--morph-shrink-timing-function);clip-path:inset(0 round var(--border-radius))}55%{clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)))}80%{animation-timing-function:var(--morph-settle-timing-function);clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)))}to{clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius))}}}
|
|
1
|
+
@layer components{.tooltip-menu-panel:after,.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{border-radius:inherit;pointer-events:none;position:absolute;inset:0}.tooltip-menu-layer.tooltip,.tooltip-shared{color:inherit;pointer-events:none;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.tooltip-menu-label,.tooltip-menu-title{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}}.tooltip-content,.tooltip-message,.tooltip-menu-item,.tooltip-menu-panel,.tooltip-shared{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-item,.--active.tooltip-menu-panel,.--active.tooltip-shared{--background:var(--background-active)}.tooltip-content:not(.--active):is(:hover,.--hover),.tooltip-message:not(.--active):is(:hover,.--hover),.tooltip-menu-item:not(.--active):is(:hover,.--hover),.tooltip-menu-panel:not(.--active):is(:hover,.--hover),.tooltip-shared:not(.--active):is(:hover,.--hover){--background:var(--background-hover)}.tooltip-content:not(.--active):is(:active,.--pressed),.tooltip-message:not(.--active):is(:active,.--pressed),.tooltip-menu-item:not(.--active):is(:active,.--pressed),.tooltip-menu-panel:not(.--active):is(:active,.--pressed),.tooltip-shared:not(.--active):is(:active,.--pressed){--background:var(--background-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--box-shadow:var(--box-shadow-default);--box-shadow-active:var(--box-shadow-default);--box-shadow-default:none;--box-shadow-hover:var(--box-shadow-default);--box-shadow-pressed:var(--box-shadow-default)}.--active.tooltip-content,.--active.tooltip-message,.--active.tooltip-menu-panel,.--active.tooltip-shared{--box-shadow:var(--box-shadow-active)}.tooltip-content:not(.--active):is(:hover,.--hover),.tooltip-message:not(.--active):is(:hover,.--hover),.tooltip-menu-panel:not(.--active):is(:hover,.--hover),.tooltip-shared:not(.--active):is(:hover,.--hover){--box-shadow:var(--box-shadow-hover)}.tooltip-content:not(.--active):is(:active,.--pressed),.tooltip-message:not(.--active):is(:active,.--pressed),.tooltip-menu-panel:not(.--active):is(:active,.--pressed),.tooltip-shared:not(.--active):is(:active,.--pressed){--box-shadow:var(--box-shadow-pressed)}.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--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 - .048) c h),oklch(from var(--surface-background-active) min(1, l + .048) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .048) c h),oklch(from var(--surface-background-default) min(1, l + .048) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .048) c h),oklch(from var(--surface-background-hover) min(1, l + .048) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .048) c h),oklch(from var(--surface-background-pressed) min(1, l + .048) 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));--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}@container style(--surface-level:-3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-2;--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))}}@container style(--surface-level:-2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:-1;--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))}}@container style(--surface-level:-1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:0;--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))}}@container style(--surface-level:0){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 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 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 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--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))}}@container style(--surface-level:1){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 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 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0075),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 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 .25px 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))}}@container style(--surface-level:3){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0175),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){.tooltip-content,.tooltip-message,.tooltip-menu-panel,.tooltip-shared{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 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-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.tooltip{--safe-color:transparent}.tooltip--menu{--border-radius:var(--border-radius-400);--close-duration:.128s;--close-timing-function:cubic-bezier(.2, 0, 0, 1);--color:var(--color-text-500);--font-size:var(--font-size-300);--offset:var(--size-200);--open-duration:.16s;--open-timing-function:cubic-bezier(.2, 0, 0, 1);--scrim:oklch(from light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .018),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .072)) 0 0 0 / alpha);--viewport-margin:var(--size-100);--width:17rem}.tooltip--menu.tooltip--instant{--close-duration:0s;--open-duration:0s}.tooltip--menu.tooltip--instant.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-content-duration:0s;--expand-duration:0s;--expand-fade-delay:0s;--expand-fade-duration:0s;--expand-stagger:0s}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:60ms;--expand-content-duration:.15s;--expand-content-timing-function:cubic-bezier(.23, 1, .32, 1);--expand-direction:1;--expand-offset:var(--size-100);--expand-shift:calc(var(--expand-offset) * var(--expand-direction) * -1) 0;--expand-stagger:20ms}@media (prefers-reduced-motion:reduce){.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-content-delay:0s;--expand-offset:0px;--expand-stagger:0s}}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>*,.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:first-child{--index:0}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(2){--index:1}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(3){--index:2}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(4){--index:3}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(5){--index:4}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(6){--index:5}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(7){--index:6}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(8){--index:7}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(9){--index:8}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(10){--index:9}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(11){--index:10}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:nth-child(12){--index:11}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{--expand-fade-delay:0s}.tooltip-arrow{--margin-horizontal:-1px;--rotate:0deg}.tooltip-content,.tooltip-message{--border-radius:var(--border-radius-400);--box-shadow-default:var(--surface-shadow-default);--max-width:calc(90vw - (var(--size-700) * 2));--min-width:auto;--offset:calc(var(--spacer) * 2);--scale:1;--spacer:var(--size-300);--transition-duration:.24s;--transition-timing-function:cubic-bezier(.34, 1.56, .64, 1);--viewport-margin:var(--size-100);--width:auto}.tooltip-content--expand,.tooltip-message--expand{--offset:0px}.tooltip.--active>.tooltip-content--expand,.tooltip.--active :not(.tooltip)>.tooltip-content--expand,.tooltip.--active>.tooltip-message--expand,.tooltip.--active :not(.tooltip)>.tooltip-message--expand{--expand-fade-delay:0s}.tooltip-content--morph,.tooltip-message--morph{--morph-blur:var(--blur-400);--morph-close-duration:.16s;--morph-close-timing-function:cubic-bezier(.16, 1, .3, 1);--morph-focus-timing-function:cubic-bezier(.25, .1, .25, 1);--morph-land:2px;--morph-open-duration:.12s;--morph-open-timing-function:cubic-bezier(.2, 0, 0, 1);--morph-settle-timing-function:cubic-bezier(.4, 0, .2, 1);--morph-shrink-timing-function:cubic-bezier(.3, 0, .2, 1);--offset:0px}.tooltip-content--scale,.tooltip-content--scale-spring,.tooltip-message--scale,.tooltip-message--scale-spring{--offset:var(--spacer);--scale:.88}.tooltip-content--spring,.tooltip-message--spring{--offset:calc(var(--spacer) * 3);--scale:.96}.tooltip-content--expand,.tooltip-message--expand,.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-bleed:24px;--expand-duration:.4s;--expand-fade-delay:calc(var(--expand-duration) / 2);--expand-fade-duration:.15s;--expand-fade-timing-function:linear;--expand-timing-function:linear(0, .072, .22, .382, .529, .651, .747, .82, .874, .913, .94, .96, .973, .982, .988, .992, .995, .997, .998, .999, 1)}@media (prefers-reduced-motion:reduce){.tooltip-content--expand,.tooltip-message--expand,.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{--expand-duration:0s;--expand-fade-delay:0s}}.tooltip-menu-check.checkbox{--background-active:var(--item-check-background);--border-color-active:var(--border-color-default);--indicator-color-default:currentColor;--size:var(--size-400)}.tooltip-menu-chevron.icon{--margin-horizontal:calc(var(--size-100) / 4);--opacity:.6;--rotate:0deg;--size:var(--size-400);--transition-duration:var(--open-duration);--transition-timing-function:var(--open-timing-function)}@media (prefers-reduced-motion:reduce){.tooltip-menu-chevron.icon{--transition-duration:0s}}.tooltip-menu-chevron.icon.tooltip-menu-chevron--down{--rotate:90deg}.tooltip-menu-header,.tooltip-menu-item.tooltip-menu-item{--border-radius:var(--item-border-radius);--gap-horizontal:var(--size-200);--gap-vertical:var(--size-200);--height:var(--item-height);--padding-horizontal:var(--size-200)}.tooltip-menu-hint{--color:var(--color-text-300);--font-size:var(--font-size-300)}.tooltip-menu-item{--background-hover:var(--item-background-hover);--background-pressed:var(--item-background-pressed);--color-danger:var(--color-red-400);--color-disabled:var(--color-text-300);--transition-duration:.13s;--transition-timing-function:linear(0, .0491, .1571, .2846, .4106, .5248, .6231, .7049, .7714, .8243, .866, .8984, .9234, .9425, .957, .9679, .9762, .9824, .987, .9904, .9929, .9948, .9962, .9972, 1)}.tooltip-menu-item:focus-visible{--background:var(--background-hover)}.tooltip-menu-item:disabled,.tooltip-menu-item[aria-disabled=true]{--background-hover:var(--background-default);--background-pressed:var(--background-default)}.tooltip-menu-panel{--background-default:var(--surface-background-default);--box-shadow-default:var(--surface-shadow-default);--inset-horizontal:calc(var(--size-100) / 2);--inset-vertical:calc(var(--size-100) / 2);--item-background-hover:var(--surface-primary-default);--item-background-pressed:var(--surface-primary-pressed);--item-border-radius:var(--border-radius-400);--item-check-background:var(--background-default);--item-height:36px;--lift:0px;--max-height:none;--title-bold-opacity:0;--title-regular-opacity:1}@media (pointer:coarse){.tooltip-menu-panel{--item-height:44px}}.tooltip-menu-panel>.tooltip-menu-panel{--bleed:48px}.tooltip-menu-panel.--active{--title-bold-opacity:1;--title-regular-opacity:0}.tooltip-menu-scroller{--scrollbar-gutter:auto}.tooltip-menu-scroller>.highlight{--background-default:var(--item-background-hover);--background-pressed:var(--item-background-pressed)}.tooltip-menu-scroller:has(>.highlight)>.tooltip-menu-entry>.tooltip-menu-item{--background-hover:var(--background-default);--background-pressed:var(--background-default)}.tooltip-menu-title-bold{--font-weight:var(--font-weight-600)}:where(.tooltip-menu-trigger){--font-size:var(--font-size-300)}.tooltip-message{--background-default:var(--color-primary-400);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip-shared{--background-default:var(--color-primary-400);--blur:var(--blur-500);--border-radius:var(--border-radius-400);--box-shadow-default:var(--surface-shadow-default);--close-duration:.128s;--close-timing-function:cubic-bezier(.23, 1, .32, 1);--color:var(--surface-background-default);--font-size:var(--font-size-300);--font-weight:var(--font-weight-400);--glide-duration:.4s;--glide-timing-function:cubic-bezier(.22, 1.12, .36, 1);--max-width:calc(90vw - (var(--size-700) * 2));--open-duration:.16s;--open-timing-function:cubic-bezier(.23, 1, .32, 1);--rise:4px;--scale:.94;--spacer:var(--size-300);--viewport-margin:var(--size-100);--white-space:nowrap}@media (prefers-reduced-motion:reduce){.tooltip-shared{--blur:0px;--glide-duration:0s;--rise:0px;--scale:1}}.tooltip-shared--e{--box-translate:calc(var(--rise) * -1) 0}.tooltip-shared--interactive{--white-space:normal}.tooltip-shared--n{--box-translate:0 var(--rise)}.tooltip-shared--s{--box-translate:0 calc(var(--rise) * -1)}.tooltip-shared--w{--box-translate:var(--rise) 0}.tooltip-shared-box{--border-radius:inherit}.tooltip-shared-layer{--padding-horizontal:var(--size-300);--padding-vertical:var(--size-300)}.tooltip-shared-layer strong{--color:inherit}.tooltip-menu--surface :is(.tooltip-menu-panel,.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand){--background-default:var(--surface-background-default);--color:var(--color-text-500);--item-background-hover:var(--surface-primary-default);--item-background-pressed:var(--surface-primary-pressed)}.tooltip{cursor:pointer;z-index:0;position:relative}.tooltip--context,.tooltip--menu{cursor:inherit}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand{box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));opacity:0;transition:clip-path var(--expand-duration) var(--expand-timing-function), opacity var(--expand-fade-duration) var(--expand-fade-timing-function) var(--expand-fade-delay);z-index:9;background:0 0;overflow:visible}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand:before{background:var(--background);border-radius:var(--morph-radius);box-shadow:var(--box-shadow);content:"";inset:var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left);transition-duration:var(--expand-duration);transition-property:border-radius,inset;transition-timing-function:var(--expand-timing-function);z-index:-1;position:absolute}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand>.tooltip-menu-scroller>:not(.highlight){animation:tooltip-menu-expand-out var(--expand-content-duration) var(--expand-content-timing-function);opacity:0}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active{clip-path:inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)));opacity:1}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active:before{border-radius:var(--border-radius);inset:0}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>.tooltip-menu-scroller>:not(.highlight){animation:tooltip-menu-expand-in var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index) * var(--expand-stagger)) backwards;opacity:1}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel.tooltip-menu-panel--expand.--active>.tooltip-menu-scroller>:not(.highlight)>*{animation:tooltip-menu-expand-slide var(--expand-content-duration) var(--expand-content-timing-function) calc(var(--expand-content-delay) + var(--index) * var(--expand-stagger)) backwards}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel:not(.tooltip-menu-panel--expand){opacity:0;left:0;top:calc(100% + var(--offset));transition:opacity var(--close-duration) var(--close-timing-function), visibility 0s linear var(--close-duration);visibility:hidden;z-index:9}.tooltip--menu.tooltip-menu-layer>.tooltip-menu-panel:not(.tooltip-menu-panel--expand).--active{opacity:1;transition:opacity var(--close-duration) var(--close-timing-function);visibility:visible}.tooltip--morphing{filter:url(#tooltip-morph-goo)}.tooltip-arrow{margin-inline:var(--margin-horizontal);rotate:var(--rotate)}.tooltip-content,.tooltip-message{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);max-width:var(--max-width);min-width:var(--min-width);opacity:0;scale:var(--scale);transition:opacity var(--transition-duration) var(--transition-timing-function), scale var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function);width:var(--width);z-index:9;position:absolute;overflow:hidden}.tooltip-content:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*),.tooltip-message:where(.tooltip.tooltip--instant>*,.tooltip.tooltip--instant :not(.tooltip)>*){transition:none}.tooltip-content--expand,.tooltip-message--expand{clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));transition:clip-path var(--expand-duration) var(--expand-timing-function), opacity var(--expand-fade-duration) var(--expand-fade-timing-function) var(--expand-fade-delay)}.tooltip.--active>.tooltip-content--expand,.tooltip.--active :not(.tooltip)>.tooltip-content--expand,.tooltip.--active>.tooltip-message--expand,.tooltip.--active :not(.tooltip)>.tooltip-message--expand{clip-path:inset(calc(var(--expand-bleed) * -1) round calc(var(--border-radius) + var(--expand-bleed)))}.tooltip-content--morph,.tooltip-message--morph{animation:tooltip-morph-close var(--morph-close-duration) linear;box-shadow:none;clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius));filter:blur(var(--morph-blur));opacity:1;transition:filter var(--morph-close-duration) var(--morph-close-timing-function), visibility 0s linear var(--morph-close-duration);visibility:hidden;z-index:-2;background:0 0;overflow:visible}.tooltip-content--morph:before,.tooltip-message--morph:before{background:var(--background);content:"";inset:min(var(--morph-blur) * -3, var(--morph-top) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-right) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-bottom) - var(--morph-land)) min(var(--morph-blur) * -3, var(--morph-left) - var(--morph-land));z-index:-1;position:absolute}.tooltip.--active>.tooltip-content--morph,.tooltip.--active :not(.tooltip)>.tooltip-content--morph,.tooltip.--active>.tooltip-message--morph,.tooltip.--active :not(.tooltip)>.tooltip-message--morph{clip-path:inset(0 round var(--border-radius));filter:none;transition:clip-path var(--morph-open-duration) var(--morph-open-timing-function), filter var(--morph-open-duration) var(--morph-focus-timing-function);visibility:visible;animation:none}.tooltip-content.--placed,.tooltip-message.--placed{left:var(--place-x);max-height:var(--place-max-height);max-width:min(var(--max-width), var(--place-max-width));top:var(--place-y);transform-origin:var(--place-origin);translate:calc(var(--offset) * var(--place-travel-x) * -1) calc(var(--offset) * var(--place-travel-y) * -1);width:var(--place-width,var(--width))}.tooltip.--active>.tooltip-content.--placed,.tooltip.--active :not(.tooltip)>.tooltip-content.--placed,.tooltip.--active>.tooltip-message.--placed,.tooltip.--active :not(.tooltip)>.tooltip-message.--placed{translate:0}.tooltip-content.--placed:not(.tooltip-content--morph,.tooltip-message--morph),.tooltip-message.--placed:not(.tooltip-content--morph,.tooltip-message--morph){overscroll-behavior:contain;overflow-y:auto}.tooltip.--active>.tooltip-content,.tooltip.--active :not(.tooltip)>.tooltip-content,.tooltip.--active>.tooltip-message,.tooltip.--active :not(.tooltip)>.tooltip-message{opacity:1;scale:1}.tooltip:not(.--active)>.tooltip-content,.tooltip:not(.--active)>.tooltip-content *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content,.tooltip:not(.--active) :not(.tooltip)>.tooltip-content *,.tooltip:not(.--active)>.tooltip-message,.tooltip:not(.--active)>.tooltip-message *,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message,.tooltip:not(.--active) :not(.tooltip)>.tooltip-message *{pointer-events:none}.tooltip-menu-chevron.icon{margin-inline:calc(var(--margin-horizontal) - var(--size) / 4);opacity:var(--opacity)}.tooltip-menu-entry:has(>[hidden]){display:none}.tooltip-menu-header,.tooltip-menu-item{border-radius:var(--border-radius);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);min-height:var(--height);padding-inline:var(--padding-horizontal);display:flex}.tooltip-menu-header{cursor:pointer;margin:var(--inset-vertical) var(--inset-horizontal) 0;flex-shrink:0}.tooltip-menu-hint{color:var(--color);font-size:var(--font-size)}.tooltip-menu-icon{flex-shrink:0;display:inline-flex}.tooltip-menu-item{appearance:none;background:var(--background);color:inherit;cursor:pointer;font:inherit;text-align:start;transition:background var(--transition-duration) var(--transition-timing-function);border:0;outline:none;width:100%;text-decoration:none}.tooltip-menu-item.tooltip-menu-item--danger{color:var(--color-danger)}.tooltip-menu-item:disabled,.tooltip-menu-item[aria-disabled=true]{color:var(--color-disabled);cursor:not-allowed}.tooltip-menu-label,.tooltip-menu-title{flex:1;min-width:0}.tooltip-menu-layer.tooltip{height:anchor-size(height);left:anchor(left);top:anchor(top);width:anchor-size(width)}.tooltip-menu-layer.tooltip>.tooltip-menu-panel{pointer-events:auto}.tooltip-menu-panel{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);color:var(--color);font-size:var(--font-size);isolation:isolate;max-height:var(--max-height);width:var(--width);flex-direction:column;display:flex;position:absolute}.tooltip-menu-panel:after{background:var(--scrim);content:"";opacity:0;transition:opacity var(--open-duration) var(--open-timing-function);z-index:1}.tooltip-menu-panel>.tooltip-menu-panel{clip-path:inset(calc(var(--inset-vertical) + var(--lift)) var(--inset-horizontal) calc(100% - var(--inset-vertical) - var(--item-height) - var(--lift)) var(--inset-horizontal) round var(--item-border-radius));pointer-events:none;transition:clip-path var(--close-duration) var(--close-timing-function), visibility 0s linear var(--close-duration);visibility:hidden;z-index:2;width:auto;inset-inline:0}@media (prefers-reduced-motion:reduce){.tooltip-menu-panel>.tooltip-menu-panel{transition-duration:0s}}.tooltip-menu-panel>.tooltip-menu-panel.--active{clip-path:inset(calc(var(--bleed) * -1) round calc(var(--border-radius) + var(--bleed)));pointer-events:auto;transition:clip-path var(--open-duration) var(--open-timing-function);visibility:visible}@media (prefers-reduced-motion:reduce){.tooltip-menu-panel>.tooltip-menu-panel.--active{transition-duration:0s}}.tooltip-menu-panel>.tooltip-menu-panel.--active.tooltip-menu-panel--settled{clip-path:none}.tooltip-menu-panel--covered:after{cursor:pointer;opacity:1;pointer-events:auto}.tooltip-menu-scroller{overscroll-behavior:contain;min-height:0;padding:var(--inset-vertical) var(--inset-horizontal);scroll-padding-block:var(--inset-vertical);position:relative}.tooltip-menu-header+.tooltip-menu-scroller{padding-top:0}.tooltip-menu-scroller>.highlight{border-radius:var(--item-border-radius)}.tooltip-menu-title{display:grid}.tooltip-menu-title-bold,.tooltip-menu-title-regular{text-overflow:ellipsis;transition:opacity var(--open-duration) var(--open-timing-function);grid-area:1/1;overflow:hidden}.tooltip-menu-title-bold{font-weight:var(--font-weight);opacity:var(--title-bold-opacity)}.tooltip-menu-title-regular{opacity:var(--title-regular-opacity)}.tooltip-menu-trigger:is(button){cursor:pointer}.tooltip-message{color:var(--color);cursor:auto;font-size:var(--font-size);font-weight:var(--font-weight);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);pointer-events:none;white-space:nowrap}.tooltip-shared{box-sizing:content-box;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);height:var(--shared-height);translate:var(--shared-x) var(--shared-y);width:var(--shared-width);top:0;left:0}.tooltip-shared--e{padding-left:var(--spacer)}.tooltip-shared--n{padding-bottom:var(--spacer)}.tooltip-shared--s{padding-top:var(--spacer)}.tooltip-shared--w{padding-right:var(--spacer)}.tooltip-shared--gliding{transition-duration:var(--glide-duration);transition-property:height,translate,width;transition-timing-function:var(--glide-timing-function)}.tooltip-shared--interactive.--active{pointer-events:auto}.tooltip-shared-box{background:var(--background);border-radius:var(--border-radius);box-shadow:var(--box-shadow);filter:blur(var(--blur));opacity:0;height:100%;scale:var(--scale);transform-origin:var(--shared-origin);transition:filter var(--close-duration) var(--close-timing-function), opacity var(--close-duration) var(--close-timing-function), scale var(--close-duration) var(--close-timing-function), translate var(--close-duration) var(--close-timing-function);translate:var(--box-translate);display:block;position:relative;overflow:hidden}.tooltip-shared.--active>.tooltip-shared-box{filter:none;opacity:1;transition:filter var(--open-duration) var(--open-timing-function), opacity var(--open-duration) var(--open-timing-function), scale var(--open-duration) var(--open-timing-function), translate var(--open-duration) var(--open-timing-function);translate:0;scale:1}.tooltip-shared.tooltip-shared--instant>.tooltip-shared-box{transition:none}.tooltip-shared-layer{max-width:var(--max-width);padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);white-space:var(--white-space);width:max-content;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tooltip-shared:not(.tooltip-shared--gliding) .tooltip-shared-layer{transition:none}.tooltip:has(>.tooltip-content--morph,>.tooltip-message--morph,>:not(.tooltip)>.tooltip-content--morph,>:not(.tooltip)>.tooltip-message--morph):after{background:inherit;content:"";z-index:-1;display:block}.tooltip.--active:before{background:var(--safe-color);clip-path:var(--safe-area);content:"";height:var(--safe-height);left:var(--safe-left);top:var(--safe-top);width:var(--safe-width);z-index:-3;position:absolute}.tooltip.--active :not(.tooltip) .tooltip-arrow,.tooltip.--active>.tooltip-arrow{scale:-1 1}.tooltip.--active,.tooltip:not(.--active):is(:hover,.--hover){z-index:9}@keyframes tooltip-menu-expand-in{0%{opacity:0}}@keyframes tooltip-menu-expand-out{0%{opacity:1}to{opacity:0}}@keyframes tooltip-menu-expand-slide{0%{translate:var(--expand-shift)}}@keyframes tooltip-morph-close{0%{animation-timing-function:var(--morph-shrink-timing-function);clip-path:inset(0 round var(--border-radius))}55%{clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)))}80%{animation-timing-function:var(--morph-settle-timing-function);clip-path:inset(calc(var(--morph-top) - var(--morph-land)) calc(var(--morph-right) - var(--morph-land)) calc(var(--morph-bottom) - var(--morph-land)) calc(var(--morph-left) - var(--morph-land)) round calc(var(--morph-radius) + var(--morph-land)))}to{clip-path:inset(var(--morph-top) var(--morph-right) var(--morph-bottom) var(--morph-left) round var(--morph-radius))}}}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -137,7 +137,7 @@ function tab(context: Context, live: Live, surface: Surface, attributes: Attribu
|
|
|
137
137
|
void context.state.close(surface.id);
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
|
-
onclick: () => context.state.activate(surface.id),
|
|
140
|
+
onclick: () => context.state.activate(surface.id, false),
|
|
141
141
|
oncontextmenu: (e: MouseEvent) => context.menu(e, group.id, surface.id),
|
|
142
142
|
onkeydown: (e: KeyboardEvent) => {
|
|
143
143
|
if (e.key === 'Delete') {
|
|
@@ -146,7 +146,7 @@ function tab(context: Context, live: Live, surface: Surface, attributes: Attribu
|
|
|
146
146
|
}
|
|
147
147
|
else if (e.key === 'Enter' || e.key === ' ') {
|
|
148
148
|
e.preventDefault();
|
|
149
|
-
context.state.activate(surface.id);
|
|
149
|
+
context.state.activate(surface.id, false);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
// A middle press would start autoscroll before the auxclick closes the tab.
|
|
@@ -284,7 +284,8 @@ const shell = component(
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
// Added from a group's own strip or launcher, the group is already on screen.
|
|
288
|
+
state.open({ id, kind }, group, group === undefined);
|
|
288
289
|
},
|
|
289
290
|
addable: Object.entries(catalog).filter(([, entry]) => entry.addable !== false),
|
|
290
291
|
adding: (group: string) => added.active && subject.group === group,
|
|
@@ -522,7 +522,9 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
return {
|
|
525
|
-
|
|
525
|
+
// Opens the surface's sidebar too, unless 'reveal' is false: a tab pressed in a sidebar is already on screen,
|
|
526
|
+
// peeking or not, so it leaves the sidebar's open setting as the user set it.
|
|
527
|
+
activate(surface: string, reveal = true) {
|
|
526
528
|
update((current) => {
|
|
527
529
|
let group = findSurfaceGroup(current.root, surface);
|
|
528
530
|
|
|
@@ -531,7 +533,7 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options
|
|
|
531
533
|
}
|
|
532
534
|
|
|
533
535
|
return {
|
|
534
|
-
...visible(group, current),
|
|
536
|
+
...(reveal ? visible(group, current) : current),
|
|
535
537
|
active: group.id,
|
|
536
538
|
root: updateGroup(current.root, group.id, (entry) => ({ ...entry, active: surface }))
|
|
537
539
|
};
|
|
@@ -706,7 +708,8 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options
|
|
|
706
708
|
});
|
|
707
709
|
},
|
|
708
710
|
|
|
709
|
-
// Into the group at 'index' among its tabs, or at the end; within its own group it reorders.
|
|
711
|
+
// Into the group at 'index' among its tabs, or at the end; within its own group it reorders. Only a move into
|
|
712
|
+
// another dock opens it: one within a dock happens where it already shows, peeking or not.
|
|
710
713
|
move(surface: string, group: string, index?: number) {
|
|
711
714
|
structural((current) => {
|
|
712
715
|
let source = findSurfaceGroup(current.root, surface),
|
|
@@ -725,7 +728,7 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options
|
|
|
725
728
|
let root = source.id === target.id ? current.root : take(current.root, source, surface);
|
|
726
729
|
|
|
727
730
|
return {
|
|
728
|
-
...visible(target, current),
|
|
731
|
+
...(source.placement === target.placement ? current : visible(target, current)),
|
|
729
732
|
active: target.id,
|
|
730
733
|
root: updateGroup(root, target.id, (entry) => {
|
|
731
734
|
let surfaces = entry.surfaces.filter((other) => other.id !== surface);
|
|
@@ -740,14 +743,15 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options
|
|
|
740
743
|
|
|
741
744
|
// Shows the surface, wherever it already is, or adds it to 'group', the focused group or a new one. A surface
|
|
742
745
|
// open elsewhere moves into the given group, if its area shares with the group's; otherwise it shows where it is.
|
|
743
|
-
|
|
746
|
+
// Opens the sidebar it lands in, unless 'reveal' is false, as for an add made from a group already on screen.
|
|
747
|
+
open(surface: Surface, group?: string, reveal = true) {
|
|
744
748
|
structural((current) => {
|
|
745
749
|
let existing = findSurfaceGroup(current.root, surface.id),
|
|
746
750
|
target = group ? findGroup(current.root, group) : null;
|
|
747
751
|
|
|
748
752
|
if (existing && (!target || existing.id === target.id || !shared(existing, target.placement))) {
|
|
749
753
|
return {
|
|
750
|
-
...visible(existing, current),
|
|
754
|
+
...(reveal ? visible(existing, current) : current),
|
|
751
755
|
active: existing.id,
|
|
752
756
|
root: updateGroup(current.root, existing.id, (entry) => ({ ...entry, active: surface.id }))
|
|
753
757
|
};
|
|
@@ -772,7 +776,7 @@ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options
|
|
|
772
776
|
let root = existing ? take(current.root, existing, surface.id) : current.root;
|
|
773
777
|
|
|
774
778
|
return {
|
|
775
|
-
...visible(target, current),
|
|
779
|
+
...(reveal ? visible(target, current) : current),
|
|
776
780
|
active: target.id,
|
|
777
781
|
root: updateGroup(root, target.id, (entry) => ({ ...entry, active: surface.id, surfaces: [...entry.surfaces, surface] }))
|
|
778
782
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { flush, onCleanup, reactive } from '@esportsplus/reactivity';
|
|
2
2
|
import { component, html, type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
|
+
import checkbox from '~/components/checkbox';
|
|
3
4
|
import highlight, { type A as HighlightAttributes } from '~/components/highlight';
|
|
4
5
|
import icon from '~/components/icon';
|
|
5
6
|
import overlay from '~/components/overlay';
|
|
@@ -41,6 +42,9 @@ type Controller = {
|
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
type Item = {
|
|
45
|
+
// A checkable item, led by a checkbox showing whether 'checked' holds; choosing it leaves the menu open, so several
|
|
46
|
+
// can be toggled in one visit.
|
|
47
|
+
checked?: () => boolean;
|
|
44
48
|
danger?: boolean;
|
|
45
49
|
disabled?: boolean;
|
|
46
50
|
hidden?: Attributes['hidden'];
|
|
@@ -286,14 +290,16 @@ function createMenu(context = false) {
|
|
|
286
290
|
|
|
287
291
|
function entry(node: MenuNode): Renderable<unknown> {
|
|
288
292
|
let branch = node.children.length > 0,
|
|
289
|
-
{ danger, disabled, hint, icon: glyph, items: _items, label, onselect: _onselect, ...itemAttributes } = node.item!,
|
|
293
|
+
{ checked, danger, disabled, hint, icon: glyph, items: _items, label, onselect: _onselect, ...itemAttributes } = node.item!,
|
|
290
294
|
contents = html`
|
|
295
|
+
${checked && checkbox({ 'aria-hidden': 'true', class: 'tooltip-menu-check', inert: true, [checkbox.input]: { checked, tabindex: -1 } })}
|
|
291
296
|
${glyph && html`<span class='tooltip-menu-icon'>${glyph()}</span>`}
|
|
292
297
|
<span class='tooltip-menu-label'>${label}</span>
|
|
293
298
|
${hint && html`<span class='tooltip-menu-hint'>${hint}</span>`}
|
|
294
299
|
${branch && icon({ 'aria-hidden': 'true', class: 'tooltip-menu-chevron icon--rotate' }, chevron)}
|
|
295
300
|
`,
|
|
296
301
|
bindings = {
|
|
302
|
+
'aria-checked': checked && (() => String(checked())),
|
|
297
303
|
'aria-disabled': disabled === true && 'true',
|
|
298
304
|
'aria-expanded': branch && (() => String(node.state.open)),
|
|
299
305
|
'aria-haspopup': branch && 'menu',
|
|
@@ -327,7 +333,7 @@ function createMenu(context = false) {
|
|
|
327
333
|
${bindings}
|
|
328
334
|
>${contents}</a>` : html`<button
|
|
329
335
|
class='tooltip-menu-item ${danger && 'tooltip-menu-item--danger'}'
|
|
330
|
-
role='menuitem'
|
|
336
|
+
role='${checked ? 'menuitemcheckbox' : 'menuitem'}'
|
|
331
337
|
tabindex='-1'
|
|
332
338
|
type='button'
|
|
333
339
|
${attributes[MENU_ITEM]}
|
|
@@ -643,7 +649,10 @@ function createMenu(context = false) {
|
|
|
643
649
|
return;
|
|
644
650
|
}
|
|
645
651
|
|
|
646
|
-
|
|
652
|
+
if (!item.checked) {
|
|
653
|
+
close(true);
|
|
654
|
+
}
|
|
655
|
+
|
|
647
656
|
item.onselect?.(item, event);
|
|
648
657
|
onselect?.(item);
|
|
649
658
|
}
|
|
@@ -156,6 +156,16 @@
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
&-menu {
|
|
159
|
+
// A checkable item's checkbox, checked in the panel's own fill rather than an accent: its border stays and its
|
|
160
|
+
// check takes the item's text colour. Chained through '.checkbox' so these win over its own regardless of
|
|
161
|
+
// stylesheet order.
|
|
162
|
+
&-check.checkbox {
|
|
163
|
+
--background-active: var(--item-check-background);
|
|
164
|
+
--border-color-active: var(--border-color-default);
|
|
165
|
+
--indicator-color-default: currentColor;
|
|
166
|
+
--size: var(--size-400);
|
|
167
|
+
}
|
|
168
|
+
|
|
159
169
|
// Qualified past '.icon' and '.icon--rotate', which set the same properties.
|
|
160
170
|
&-chevron.icon {
|
|
161
171
|
--margin-horizontal: calc(var(--size-100) / 4);
|
|
@@ -226,6 +236,8 @@
|
|
|
226
236
|
--item-background-hover: var(--surface-primary-default);
|
|
227
237
|
--item-background-pressed: var(--surface-primary-pressed);
|
|
228
238
|
--item-border-radius: var(--border-radius-400);
|
|
239
|
+
// Resolved here, as the checkbox steps its own surface: a checked box takes the panel's fill.
|
|
240
|
+
--item-check-background: var(--background-default);
|
|
229
241
|
--item-height: 36px;
|
|
230
242
|
// Written by 'tooltip.menu': how far a sub-panel rises above its row, and the height a panel scrolls past,
|
|
231
243
|
// each to stay on screen.
|