@alis-build/design-system 0.15.0 → 0.15.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/alisx.css +8 -4
- package/components/AppFilePane.md +2 -2
- package/components/AppShell.md +1 -1
- package/package.json +1 -1
- package/rules/page.md +3 -2
- package/rules/surfaces.md +2 -1
- package/tokens.css +0 -1
- package/tokens.json +1 -6
package/alisx.css
CHANGED
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
--detail-width: 360px;
|
|
147
147
|
--breakpoint-compact: 600px;
|
|
148
148
|
--breakpoint-medium: 840px;
|
|
149
|
-
--breakpoint-large: 1200px;
|
|
150
149
|
--breakpoint-expanded: 1200px;
|
|
151
150
|
--breakpoint-large: 1600px;
|
|
152
151
|
--container: 1280px;
|
|
@@ -638,12 +637,17 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
638
637
|
@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%}}
|
|
639
638
|
|
|
640
639
|
/* ── File pane · a file opened beside the conversation (AppFilePane): the detail pane, made wide ── */
|
|
641
|
-
/* breakpoint-
|
|
640
|
+
/* breakpoint-expanded (1200): the content takes two parts and the file three; below it, the file takes the content's place */
|
|
642
641
|
.app-shell--file{grid-template-columns:var(--nav-width) minmax(0,2fr) minmax(0,3fr)}
|
|
643
|
-
|
|
642
|
+
/* Beside the conversation the file is an object Alis made: an instrument card, its edge and no shadow (nothing at rest lifts), inset from the content area; the gap to the chat is the conversation's own padding */
|
|
643
|
+
.app-shell--file .app-shell__detail{position:static;width:auto;padding:0;gap:0;overflow:hidden;margin:var(--space-8) var(--space-12) var(--space-12) 0;background:var(--surface);box-shadow:none;border:1px solid var(--outline-variant);border-radius:var(--radius-lg);z-index:auto}
|
|
644
|
+
.app-shell--file .app-shell__detail>.app-file-pane{background:transparent}
|
|
644
645
|
.app-shell--file-expanded{grid-template-columns:var(--nav-width) minmax(0,1fr)}
|
|
645
646
|
.app-shell--file-expanded .app-shell__main{display:none}
|
|
646
|
-
|
|
647
|
+
/* Expanded, the same card fills the content area, so its shape doesn't change mid-action */
|
|
648
|
+
.app-shell--file-expanded .app-shell__detail{margin:var(--space-12)}
|
|
649
|
+
/* breakpoint-expanded (1200): narrower, the file takes the content's place, flat and full-bleed */
|
|
650
|
+
@media (max-width:1199px){.app-shell--file{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell--file .app-shell__main,.app-file-pane__expand{display:none}.app-shell--file .app-shell__detail{margin:0;border:0;border-left:1px solid var(--outline-variant);border-radius:0;background:var(--background)}}
|
|
647
651
|
@media (max-width:599px){.app-shell--file,.app-shell--file-expanded{grid-template-columns:minmax(0,1fr)}.app-shell--file .app-shell__detail{border-left:0}}
|
|
648
652
|
/* With the content narrowed beside a file, its bar's lead shows its glyph alone, as on a phone */
|
|
649
653
|
.app-shell--file .app-shell__main .app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap}
|
|
@@ -7,7 +7,7 @@ A file Alis made, opened beside the conversation: a page, a document, an image,
|
|
|
7
7
|
See [page.md](../rules/page.md) § A file beside the conversation.
|
|
8
8
|
|
|
9
9
|
- **It is the shell's detail pane, made wide** ([AppShell](AppShell.md)): `app-shell--file` on the shell, the pane in `.app-shell__detail` with `data-detail-pane`. It has a URL, back closes it, Esc closes it, and the shortcut sheet covers it as it covers any detail pane.
|
|
10
|
-
- **From 1200px wide (`breakpoint-large
|
|
10
|
+
- **From 1200px wide (`breakpoint-expanded`, where Material 3's large window starts) it sits beside the conversation**, which takes two parts to its three: at 1440 that is a 707px file, the width of a page of prose. **There it is a card**: the file is an object Alis made, not the second half of the page, so it is an instrument, `surface` with its `outline-variant` edge, `radius-lg`, **no shadow** (nothing at rest lifts, and a shadow barely shows in dark). It is inset `space-8` at the top and `space-12` at the right and foot; the gap to the chat is the conversation's own padding. The bar sits inside with its hairline under it, and the body scrolls inside, clipped to the radius. Expanded, the same card fills the content area, `space-12` all round. Below 1200 the conversation would wrap every few words, so the file takes the content's place and closing it brings the conversation back. The edge doesn't drag.
|
|
11
11
|
- **Opened from a tile** ([AppAttachment](AppAttachment.md)) where Alis put the file in her reply. **It opens by itself only live**: when the turn that made it ends, you are on the conversation, no other detail pane is open and the window is 1200 or wider. Never when a conversation is reopened, never on a phone, and never where it would cover her reply.
|
|
12
12
|
- **Never the word "artifact"**: the pane is named by the file, its description or else its file name.
|
|
13
13
|
- **No versions.** The file is overwritten in place, so every tile for it opens what is there now, and the meta line says *Latest*.
|
|
@@ -31,7 +31,7 @@ See [page.md](../rules/page.md) § A file beside the conversation.
|
|
|
31
31
|
|
|
32
32
|
- **States.** The bar is there from the first frame, since the tile knows the title and the kind; only the body waits. *Loading*: [AppSkeleton](AppSkeleton.md)'s text shape, after 300ms ([loading.md](../rules/loading.md)). *Can't load*: "Couldn't load this file", one supporting line, an outlined Try again, in ink (nothing you did failed). *Too large to show*: "Too large to show here", the name and size, an outlined Download. The product sets the limits per kind.
|
|
33
33
|
- **Expand** (`open_in_full`, "Expand") lets the file take the conversation's place; the navigation pane stays. The same button, now `close_fullscreen` and "Show the chat", brings it back, and so does Esc. Below 1200 there is no Expand: the file already has the content's place.
|
|
34
|
-
- **On a phone** the pane is the whole screen, a step deeper: back (`arrow_back`) leads, and the phone's back gesture closes it. The switch shows its glyphs alone (`visibility`, `code`), each still named, and Copy and Download go into ⋯ ([AppMenu](AppMenu.md)). No Expand.
|
|
34
|
+
- **Below 1200 and on a phone it is flat and full-bleed**, since it has the content's place: no card. **On a phone** the pane is the whole screen, a step deeper: back (`arrow_back`) leads, and the phone's back gesture closes it. The switch shows its glyphs alone (`visibility`, `code`), each still named, and Copy and Download go into ⋯ ([AppMenu](AppMenu.md)). No Expand.
|
|
35
35
|
- **While it is open, the composer's context chip carries the file** ([AppComposer](AppComposer.md) § Row: Context): its glyph and file name. Closing the chip keeps the pane (you're still looking; you just don't tell Alis), and closing the pane takes the chip.
|
|
36
36
|
|
|
37
37
|
## Markup
|
package/components/AppShell.md
CHANGED
|
@@ -17,7 +17,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
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
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
|
-
- **A file beside the conversation** ([AppFilePane](AppFilePane.md)) is the detail pane made wide: `app-shell--file`. From 1200 the content takes two parts and the file three; below it the file takes the content's place; `app-shell--file-expanded` does the same at any width. It never slides over at `elevation-3`.
|
|
20
|
+
- **A file beside the conversation** ([AppFilePane](AppFilePane.md)) is the detail pane made wide: `app-shell--file`. From 1200 the content takes two parts and the file three; below it the file takes the content's place; `app-shell--file-expanded` does the same at any width. It never slides over at `elevation-3`. Beside the conversation it is a card with an edge, the one pane that is (a file is an object); in the content's place it is flat.
|
|
21
21
|
- **On a phone** (below 600px) the shell is one column: the content, under a one-row title bar ([AppTitleBar](AppTitleBar.md) § On a phone).
|
|
22
22
|
- **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.
|
|
23
23
|
- **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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.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/page.md
CHANGED
|
@@ -81,8 +81,9 @@ becomes back (`arrow_back`) and the phone's back gesture closes it
|
|
|
81
81
|
|
|
82
82
|
**A file Alis made opens beside the conversation**, in the detail pane made wide
|
|
83
83
|
([AppFilePane](../components/AppFilePane.md)): you look at it and talk about it,
|
|
84
|
-
never edit it there. From 1200 the conversation takes two parts and the file three
|
|
85
|
-
|
|
84
|
+
never edit it there. From 1200 the conversation takes two parts and the file three,
|
|
85
|
+
the file as a card with an edge; narrower, it takes the conversation's place,
|
|
86
|
+
flat, until it closes. It opens by
|
|
86
87
|
itself only live, only where it fits beside her reply, never on a phone. While it is
|
|
87
88
|
open the composer's context chip carries it, and your bubble's about line names it.
|
|
88
89
|
The tile in her reply opens it; a file a browser can't show keeps its download tile.
|
package/rules/surfaces.md
CHANGED
|
@@ -18,7 +18,8 @@ heading or a divider.
|
|
|
18
18
|
- **No pane of the layout is a white card, and nor is the thread column.** They
|
|
19
19
|
sit on the ground, and the shell's panes default to it
|
|
20
20
|
([AppShell](../components/AppShell.md)), so a white card always reads as an
|
|
21
|
-
object.
|
|
21
|
+
object. That is why a file Alis made, beside the conversation, *is* one: an
|
|
22
|
+
instrument card with its edge ([AppFilePane](../components/AppFilePane.md)).
|
|
22
23
|
- **If a white card would sit on a white parent, the parent is wrong** (A1).
|
|
23
24
|
- **Fill says read or act; a shadow says above the page.** A statement is grey
|
|
24
25
|
and flat with no border. An instrument is white with a 1px `outline-variant`
|
package/tokens.css
CHANGED
package/tokens.json
CHANGED
|
@@ -1409,15 +1409,10 @@
|
|
|
1409
1409
|
"value": "840px",
|
|
1410
1410
|
"usage": "Below it, the detail pane slides over the content at elevation-3. Custom properties can't be used in media queries: write the number, and name the token in a comment."
|
|
1411
1411
|
},
|
|
1412
|
-
{
|
|
1413
|
-
"name": "breakpoint-large",
|
|
1414
|
-
"value": "1200px",
|
|
1415
|
-
"usage": "From here a file sits beside the conversation, two parts to three (AppFilePane); below it, the file takes the content's place. Custom properties can't be used in media queries: write the number, and name the token in a comment."
|
|
1416
|
-
},
|
|
1417
1412
|
{
|
|
1418
1413
|
"name": "breakpoint-expanded",
|
|
1419
1414
|
"value": "1200px",
|
|
1420
|
-
"usage": "Expanded window: list and detail side by side. Custom properties can't be used in media queries: write the number, and name the token in a comment."
|
|
1415
|
+
"usage": "Expanded window below, large from here (Material 3's large window starts at 1200): list and detail side by side, and a file sits beside the conversation, two parts to three (AppFilePane); below it, the file takes the content's place. Custom properties can't be used in media queries: write the number, and name the token in a comment."
|
|
1421
1416
|
},
|
|
1422
1417
|
{
|
|
1423
1418
|
"name": "breakpoint-large",
|