@alis-build/design-system 0.13.0 → 0.13.2
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/alisx.css +4 -3
- package/components/AppAsk.md +1 -1
- package/components/AppKeys.md +3 -2
- package/components/AppShell.md +5 -3
- package/components/AppShortcutSheet.md +4 -4
- package/components/AppTitleBar.md +1 -1
- package/package.json +1 -1
- package/rules/shortcuts.md +23 -7
package/alisx.css
CHANGED
|
@@ -482,9 +482,10 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
482
482
|
/* breakpoint-medium (840): the detail pane slides over the content */
|
|
483
483
|
@media (max-width:839px){.app-shell--detail{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell__detail{position:fixed;top:0;right:0;bottom:0;width:min(var(--detail-width),100%);background:var(--surface);box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent);border-left:0;z-index:2}}
|
|
484
484
|
/* breakpoint-compact (600): the navigation pane collapses to a column of icons */
|
|
485
|
-
/* Compact window: the navigation pane
|
|
486
|
-
|
|
487
|
-
|
|
485
|
+
/* Compact window: the navigation pane fills the screen, the same pane opened by the title bar's menu button
|
|
486
|
+
(app-shell--nav-open) on the ground: nothing shows behind it, so no scrim and no elevation. Its close sits in its head */
|
|
487
|
+
.app-shell__nav-close{display:none}
|
|
488
|
+
@media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:minmax(0,1fr)}.app-shell__nav{display:none;position:fixed;inset:0;z-index:3;width:auto;padding:calc(var(--space-8) + env(safe-area-inset-top,0px)) calc(var(--space-12) + env(safe-area-inset-right,0px)) calc(var(--space-16) + env(safe-area-inset-bottom,0px)) calc(var(--space-12) + env(safe-area-inset-left,0px));overflow-y:auto;background:var(--background);border-right:0}.app-shell--nav-open .app-shell__nav{display:flex}.app-shell__nav-close{display:inline-flex;position:absolute;top:calc(var(--space-12) + env(safe-area-inset-top,0px));right:calc(var(--space-8) + env(safe-area-inset-right,0px));color:var(--on-surface)}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}}
|
|
488
489
|
|
|
489
490
|
/* ── Navigation pane · brand, account card ── */
|
|
490
491
|
.app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
package/components/AppAsk.md
CHANGED
|
@@ -191,7 +191,7 @@ A band at the top of the composer's surface, above the editor, divided from it b
|
|
|
191
191
|
|
|
192
192
|
- **Open and close** the band with the ask. Alis's ask takes focus (its first option, or its filled action); a person's docks without moving it and is announced through a polite live region. Return focus to the editor when it closes.
|
|
193
193
|
- **The lead**: `.app-composer__go--plain` on the composer's button while the editor is empty; when it has text, drop it (Send fills) and swap the ask's `app-btn--filled` for `app-btn--outlined`.
|
|
194
|
-
- **Keyboard
|
|
194
|
+
- **Keyboard** ([shortcuts.md](../rules/shortcuts.md) § The same everywhere): while focus is in no field (the editor included), the number keys pick an option, A answers with the affirmative and X refuses (opening the reason field where there is one). On an ask that is hard to undo (deleting, reaching production), A moves focus to the affirmative and Enter confirms. They are single keys: the switch turns them off. Enter on a focused option answers it; Escape moves focus to the editor without answering. Enter in the editor sends your words: Alis's answer, or a reply to a person.
|
|
195
195
|
- **Several questions**: answering moves to the next; previous and next page without answering; Skip answers "let Alis decide".
|
|
196
196
|
- **After**: write the record into the thread (your bubble for a choice or words, `.app-turn__record` for an approval) and the head moves on from *Waiting for you*.
|
|
197
197
|
- **A person's request**: show the ask to everyone who can decide; keep it docked while they type replies; Decline swaps the actions for the reason field and Back, moving focus as § Who asks says; when someone else decides, show it on the line, move any started reason into the editor, then close; on a failure, keep the band and its actions with the line in `error`; write the outcome to the request's state line, not a record turn.
|
package/components/AppKeys.md
CHANGED
|
@@ -8,6 +8,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
|
|
|
8
8
|
- **Not a label.** Never inside a button, never in brackets, never on a line of its own under a composer or a picker.
|
|
9
9
|
- **One spelling.** ⌘ ⇧ ⌥ ⌃ on a Mac, Ctrl Shift Alt elsewhere; Enter, Esc, Tab, Space and Delete as words everywhere; arrows as arrows. Never a plus sign.
|
|
10
10
|
- **A capital takes Shift**: ⇧ U. A letter cap is always the capital.
|
|
11
|
+
- **A symbol is its own cap**: `+`, `?`, `/` as the character they type. A lone `+` cap is the plus key, never a separator.
|
|
11
12
|
- **A sequence** puts `then` between its keys: G then H.
|
|
12
13
|
|
|
13
14
|
## Anatomy
|
|
@@ -28,7 +29,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
|
|
|
28
29
|
<!-- The same shortcut on Windows and Linux -->
|
|
29
30
|
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Ctrl</kbd><kbd class="app-key">K</kbd></kbd>
|
|
30
31
|
|
|
31
|
-
<!-- A single letter: --single, so it can leave when single-key shortcuts are off -->
|
|
32
|
+
<!-- A single key (a letter, a digit, +, ?, /): --single, so it can leave when single-key shortcuts are off -->
|
|
32
33
|
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">R</kbd></kbd>
|
|
33
34
|
|
|
34
35
|
<!-- A capital, and a sequence -->
|
|
@@ -44,7 +45,7 @@ A keyboard shortcut, one cap per key, written for the platform ([shortcuts.md](.
|
|
|
44
45
|
## Behaviour you must supply
|
|
45
46
|
|
|
46
47
|
- **The platform**, detected once for the product (a Mac, or anything else), and every set written for it. A guide for another app writes that app's platform instead.
|
|
47
|
-
- **`app-keys--single`** on a set that is one
|
|
48
|
+
- **`app-keys--single`** on a set that is one character key with no modifier (a letter, a digit, `+`, `?`, `/`), so the product can hide it while single-key shortcuts are off (`data-single-keys="off"` on the root).
|
|
48
49
|
- **`aria-keyshortcuts`** on the control a set describes, in the platform's terms (`Meta+K` on a Mac, `Control+K` elsewhere; `R`; `Shift+U`).
|
|
49
50
|
|
|
50
51
|
## Classes
|
package/components/AppShell.md
CHANGED
|
@@ -18,7 +18,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
18
18
|
- **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
|
|
19
19
|
- **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. **It has a URL** (a query parameter, as search keeps `?q=`), so a refresh, a shared link and back all find it. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`, over a scrim.
|
|
20
20
|
- **On a phone** (below 600px) the shell is one column: the content, under a one-row title bar ([AppTitleBar](AppTitleBar.md) § On a phone).
|
|
21
|
-
- **The navigation pane
|
|
21
|
+
- **The navigation pane fills the screen**: the same pane, brand, groups, agent chats and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It lies on the ground, edge to edge inside the safe area: nothing shows behind it, so no scrim and no elevation. Its close (`.app-shell__nav-close`, "Close navigation") sits in its head beside the brand. Never a column of icons: it hid the agent chats, the place you go back to most, and left the content too little room.
|
|
22
22
|
- **The detail pane covers the full width**, and its bar leads with back (`arrow_back`) instead of close: on a phone it reads as a step deeper, and the phone's own back gesture closes it.
|
|
23
23
|
- The CSS lays all of this out; you open and close the drawer.
|
|
24
24
|
- No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
|
|
@@ -31,6 +31,8 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
31
31
|
<a class="app-brand" href="/" aria-label="AlisX home">
|
|
32
32
|
<img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
|
|
33
33
|
</a>
|
|
34
|
+
<!-- Shown only below 600px, where the pane fills the screen -->
|
|
35
|
+
<button type="button" class="app-icon-btn app-state app-target app-shell__nav-close" aria-label="Close navigation"><span class="app-icon" aria-hidden="true">close</span></button>
|
|
34
36
|
|
|
35
37
|
<!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
|
|
36
38
|
|
|
@@ -96,7 +98,7 @@ Usage lives here, never in a title bar: it measures the account, not the screen
|
|
|
96
98
|
|
|
97
99
|
- Add `app-shell--detail` and the `<aside>` only while something is selected; remove both when the detail pane closes, and return focus to the row that opened it.
|
|
98
100
|
- When the rail runs long, scroll only the region after the product groups (the agent chat list); the brand, the groups and the foot stay put.
|
|
99
|
-
- **The drawer** (below 600px): the title bar's menu button (`aria-expanded`, `aria-controls` on the nav) adds `app-shell--nav-open`. While it's open, make `.app-shell__main` `inert` and move focus to
|
|
101
|
+
- **The drawer** (below 600px): the title bar's menu button (`aria-expanded`, `aria-controls` on the nav) adds `app-shell--nav-open`. While it's open, make `.app-shell__main` `inert` and move focus to its close. It closes from its close, on a route change and on Escape, and focus returns to the menu button. Remove the class at 600px and up.
|
|
100
102
|
- **The detail pane's history**: opening it pushes a history entry with its parameter; choosing another row while it's open replaces that entry, so back doesn't step through every row you looked at; close goes back. At every width.
|
|
101
103
|
- The account card opens the account menu (toggle `aria-expanded`).
|
|
102
104
|
- No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
|
|
@@ -104,4 +106,4 @@ Usage lives here, never in a title bar: it measures the account, not the screen
|
|
|
104
106
|
|
|
105
107
|
## Classes
|
|
106
108
|
|
|
107
|
-
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-shell--nav-open`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
|
|
109
|
+
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-shell--nav-open`, `.app-shell__nav-close`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
|
|
@@ -5,7 +5,7 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
7
7
|
- **One sheet for the product.** It opens from `?` on any screen and from a **Keyboard shortcuts** row in the account menu (with `?` as its hint), a row a touch screen leaves out. No screen builds its own list of keys or its own dialog for them.
|
|
8
|
-
- **Beside the work, never over it.** It takes the [AppShell](AppShell.md)'s detail pane: on a screen with no detail pane the content narrows for it; on a screen with one open, the sheet covers that pane until it closes and the pane returns. Below 840px it slides over the content like any detail pane. It has no scrim and takes no focus trap: every key it lists works while it is open.
|
|
8
|
+
- **Beside the work, never over it.** It takes the [AppShell](AppShell.md)'s detail pane: on a screen with no detail pane the content narrows for it; on a screen with one open, the sheet covers that pane until it closes and the pane returns. A detail pane is the side slot (`detail-width`) or a side panel; a conversation or a session opened from a list pane is the screen's content, so it narrows and stays: it is what the keys act on. Below 840px it slides over the content like any detail pane. It has no scrim and takes no focus trap: every key it lists works while it is open.
|
|
9
9
|
- **This screen first.** A group named for what is open ("On this conversation", "On this list"), then **Everywhere**. A key that does nothing here is left out, not dimmed.
|
|
10
10
|
- **Not a settings page.** Its one control is the single-key switch.
|
|
11
11
|
|
|
@@ -53,8 +53,8 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
|
|
|
53
53
|
<section class="app-shortcuts__group" aria-labelledby="ks-all">
|
|
54
54
|
<h3 class="app-shortcuts__heading text-eyebrow" id="ks-all">Everywhere</h3>
|
|
55
55
|
<dl>
|
|
56
|
-
<div class="app-shortcuts__row"><dt class="text-body">Search this screen</dt><dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">/</kbd></kbd><span class="app-keys__said">Slash</span></dd></div>
|
|
57
|
-
<div class="app-shortcuts__row"><dt class="text-body">Show these keys</dt><dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">?</kbd></kbd><span class="app-keys__said">Question mark</span></dd></div>
|
|
56
|
+
<div class="app-shortcuts__row"><dt class="text-body">Search this screen</dt><dd><kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">/</kbd></kbd><span class="app-keys__said">Slash</span></dd></div>
|
|
57
|
+
<div class="app-shortcuts__row"><dt class="text-body">Show these keys</dt><dd><kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">?</kbd></kbd><span class="app-keys__said">Question mark</span></dd></div>
|
|
58
58
|
<div class="app-shortcuts__row"><dt class="text-body">Close or step back</dt><dd><kbd class="app-keys" aria-hidden="true"><kbd class="app-key">Esc</kbd></kbd><span class="app-keys__said">Escape</span></dd></div>
|
|
59
59
|
</dl>
|
|
60
60
|
</section>
|
|
@@ -76,7 +76,7 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
|
|
|
76
76
|
|
|
77
77
|
- **One list of shortcuts** for the product, each with its keys, what it does, and where it works. The sheet, the tooltips and the menu hints all read it, so a key is never shown that doesn't work, and no key works that isn't shown.
|
|
78
78
|
- **`?` toggles the sheet** and Esc closes it, except while focus is in a field. Closing returns focus to whatever had it before.
|
|
79
|
-
- **The switch** is kept per person (not per device) and applied at once: set `data-single-keys="off"` on the root, stop handling single
|
|
79
|
+
- **The switch** is kept per person (not per device) and applied at once: set `data-single-keys="off"` on the root, stop handling every single key (`?` and `/` included; the account menu still opens the sheet), and show the note.
|
|
80
80
|
- **The groups follow the screen**: when what is open changes, rebuild the first group.
|
|
81
81
|
|
|
82
82
|
## Classes
|
|
@@ -93,7 +93,7 @@ The tabs scroll under it; the filter row is unchanged. The bar has no hairline a
|
|
|
93
93
|
<span class="app-icon" aria-hidden="true">search</span>
|
|
94
94
|
<input class="app-search__input" type="search" placeholder="Search environments" aria-label="Search environments" aria-keyshortcuts="/">
|
|
95
95
|
<!-- The screen's key: the CSS shows it only while the field is empty and unfocused -->
|
|
96
|
-
<kbd class="app-keys" aria-hidden="true"><kbd class="app-key">/</kbd></kbd>
|
|
96
|
+
<kbd class="app-keys app-keys--single" aria-hidden="true"><kbd class="app-key">/</kbd></kbd>
|
|
97
97
|
<!-- Only while the input has a value: -->
|
|
98
98
|
<button type="button" class="app-search__clear app-state app-target" aria-label="Clear search">
|
|
99
99
|
<span class="app-icon" aria-hidden="true">close</span>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/shortcuts.md
CHANGED
|
@@ -26,6 +26,9 @@ side, never a plus sign and never brackets.
|
|
|
26
26
|
is always the capital.
|
|
27
27
|
- **A sequence says "then"**: G then H. Two caps with nothing between them are
|
|
28
28
|
pressed together.
|
|
29
|
+
- **A symbol is its own cap**: `+`, `?` and `/` are the keys themselves, written as
|
|
30
|
+
the character they type, even where a layout needs Shift for it. A lone `+` cap
|
|
31
|
+
is the plus key, never a separator.
|
|
29
32
|
- **Keys for another app** (a setup guide: "In PowerShell, press Ctrl V") use that
|
|
30
33
|
guide's platform, not the one detected.
|
|
31
34
|
|
|
@@ -64,26 +67,39 @@ nothing here is left out, not dimmed.
|
|
|
64
67
|
| Keys | Does |
|
|
65
68
|
| --- | --- |
|
|
66
69
|
| ? | Opens or closes the sheet |
|
|
67
|
-
| Esc | Closes what is open (a menu, a dialog, the sheet), or leaves the field
|
|
70
|
+
| Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field |
|
|
68
71
|
| / | Puts you in the screen's search field |
|
|
69
72
|
| ⌘ K | Reserved for finding anything across the product ([known-gaps.md](known-gaps.md)); bind nothing to it |
|
|
70
73
|
|
|
71
74
|
A screen never rebinds these, and never takes a key the browser or the operating
|
|
72
75
|
system owns (⌘ W, ⌘ T, ⌘ L, ⌘ R, ⌘ F, ⌘ P, ⌘ Q, Ctrl Tab).
|
|
73
76
|
|
|
77
|
+
These single keys mean the same wherever they work, and nothing else anywhere.
|
|
78
|
+
A screen binds the ones it has a use for:
|
|
79
|
+
|
|
80
|
+
| Keys | Does | Where |
|
|
81
|
+
| --- | --- | --- |
|
|
82
|
+
| J / K | Next / previous item; Enter opens it. With a detail open, steps to the next or previous item | Every list, and a list beside its detail |
|
|
83
|
+
| + | The screen's New: its title bar's lead when that is New or Add, or a new conversation. Matched on the character typed, so any layout and the numpad work | Every screen whose lead is a New or an Add |
|
|
84
|
+
| A / X | The affirmative / the refusal of an ask waiting on you, whoever asks ([AppAsk](../components/AppAsk.md)). X opens the reason field where there is one. **On an ask that is hard to undo** (deleting, reaching production), A moves focus to the affirmative and Enter confirms: one stray key never does it | Any screen showing an ask that waits on you |
|
|
85
|
+
| 1–9 | Picks option n of the ask, or of numbered options, waiting on you | Wherever options are numbered |
|
|
86
|
+
| U / ⇧ U | The people on this thing (participants, sharing, access) / hand it over, only where handing over exists | Anything with people on it |
|
|
87
|
+
|
|
74
88
|
## Single keys
|
|
75
89
|
|
|
76
|
-
A
|
|
77
|
-
|
|
90
|
+
A single key is any key that types a character on its own: a letter, a digit,
|
|
91
|
+
`+`, `?`, `/`. A screen may bind single keys for the verbs a person repeats (A
|
|
92
|
+
approves, R resolves). Three conditions:
|
|
78
93
|
|
|
79
94
|
- **Never while typing.** A single key does nothing while focus is in a field, an
|
|
80
95
|
editor or anything that takes text.
|
|
81
96
|
- **They can be turned off.** The sheet's foot holds an
|
|
82
97
|
[AppSwitch](../components/AppSwitch.md), **Single-key shortcuts**, kept per
|
|
83
|
-
person. Off, every single
|
|
84
|
-
tooltips and
|
|
85
|
-
|
|
86
|
-
|
|
98
|
+
person. Off, every single key stops working, `?` and `/` included, and its caps
|
|
99
|
+
leave tooltips, menus and the search field; the sheet keeps them, dimmed, under
|
|
100
|
+
a note saying they are off, and still opens from the account menu. Speech input
|
|
101
|
+
types any character, and a stray one must not approve anything.
|
|
102
|
+
- **The same key, the same act.** R resolves wherever there is something to
|
|
87
103
|
resolve; it never means Reply on another screen.
|
|
88
104
|
|
|
89
105
|
## Accessible names
|