@alis-build/design-system 0.15.0 → 0.15.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 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-large (1200): the content takes two parts and the file three; below it, the file takes the content's place */
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
- .app-shell--file .app-shell__detail{position:static;width:auto;padding:0;gap:0;overflow:hidden;background:var(--background);box-shadow:none;border-left:1px solid var(--outline-variant);z-index:auto}
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
- @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}}
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`) 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. 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.
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
@@ -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.
@@ -8,6 +8,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
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
+ - **One order, by weight**: the lead, then text buttons, then icon buttons, ⋯ last ([page.md](../rules/page.md) § The title bar). The lead sits beside the name; ⋯ closes the row at every width, so the phone's bar is the same row folded. A destructive verb is the last before ⋯, or inside it.
11
12
  - **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).
12
13
  - **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.
13
14
  - **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
@@ -25,7 +26,7 @@ See [page.md](../rules/page.md).
25
26
 
26
27
  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
 
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.
29
+ **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 in the bar's order, 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.
29
30
 
30
31
  ## Markup
31
32
 
@@ -58,8 +59,8 @@ The tabs scroll under it; the filter row is unchanged. The bar has no hairline a
58
59
  <h1 class="app-titlebar__title text-page-title" title="Customer onboarding research">Customer onboarding research</h1>
59
60
  </div>
60
61
  <div class="app-titlebar__actions">
61
- <button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
62
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-btn app-state app-target app-wide-only">Set project goal</button>
63
64
  <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
65
  </div>
65
66
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.15.0",
3
+ "version": "0.15.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/page.md CHANGED
@@ -50,6 +50,12 @@ filter**, and a filter belongs in the filter row as a segmented control
50
50
  content ([buttons.md](buttons.md)). Destructive takes `error` ink. A split
51
51
  action is a button and a `more_vert` icon button whose menu holds the
52
52
  alternatives, never a button group.
53
+ - **One order, by weight: the lead, then text buttons, then icon buttons, ⋯
54
+ last.** The lead sits beside the name, where Material puts the action used most,
55
+ and each control after it weighs less. ⋯ closes the row at every width, so the
56
+ phone's bar is the same row folded: the lead's glyph, then ⋯ holding what
57
+ followed it, in its order. A split action's `more_vert` stays beside its button;
58
+ a destructive verb is the last before ⋯, or inside it.
53
59
  - **Controls sit in a row with an 8px gap**, never per-control margins. A leading
54
60
  back or close button pulls its glyph onto the 24px edge the title uses.
55
61
  - **The verbs follow the route**: each route tab shows the verbs that act on what
@@ -81,8 +87,9 @@ becomes back (`arrow_back`) and the phone's back gesture closes it
81
87
 
82
88
  **A file Alis made opens beside the conversation**, in the detail pane made wide
83
89
  ([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
- narrower, the file takes the conversation's place until it closes. It opens by
90
+ never edit it there. From 1200 the conversation takes two parts and the file three,
91
+ the file as a card with an edge; narrower, it takes the conversation's place,
92
+ flat, until it closes. It opens by
86
93
  itself only live, only where it fits beside her reply, never on a phone. While it is
87
94
  open the composer's context chip carries it, and your bubble's about line names it.
88
95
  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
@@ -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;
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",