@alis-build/design-system 0.13.1 → 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/AppShell.md +5 -3
- package/components/AppShortcutSheet.md +1 -1
- package/package.json +1 -1
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/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
|
|
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",
|