@alis-build/design-system 0.12.0 → 0.13.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/alisx.css +12 -5
- package/components/AppMenu.md +1 -1
- package/components/AppShell.md +22 -7
- package/components/AppShortcutSheet.md +1 -1
- package/components/AppTitleBar.md +37 -5
- package/components/README.md +0 -1
- package/package.json +1 -1
- package/rules/buttons.md +6 -0
- package/rules/page.md +15 -3
- package/rules/quick-start.md +1 -1
- package/rules/shortcuts.md +5 -0
- package/rules/type.md +4 -0
- package/tokens.json +1 -1
package/alisx.css
CHANGED
|
@@ -217,7 +217,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
217
217
|
/* ── Type-style completions the token classes can't carry ── */
|
|
218
218
|
.text-eyebrow{text-transform:uppercase}
|
|
219
219
|
.text-metric-value{font-variant-numeric:tabular-nums}
|
|
220
|
-
@media (max-width:599px){.text-welcome-title{font-size:32px;line-height:40px}}
|
|
220
|
+
@media (max-width:599px){.text-welcome-title{font-size:32px;line-height:40px}.text-page-title{font-size:18px;line-height:24px;letter-spacing:-0.02em}}
|
|
221
221
|
|
|
222
222
|
/* ── Face and weight, beside a role class: the role keeps the size ── */
|
|
223
223
|
.text-mono{font-family:var(--font-mono)}
|
|
@@ -413,8 +413,12 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
413
413
|
.app-titlebar--detail .app-titlebar__name{flex:1 1 100%}
|
|
414
414
|
/* The first verb's label meets the pane edge, as the close glyph does */
|
|
415
415
|
.app-titlebar--detail .app-titlebar__actions{flex-basis:100%;margin-left:calc(var(--space-24) * -1)}
|
|
416
|
-
/*
|
|
417
|
-
@media (
|
|
416
|
+
/* One markup for both windows: a part that exists only on a phone, or only above one */
|
|
417
|
+
@media (min-width:600px){.app-compact-only{display:none!important}}
|
|
418
|
+
@media (max-width:599px){.app-wide-only{display:none!important}}
|
|
419
|
+
/* Compact window: one 56 bar. Menu or back, the name, the lead as its glyph alone, then ⋯ holding every other verb.
|
|
420
|
+
Its 48 targets sit 4 in and its glyphs 16 in; a name with nothing before it starts on the content's 24 edge. A row's meta gives way to its title */
|
|
421
|
+
@media (max-width:599px){.app-titlebar:not(.app-titlebar--detail){gap:0;padding:env(safe-area-inset-top,0px) var(--space-8) 0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap;gap:0;min-height:56px}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__name{flex:1;gap:var(--space-4)}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__leading{margin-left:0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__name:not(:has(.app-titlebar__leading)) .app-titlebar__title{padding-left:var(--space-16)}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__actions{flex-wrap:nowrap;gap:0;margin-left:0}.app-titlebar__lead{width:40px;min-width:0;height:40px;padding:0;gap:0;border-color:transparent;background:transparent;color:var(--on-surface)}.app-titlebar__lead .app-icon{margin:0;font-size:24px}.app-titlebar:not(.app-titlebar--detail) .app-tabs{margin:0 calc(var(--space-8) * -1);padding:0 var(--space-8)}.app-titlebar__lead .app-titlebar__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.app-titlebar .app-icon-btn{color:var(--on-surface)}.app-row:not(.app-row--nav):not(.app-row--agent-chat) .app-row__meta{display:none}}
|
|
418
422
|
/* The filter row sits in .app-shell__content, which already pads the sides */
|
|
419
423
|
.app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
420
424
|
/* Search leads the row; the controls follow it; the count closes the row and answers them */
|
|
@@ -478,12 +482,13 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
478
482
|
/* breakpoint-medium (840): the detail pane slides over the content */
|
|
479
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}}
|
|
480
484
|
/* breakpoint-compact (600): the navigation pane collapses to a column of icons */
|
|
481
|
-
|
|
485
|
+
/* Compact window: the navigation pane becomes a drawer, the same pane at the same width, opened by the title bar's
|
|
486
|
+
menu button (app-shell--nav-open) over a scrim, as a detail pane slides over a narrow window */
|
|
487
|
+
@media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:minmax(0,1fr)}.app-shell__nav{display:none;position:fixed;top:0;bottom:0;left:0;z-index:3;width:var(--nav-width);max-width:calc(100% - 56px);padding-top:calc(var(--space-16) + env(safe-area-inset-top,0px));overflow-y:auto;background:var(--surface);border-right:0;box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent)}.app-shell--nav-open .app-shell__nav{display:flex}.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%}}
|
|
482
488
|
|
|
483
489
|
/* ── Navigation pane · brand, account card ── */
|
|
484
490
|
.app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
|
485
491
|
.app-brand__wordmark{display:block;width:auto}
|
|
486
|
-
.app-brand__mark{display:none;width:auto}
|
|
487
492
|
.app-account{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-top:var(--space-8);padding:var(--space-8);border:1px solid var(--outline-variant);border-radius:var(--radius-lg);background:transparent;color:var(--on-surface);text-align:left;font:inherit}
|
|
488
493
|
.app-account__avatar{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
|
|
489
494
|
span.app-account__avatar{display:flex;align-items:center;justify-content:center;background:var(--surface-container-highest);color:var(--on-surface)}
|
|
@@ -823,6 +828,8 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
823
828
|
.app-keys__said{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
824
829
|
/* On a grey field the cap lifts to white; the search field's key shows only while it is empty and unfocused */
|
|
825
830
|
.app-search .app-key{background:var(--surface)}
|
|
831
|
+
/* On a touch screen there is no keyboard to press them: the search field's cap and a menu row's keys leave */
|
|
832
|
+
@media (pointer:coarse){.app-search>.app-keys,.app-menu__hint>.app-keys{display:none}}
|
|
826
833
|
.app-search:focus-within>.app-keys,.app-search:has(>.app-search__input:not(:placeholder-shown))>.app-keys{display:none}
|
|
827
834
|
/* Single-key shortcuts off (set on the root): letter caps leave tooltips and menus, and dim in the sheet */
|
|
828
835
|
[data-single-keys="off"] .app-keys--single{display:none}
|
package/components/AppMenu.md
CHANGED
|
@@ -93,7 +93,7 @@ What you chose from `/` or `@` becomes **one token in the sentence** (`.app-toke
|
|
|
93
93
|
- **Triggers**: `/` at the start of the message only, `@` at the start or after a space; filter as you type; close when a space follows no match.
|
|
94
94
|
- **Tokens**: insert them as non-editable atoms followed by a space; carry them through whatever the editor serializes to (a token must survive the round trip, never becoming plain text or a placeholder), and render them as links in the sent message.
|
|
95
95
|
- **Checked items**: set `aria-checked`, `is-selected` and the trailing `check` together.
|
|
96
|
-
- **A shortcut**: the same keys the sheet lists, written for the platform, and `aria-keyshortcuts` on the row ([shortcuts.md](../rules/shortcuts.md)). The account menu
|
|
96
|
+
- **A shortcut**: the same keys the sheet lists, written for the platform, and `aria-keyshortcuts` on the row ([shortcuts.md](../rules/shortcuts.md)). The account menu holds **Keyboard shortcuts**, `?` as its hint, which opens the [AppShortcutSheet](AppShortcutSheet.md) ([AppShell](AppShell.md) § The account menu). On a coarse pointer a row's keys leave by themselves.
|
|
97
97
|
|
|
98
98
|
## Classes
|
|
99
99
|
|
package/components/AppShell.md
CHANGED
|
@@ -10,13 +10,17 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
10
10
|
- **Navigation pane** (`nav-width`, 256px), three regions:
|
|
11
11
|
- **Top**, fixed: the brand (`.app-brand`), the AlisX wordmark linking Home. It is the way home from every rail.
|
|
12
12
|
- **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as 36px nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, and sets its own type: 12/16 at 500, sentence case, no tracking. Never an eyebrow. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
|
|
13
|
-
- **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu
|
|
14
|
-
- **A row's "new"** is a small [AppIconButton](AppIconButton.md)
|
|
13
|
+
- **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu (§ The account menu).
|
|
14
|
+
- **A row's "new"** is a small [AppIconButton](AppIconButton.md) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create: `add`, or `edit_square` where the destination is a conversation ("New chat"), as on its title bar's lead ([buttons.md](../rules/buttons.md) § The form).
|
|
15
15
|
- **No action in the pane.** A screen's "new" is the outlined lead in its title bar ([AppTitleBar](AppTitleBar.md)); the navigation pane holds destinations, and a row's own "new" icon button.
|
|
16
16
|
- **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
|
|
17
17
|
- The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
|
|
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
|
-
- **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. 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
|
|
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
|
+
- **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 becomes a drawer**: the same pane at the same width, brand, groups, agent chats and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It slides over the content at `elevation-3` over a scrim, like a detail pane. 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
|
+
- **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
|
+
- The CSS lays all of this out; you open and close the drawer.
|
|
20
24
|
- No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
|
|
21
25
|
|
|
22
26
|
## Markup
|
|
@@ -26,7 +30,6 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
26
30
|
<nav class="app-shell__nav" aria-label="Main">
|
|
27
31
|
<a class="app-brand" href="/" aria-label="AlisX home">
|
|
28
32
|
<img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
|
|
29
|
-
<img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
|
|
30
33
|
</a>
|
|
31
34
|
|
|
32
35
|
<!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
|
|
@@ -79,14 +82,26 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
79
82
|
|
|
80
83
|
Group headings are the product's short name, "Ideate" and "Build"; the full names (*Alis Ideate*, *Alis Build*) are for copy.
|
|
81
84
|
|
|
85
|
+
## The account menu
|
|
86
|
+
|
|
87
|
+
An [AppMenu](AppMenu.md), opened from the account card, in three groups:
|
|
88
|
+
|
|
89
|
+
1. **The accounts**: one checked row per account you can work in (`menuitemradio`), the product names in its supporting line. Choosing one switches.
|
|
90
|
+
2. **About you here**: **Usage** where the product measures it (`data_usage`, the share used in its supporting line, "68% of this month's credits", in `error` at the limit), opening the product's usage panel; then **Keyboard shortcuts**, `?` as its hint, opening the [AppShortcutSheet](AppShortcutSheet.md), left out on a touch screen.
|
|
91
|
+
3. **Profile**, then **Sign out**.
|
|
92
|
+
|
|
93
|
+
Usage lives here, never in a title bar: it measures the account, not the screen ([AppTitleBar](AppTitleBar.md)).
|
|
94
|
+
|
|
82
95
|
## Behaviour you must supply
|
|
83
96
|
|
|
84
97
|
- 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.
|
|
85
98
|
- 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.
|
|
86
|
-
- The
|
|
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 the first row. It closes on a route change, on Escape and on a press outside it, and focus returns to the menu button. Remove the class at 600px and up.
|
|
100
|
+
- **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
|
+
- The account card opens the account menu (toggle `aria-expanded`).
|
|
87
102
|
- No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
|
|
88
|
-
-
|
|
103
|
+
- The brand link keeps its `aria-label`, since the wordmark is decorative.
|
|
89
104
|
|
|
90
105
|
## Classes
|
|
91
106
|
|
|
92
|
-
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-
|
|
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`.
|
|
@@ -4,7 +4,7 @@ Every key the screen answers to, in the detail pane's place ([shortcuts.md](../r
|
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
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). No screen builds its own list of keys or its own dialog for them.
|
|
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
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.
|
|
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.
|
|
@@ -7,7 +7,8 @@ The top of every product screen: the name and the verbs; route tabs under the na
|
|
|
7
7
|
See [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
9
|
- **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
|
|
10
|
-
- **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add. Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
|
|
10
|
+
- **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add, and by `edit_square` when it starts a new conversation ("New chat"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
|
|
11
|
+
- **Never status.** The bar names the screen and holds its verbs: no meter, no usage ring, no saving state, no count. A thing's state is a chip on the detail bar's row or in the content; an account's usage is a row in the account menu ([AppShell](AppShell.md) § The account menu).
|
|
11
12
|
- **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
|
|
12
13
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
13
14
|
- **Tabs are routes**, and scroll sideways when they don't fit: each opens another view of this screen (Overview, Interviews, Artifacts). A tab that narrows one list is a filter: put it in the filter row as an [AppSegmented](AppSegmented.md).
|
|
@@ -15,7 +16,16 @@ See [page.md](../rules/page.md).
|
|
|
15
16
|
- **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
|
|
16
17
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
17
18
|
|
|
18
|
-
**
|
|
19
|
+
**On a phone** (below 600px) the bar is one row, 56 tall, and holds four things and nothing else:
|
|
20
|
+
|
|
21
|
+
1. **Leading**: the menu button (`menu`), which opens the navigation drawer ([AppShell](AppShell.md)); back (`arrow_back`) on a detail route. Nothing on a screen with no navigation (joining an interview, signing in).
|
|
22
|
+
2. **The name**, page-title at its compact step (18/24 at 700, a step above the section-titles under it), truncating.
|
|
23
|
+
3. **The lead as its glyph alone**, its label the accessible name. A lead whose glyph wouldn't read on its own ("Generate key", "Install block") leaves the bar and leads ⋯ instead; a lead with no glyph above 600 can carry one for the phone (`edit` for "Edit session", `app-compact-only` on the glyph).
|
|
24
|
+
4. **⋯** (`more_vert`), an [AppMenu](AppMenu.md) holding every other verb in the order they had, anything destructive last behind a divider. Left out when there are none. Rename lives here: never a double tap on the name.
|
|
25
|
+
|
|
26
|
+
The tabs scroll under it; the filter row is unchanged. The bar has no hairline at rest; add one (an `outline-variant` inset shadow) while content scrolls under it. Mark the parts that exist on only one side `app-compact-only` or `app-wide-only`, so one markup serves both.
|
|
27
|
+
|
|
28
|
+
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. On a phone the pane covers the window and its close becomes back (`arrow_back`). The pane pads it; add nothing.
|
|
19
29
|
|
|
20
30
|
## Markup
|
|
21
31
|
|
|
@@ -28,7 +38,7 @@ See [page.md](../rules/page.md).
|
|
|
28
38
|
<h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
|
|
29
39
|
</div>
|
|
30
40
|
<div class="app-titlebar__actions">
|
|
31
|
-
<button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button>
|
|
41
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined app-titlebar__lead"><span class="app-icon" aria-hidden="true">add</span><span class="app-titlebar__label">New environment</span></button>
|
|
32
42
|
</div>
|
|
33
43
|
</div>
|
|
34
44
|
<!-- Optional route tabs -->
|
|
@@ -38,14 +48,35 @@ See [page.md](../rules/page.md).
|
|
|
38
48
|
</nav>
|
|
39
49
|
</header>
|
|
40
50
|
|
|
51
|
+
<!-- On a phone: the menu button leads; the lead keeps its markup and shows its glyph alone; ⋯ holds the other verbs -->
|
|
52
|
+
<header class="app-titlebar">
|
|
53
|
+
<div class="app-titlebar__row">
|
|
54
|
+
<div class="app-titlebar__name">
|
|
55
|
+
<span class="app-titlebar__leading app-compact-only">
|
|
56
|
+
<button type="button" class="app-icon-btn app-state app-target" aria-label="Menu" aria-expanded="false" aria-controls="nav"><span class="app-icon" aria-hidden="true">menu</span></button>
|
|
57
|
+
</span>
|
|
58
|
+
<h1 class="app-titlebar__title text-page-title" title="Customer onboarding research">Customer onboarding research</h1>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="app-titlebar__actions">
|
|
61
|
+
<button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
|
|
62
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined app-titlebar__lead"><span class="app-icon" aria-hidden="true">add</span><span class="app-titlebar__label">Add contribution</span></button>
|
|
63
|
+
<button type="button" class="app-icon-btn app-state app-target app-compact-only" aria-label="More actions" aria-haspopup="menu" aria-expanded="false" aria-controls="m-bar"><span class="app-icon" aria-hidden="true">more_vert</span></button>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</header>
|
|
67
|
+
<!-- m-bar: Set project goal, Rename, Share, a divider, Delete project -->
|
|
68
|
+
|
|
41
69
|
<!-- Detail bar: h2 in section-title, no search, no tabs -->
|
|
42
70
|
<header class="app-titlebar app-titlebar--detail">
|
|
43
71
|
<div class="app-titlebar__row">
|
|
44
72
|
<div class="app-titlebar__name">
|
|
45
73
|
<span class="app-titlebar__leading">
|
|
46
|
-
<button type="button" class="app-icon-btn app-state app-target app-icon-btn--small" aria-label="Close details" title="Close details">
|
|
74
|
+
<button type="button" class="app-icon-btn app-state app-target app-icon-btn--small app-wide-only" aria-label="Close details" title="Close details">
|
|
47
75
|
<span class="app-icon" aria-hidden="true">close</span>
|
|
48
76
|
</button>
|
|
77
|
+
<button type="button" class="app-icon-btn app-state app-target app-icon-btn--small app-compact-only" aria-label="Back to environments">
|
|
78
|
+
<span class="app-icon" aria-hidden="true">arrow_back</span>
|
|
79
|
+
</button>
|
|
49
80
|
</span>
|
|
50
81
|
<h2 class="app-titlebar__title text-section-title" title="staging">staging</h2>
|
|
51
82
|
</div>
|
|
@@ -79,6 +110,7 @@ See [page.md](../rules/page.md).
|
|
|
79
110
|
## Behaviour you must supply
|
|
80
111
|
|
|
81
112
|
- Set `title` on the heading to the full name (the hover text for a truncated name).
|
|
113
|
+
- **On a phone**: build ⋯ from the verbs the wide bar shows (the `app-wide-only` ones), in the same order, leading with the lead when it leaves the bar. Give the menu button `aria-expanded` and `aria-controls` pointing at the navigation pane. A tooltip never shows on touch: the lead's label is its accessible name.
|
|
82
114
|
- **Search**: filter as the user types a list you already hold; where the search goes to a server, run it on Enter and say so in the placeholder. Show the clear button only while the input has a value; clear empties the input, re-filters and returns focus to the input. Keep the query in the URL (`?q=`), so back, refresh and a shared link keep it.
|
|
83
115
|
- **`/`** puts focus in the screen's search field from anywhere on the screen, except while focus is in another field ([shortcuts.md](../rules/shortcuts.md)). A section's or a pane's own search has no `/` and no cap: one field per screen answers to it.
|
|
84
116
|
- **The count** answers the row: the total at rest, "2 of 5" while a query or a filter narrows.
|
|
@@ -87,4 +119,4 @@ See [page.md](../rules/page.md).
|
|
|
87
119
|
|
|
88
120
|
## Classes
|
|
89
121
|
|
|
90
|
-
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__actions`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__search`, `.app-filterrow__controls`, `.app-filterrow__summary`; `.app-search`, `.app-search__input`, `.app-search__clear`.
|
|
122
|
+
`.app-titlebar`, `.app-titlebar--detail`, `.app-titlebar__row`, `.app-titlebar__name`, `.app-titlebar__leading`, `.app-titlebar__title`, `.app-titlebar__actions`, `.app-titlebar__lead`, `.app-titlebar__label`; `.app-compact-only`, `.app-wide-only`; `.app-tabs`, `.app-tab`, `.is-selected`; `.app-filterrow`, `.app-filterrow__search`, `.app-filterrow__controls`, `.app-filterrow__summary`; `.app-search`, `.app-search__input`, `.app-search__clear`.
|
package/components/README.md
CHANGED
|
@@ -56,7 +56,6 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
56
56
|
<nav class="app-shell__nav" aria-label="Main">
|
|
57
57
|
<a class="app-brand" href="/" aria-label="AlisX home">
|
|
58
58
|
<img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
|
|
59
|
-
<img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
|
|
60
59
|
</a>
|
|
61
60
|
<!-- Home, Skill Store, then Ideate's group -->
|
|
62
61
|
<p class="app-nav-heading">Build</p>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
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/buttons.md
CHANGED
|
@@ -91,6 +91,12 @@ similar controls people scan repeatedly, and the glyph is conventional.
|
|
|
91
91
|
its glyph is `add`. "Add a follow-up round" works inside a thing and keeps none,
|
|
92
92
|
and so does a field's own action ("Add" beside an input, taking what you
|
|
93
93
|
typed): it is that field's affirmative.
|
|
94
|
+
- **`edit_square` on a new conversation.** `add` brings something into what you
|
|
95
|
+
are looking at: a project into the list, a file into the message. A new chat
|
|
96
|
+
brings nothing in; it leaves this conversation for a blank one, so "New chat"
|
|
97
|
+
and "New conversation" lead with `edit_square`, as does a rail row's "new" for
|
|
98
|
+
them ([AppShell](../components/AppShell.md)). On a conversation, that keeps the
|
|
99
|
+
composer's `add` the only + on screen.
|
|
94
100
|
- **No other icon on a lead**, filled or outlined, and none on a dialog action:
|
|
95
101
|
"Create project" finishes what New started.
|
|
96
102
|
- One icon, leading. The only trailing icon is a chevron meaning "opens a menu".
|
package/rules/page.md
CHANGED
|
@@ -39,9 +39,11 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
39
39
|
- **Its controls are small icon buttons and default-size buttons.** The row
|
|
40
40
|
is `control-height` tall, so a larger control pushes the tabs down; every
|
|
41
41
|
control keeps its hit area ([buttons.md](buttons.md)). Icon buttons stay
|
|
42
|
-
`on-surface-variant
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
`on-surface-variant` beside labelled verbs; on a phone, where the glyphs are the
|
|
43
|
+
verbs, they take `on-surface`. A detail bar's state chip is small.
|
|
44
|
+
- **Never status**: no meter, usage ring, saving state or count in the bar. An
|
|
45
|
+
account's usage is a row in the account menu
|
|
46
|
+
([AppShell](../components/AppShell.md)).
|
|
45
47
|
- **The bar's lead is outlined, never filled**: the action that brings a thing
|
|
46
48
|
into the screen ("New environment"). Its other verbs are text buttons or icon
|
|
47
49
|
buttons. The bar is chrome; the screen's one filled button belongs in the
|
|
@@ -69,6 +71,16 @@ truncates and the bar stays two rows. Where the pane's content is a centred colu
|
|
|
69
71
|
persistent chrome does ([spacing.md](spacing.md) § Measure). A notice about that thing sits at
|
|
70
72
|
the top of the pane.
|
|
71
73
|
|
|
74
|
+
**A detail pane has a URL**: a query parameter, as search keeps `?q=`. Opening it
|
|
75
|
+
pushes a history entry, choosing another row replaces that entry, and closing goes
|
|
76
|
+
back, at every width; on a phone, where the pane covers the window, its close
|
|
77
|
+
becomes back (`arrow_back`) and the phone's back gesture closes it
|
|
78
|
+
([AppShell](../components/AppShell.md)).
|
|
79
|
+
|
|
80
|
+
**On a phone** the title bar is one row: menu or back, the name, the lead as its
|
|
81
|
+
glyph, ⋯ for every other verb ([AppTitleBar](../components/AppTitleBar.md) § On a
|
|
82
|
+
phone). Nothing else earns a place in it.
|
|
83
|
+
|
|
72
84
|
## The filter row
|
|
73
85
|
|
|
74
86
|
`.app-filterrow`. The first thing in the content, directly above what it scopes,
|
package/rules/quick-start.md
CHANGED
|
@@ -29,7 +29,7 @@ AppShell
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
31
|
| The frame and the navigation rail | `AppShell` |
|
|
32
|
-
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add; other verbs are text or icon buttons; no icon on a single verb |
|
|
32
|
+
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add (`edit_square` for a new conversation); other verbs are text or icon buttons; no icon on a single verb; never status. On a phone, one row: menu, name, the lead's glyph, ⋯ |
|
|
33
33
|
| To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
|
|
34
34
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
35
35
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|
package/rules/shortcuts.md
CHANGED
|
@@ -40,6 +40,11 @@ Only where someone is already looking at the control it works. Nowhere else.
|
|
|
40
40
|
3. **The screen's search field** ([AppTitleBar](../components/AppTitleBar.md)): a
|
|
41
41
|
`/` cap at its end, while it is empty and unfocused. A field has no tooltip.
|
|
42
42
|
|
|
43
|
+
**On a touch screen, none of them.** Tooltips don't open, the search field's cap
|
|
44
|
+
and a menu row's keys leave (the CSS does it on a coarse pointer), and the account
|
|
45
|
+
menu leaves out **Keyboard shortcuts**. Keys in prose stay: a setup guide still
|
|
46
|
+
says what to press on the computer it is about.
|
|
47
|
+
|
|
43
48
|
Never inside a button's label, never in brackets after it ("Submit (Ctrl+Enter)"),
|
|
44
49
|
and no hint lines: not under a composer ("Press Enter to send"), not under a
|
|
45
50
|
picker ("↑↓ to navigate"). Enter sends and Shift Enter breaks the line in every
|
package/rules/type.md
CHANGED
|
@@ -31,6 +31,10 @@ Default when unsure: **body**.
|
|
|
31
31
|
|
|
32
32
|
Three more styles, each with one place:
|
|
33
33
|
|
|
34
|
+
- **`text-page-title` on a phone** is 18/24 at 700 (below 600px): the size of a
|
|
35
|
+
section-title, a weight above it, so a long name has room in a one-row bar
|
|
36
|
+
([AppTitleBar](../components/AppTitleBar.md) § On a phone) and still reads as the
|
|
37
|
+
screen's name over the sections under it. The CSS steps it; there is no second class.
|
|
34
38
|
- **`text-welcome-title`**, 40/48 at 800 (32/40 below 600px): the heading of an
|
|
35
39
|
entry screen that addresses the user ([page.md](page.md)). Never a table, form,
|
|
36
40
|
dialog or card.
|
package/tokens.json
CHANGED
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
"lineHeight": "36px",
|
|
577
577
|
"fontWeight": 700,
|
|
578
578
|
"letterSpacing": "-0.03em",
|
|
579
|
-
"usage": "Names the whole screen. One per screen, in the title bar."
|
|
579
|
+
"usage": "Names the whole screen. One per screen, in the title bar. 18/24 below 600px, still at 700."
|
|
580
580
|
},
|
|
581
581
|
{
|
|
582
582
|
"name": "text-section-title",
|