@bigpixelrocket/uiok 0.4.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 +63 -1
- package/dist/button/TextLink.d.ts +26 -3
- package/dist/button/TextLink.js +5 -3
- package/dist/button/button.css +7 -0
- package/dist/dialog/ModalDialog.js +8 -2
- 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 +9 -3
- package/dist/frame/Tree.js +8 -5
- package/dist/frame/WindowFrame.d.ts +1 -1
- package/dist/frame/WindowFrame.js +3 -1
- package/dist/frame/frame.css +74 -5
- package/dist/frame/index.d.ts +4 -2
- package/dist/frame/index.js +4 -2
- package/dist/grid/grid.css +1 -0
- package/dist/icon/ProductMark.d.ts +57 -0
- package/dist/icon/ProductMark.js +26 -0
- package/dist/icon/icon.css +53 -0
- package/dist/icon/index.d.ts +3 -1
- package/dist/icon/index.js +3 -1
- 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/labels/settings.d.ts +6 -0
- package/dist/labels/settings.js +1 -0
- package/dist/listing/Listing.d.ts +95 -7
- package/dist/listing/Listing.js +57 -13
- package/dist/listing/ListingScope.d.ts +7 -0
- package/dist/listing/ListingScope.js +8 -0
- package/dist/listing/PaneMessage.d.ts +7 -4
- package/dist/listing/PaneMessage.js +11 -4
- package/dist/listing/Timeline.d.ts +51 -0
- package/dist/listing/Timeline.js +28 -0
- package/dist/listing/index.d.ts +4 -2
- package/dist/listing/index.js +3 -1
- package/dist/listing/listing.css +268 -25
- package/dist/log/Ansi.logic.d.ts +27 -0
- package/dist/log/Ansi.logic.js +203 -0
- package/dist/log/LogWell.d.ts +11 -2
- package/dist/log/LogWell.js +15 -3
- package/dist/log/index.d.ts +1 -0
- package/dist/log/index.js +1 -0
- package/dist/log/log.css +80 -0
- package/dist/menu/Menu.d.ts +133 -0
- package/dist/menu/Menu.js +351 -0
- package/dist/menu/Menu.logic.d.ts +83 -0
- package/dist/menu/Menu.logic.js +92 -0
- package/dist/menu/index.d.ts +6 -1
- package/dist/menu/index.js +6 -1
- package/dist/menu/menu.css +57 -0
- package/dist/palette/Palette.d.ts +3 -2
- package/dist/palette/Palette.js +8 -4
- package/dist/palette/PaletteRows.d.ts +138 -0
- package/dist/palette/PaletteRows.js +76 -0
- package/dist/palette/index.d.ts +5 -2
- package/dist/palette/index.js +5 -2
- package/dist/pane/Pane.d.ts +42 -6
- package/dist/pane/Pane.js +92 -5
- package/dist/pane/PaneFrame.d.ts +22 -1
- package/dist/pane/PaneFrame.js +42 -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 +2 -2
- package/dist/pane/index.js +1 -1
- package/dist/pane/usePaneKeys.d.ts +8 -1
- package/dist/pane/usePaneKeys.js +32 -12
- package/dist/shell/SettingsDialog.d.ts +20 -2
- package/dist/shell/SettingsDialog.js +13 -3
- package/dist/shell/index.d.ts +1 -1
- package/dist/styles.css +18 -3
- package/dist/surface/FactList.d.ts +54 -0
- package/dist/surface/FactList.js +33 -0
- package/dist/surface/FactTable.d.ts +44 -0
- package/dist/surface/FactTable.js +33 -0
- package/dist/surface/index.d.ts +7 -2
- package/dist/surface/index.js +7 -2
- package/dist/surface/surface.css +139 -2
- package/dist/tabs/PageTabs.d.ts +6 -0
- package/dist/tabs/PageTabs.js +1 -1
- package/dist/tabs/tabs.css +14 -0
- package/dist/terminal/TerminalBox.d.ts +30 -0
- package/dist/terminal/TerminalBox.js +17 -0
- package/dist/terminal/ghostty/core.d.ts +12 -4
- package/dist/terminal/ghostty/core.js +12 -4
- package/dist/terminal/index.d.ts +6 -2
- package/dist/terminal/index.js +6 -2
- package/dist/terminal/terminal.css +29 -0
- 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/themes.generated.css +20 -0
- package/dist/themes/tokens.d.ts +1 -0
- package/dist/themes/tokens.js +16 -2
- package/package.json +1 -1
package/dist/listing/listing.css
CHANGED
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
/* The listing's face: the path bar, the list, and the status line are set
|
|
93
93
|
in the monospace face, whatever the space around them uses. An empty
|
|
94
94
|
pane's block is sentences, in the interface face. */
|
|
95
|
-
:where(.listing-root) :is(.pane-path-row, .pane-list, .pane-status)
|
|
95
|
+
:where(.listing-root) :is(.pane-path-row, .pane-list, .pane-status),
|
|
96
|
+
.pane-listing:where(.listing-root, .listing-root *) {
|
|
96
97
|
font-family: var(--font-mono);
|
|
97
98
|
font-size: var(--font-size-body);
|
|
98
99
|
}
|
|
@@ -348,6 +349,25 @@ button.crumb-label > .crumb-text {
|
|
|
348
349
|
pressed looks are the base sheet's shared quiet recipes, which weigh the
|
|
349
350
|
same, so a press shows over the hover. */
|
|
350
351
|
|
|
352
|
+
/* A last crumb with siblings (PanePathBar's `siblings`): its words, which
|
|
353
|
+
give way, then a ⌄ that never does. On a page it stands in the page's
|
|
354
|
+
heading, which draws no box of its own. While its menu is up it keeps
|
|
355
|
+
the hovered face (the base sheet's open pop-up recipe). */
|
|
356
|
+
.crumb-heading {
|
|
357
|
+
display: contents;
|
|
358
|
+
font: inherit;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
button.crumb-label.crumb-siblings {
|
|
362
|
+
gap: var(--space-1);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
button.crumb-label.crumb-siblings > svg {
|
|
366
|
+
position: relative;
|
|
367
|
+
z-index: var(--z-raised);
|
|
368
|
+
flex: none;
|
|
369
|
+
}
|
|
370
|
+
|
|
351
371
|
/* The trail's last crumb is where the pane is. */
|
|
352
372
|
.crumb.here .crumb-label {
|
|
353
373
|
color: var(--text);
|
|
@@ -714,6 +734,7 @@ button.crumb-label > .crumb-text {
|
|
|
714
734
|
.disclosure,
|
|
715
735
|
.settings-sidebar-page,
|
|
716
736
|
.settings-sidebar-subsection,
|
|
737
|
+
.sectioned-dialog-nav-row,
|
|
717
738
|
.quiet-control,
|
|
718
739
|
.quiet-track-item,
|
|
719
740
|
.toggle-chip
|
|
@@ -837,7 +858,7 @@ button.crumb-label > .crumb-text {
|
|
|
837
858
|
it again, which a subgrid adds to its edge cells as margin: the two
|
|
838
859
|
cancel, so the cells sit exactly on the listing's tracks. Anything else
|
|
839
860
|
in the listing (a message, an app's own block) spans every track. */
|
|
840
|
-
:where(.listing-root
|
|
861
|
+
.pane-listing:where(.listing-root, .listing-root *):where([role='table']) {
|
|
841
862
|
display: grid;
|
|
842
863
|
grid-template-columns: var(
|
|
843
864
|
--pane-grid,
|
|
@@ -847,12 +868,12 @@ button.crumb-label > .crumb-text {
|
|
|
847
868
|
padding: 0 var(--pane-row-inset);
|
|
848
869
|
}
|
|
849
870
|
|
|
850
|
-
:where(.listing-root .
|
|
871
|
+
:where(.pane-listing:is(.listing-root, .listing-root *)[role='table']) > * {
|
|
851
872
|
grid-column: 1 / -1;
|
|
852
873
|
margin-inline: calc(-1 * var(--pane-row-inset));
|
|
853
874
|
}
|
|
854
875
|
|
|
855
|
-
:where(.listing-root .
|
|
876
|
+
:where(.pane-listing:is(.listing-root, .listing-root *)[role='table']) > :is(.row, .pane-columns) {
|
|
856
877
|
grid-template-columns: subgrid;
|
|
857
878
|
}
|
|
858
879
|
|
|
@@ -997,7 +1018,11 @@ button.crumb-label > .crumb-text {
|
|
|
997
1018
|
edge, as the headings of the sections around it do. The listing's part
|
|
998
1019
|
weighs nothing, so the rule weighs what the label's default above does,
|
|
999
1020
|
and an app's own placement of the label wins. */
|
|
1000
|
-
:where(
|
|
1021
|
+
:where(
|
|
1022
|
+
.pane-listing:is(.listing-root, .listing-root *):has(> .row):not(
|
|
1023
|
+
:has(> .row > .row-icon:not(:empty), > .row > .row-pick)
|
|
1024
|
+
)
|
|
1025
|
+
)
|
|
1001
1026
|
> .pane-columns
|
|
1002
1027
|
> .row-name:where(:not(:has(h3))) {
|
|
1003
1028
|
grid-column: 2;
|
|
@@ -1307,7 +1332,9 @@ button.crumb-label > .crumb-text {
|
|
|
1307
1332
|
mark, and the pointer: no rule here may recolour a word on a selected
|
|
1308
1333
|
row, whatever it weighs. The selection is left out with a :where(), so
|
|
1309
1334
|
each rule keeps the weight an app's own rule is measured against. */
|
|
1310
|
-
:where(.listing-root)
|
|
1335
|
+
:where(.listing-root)
|
|
1336
|
+
.row:is(.cursor, .marked):where(:not(.selected))
|
|
1337
|
+
:is(.row-icon, .row-meta:where(:not([data-tone]))),
|
|
1311
1338
|
:where(.listing-root)
|
|
1312
1339
|
.row:is(.cursor, .marked):where(:not(.selected))
|
|
1313
1340
|
.pane-state:is(.pane-tone-muted, .pane-tone-busy),
|
|
@@ -1316,13 +1343,31 @@ button.crumb-label > .crumb-text {
|
|
|
1316
1343
|
:is(.pane-act, .pane-icon-act):where(:not(.lit, :hover, .danger:focus-visible)),
|
|
1317
1344
|
:where(.listing-root .pane-list.pointer)
|
|
1318
1345
|
.row:hover:not(.selected)
|
|
1319
|
-
:is(
|
|
1346
|
+
:is(
|
|
1347
|
+
.row-icon,
|
|
1348
|
+
.row-meta:where(:not([data-tone])),
|
|
1349
|
+
.pane-state:is(.pane-tone-muted, .pane-tone-busy)
|
|
1350
|
+
),
|
|
1320
1351
|
:where(.listing-root .pane-list.pointer)
|
|
1321
1352
|
.row:hover:where(:not(.cursor, .marked, .selected))
|
|
1322
1353
|
:is(.pane-act, .pane-icon-act):where(:not(.lit, :hover, .danger:focus-visible)) {
|
|
1323
1354
|
color: var(--text-on-surface);
|
|
1324
1355
|
}
|
|
1325
1356
|
|
|
1357
|
+
/* A row whose item is not there yet (`.row-dim`: a version not
|
|
1358
|
+
installed, a product not added): its name in the row-meta tone, one
|
|
1359
|
+
step under the rows that are, rising to the on-surface tone on the
|
|
1360
|
+
cursor, a mark, or under the pointer, as every quiet word does. A
|
|
1361
|
+
selection paints it as it paints every name (below). */
|
|
1362
|
+
:where(.listing-root) .row.row-dim > .row-name {
|
|
1363
|
+
color: var(--row-meta-text);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
:where(.listing-root) .row.row-dim:is(.cursor, .marked):where(:not(.selected)) > .row-name,
|
|
1367
|
+
:where(.listing-root .pane-list.pointer) .row.row-dim:hover:where(:not(.selected)) > .row-name {
|
|
1368
|
+
color: var(--text-on-surface);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1326
1371
|
/* A row at a listing's foot that adds one (`.pane-add`: "Add service…"):
|
|
1327
1372
|
quiet dim words after an accent plus, which turn to full words under
|
|
1328
1373
|
the pointer, with the focus, and on the cursor row, as a control's do. */
|
|
@@ -1330,7 +1375,7 @@ button.crumb-label > .crumb-text {
|
|
|
1330
1375
|
color: var(--text-dim);
|
|
1331
1376
|
}
|
|
1332
1377
|
|
|
1333
|
-
:where(.listing-root) .row.pane-add > .row-icon {
|
|
1378
|
+
:where(.listing-root) .row.pane-add > :is(.row-icon, .tree-glyph) {
|
|
1334
1379
|
color: var(--accent);
|
|
1335
1380
|
}
|
|
1336
1381
|
|
|
@@ -1396,6 +1441,24 @@ button.crumb-label > .crumb-text {
|
|
|
1396
1441
|
font-variant-numeric: tabular-nums;
|
|
1397
1442
|
}
|
|
1398
1443
|
|
|
1444
|
+
/* A cell in a tone (`Cell`'s `tone`, as `data-tone`): a version with an
|
|
1445
|
+
update waiting in the warning tone, an offered one in the accent's, a
|
|
1446
|
+
failure in the danger tone. Each text tone keeps 4.5:1 on the listing
|
|
1447
|
+
and on the cursor and hover fills, so the quiet-word rules above leave a
|
|
1448
|
+
toned cell alone; a selection still paints it in its own words (below),
|
|
1449
|
+
which come later and weigh as much. */
|
|
1450
|
+
:where(.listing-root) .row .row-meta[data-tone='warning'] {
|
|
1451
|
+
color: var(--warning-text);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
:where(.listing-root) .row .row-meta[data-tone='accent'] {
|
|
1455
|
+
color: var(--accent-text);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
:where(.listing-root) .row .row-meta[data-tone='danger'] {
|
|
1459
|
+
color: var(--danger-text);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1399
1462
|
/* Numbers line up on their column's right edge. */
|
|
1400
1463
|
:where(.listing-root) .row-meta.align-right {
|
|
1401
1464
|
text-align: right;
|
|
@@ -1466,7 +1529,9 @@ button.crumb-label > .crumb-text {
|
|
|
1466
1529
|
|
|
1467
1530
|
/* Each section is a listing of its own, so its strip pins only while the
|
|
1468
1531
|
listing is in view; a rule sets a listing off from the one above. */
|
|
1469
|
-
:
|
|
1532
|
+
:is(.pane-listing, .pane-message)
|
|
1533
|
+
+ .pane-listing:where(.listing-root, .listing-root *)
|
|
1534
|
+
> .pane-columns {
|
|
1470
1535
|
border-top: var(--line) solid var(--border);
|
|
1471
1536
|
}
|
|
1472
1537
|
|
|
@@ -1553,9 +1618,8 @@ button.crumb-label > .crumb-text {
|
|
|
1553
1618
|
/* A strip that follows a listing carries a rule above it inside its own
|
|
1554
1619
|
height, one line less room: there the button is one line shorter, so
|
|
1555
1620
|
it still stands 2px clear of both rules. */
|
|
1556
|
-
:
|
|
1557
|
-
:
|
|
1558
|
-
+ .pane-listing
|
|
1621
|
+
:is(.pane-listing, .pane-message)
|
|
1622
|
+
+ .pane-listing:where(.listing-root, .listing-root *)
|
|
1559
1623
|
> .pane-columns
|
|
1560
1624
|
:is(.pane-strip-link, .button-xs) {
|
|
1561
1625
|
height: calc(var(--pane-columns-height) - 2 * var(--line) - 2 * var(--space-1));
|
|
@@ -1649,12 +1713,16 @@ button.crumb-label > .crumb-text {
|
|
|
1649
1713
|
|
|
1650
1714
|
/* A warning (.warning): the warning tone's TriangleAlert, drawn as a mask
|
|
1651
1715
|
in --warning as the danger line's glyph is, then the words in --text. A
|
|
1652
|
-
host that draws its own glyph first (an svg
|
|
1716
|
+
host that draws its own glyph first (an svg, inside a PaneMessage's
|
|
1717
|
+
words too) gets no second one. */
|
|
1653
1718
|
:where(.listing-root) .pane-message.warning {
|
|
1654
1719
|
color: var(--text);
|
|
1655
1720
|
}
|
|
1656
1721
|
|
|
1657
|
-
:where(.listing-root)
|
|
1722
|
+
:where(.listing-root)
|
|
1723
|
+
.pane-message.warning:not(
|
|
1724
|
+
:has(> svg:first-child, > .pane-message-text > svg:first-child)
|
|
1725
|
+
)::before {
|
|
1658
1726
|
content: '';
|
|
1659
1727
|
flex: none;
|
|
1660
1728
|
width: var(--icon-md);
|
|
@@ -1664,11 +1732,19 @@ button.crumb-label > .crumb-text {
|
|
|
1664
1732
|
center / contain no-repeat;
|
|
1665
1733
|
}
|
|
1666
1734
|
|
|
1667
|
-
:where(.listing-root) .pane-message.warning > svg:first-child
|
|
1735
|
+
:where(.listing-root) .pane-message.warning > svg:first-child,
|
|
1736
|
+
:where(.listing-root) .pane-message.warning > .pane-message-text > svg:first-child {
|
|
1668
1737
|
flex: none;
|
|
1669
1738
|
color: var(--warning);
|
|
1670
1739
|
}
|
|
1671
1740
|
|
|
1741
|
+
/* A refusal's own glyph takes the danger tone, as the drawn one does. */
|
|
1742
|
+
:where(.listing-root) .pane-message.danger > svg:first-child,
|
|
1743
|
+
:where(.listing-root) .pane-message.danger > .pane-message-text > svg:first-child {
|
|
1744
|
+
flex: none;
|
|
1745
|
+
color: var(--danger);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1672
1748
|
/* A line that says a listing has no rows (`.empty`, Listing's `empty`)
|
|
1673
1749
|
reads as a quiet row in the rows' place: it starts where a row's icon
|
|
1674
1750
|
starts, in the rows' own typeface and size (the host's, as the rows'
|
|
@@ -1679,6 +1755,20 @@ button.crumb-label > .crumb-text {
|
|
|
1679
1755
|
line-height: var(--line-height-compact);
|
|
1680
1756
|
}
|
|
1681
1757
|
|
|
1758
|
+
/* A message's words in one box (PaneMessage), so text and inline code
|
|
1759
|
+
flow as a sentence beside the glyph instead of as separate flex items.
|
|
1760
|
+
A glyph the host leads the words with lands in that box too: it keeps
|
|
1761
|
+
the glyph's place, the message's gap before the words, on the text's
|
|
1762
|
+
middle. */
|
|
1763
|
+
:where(.listing-root) .pane-message-text {
|
|
1764
|
+
min-width: 0;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
:where(.listing-root) .pane-message-text > svg:first-child {
|
|
1768
|
+
margin-inline-end: var(--space-4);
|
|
1769
|
+
vertical-align: middle;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1682
1772
|
:where(.listing-root) .pane-message code {
|
|
1683
1773
|
font-family: var(--font-mono);
|
|
1684
1774
|
}
|
|
@@ -1874,7 +1964,7 @@ button.crumb-label > .crumb-text {
|
|
|
1874
1964
|
wide as the spinner (--icon-sm), so the words read from one edge: the
|
|
1875
1965
|
mark is --dot wide, and its margins take up the rest (a turned diamond
|
|
1876
1966
|
is about as wide). A listing with no spinner keeps the room. */
|
|
1877
|
-
:where(.listing-root
|
|
1967
|
+
.pane-listing:where(.listing-root, .listing-root *):has(.pane-state-busy) .pane-state-dot {
|
|
1878
1968
|
margin-inline: calc((var(--icon-sm) - var(--dot)) / 2);
|
|
1879
1969
|
}
|
|
1880
1970
|
|
|
@@ -2024,7 +2114,9 @@ button.crumb-label > .crumb-text {
|
|
|
2024
2114
|
/* Each pinned cell fills its row's height, so its ground and its hairline
|
|
2025
2115
|
run unbroken from the strip to the foot, and holds its controls at its
|
|
2026
2116
|
end, centred in the row. */
|
|
2027
|
-
:where(.
|
|
2117
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2118
|
+
> :is(.row, .pane-columns)
|
|
2119
|
+
> :last-child {
|
|
2028
2120
|
position: sticky;
|
|
2029
2121
|
inset-inline-end: 0;
|
|
2030
2122
|
z-index: var(--z-raised);
|
|
@@ -2044,7 +2136,9 @@ button.crumb-label > .crumb-text {
|
|
|
2044
2136
|
|
|
2045
2137
|
/* The strip's pinned cell is a square band of the strip, not a sort
|
|
2046
2138
|
control's rounded box. */
|
|
2047
|
-
:where(.
|
|
2139
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2140
|
+
> .pane-columns
|
|
2141
|
+
> :last-child {
|
|
2048
2142
|
border-radius: 0;
|
|
2049
2143
|
background: var(--strip);
|
|
2050
2144
|
}
|
|
@@ -2058,18 +2152,19 @@ button.crumb-label > .crumb-text {
|
|
|
2058
2152
|
and the pinned cells (`inset-inline-end: 0` above) reach over that track
|
|
2059
2153
|
to end with their row, then stop at the scroller's edge, its end inset
|
|
2060
2154
|
inside the scrollport, whichever box scrolls them. */
|
|
2061
|
-
:where(.listing-root
|
|
2155
|
+
.pane-listing.pane-pin-end:where(.listing-root, .listing-root *):where([role='table']) {
|
|
2062
2156
|
grid-template-columns:
|
|
2063
2157
|
var(--pane-grid, var(--icon-column) minmax(min(var(--pane-name-floor), 100%), 1fr))
|
|
2064
2158
|
var(--pane-row-inset);
|
|
2065
2159
|
padding-inline-end: 0;
|
|
2066
2160
|
}
|
|
2067
2161
|
|
|
2068
|
-
:where(.
|
|
2162
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *)[role='table']) > * {
|
|
2069
2163
|
margin-inline-end: 0;
|
|
2070
2164
|
}
|
|
2071
2165
|
|
|
2072
|
-
:where(.
|
|
2166
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *)[role='table'])
|
|
2167
|
+
> :is(.row, .pane-columns) {
|
|
2073
2168
|
padding-inline-end: 0;
|
|
2074
2169
|
}
|
|
2075
2170
|
|
|
@@ -2080,12 +2175,14 @@ button.crumb-label > .crumb-text {
|
|
|
2080
2175
|
the cells, so a listing that fits, or one scrolled to its end, keeps its
|
|
2081
2176
|
last column whole. */
|
|
2082
2177
|
@supports (animation-timeline: scroll()) {
|
|
2083
|
-
:where(.
|
|
2178
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2179
|
+
> :is(.row, .pane-columns)
|
|
2180
|
+
> :last-child {
|
|
2084
2181
|
animation: uiok-pane-pin-edge linear both;
|
|
2085
2182
|
animation-timeline: scroll(nearest inline);
|
|
2086
2183
|
}
|
|
2087
2184
|
|
|
2088
|
-
:where(.
|
|
2185
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2089
2186
|
> :is(.row, .pane-columns)
|
|
2090
2187
|
> :last-child::before {
|
|
2091
2188
|
content: '';
|
|
@@ -2104,8 +2201,8 @@ button.crumb-label > .crumb-text {
|
|
|
2104
2201
|
|
|
2105
2202
|
/* Right to left the columns before the cell lie on its right. */
|
|
2106
2203
|
:where(
|
|
2107
|
-
[dir='rtl'] .
|
|
2108
|
-
.listing-root[dir='rtl'] .pane-listing.pane-pin-end
|
|
2204
|
+
[dir='rtl'] .pane-listing.pane-pin-end:is(.listing-root, .listing-root *),
|
|
2205
|
+
:is(.listing-root[dir='rtl'], .listing-root[dir='rtl'] *).pane-listing.pane-pin-end
|
|
2109
2206
|
)
|
|
2110
2207
|
> :is(.row, .pane-columns)
|
|
2111
2208
|
> :last-child::before {
|
|
@@ -2460,3 +2557,149 @@ button.crumb-label > .crumb-text {
|
|
|
2460
2557
|
:where(:root[data-window-inactive] .listing-root) .pane.active::before {
|
|
2461
2558
|
border-color: var(--border-strong);
|
|
2462
2559
|
}
|
|
2560
|
+
|
|
2561
|
+
/* A row that is one choice of several (Row's `radio`): the radio in the
|
|
2562
|
+
icon column and the name after it, both in the name's cell, which spans
|
|
2563
|
+
the two columns as the strip's name label does. The words keep the
|
|
2564
|
+
name's ellipsis; the radio keeps its size. */
|
|
2565
|
+
:where(.listing-root) .row > .row-name.row-pick {
|
|
2566
|
+
grid-column: 1 / span 2;
|
|
2567
|
+
display: grid;
|
|
2568
|
+
grid-template-columns: var(--icon-column) minmax(0, 1fr);
|
|
2569
|
+
align-items: center;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
:where(.listing-root) .row-pick > .row-radio {
|
|
2573
|
+
justify-self: start;
|
|
2574
|
+
margin: 0;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
:where(.listing-root) .row-pick > .row-pick-name {
|
|
2578
|
+
min-width: 0;
|
|
2579
|
+
overflow: hidden;
|
|
2580
|
+
text-overflow: ellipsis;
|
|
2581
|
+
white-space: nowrap;
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
/* A row that stands out from its peers (Row's `emphasis`): its name in the
|
|
2585
|
+
strong weight. */
|
|
2586
|
+
:where(.listing-root) .row.row-emphasis > .row-name {
|
|
2587
|
+
font-weight: var(--font-weight-strong);
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
/* A row's span on a shared scale (TimelineCell): inside the cell's content
|
|
2591
|
+
box (after the column gap), a hairline for the wait from the scale's
|
|
2592
|
+
start to --timeline-start, then a bar to --timeline-end, the solid
|
|
2593
|
+
accent on the path that matters and the accent's line otherwise. Every
|
|
2594
|
+
row's cell fills the same column, so their bars share one scale. */
|
|
2595
|
+
:where(.listing-root) .row-meta.timeline-cell {
|
|
2596
|
+
display: flex;
|
|
2597
|
+
align-self: stretch;
|
|
2598
|
+
align-items: center;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
.timeline-track {
|
|
2602
|
+
position: relative;
|
|
2603
|
+
flex: 1;
|
|
2604
|
+
align-self: stretch;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
.timeline-wait,
|
|
2608
|
+
.timeline-bar {
|
|
2609
|
+
position: absolute;
|
|
2610
|
+
top: 50%;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
.timeline-wait {
|
|
2614
|
+
inset-inline-start: 0;
|
|
2615
|
+
inline-size: var(--timeline-start);
|
|
2616
|
+
height: var(--line);
|
|
2617
|
+
background: var(--border-strong);
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
.timeline-bar {
|
|
2621
|
+
inset-inline-start: var(--timeline-start);
|
|
2622
|
+
inline-size: max(var(--line-strong), calc(var(--timeline-end) - var(--timeline-start)));
|
|
2623
|
+
height: var(--space-4);
|
|
2624
|
+
margin-top: calc(-1 * var(--space-2));
|
|
2625
|
+
border-radius: var(--radius-xs);
|
|
2626
|
+
background: var(--accent-line);
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
.timeline-cell[data-emphasis] .timeline-bar {
|
|
2630
|
+
background: var(--accent);
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
/* On a selected row the accent fill would swallow the accent bar and the
|
|
2634
|
+
wait's grey line, so both take the selection's words' tone, as the state
|
|
2635
|
+
dots do; the lighter bar keeps its step under the solid one. */
|
|
2636
|
+
:where(.listing-root)
|
|
2637
|
+
.row.selected:where(
|
|
2638
|
+
:not(
|
|
2639
|
+
:root[data-window-inactive] .listing-root *,
|
|
2640
|
+
.listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
|
|
2641
|
+
)
|
|
2642
|
+
)
|
|
2643
|
+
.timeline-cell
|
|
2644
|
+
:is(.timeline-wait, .timeline-bar) {
|
|
2645
|
+
background: var(--on-selected-dim);
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
:where(.listing-root)
|
|
2649
|
+
.row.selected:where(
|
|
2650
|
+
:not(
|
|
2651
|
+
:root[data-window-inactive] .listing-root *,
|
|
2652
|
+
.listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
|
|
2653
|
+
)
|
|
2654
|
+
)
|
|
2655
|
+
.timeline-cell[data-emphasis]
|
|
2656
|
+
.timeline-bar {
|
|
2657
|
+
background: var(--on-selected);
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
/* The ticks over the column (TimelineScale), each tick's words starting at
|
|
2661
|
+
its place on the same scale, in the strip's quiet tone. */
|
|
2662
|
+
.timeline-scale {
|
|
2663
|
+
position: relative;
|
|
2664
|
+
flex: 1;
|
|
2665
|
+
align-self: stretch;
|
|
2666
|
+
color: var(--text-dim);
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
.timeline-tick {
|
|
2670
|
+
position: absolute;
|
|
2671
|
+
top: 50%;
|
|
2672
|
+
inset-inline-start: var(--timeline-at);
|
|
2673
|
+
transform: translateY(-50%);
|
|
2674
|
+
white-space: nowrap;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
/* ---- The visual bell (PaneBox's bell) ----
|
|
2678
|
+
A key that could not act shoves the pane's cursor row sideways for one
|
|
2679
|
+
beat, the wrong-password shake. The parity classes alternate `bell-0`
|
|
2680
|
+
and `bell-1` on consecutive rings (useBellBeat), on keyframes of two
|
|
2681
|
+
names with the same steps (menu.css), so every refused key shoves again,
|
|
2682
|
+
the repeats of a held one included. Without motion the row flips to the
|
|
2683
|
+
selection fill for the beat instead, its words in the selection's. */
|
|
2684
|
+
:where(.listing-root) .pane.bell-0 .row.cursor {
|
|
2685
|
+
animation: row-nudge-a var(--duration-slow) var(--ease-in-out);
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
:where(.listing-root) .pane.bell-1 .row.cursor {
|
|
2689
|
+
animation: row-nudge-b var(--duration-slow) var(--ease-in-out);
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2693
|
+
:where(.listing-root) .pane:is(.bell-0, .bell-1) .row.cursor {
|
|
2694
|
+
animation: none;
|
|
2695
|
+
--row-fill: var(--selected-bg);
|
|
2696
|
+
background: var(--row-fill);
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
:where(.listing-root)
|
|
2700
|
+
.pane:is(.bell-0, .bell-1)
|
|
2701
|
+
.row.cursor
|
|
2702
|
+
:is(.row-icon, .row-name, .row-meta) {
|
|
2703
|
+
color: var(--on-selected);
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** The eight ANSI colours by name, in SGR order (30–37, 40–47; 90–97 and 100–107 are the same names). */
|
|
2
|
+
export declare const ANSI_COLOURS: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"];
|
|
3
|
+
/** One of the eight ANSI colours. */
|
|
4
|
+
export type AnsiColour = (typeof ANSI_COLOURS)[number];
|
|
5
|
+
/** A run of text in one style. */
|
|
6
|
+
export interface AnsiSegment {
|
|
7
|
+
readonly text: string;
|
|
8
|
+
/** Its foreground colour; the line's own when absent. */
|
|
9
|
+
readonly fg?: AnsiColour;
|
|
10
|
+
/** Its background colour: a filled run (an `INFO` badge). */
|
|
11
|
+
readonly bg?: AnsiColour;
|
|
12
|
+
readonly bold?: boolean;
|
|
13
|
+
readonly dim?: boolean;
|
|
14
|
+
readonly italic?: boolean;
|
|
15
|
+
readonly underline?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A log line's text as runs of one style each, read from its SGR escape
|
|
19
|
+
* sequences: the eight colours and their bright forms (as the same name),
|
|
20
|
+
* backgrounds, bold, dim, italic, underline, and inverse, each reset as
|
|
21
|
+
* SGR resets it, in the 7-bit form (`ESC [`) or the 8-bit one. Extended
|
|
22
|
+
* colours (256 and true colour) are skipped, and every other escape
|
|
23
|
+
* sequence, control string, 8-bit control, and cut-off escape is dropped, so the runs hold printable text alone. A line with no escape is
|
|
24
|
+
* one plain run. Linear in the text's length, and pure: the text is never
|
|
25
|
+
* read as markup.
|
|
26
|
+
*/
|
|
27
|
+
export declare function ansiSegments(text: string): readonly AnsiSegment[];
|