@alis-build/design-system 0.50.0 → 0.50.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 CHANGED
@@ -1410,7 +1410,6 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1410
1410
  /* Reveals: the clip opens along one axis, 40px outside the box so the deepest shadow shows, and is gone once it has played */
1411
1411
  @keyframes app-reveal-down{from{clip-path:inset(-40px -40px calc(100% + 40px) -40px)}to{clip-path:inset(-40px)}}
1412
1412
  @keyframes app-reveal-up{from{clip-path:inset(calc(100% + 40px) -40px -40px -40px)}to{clip-path:inset(-40px)}}
1413
- @keyframes app-reveal-middle{from{clip-path:inset(30% -40px 30% -40px)}to{clip-path:inset(-40px)}}
1414
1413
 
1415
1414
  /* Icons that change their meaning: two glyphs in one slot. The one leaving turns away and fades; then the other springs in */
1416
1415
  .app-icon-swap{display:inline-grid;place-items:center;flex:none}
@@ -1459,7 +1458,8 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1459
1458
  .app-snackbar[hidden]{display:none;opacity:0}
1460
1459
  .app-scrim{animation:app-fade-in var(--spring-default-effects);transition:background-color var(--spring-fast-effects),display var(--spring-fast-effects) allow-discrete}
1461
1460
  .app-scrim[hidden]{display:none;background-color:transparent}
1462
- .app-dialog{animation:app-reveal-middle var(--spring-default-spatial),app-fade-in var(--spring-fast-effects);transition:opacity var(--spring-fast-effects)}
1461
+ /* A dialog comes from nowhere: it fades in place, with its scrim */
1462
+ .app-dialog{animation:app-fade-in var(--spring-default-effects);transition:opacity var(--spring-fast-effects)}
1463
1463
  .app-scrim[hidden]>.app-dialog{opacity:0}
1464
1464
  /* Alis's ask, arriving while you watch, grows up out of the composer, then its words fade in */
1465
1465
  .app-ask{min-block-size:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.50.0",
3
+ "version": "0.50.1",
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",
package/rules/motion.md CHANGED
@@ -11,10 +11,10 @@ never writes a duration or a curve.
11
11
  | Token | From M3 | Settles | Overshoot | For |
12
12
  | --- | --- | --- | --- | --- |
13
13
  | `spring-fast-spatial` | Expressive | 359ms | 9.5% | A control answering a touch in place: a press, a switch's handle, a toggle's glyph, an icon changing its meaning |
14
- | `spring-default-spatial` | Expressive | 435ms | 1.5% | What covers part of the screen or travels across it: a menu, a dialog, a snackbar, a pane, a tab's indicator, a fold, a page's 24px shift |
14
+ | `spring-default-spatial` | Expressive | 435ms | 1.5% | What covers part of the screen or travels across it: a menu, a snackbar, a pane, a tab's indicator, a fold, a page's 24px shift |
15
15
  | `spring-slow-spatial` | Standard | 484ms | 0.15%, too little to see | What fills the screen: the phone's navigation pane |
16
16
  | `spring-fast-effects` | both | 150ms | never | Colour and opacity on a control, state layers, and every fade out |
17
- | `spring-default-effects` | both | 231ms | never | Content fading in: a page, a tab's panel, a reply as it streams, a scrim |
17
+ | `spring-default-effects` | both | 231ms | never | Content fading in: a page, a tab's panel, a reply as it streams, a scrim, a dialog |
18
18
  | `spring-slow-effects` | both | 326ms | never | A slow colour change: the tint on a row that just arrived |
19
19
 
20
20
  Each comes three ways: `--spring-fast-spatial` is the duration and the curve
@@ -55,7 +55,8 @@ The curve is CSS `linear()`, drawn from the spring itself, every wobble of it.
55
55
  - **Things come from where they live**, and leave the way they came: the detail pane
56
56
  from the right edge, the phone's navigation pane from the left, the composer's
57
57
  bands up out of the composer, a menu out of its trigger, a snackbar up from the
58
- foot.
58
+ foot. A dialog comes from nowhere: it fades in place, with its scrim, and
59
+ nothing about it moves.
59
60
  - **Leaving is quicker than arriving.** Something within the screen leaves as a
60
61
  fade on fast effects, without moving. A pane goes back over its edge.
61
62
  - **Grow, never scale.** A surface arrives by revealing itself along one axis (a
@@ -111,7 +112,7 @@ needs nothing from the site.
111
112
  | An icon changing its meaning (Send to Stop, Copy to ✓) | `.app-icon-swap` turns one glyph away and springs the other in | Put both glyphs in it and toggle `is-swapped` ([AppIconButton](../components/AppIconButton.md)) |
112
113
  | Selection that travels | `app-tabs--travel` and `app-seg--travel` draw one indicator that travels | Set `--indicator-left` and `--indicator-width` to the selected item's `offsetLeft` and `offsetWidth`, then add the modifier, so it is drawn in place and moves only on a change ([AppTitleBar](../components/AppTitleBar.md), [AppSegmented](../components/AppSegmented.md)) |
113
114
  | Expand and collapse | A disclosure and a turn's steps open to their height, then their rows fade in | Toggle `open` or `hidden`, as already |
114
- | A menu, tooltip, snackbar or dialog | Arrives growing out of where it lives; leaves as a fade when it's `hidden`. Nothing is clipped once it has arrived, so a field's panel inside it shows whole | Toggle `hidden`, or set it and remove the element once it has gone (§ Removing what has left). Removed at once, it just goes |
115
+ | A menu, tooltip, snackbar or dialog | A menu or snackbar arrives growing out of where it lives; a tooltip and a dialog fade in place. Each leaves as a fade when it's `hidden`. Nothing is clipped once it has arrived, so a field's panel inside it shows whole | Toggle `hidden`, or set it and remove the element once it has gone (§ Removing what has left). Removed at once, it just goes |
115
116
  | Alis's ask | Grows up out of the composer | Render it with `is-arriving` when it opens while someone is there |
116
117
  | The conversation | A turn that arrives fades in, and yours rises out of the composer; each status fades in; each run of a reply fades in as it lands | `is-arriving` on a turn that arrives while the thread is open; each step's words in a new element inside the one status; each arriving run in `.app-turn__chunk` ([AppTurn](../components/AppTurn.md)) |
117
118
  | A list that changes | A row that arrives opens its space and is tinted for a moment; one that leaves folds away | `is-arriving` on a row that arrives while the list is open; `is-leaving`, then remove it once it has gone ([AppListRow](../components/AppListRow.md)) |