@alis-build/design-system 0.23.0 → 0.23.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.
@@ -10,6 +10,7 @@ See [page.md](../rules/page.md) § A form in steps for when a form takes steps a
10
10
  - **It is the progress bar cut into steps:** a 4px `radius-pill` segment per step on the `surface-container-highest` track, filled `on-surface` for a step done or current. Never `primary`: nothing on it is the action ([selection.md](../rules/selection.md) § A step).
11
11
  - **The current step's name is 600** and carries `aria-current="step"`. A done step's name is `on-surface`; a next one's is `on-surface-variant`.
12
12
  - **A done step is a button back to it**, with `app-state`. A later step is not: the flow's Continue checks the step before it moves on. Editing something that already exists, every step has been reached, so every step is a button.
13
+ - **No step is a button while a save runs, or once going back can't undo what a step made** (an instance created before its configuration): those steps stay done, as `<span>`s.
13
14
  - **A step that no longer holds** (an edit elsewhere broke it, or the server refused it) is `is-invalid`: its segment and name in `error`, the `error` glyph before the name.
14
15
  - **It leads the flow's surface**: the top of the instrument card on a page, under the title in a dialog. Never a panel of its own, and never "Step 1 of 2" written beside it.
15
16
  - **Narrower than 480** (its own width, so a narrow dialog counts too) the names leave and one caption under the bars names the current step and counts ("Contact", "2 of 3"). The names stay for assistive technology.
@@ -68,7 +69,7 @@ See [page.md](../rules/page.md) § A form in steps for when a form takes steps a
68
69
 
69
70
  - **Move the states** as the person moves: `is-done` on every step behind them, `is-current` and `aria-current="step"` on theirs, nothing on the rest. Swap a step's `<span>` for a `<button>` once it is done.
70
71
  - **Continue checks the step**: on a failure it stays, turns each field `error` with its supporting line, and moves focus to the first; it is never disabled ([page.md](../rules/page.md) § Forms).
71
- - **Keep the step in the URL** (`?step=review`): each step pushes a history entry, so the browser's back steps back and a refresh stays.
72
+ - **Keep the step in the URL** (`?step=review`): each step pushes a history entry, so the browser's back steps back and a refresh stays. A dialog with no URL of its own keeps the step in the dialog; closing it discards the step.
72
73
  - **Update the caption** with the current step's name and count; it is `aria-hidden`, because the list already says it.
73
74
 
74
75
  ## Classes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.23.0",
3
+ "version": "0.23.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
@@ -258,8 +258,11 @@ Should this form take steps?
258
258
  title asks the question ("Publish this interview?"), it lists what was chosen,
259
259
  and its button names the outcome. No dialog after it.
260
260
  - **A result is not a step.** When the flow ends, show the thing it made.
261
- - **The step is in the URL** (`?step=review`), so a refresh keeps it and the
262
- browser's back steps back.
261
+ - **On a page the step is in the URL** (`?step=review`), so a refresh keeps it
262
+ and the browser's back steps back. A dialog with no URL of its own keeps the
263
+ step in the dialog, and closing it discards the step.
264
+ - **A step that made something going back can't undo** stops being a way back,
265
+ and so does every step while a save runs.
263
266
 
264
267
  ### Which control
265
268