@bigpixelrocket/uiok 0.5.0 → 0.6.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/CHANGELOG.md +36 -1
- package/dist/button/TextLink.d.ts +9 -2
- package/dist/button/TextLink.js +4 -3
- package/dist/button/button.css +7 -0
- package/dist/dialog/SectionedDialog.d.ts +37 -0
- package/dist/dialog/SectionedDialog.js +157 -0
- package/dist/dialog/dialog.css +102 -0
- package/dist/dialog/index.d.ts +4 -2
- package/dist/dialog/index.js +4 -2
- package/dist/frame/AppRoot.d.ts +1 -1
- package/dist/frame/AppRoot.js +2 -1
- package/dist/frame/Dock.d.ts +1 -1
- package/dist/frame/Dock.js +2 -1
- package/dist/frame/FilterChips.d.ts +5 -2
- package/dist/frame/FilterChips.js +35 -2
- package/dist/frame/FilterChips.logic.d.ts +24 -0
- package/dist/frame/FilterChips.logic.js +34 -0
- package/dist/frame/PageParts.d.ts +4 -3
- package/dist/frame/PageParts.js +10 -3
- package/dist/frame/SideBySide.d.ts +32 -0
- package/dist/frame/SideBySide.js +50 -0
- package/dist/frame/Tree.d.ts +1 -1
- package/dist/frame/Tree.js +3 -2
- package/dist/frame/WindowFrame.d.ts +1 -1
- package/dist/frame/WindowFrame.js +2 -1
- package/dist/frame/frame.css +48 -1
- package/dist/frame/index.d.ts +4 -2
- package/dist/frame/index.js +4 -2
- package/dist/grid/grid.css +1 -0
- package/dist/keyboard/Keyboard.logic.js +20 -3
- package/dist/keychord/KeyChord.d.ts +17 -1
- package/dist/keychord/KeyChord.js +16 -1
- package/dist/keychord/ShortcutIndex.d.ts +49 -0
- package/dist/keychord/ShortcutIndex.js +28 -0
- package/dist/keychord/index.d.ts +8 -2
- package/dist/keychord/index.js +8 -2
- package/dist/keychord/keychord.css +101 -0
- package/dist/labels/dialog.d.ts +2 -0
- package/dist/labels/dialog.js +2 -1
- package/dist/labels/keys.d.ts +5 -0
- package/dist/labels/keys.js +2 -1
- package/dist/listing/Listing.d.ts +36 -4
- package/dist/listing/Listing.js +21 -6
- package/dist/listing/PaneMessage.d.ts +7 -4
- package/dist/listing/PaneMessage.js +11 -4
- package/dist/listing/index.d.ts +1 -1
- package/dist/listing/listing.css +84 -4
- package/dist/menu/Menu.d.ts +52 -8
- package/dist/menu/Menu.js +288 -80
- package/dist/menu/Menu.logic.d.ts +39 -12
- package/dist/menu/Menu.logic.js +36 -8
- package/dist/menu/index.d.ts +4 -3
- package/dist/menu/index.js +2 -1
- package/dist/menu/menu.css +6 -0
- package/dist/palette/PaletteRows.d.ts +11 -2
- package/dist/palette/PaletteRows.js +6 -4
- package/dist/pane/Pane.d.ts +42 -6
- package/dist/pane/Pane.js +92 -5
- package/dist/pane/PaneKeys.d.ts +5 -1
- package/dist/pane/PaneKeys.js +28 -3
- package/dist/pane/PaneKeys.logic.d.ts +25 -0
- package/dist/pane/PaneKeys.logic.js +30 -0
- package/dist/pane/index.d.ts +1 -1
- package/dist/pane/index.js +1 -1
- package/dist/pane/usePaneKeys.d.ts +8 -1
- package/dist/pane/usePaneKeys.js +32 -12
- package/dist/styles.css +17 -3
- package/dist/surface/FactList.d.ts +54 -0
- package/dist/surface/FactList.js +33 -0
- package/dist/surface/index.d.ts +4 -1
- package/dist/surface/index.js +4 -1
- package/dist/surface/surface.css +75 -2
- package/dist/terminal/ghostty/core.d.ts +12 -4
- package/dist/terminal/ghostty/core.js +12 -4
- package/dist/terminal/index.d.ts +4 -2
- package/dist/terminal/index.js +4 -2
- package/dist/text/Code.d.ts +15 -0
- package/dist/text/Code.js +12 -0
- package/dist/text/index.d.ts +6 -1
- package/dist/text/index.js +6 -1
- package/dist/text/text.css +21 -0
- package/dist/themes/tokens.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* A headed list of facts on a page (what a process runs, how it restarts),
|
|
5
|
+
* one name and value a line: the names in a column of their own in the
|
|
6
|
+
* dim interface face, each value beside its name in the code face. A long
|
|
7
|
+
* value wraps whole as a block beside its name, its next lines under its
|
|
8
|
+
* first, and never runs under the name or breaks the line's alignment. For
|
|
9
|
+
* facts read at a glance, set straight on the page (no card); a short table
|
|
10
|
+
* with a state each is a `FactTable`, and a list the keys move through is a
|
|
11
|
+
* `Listing`. Put several side by side in `FactColumns`. Draws
|
|
12
|
+
* `section.fact-list` with its `dl.fact-list-items`.
|
|
13
|
+
*/
|
|
14
|
+
export function FactList({ title, label, children }) {
|
|
15
|
+
const headingId = useId();
|
|
16
|
+
const named = title === undefined ? {} : { 'aria-labelledby': headingId };
|
|
17
|
+
return (_jsxs("section", { "aria-label": label, className: "fact-list", ...(label === undefined ? named : {}), children: [title === undefined ? null : (_jsx("h3", { className: "fact-list-title overline", id: headingId, children: title })), _jsx("dl", { className: "fact-list-items", children: children })] }));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* One fact of a `FactList`: its name, then its value beside it, which wraps
|
|
21
|
+
* as a block however long it is. The words can be swept and copied.
|
|
22
|
+
*/
|
|
23
|
+
export function Fact({ name, children, tone, printed = false }) {
|
|
24
|
+
return (_jsxs("div", { className: "fact-list-item", "data-tone": tone, children: [_jsx("dt", { className: "fact-list-name", children: name }), _jsx("dd", { className: printed ? 'fact-list-value printed' : 'fact-list-value', children: children })] }));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Fact lists side by side: as many columns of one width as the page has
|
|
28
|
+
* room for (three on a wide page), the lists flowing across and then down,
|
|
29
|
+
* so the lists of a row start on one line. Draws `.fact-columns`.
|
|
30
|
+
*/
|
|
31
|
+
export function FactColumns({ children }) {
|
|
32
|
+
return _jsx("div", { className: "fact-columns", children: children });
|
|
33
|
+
}
|
package/dist/surface/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Surfaces: `Notice`, an application's status line in a tone; `Card`, a
|
|
3
3
|
* lifted panel for one subject's lines; `FactTable` of `FactRow`s, a page's
|
|
4
|
-
* short table of facts with a state glyph each; `
|
|
4
|
+
* short table of facts with a state glyph each; `FactList` of `Fact`s, a
|
|
5
|
+
* headed list of facts whose long values wrap whole, set side by side in
|
|
6
|
+
* `FactColumns`; `GroupSwatch`, a group's
|
|
5
7
|
* colour beside its name; and `Tag`, a small worded tag in a tone.
|
|
6
8
|
*/
|
|
7
9
|
export { Card, type CardProps } from './Card.js';
|
|
10
|
+
export { Fact, FactColumns, FactList, type FactColumnsProps, type FactListProps, type FactProps, type FactValueTone } from './FactList.js';
|
|
8
11
|
export { FactRow, FactTable, type FactRowProps, type FactTableProps, type FactTone } from './FactTable.js';
|
|
9
12
|
export { Notice, type NoticeProps, type NoticeTone } from './Notice.js';
|
|
10
13
|
export { GroupSwatch, type GroupSwatchProps } from './GroupSwatch.js';
|
package/dist/surface/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Surfaces: `Notice`, an application's status line in a tone; `Card`, a
|
|
3
3
|
* lifted panel for one subject's lines; `FactTable` of `FactRow`s, a page's
|
|
4
|
-
* short table of facts with a state glyph each; `
|
|
4
|
+
* short table of facts with a state glyph each; `FactList` of `Fact`s, a
|
|
5
|
+
* headed list of facts whose long values wrap whole, set side by side in
|
|
6
|
+
* `FactColumns`; `GroupSwatch`, a group's
|
|
5
7
|
* colour beside its name; and `Tag`, a small worded tag in a tone.
|
|
6
8
|
*/
|
|
7
9
|
export { Card } from './Card.js';
|
|
10
|
+
export { Fact, FactColumns, FactList } from './FactList.js';
|
|
8
11
|
export { FactRow, FactTable } from './FactTable.js';
|
|
9
12
|
export { Notice } from './Notice.js';
|
|
10
13
|
export { GroupSwatch } from './GroupSwatch.js';
|
package/dist/surface/surface.css
CHANGED
|
@@ -126,12 +126,13 @@
|
|
|
126
126
|
problem (.field-problem), a listing's refusal (.pane-message.danger),
|
|
127
127
|
and a palette's failure note (.palette-failure) lead with the danger
|
|
128
128
|
tone's CircleAlert, drawn as a mask in --danger, so they read as the same status line a notice is, words in --text. A host
|
|
129
|
-
that draws its own glyph first (an svg
|
|
129
|
+
that draws its own glyph first (an svg, inside a PaneMessage's words
|
|
130
|
+
too) gets no second one. */
|
|
130
131
|
:is(
|
|
131
132
|
.field-problem,
|
|
132
133
|
:where(.listing-root) .pane-message.danger,
|
|
133
134
|
:where(.palette-notes) .palette-failure
|
|
134
|
-
):not(:has(> svg:first-child))::before {
|
|
135
|
+
):not(:has(> svg:first-child, > .pane-message-text > svg:first-child))::before {
|
|
135
136
|
content: '';
|
|
136
137
|
flex: none;
|
|
137
138
|
width: var(--icon-md);
|
|
@@ -331,3 +332,75 @@
|
|
|
331
332
|
font-variant-numeric: tabular-nums;
|
|
332
333
|
white-space: nowrap;
|
|
333
334
|
}
|
|
335
|
+
|
|
336
|
+
/* ---- Fact list (FactList, Fact, FactColumns) ----
|
|
337
|
+
|
|
338
|
+
A headed list of facts set straight on a page: the overline, then one
|
|
339
|
+
name and value a line, the names in a column of their own (as wide as
|
|
340
|
+
the longest, up to two fifths of the list) in the dim interface face,
|
|
341
|
+
the values beside them in the code face in --text. A long value wraps
|
|
342
|
+
whole as a block beside its name, so its next lines start under its
|
|
343
|
+
first and never under the name; a printed value (`.printed`) keeps its
|
|
344
|
+
line breaks and spaces. The words are content, so they can be swept and
|
|
345
|
+
copied. */
|
|
346
|
+
.fact-list {
|
|
347
|
+
min-width: 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.fact-list > .fact-list-title {
|
|
351
|
+
margin: 0 0 var(--space-4);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.fact-list-items {
|
|
355
|
+
display: grid;
|
|
356
|
+
grid-template-columns: fit-content(40%) minmax(0, 1fr);
|
|
357
|
+
column-gap: var(--space-8);
|
|
358
|
+
row-gap: var(--space-2);
|
|
359
|
+
margin: 0;
|
|
360
|
+
font: var(--font-size-small) / var(--line-height-compact) var(--font-ui);
|
|
361
|
+
-webkit-user-select: text;
|
|
362
|
+
user-select: text;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.fact-list-item {
|
|
366
|
+
display: grid;
|
|
367
|
+
grid-column: 1 / -1;
|
|
368
|
+
grid-template-columns: subgrid;
|
|
369
|
+
align-items: baseline;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.fact-list-name {
|
|
373
|
+
min-width: 0;
|
|
374
|
+
color: var(--text-dim);
|
|
375
|
+
overflow-wrap: break-word;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.fact-list-value {
|
|
379
|
+
min-width: 0;
|
|
380
|
+
margin: 0;
|
|
381
|
+
color: var(--text);
|
|
382
|
+
font-family: var(--font-mono);
|
|
383
|
+
overflow-wrap: anywhere;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.fact-list-value.printed {
|
|
387
|
+
white-space: pre-wrap;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.fact-list-item[data-tone='danger'] > .fact-list-value {
|
|
391
|
+
color: var(--danger-text);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.fact-list-item[data-tone='warning'] > .fact-list-value {
|
|
395
|
+
color: var(--warning-text);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* Lists side by side, as many columns of one width as fit (at least
|
|
399
|
+
26 characters of the interface face each), the lists of a row starting
|
|
400
|
+
on one line, a row's tallest setting where the next row starts. */
|
|
401
|
+
.fact-columns {
|
|
402
|
+
display: grid;
|
|
403
|
+
grid-template-columns: repeat(auto-fill, minmax(min(26em, 100%), 1fr));
|
|
404
|
+
gap: var(--space-8) var(--space-12);
|
|
405
|
+
align-items: start;
|
|
406
|
+
}
|
|
@@ -4,10 +4,18 @@
|
|
|
4
4
|
* ABI into plain values. Every handle is freed by `dispose`.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* How many terminals one page
|
|
8
|
-
*
|
|
9
|
-
* shares one WebAssembly memory, which wasm32 caps
|
|
10
|
-
* terminal's history ceiling is
|
|
7
|
+
* How many terminals one page is budgeted for (17: sixteen interactive
|
|
8
|
+
* terminals and one read-only log), exported as `BUDGETED_TERMINALS_PER_PAGE`.
|
|
9
|
+
* Every terminal on a page shares one WebAssembly memory, which wasm32 caps
|
|
10
|
+
* at 4 GiB, so each terminal's history ceiling is this share of 3 GiB: up to
|
|
11
|
+
* this many terminals, every history may fill to its ceiling and the shared
|
|
12
|
+
* memory still holds. A page may show more, but past this count the
|
|
13
|
+
* guarantee is gone: should enough of them fill their histories to the
|
|
14
|
+
* ceiling (50,000 lines on a grid wider than about 445 columns), the shared
|
|
15
|
+
* memory runs out and the engine cannot allocate. At ordinary lengths a
|
|
16
|
+
* history stays far under its ceiling (about 7.4 MiB for 10,000 lines at 80
|
|
17
|
+
* columns), so an app that opens a terminal per tab can test its own limit
|
|
18
|
+
* against this count.
|
|
11
19
|
*/
|
|
12
20
|
export declare const GHOSTTY_BUDGETED_TERMINALS = 17;
|
|
13
21
|
/** Ghostty's cell width classes: a wide glyph's second column is its spacer tail. */
|
|
@@ -7,10 +7,18 @@ import { ghosttyConsumedMods, ghosttyKeyForCode, ghosttyUnshiftedCodepoint } fro
|
|
|
7
7
|
import { GhosttyRuntime, loadGhosttyRuntime } from './runtime.js';
|
|
8
8
|
import { ENGINE_DEFAULT_BACKGROUND, ENGINE_DEFAULT_FOREGROUND } from './fallbackColors.js';
|
|
9
9
|
/**
|
|
10
|
-
* How many terminals one page
|
|
11
|
-
*
|
|
12
|
-
* shares one WebAssembly memory, which wasm32 caps
|
|
13
|
-
* terminal's history ceiling is
|
|
10
|
+
* How many terminals one page is budgeted for (17: sixteen interactive
|
|
11
|
+
* terminals and one read-only log), exported as `BUDGETED_TERMINALS_PER_PAGE`.
|
|
12
|
+
* Every terminal on a page shares one WebAssembly memory, which wasm32 caps
|
|
13
|
+
* at 4 GiB, so each terminal's history ceiling is this share of 3 GiB: up to
|
|
14
|
+
* this many terminals, every history may fill to its ceiling and the shared
|
|
15
|
+
* memory still holds. A page may show more, but past this count the
|
|
16
|
+
* guarantee is gone: should enough of them fill their histories to the
|
|
17
|
+
* ceiling (50,000 lines on a grid wider than about 445 columns), the shared
|
|
18
|
+
* memory runs out and the engine cannot allocate. At ordinary lengths a
|
|
19
|
+
* history stays far under its ceiling (about 7.4 MiB for 10,000 lines at 80
|
|
20
|
+
* columns), so an app that opens a terminal per tab can test its own limit
|
|
21
|
+
* against this count.
|
|
14
22
|
*/
|
|
15
23
|
export const GHOSTTY_BUDGETED_TERMINALS = 17;
|
|
16
24
|
const GHOSTTY_SUCCESS = 0;
|
package/dist/terminal/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The terminal: `Terminal`, Ghostty's VT engine as WebAssembly drawn on a
|
|
3
3
|
* canvas, with its Copy and Paste menu, `TerminalBox` (a framed console of
|
|
4
|
-
* a fixed height, or one that fills its parent),
|
|
5
|
-
* terminal under `TerminalScrollbackContext` keeps
|
|
4
|
+
* a fixed height, or one that fills its parent), the scrollback length every
|
|
5
|
+
* terminal under `TerminalScrollbackContext` keeps, and how many terminals
|
|
6
|
+
* one page's shared engine memory is budgeted for. Imported on its own as
|
|
6
7
|
* `@bigpixelrocket/uiok/terminal`, never from the package root, so an app
|
|
7
8
|
* that shows no terminal never loads the engine; its look is terminal.css,
|
|
8
9
|
* which the base stylesheet imports.
|
|
@@ -12,3 +13,4 @@ export { TERMINAL_BOX_HEIGHT, TerminalBox, type TerminalBoxProps } from './Termi
|
|
|
12
13
|
export { type TerminalAction, type TerminalKeyStroke } from './Terminal.logic.js';
|
|
13
14
|
export { DEFAULT_TERMINAL_MENU_CHORDS, type TerminalMenuChords } from './TerminalMenu.logic.js';
|
|
14
15
|
export { DEFAULT_TERMINAL_SCROLLBACK_LINES, TerminalScrollbackContext } from './TerminalScrollback.js';
|
|
16
|
+
export { GHOSTTY_BUDGETED_TERMINALS as BUDGETED_TERMINALS_PER_PAGE } from './ghostty/core.js';
|
package/dist/terminal/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The terminal: `Terminal`, Ghostty's VT engine as WebAssembly drawn on a
|
|
3
3
|
* canvas, with its Copy and Paste menu, `TerminalBox` (a framed console of
|
|
4
|
-
* a fixed height, or one that fills its parent),
|
|
5
|
-
* terminal under `TerminalScrollbackContext` keeps
|
|
4
|
+
* a fixed height, or one that fills its parent), the scrollback length every
|
|
5
|
+
* terminal under `TerminalScrollbackContext` keeps, and how many terminals
|
|
6
|
+
* one page's shared engine memory is budgeted for. Imported on its own as
|
|
6
7
|
* `@bigpixelrocket/uiok/terminal`, never from the package root, so an app
|
|
7
8
|
* that shows no terminal never loads the engine; its look is terminal.css,
|
|
8
9
|
* which the base stylesheet imports.
|
|
@@ -12,3 +13,4 @@ export { TERMINAL_BOX_HEIGHT, TerminalBox } from './TerminalBox.js';
|
|
|
12
13
|
export {} from './Terminal.logic.js';
|
|
13
14
|
export { DEFAULT_TERMINAL_MENU_CHORDS } from './TerminalMenu.logic.js';
|
|
14
15
|
export { DEFAULT_TERMINAL_SCROLLBACK_LINES, TerminalScrollbackContext } from './TerminalScrollback.js';
|
|
16
|
+
export { GHOSTTY_BUDGETED_TERMINALS as BUDGETED_TERMINALS_PER_PAGE } from './ghostty/core.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
/** Props for {@link Code}. */
|
|
3
|
+
export interface CodeProps {
|
|
4
|
+
/** The command, path, name, or value, as the user would type or see it: `brew services list`. */
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A command, a path, or a name inside a sentence (a note, a field's help,
|
|
9
|
+
* a notice): the code face at the size of the words round it, on a faint
|
|
10
|
+
* track with rounded ends, in the text tone, so it reads as something to
|
|
11
|
+
* type or find, never as a link. A long one wraps anywhere, each line
|
|
12
|
+
* keeping its padding and ends. It can be swept and copied with the
|
|
13
|
+
* sentence. Draws `code.inline-code`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Code({ children }: CodeProps): ReactElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A command, a path, or a name inside a sentence (a note, a field's help,
|
|
4
|
+
* a notice): the code face at the size of the words round it, on a faint
|
|
5
|
+
* track with rounded ends, in the text tone, so it reads as something to
|
|
6
|
+
* type or find, never as a link. A long one wraps anywhere, each line
|
|
7
|
+
* keeping its padding and ends. It can be swept and copied with the
|
|
8
|
+
* sentence. Draws `code.inline-code`.
|
|
9
|
+
*/
|
|
10
|
+
export function Code({ children }) {
|
|
11
|
+
return _jsx("code", { className: "inline-code", children: children });
|
|
12
|
+
}
|
package/dist/text/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Text parts: `MarkedText` tints the characters a match hit, from the runs
|
|
3
|
+
* `highlightSegments` splits; `Code` sets a command or a path inside a
|
|
4
|
+
* sentence.
|
|
5
|
+
*/
|
|
6
|
+
export { Code, type CodeProps } from './Code.js';
|
|
2
7
|
export { highlightSegments, type HighlightSegment } from './highlightSegments.js';
|
|
3
8
|
export { MarkedText, type MarkedTextProps } from './MarkedText.js';
|
package/dist/text/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Text parts: `MarkedText` tints the characters a match hit, from the runs
|
|
3
|
+
* `highlightSegments` splits; `Code` sets a command or a path inside a
|
|
4
|
+
* sentence.
|
|
5
|
+
*/
|
|
6
|
+
export { Code } from './Code.js';
|
|
2
7
|
export { highlightSegments } from './highlightSegments.js';
|
|
3
8
|
export { MarkedText } from './MarkedText.js';
|
package/dist/text/text.css
CHANGED
|
@@ -18,3 +18,24 @@
|
|
|
18
18
|
background: var(--match-bg);
|
|
19
19
|
box-shadow: inset 0 calc(-1 * var(--line-strong)) 0 var(--match-mark);
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
/* ---- Inline code (Code) ----
|
|
23
|
+
|
|
24
|
+
A command, a path, or a name inside a sentence: the code face at the
|
|
25
|
+
size of the words round it, on the control track's faint wash, in the
|
|
26
|
+
text tone (never the accent, which reads as a link). It wraps anywhere,
|
|
27
|
+
and each line of a wrapped one keeps its padding and its rounded ends.
|
|
28
|
+
It is content, so a user can sweep and copy it. */
|
|
29
|
+
.inline-code {
|
|
30
|
+
padding: 0 var(--space-2);
|
|
31
|
+
border-radius: var(--radius-xs);
|
|
32
|
+
background: var(--control-track);
|
|
33
|
+
color: var(--text);
|
|
34
|
+
font-family: var(--font-mono);
|
|
35
|
+
font-size: inherit;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
37
|
+
-webkit-box-decoration-break: clone;
|
|
38
|
+
box-decoration-break: clone;
|
|
39
|
+
-webkit-user-select: text;
|
|
40
|
+
user-select: text;
|
|
41
|
+
}
|
package/dist/themes/tokens.js
CHANGED
|
@@ -1178,12 +1178,14 @@ const BASE_TOKEN_NAMES = [
|
|
|
1178
1178
|
'--z-tooltip',
|
|
1179
1179
|
'--frost',
|
|
1180
1180
|
'--transition-control',
|
|
1181
|
-
// The scroll fade's edge size
|
|
1181
|
+
// The scroll fade's edge size, its internal per-edge lengths, and the
|
|
1182
|
+
// inline fade's direction.
|
|
1182
1183
|
'--scroll-fade-size',
|
|
1183
1184
|
'--scroll-fade-start',
|
|
1184
1185
|
'--scroll-fade-end',
|
|
1185
1186
|
'--scroll-fade-inline-start',
|
|
1186
1187
|
'--scroll-fade-inline-end',
|
|
1188
|
+
'--scroll-fade-inline-to',
|
|
1187
1189
|
// The hooks a component stylesheet declares or reads.
|
|
1188
1190
|
'--stripe-ink',
|
|
1189
1191
|
'--stripe-ground',
|