@alis-build/design-system 0.30.0 → 0.32.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 +12 -1
- package/classes.json +2 -0
- package/components/AppListRow.md +30 -3
- package/components/AppTitleBar.md +1 -0
- package/package.json +1 -1
- package/rules/page.md +43 -3
- package/rules/styling.md +9 -2
- package/rules/type.md +2 -1
- package/words.json +49 -0
package/alisx.css
CHANGED
|
@@ -528,6 +528,17 @@ button.app-card{border:0;font:inherit;width:100%}
|
|
|
528
528
|
a.app-row,a.app-card{text-decoration:none}
|
|
529
529
|
.app-row .text-supporting,.app-row .text-meta{color:var(--on-surface-variant)}
|
|
530
530
|
.app-row--divided+.app-row--divided{border-top:1px solid var(--outline-variant)}
|
|
531
|
+
/* Field: a saved setting read back, its name over its value; the row opens its edit. The list reaches
|
|
532
|
+
16 into the gutter so the names meet the heading's edge and the state layer runs past them; the line
|
|
533
|
+
between fields runs from the text's start to the glyph's end. Values wrap and stay in ink */
|
|
534
|
+
.app-list--fields{margin-inline:calc(var(--space-16) * -1)}
|
|
535
|
+
.app-row--field{position:relative;align-items:flex-start;padding:var(--space-16)}
|
|
536
|
+
.app-row--field .app-row__text{gap:var(--space-4)}
|
|
537
|
+
.app-row--field .app-row__text>*{overflow:visible;white-space:normal;overflow-wrap:anywhere}
|
|
538
|
+
.app-row--field .text-supporting{color:var(--on-surface)}
|
|
539
|
+
.app-row--field .text-supporting.text-on-surface-variant{color:var(--on-surface-variant)}
|
|
540
|
+
.app-row--field .app-row__trailing{min-height:24px;color:var(--on-surface-variant)}
|
|
541
|
+
.app-row--field+.app-row--field::after{content:"";position:absolute;top:0;left:var(--space-16);right:var(--space-16);border-top:1px solid var(--outline-variant);pointer-events:none}
|
|
531
542
|
.app-row--nav{min-height:max(36px,var(--touch-target));border-radius:var(--radius-pill);padding:0 var(--space-16)}
|
|
532
543
|
.app-row--nav .app-icon{font-size:24px;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}
|
|
533
544
|
.app-row--agent-chat{min-height:max(var(--chat-row),var(--touch-target));padding:0 var(--space-8) 0 var(--space-16);border-radius:var(--radius-pill)}
|
|
@@ -562,7 +573,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
562
573
|
.app-search__input{flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--on-surface);font:inherit;outline:none}
|
|
563
574
|
.app-search__input::placeholder{color:var(--on-surface-variant);opacity:1}
|
|
564
575
|
.app-tabs{display:flex;gap:var(--space-4);border-bottom:1px solid var(--outline-variant);overflow-x:auto;scrollbar-width:none}
|
|
565
|
-
.app-tab{position:relative;flex:none;min-height:
|
|
576
|
+
.app-tab{position:relative;flex:none;min-height:var(--control-height);padding:0 var(--space-32);border:0;background:transparent;color:var(--on-surface-variant);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:500}
|
|
566
577
|
.app-tab.is-selected{color:var(--on-surface);font-weight:700}
|
|
567
578
|
.app-tab.is-selected::after{content:"";position:absolute;left:var(--space-32);right:var(--space-32);bottom:0;height:3px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:var(--on-surface)}
|
|
568
579
|
/* Detail: the bar of a detail pane. The pane pads it; the name drops to section-title
|
package/classes.json
CHANGED
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"app-lattice",
|
|
183
183
|
"app-lattice__eyebrow",
|
|
184
184
|
"app-list",
|
|
185
|
+
"app-list--fields",
|
|
185
186
|
"app-loader",
|
|
186
187
|
"app-loader--line",
|
|
187
188
|
"app-machine",
|
|
@@ -210,6 +211,7 @@
|
|
|
210
211
|
"app-row",
|
|
211
212
|
"app-row--agent-chat",
|
|
212
213
|
"app-row--divided",
|
|
214
|
+
"app-row--field",
|
|
213
215
|
"app-row--nav",
|
|
214
216
|
"app-row__hit",
|
|
215
217
|
"app-row__icon",
|
package/components/AppListRow.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AppListRow
|
|
2
2
|
|
|
3
|
-
A row in a list, the navigation pane
|
|
3
|
+
A row in a list, the navigation pane, the agent chat list, or a read-back of saved settings.
|
|
4
4
|
|
|
5
5
|
## Use / don't use
|
|
6
6
|
|
|
@@ -9,7 +9,8 @@ A row in a list, the navigation pane or the agent chat list.
|
|
|
9
9
|
- **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md)) and a meta value at the end. Selected takes the full `secondary-container` fill.
|
|
10
10
|
- **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 36px, 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading`, which sets its own type. A destination that can create takes a small `add` [AppIconButton](AppIconButton.md) in its trailing slot ("New project"). A destination where Alis is waiting on you takes `.app-count` there instead: the number of asks, in `error` like every notification badge ([AppAsk](AppAsk.md)).
|
|
11
11
|
- **Agent chat** (`app-row--agent-chat`): the agent chat list, 32px rows, and nothing else. It is not a density option: no other list may use it, however alike it looks ([spacing.md](../rules/spacing.md)). Its menu button is 24px and projects no target.
|
|
12
|
-
- `app-row--
|
|
12
|
+
- **Field** (`app-row--field`, in an `app-list--fields`): one saved setting read back, on a screen that shows what was chosen and lets you change it (an interview's setup, its review before publishing, a settings page). The name is the row's title in object-title; the value is supporting **in ink**, under it, wrapping to as many lines as it has, a second fact on a line of its own. A value not set takes `text-on-surface-variant` and says what happens instead ("Not set. Alis will open the conversation."). The trailing slot holds the `edit` [AppIcon](AppIcon.md), not a button: the row is the target and opens the edit in place, so there is one stop per row and no tooltip. A field that can't change has no glyph, no hit and no `app-state`, and says why on a further line in `text-on-surface-variant`. A line runs between fields, never above the first or below the last. The list reaches 16 into the gutter so the names meet the heading's edge; never margin or pad it at a site. The name is a name, not a question ("Length", not "How long should it take?"); the edit form's label may ask.
|
|
13
|
+
- `app-row--divided` draws a hairline between consecutive rows. A field list draws its own.
|
|
13
14
|
- Selection is always two properties: the fill, and the icon at FILL 1 with the text at 700 (the CSS does both from `is-selected`).
|
|
14
15
|
- **Three or four facts about each item?** Title, then the rest joined with " · " in the supporting line (`europe-west1 · v1.42.3 · main`), the state as a trailing chip, the time as meta. Once people compare values across items, or sort by them, use [AppTable](AppTable.md).
|
|
15
16
|
- A trailing control is 32px at most and projects no target, so the row never grows (the CSS enforces it). Below 600px a content row drops its meta so the title keeps room.
|
|
@@ -48,6 +49,31 @@ The row is a container; its title is the one button or link (`.app-row__hit`) an
|
|
|
48
49
|
</div>
|
|
49
50
|
<p class="app-nav-heading">Recent chats</p>
|
|
50
51
|
|
|
52
|
+
<!-- Field list: saved settings read back -->
|
|
53
|
+
<div class="app-list app-list--fields" role="list" aria-label="The plan">
|
|
54
|
+
<div class="app-row app-state app-row--field" role="listitem">
|
|
55
|
+
<span class="app-row__text">
|
|
56
|
+
<button type="button" class="app-row__hit text-object-title" aria-label="Edit length">Length</button>
|
|
57
|
+
<span class="text-supporting">About 10 minutes</span>
|
|
58
|
+
</span>
|
|
59
|
+
<span class="app-row__trailing"><span class="app-icon" aria-hidden="true">edit</span></span>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="app-row app-state app-row--field" role="listitem">
|
|
62
|
+
<span class="app-row__text">
|
|
63
|
+
<button type="button" class="app-row__hit text-object-title" aria-label="Edit opening question">Opening question</button>
|
|
64
|
+
<span class="text-supporting text-on-surface-variant">Not set. Alis will open the conversation.</span>
|
|
65
|
+
</span>
|
|
66
|
+
<span class="app-row__trailing"><span class="app-icon" aria-hidden="true">edit</span></span>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="app-row app-row--field" role="listitem">
|
|
69
|
+
<span class="app-row__text">
|
|
70
|
+
<span class="text-object-title">Answers</span>
|
|
71
|
+
<span class="text-supporting">Names kept with answers</span>
|
|
72
|
+
<span class="text-supporting text-on-surface-variant">Locked because people have joined.</span>
|
|
73
|
+
</span>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
51
77
|
<!-- Agent chat row -->
|
|
52
78
|
<div class="app-row app-state app-row--agent-chat">
|
|
53
79
|
<span class="app-row__text"><button type="button" class="app-row__hit text-label">Why did staging fail?</button></span>
|
|
@@ -62,8 +88,9 @@ Order inside the row: icon, text, trailing, meta.
|
|
|
62
88
|
- **Content row you select**: on press toggle `is-selected` on the row and `aria-pressed` on the hit (and `app-icon--filled` on its icon); clear the previous selection. A row that can't be selected has no `aria-pressed`.
|
|
63
89
|
- **Nav row**: `is-selected` on the row and `aria-current="page"` on the hit for the current destination; update both on route change.
|
|
64
90
|
- Focus lands on the hit; the CSS draws the focus ring on the whole row.
|
|
91
|
+
- **Field row**: on press, replace the row with its edit form in place (labels above, Cancel and Save on the trailing edge; Save is filled unless the screen already holds its one filled action, as a review before publishing does), one field at a time; on save or cancel, show the row again and return focus to its hit. The hit's accessible name is the verb and the name ("Edit length").
|
|
65
92
|
- Controls in the trailing slot are siblings of the hit, never inside it.
|
|
66
93
|
|
|
67
94
|
## Classes
|
|
68
95
|
|
|
69
|
-
`.app-list`, `.app-row`, `.app-row--nav`, `.app-row--agent-chat`, `.app-row--divided`, `.is-selected`, `.app-row__icon`, `.app-row__text`, `.app-row__hit`, `.app-row__trailing`, `.app-row__meta`, `.app-nav-heading`, with `.app-state` on every row.
|
|
96
|
+
`.app-list`, `.app-row`, `.app-row--nav`, `.app-row--agent-chat`, `.app-row--divided`, `.app-list--fields`, `.app-row--field`, `.is-selected`, `.app-row__icon`, `.app-row__text`, `.app-row__hit`, `.app-row__trailing`, `.app-row__meta`, `.app-nav-heading`, with `.app-state` on every row.
|
|
@@ -14,6 +14,7 @@ See [page.md](../rules/page.md).
|
|
|
14
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.
|
|
15
15
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
16
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).
|
|
17
|
+
- **Tabs are the control height**, 36 and 48 on touch, like the row above them. The bar sets their height, alignment and ink; a screen never does ([styling.md](../rules/styling.md)).
|
|
17
18
|
- **No search in the bar.** The bar names the screen and holds its verbs; search narrows the list, so it leads the filter row ([page.md](../rules/page.md) § Search).
|
|
18
19
|
- **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
|
|
19
20
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.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",
|
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:
|
|
73
|
-
|
|
74
|
-
|
|
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.
|
|
@@ -240,6 +263,23 @@ leads its content with it, or leaves it out. What a failure shows, and where, is
|
|
|
240
263
|
at the top.
|
|
241
264
|
- **A switch** applies at once on its own, and with the rest on Save inside a form.
|
|
242
265
|
|
|
266
|
+
### Settings read back
|
|
267
|
+
|
|
268
|
+
A screen that shows what was chosen and lets you change it (an interview's
|
|
269
|
+
setup, its review before publishing, a settings page) is a **field list**
|
|
270
|
+
([AppListRow](../components/AppListRow.md) § Field), never the form itself
|
|
271
|
+
left open, and never a card per setting.
|
|
272
|
+
|
|
273
|
+
- **The name leads, the value follows**: the name in object-title, the value
|
|
274
|
+
under it in ink, so the eye finds the setting by its name and reads what it
|
|
275
|
+
holds. One line between fields; groups under a `section-title`, 48 apart.
|
|
276
|
+
- **One shape for every value**, a sentence or a paragraph or a date: never a
|
|
277
|
+
name-left column for the short ones and a stack for the long.
|
|
278
|
+
- **The row opens its edit in place**, one at a time; its `edit` glyph is an
|
|
279
|
+
icon, not a button. A field that can't change says why instead.
|
|
280
|
+
- **Names are names** from `words.json`; a question belongs to the edit form's
|
|
281
|
+
label ([words.md](words.md)).
|
|
282
|
+
|
|
243
283
|
### A form in steps
|
|
244
284
|
|
|
245
285
|
```
|
package/rules/styling.md
CHANGED
|
@@ -15,6 +15,7 @@ the same split holds.
|
|
|
15
15
|
| Shadow | `elevation-1`, `-2`, `-3`, or nothing ([spacing.md](spacing.md)). Never a shadow and a border |
|
|
16
16
|
| Font, size, line height, tracking, weight | A `text-*` style. Beside it: `.text-mono` (the face), `.text-emphasis` (600), `.text-selected` (700, selection only) |
|
|
17
17
|
| Spacing | `space-*` |
|
|
18
|
+
| A component's size: height, density, padding | The component: one size, or the sizes its guide names. Never chosen at a site, a framework's size prop (`density`, `size`, `height`) included |
|
|
18
19
|
| Hover, focus, pressed on a plain element | The state layer, `.app-state` ([selection.md](selection.md)) |
|
|
19
20
|
| Rendered markdown | `.prose`, `.prose-compact` ([type.md](type.md)). Never reach into prose to restyle it |
|
|
20
21
|
| A card chosen among others | [AppSelectTile](../components/AppSelectTile.md) |
|
|
@@ -28,6 +29,11 @@ inherit the system. Never fight the framework with a local override, a
|
|
|
28
29
|
forced-priority rule (`!important`) or a selector reaching into a component's
|
|
29
30
|
internals: settle it once, app-wide, in the theme, or not at all.
|
|
30
31
|
|
|
32
|
+
**A component looks the same wherever it is used.** Its size, ink and alignment
|
|
33
|
+
are set once, in the theme, so a site only places it. A size prop at a site is a
|
|
34
|
+
local override like any other: when every page has to remember `density`, the
|
|
35
|
+
one that forgets looks different, and nothing tells you which one is right.
|
|
36
|
+
|
|
31
37
|
## May stay at a site
|
|
32
38
|
|
|
33
39
|
- **Layout.** Grid templates and placement, flex, widths and min/max sizes (never
|
|
@@ -100,5 +106,6 @@ The package ships what can be linted, so every app checks the same things
|
|
|
100
106
|
theme) is known once the file that declares it is named.
|
|
101
107
|
|
|
102
108
|
Check by hand what a linter can't see: a computed style binding, a value behind
|
|
103
|
-
a variable of your own,
|
|
104
|
-
displayed text), which shouts exactly as `text-transform` would
|
|
109
|
+
a variable of your own, a case transform in code (`toUpperCase()` on
|
|
110
|
+
displayed text), which shouts exactly as `text-transform` would, and a size
|
|
111
|
+
prop on a component in a template, unless the app's own template lint fails it.
|
package/rules/type.md
CHANGED
|
@@ -105,7 +105,8 @@ subtitle is never body.
|
|
|
105
105
|
| Shape | Role |
|
|
106
106
|
| --- | --- |
|
|
107
107
|
| A note beside a dialog's message, tinted or not | supporting; the message stays body |
|
|
108
|
-
| A key and its value | the key meta in `on-surface-variant`, the value supporting in ink. On one line ("Current balance: 40 credits") the whole line is the value's: supporting in ink |
|
|
108
|
+
| A key and its value, inside a line, a cell, a tooltip or a stat | the key meta in `on-surface-variant`, the value supporting in ink. On one line ("Current balance: 40 credits") the whole line is the value's: supporting in ink |
|
|
109
|
+
| A saved setting read back, its name over its value (a field list) | the name is the row's title, object-title; the value supporting in ink, wrapping; a value not set the same role in `on-surface-variant`, saying what happens instead ([AppListRow](../components/AppListRow.md) § Field). The name leads, because people find the setting by it |
|
|
109
110
|
| A value with its verb ("Updated 3 minutes ago") | meta |
|
|
110
111
|
| A card's only title | object-title, whatever the card's size |
|
|
111
112
|
| A caption naming the one block below it ("What we learned") | a key: meta in `on-surface-variant`, and the block keeps the role it would have alone. Over a list, table or set of stats it is a group heading instead |
|
package/words.json
CHANGED
|
@@ -161,6 +161,55 @@
|
|
|
161
161
|
"retired": [],
|
|
162
162
|
"avoid": ["responses"]
|
|
163
163
|
},
|
|
164
|
+
{
|
|
165
|
+
"name": "purpose",
|
|
166
|
+
"product": "ideate",
|
|
167
|
+
"means": "What an interview needs to find out. Alis works from it, and the report is written against it.",
|
|
168
|
+
"retired": [],
|
|
169
|
+
"avoid": ["objective"],
|
|
170
|
+
"code": "plan.objective"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "instructions for Alis",
|
|
174
|
+
"product": "ideate",
|
|
175
|
+
"means": "How Alis should run an interview: tone, areas to cover, what to avoid. Participants don't see them.",
|
|
176
|
+
"retired": [],
|
|
177
|
+
"avoid": ["interviewer instructions"],
|
|
178
|
+
"code": "plan.instructions"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "opening question",
|
|
182
|
+
"plural": "opening questions",
|
|
183
|
+
"product": "ideate",
|
|
184
|
+
"means": "The first thing Alis asks in an interview. Not set, Alis opens the conversation.",
|
|
185
|
+
"retired": [],
|
|
186
|
+
"avoid": ["opener"],
|
|
187
|
+
"code": "plan.opener"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "length",
|
|
191
|
+
"product": "ideate",
|
|
192
|
+
"means": "How long an interview should take. Alis paces the conversation to it.",
|
|
193
|
+
"retired": [],
|
|
194
|
+
"avoid": ["duration (of an interview)", "target minutes"],
|
|
195
|
+
"code": "plan.targetMinutes"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "report focus",
|
|
199
|
+
"product": "ideate",
|
|
200
|
+
"means": "What an interview's report should concentrate on: its focus, audience and length. Participants don't see it.",
|
|
201
|
+
"retired": [],
|
|
202
|
+
"avoid": ["report instructions"],
|
|
203
|
+
"code": "reportInstructions"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "materials",
|
|
207
|
+
"product": "ideate",
|
|
208
|
+
"means": "What participants can look at during an interview, and the background Alis reads that participants don't see.",
|
|
209
|
+
"retired": [],
|
|
210
|
+
"avoid": ["review materials", "references (an interview's background)"],
|
|
211
|
+
"code": "plan.reviewMaterials, plan.references"
|
|
212
|
+
},
|
|
164
213
|
{
|
|
165
214
|
"name": "summary",
|
|
166
215
|
"product": "ideate",
|