@alis-build/design-system 0.28.1 → 0.29.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 CHANGED
@@ -554,6 +554,8 @@ a.app-row,a.app-card{text-decoration:none}
554
554
  .app-titlebar__title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
555
555
  .app-titlebar__leading{margin-left:calc(var(--space-12) * -1)}
556
556
  .app-titlebar__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);margin-left:auto}
557
+ .app-titlebar.is-scrolled,.app-file-pane__bar.is-scrolled{box-shadow:inset 0 -1px 0 var(--outline-variant)}
558
+ @media (prefers-reduced-motion:no-preference){.app-titlebar,.app-file-pane__bar{transition:box-shadow var(--dur-effects) var(--motion-effects)}}
557
559
  .app-search{display:flex;align-items:center;gap:var(--space-8);height:var(--control-height);padding:0 var(--space-16);border-radius:var(--radius-pill);background:var(--surface-container-highest);color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px}
558
560
  .app-search__clear{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface-variant)}
559
561
  .app-search:focus-within{outline:2px solid var(--primary);outline-offset:1px}
@@ -665,7 +667,7 @@ a.app-row,a.app-card{text-decoration:none}
665
667
  .app-shell--file .app-shell__main .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}
666
668
  .app-file-pane{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;background:var(--background)}
667
669
  .app-shell__detail>.app-file-pane{flex:1}
668
- .app-file-pane__bar{flex:none;display:flex;align-items:center;gap:var(--space-8);min-height:64px;padding:var(--space-12);border-bottom:1px solid var(--outline-variant)}
670
+ .app-file-pane__bar{flex:none;display:flex;align-items:center;gap:var(--space-8);min-height:64px;padding:var(--space-12)}
669
671
  .app-file-pane__name{flex:1;min-width:0;display:flex;flex-direction:column}
670
672
  .app-file-pane__name>*{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
671
673
  .app-file-pane__name>.text-meta{color:var(--on-surface-variant)}
package/classes.json CHANGED
@@ -362,6 +362,7 @@
362
362
  "is-open",
363
363
  "is-placeholder",
364
364
  "is-played",
365
+ "is-scrolled",
365
366
  "is-selected",
366
367
  "mono",
367
368
  "mono-sm",
@@ -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-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.
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 no line under it until the file scrolls under it (`is-scrolled`, as on the [title bar](AppTitleBar.md)), 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 the 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 the reply.
12
12
  - **Named by the file**: its description, or else its file name; never by its kind ("File", "Artifact").
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*.
@@ -113,8 +113,9 @@ See [page.md](../rules/page.md) § A file beside the conversation.
113
113
  - **Preview / Code** re-renders the body; the choice belongs to the pane, not the file, and resets to Preview when another file opens.
114
114
  - **The frame**: fetch the text and give it to `srcdoc`, with `sandbox="allow-scripts"` and never `allow-same-origin`. Serve it from a separate origin when there is one.
115
115
  - **Copy** writes the source to the clipboard and says "Copied" in a snackbar; **Download** saves the file under its own name.
116
+ - **`is-scrolled`** on the bar while the body has left its top, off again at the top.
116
117
  - **Missing** (deleted since): the pane shows "This file was deleted" in the can't-load layout with no action, and its tiles turn `is-gone`.
117
118
 
118
119
  ## Classes
119
120
 
120
- `.app-shell--file`, `.app-shell--file-expanded`, `.app-file-pane`, `.app-file-pane__bar`, `.app-file-pane__name`, `.app-file-pane__tools`, `.app-file-pane__word`, `.app-file-pane__expand`, `.app-file-pane__body`, `.app-file-pane__body--prose`, `.app-file-pane__body--image`, `.app-file-pane__body--paper`, `.app-file-pane__body--source`, `.app-file-pane__body--table`, `.app-file-pane__frame`, `.app-file-pane__source`, `.app-file-pane__line`, `.app-file-pane__state`.
121
+ `.app-shell--file`, `.app-shell--file-expanded`, `.app-file-pane`, `.app-file-pane__bar`, `.is-scrolled`, `.app-file-pane__name`, `.app-file-pane__tools`, `.app-file-pane__word`, `.app-file-pane__expand`, `.app-file-pane__body`, `.app-file-pane__body--prose`, `.app-file-pane__body--image`, `.app-file-pane__body--paper`, `.app-file-pane__body--source`, `.app-file-pane__body--table`, `.app-file-pane__frame`, `.app-file-pane__source`, `.app-file-pane__line`, `.app-file-pane__state`.
@@ -10,6 +10,7 @@ See [page.md](../rules/page.md).
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
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.
12
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).
13
+ - **No line at rest.** The bar lies on the ground with the content; a line under it would split the screen into a header and a body. While the bar stays put and content scrolls under it, it takes `is-scrolled`: an `outline-variant` hairline at its foot, gone again at the top. Never a permanent border and never a shadow: a shadow means floating, and the composer and menus float. Tabs keep their own line at every scroll; at rest it is the bar's edge.
13
14
  - **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.
14
15
  - **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
15
16
  - **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).
@@ -24,7 +25,7 @@ See [page.md](../rules/page.md).
24
25
  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).
25
26
  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.
26
27
 
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.
28
+ The tabs scroll under it; the filter row is unchanged. Mark the parts that exist on only one side `app-compact-only` or `app-wide-only`, so one markup serves both.
28
29
 
29
30
  **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. It keeps the pane's edges even when the content is a centred column (a conversation at the prose measure): only the content is the 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.
30
31
 
@@ -117,7 +118,8 @@ The tabs scroll under it; the filter row is unchanged. The bar has no hairline a
117
118
  - **The count** answers the row: the total at rest, "2 of 5" while a query or a filter narrows.
118
119
  - **Tabs**: they are routes. Move `is-selected` and `aria-current="page"` to the current tab when the route changes. If your router renders links, `<a class="app-tab app-state" href="…">` takes the same classes.
119
120
  - Hide search and the filter row when the list is empty.
121
+ - **`is-scrolled`** on the bar while what scrolls under it has left the top (its `scrollTop` is above 0), and off again at the top. Where the bar scrolls away with the page, nothing is under it: leave it off.
120
122
 
121
123
  ## Classes
122
124
 
123
- `.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`.
125
+ `.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`, `.is-scrolled`; `.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",