@alis-build/design-system 0.30.0 → 0.30.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rules/page.md +26 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.30.0",
3
+ "version": "0.30.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/page.md CHANGED
@@ -67,11 +67,34 @@ means another route.
67
67
  - **The verbs follow the route**: each route tab shows the verbs that act on what
68
68
  it shows, and none when nothing can be done.
69
69
 
70
+ ## Close or back
71
+
72
+ One test: **is what you were on still there behind it?**
73
+
74
+ - **Yes: close (`close`) leads.** It opened beside or over a screen that stays: a
75
+ detail pane, the file pane, the shortcut sheet, the navigation drawer, a file
76
+ shown full size, a task you can leave half done (an interview in progress).
77
+ - **No: back (`arrow_back`) leads.** It took the screen's place, and back goes up
78
+ to where you came from: every detail screen, since it has its own route.
79
+ - **On a phone**, whatever covers the window leads with back, and the phone's back
80
+ gesture does the same.
81
+ - **Either one leads the bar**, its glyph on the 24px edge. Never on the trailing
82
+ edge, and never both.
83
+ - **Never an icon to leave a dialog, a message or a step.** A dialog leaves by
84
+ Cancel ([AppDialog](../components/AppDialog.md)). A snackbar goes by itself and
85
+ an alert stays until you act ([AppAlert](../components/AppAlert.md)). A step in
86
+ a flow goes back by a Back text button at the row's start
87
+ ([AppStepper](../components/AppStepper.md)).
88
+ - **`close` in a row or a chip removes that one**, named "Remove …"
89
+ ([AppChip](../components/AppChip.md), [AppCombobox](../components/AppCombobox.md),
90
+ [AppAttachment](../components/AppAttachment.md)). Never to delete, deny or
91
+ reject: those take words.
92
+
70
93
  ## A detail screen
71
94
 
72
- The same bar: the close button leading in flow, the name left, and renaming it or
73
- switching to a sibling as small icon buttons beside the name. Never a centred
74
- title with the close button pinned absolutely, never the name inside a pill
95
+ The same bar: back leading in flow, the name left, and renaming it or switching
96
+ to a sibling as small icon buttons beside the name. Never a centred title with
97
+ the back button pinned absolutely, never the name inside a pill
75
98
  button, and never the name again as a title in the body. The bar keeps the
76
99
  screen's edges: when the body is text at the prose measure, only the text is the
77
100
  centred column.