@alis-build/design-system 0.13.0 → 0.13.1
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/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
|
|
@@ -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.1",
|
|
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
|