@alis-build/design-system 0.11.1 → 0.11.3
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/components/AppAlert.md
CHANGED
|
@@ -33,7 +33,7 @@ See [chips-alerts.md](../rules/chips-alerts.md).
|
|
|
33
33
|
<div role="status" class="app-alert app-alert--warning app-alert--stacked">
|
|
34
34
|
<span class="app-icon" aria-hidden="true">warning</span>
|
|
35
35
|
<div class="app-alert__body">You've used 11 of 12 seats.</div>
|
|
36
|
-
<div class="app-alert__actions"><button type="button" class="app-btn app-state app-target">Add seats</button></div>
|
|
36
|
+
<div class="app-alert__actions"><button type="button" class="app-btn app-state app-target"><span class="app-icon" aria-hidden="true">add</span>Add seats</button></div>
|
|
37
37
|
</div>
|
|
38
38
|
<!-- Icons: info → info, success → check_circle, warning → warning, error → error. Title and actions are optional. -->
|
|
39
39
|
|
package/components/AppButton.md
CHANGED
|
@@ -11,7 +11,7 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
11
11
|
- Cyan text is a link, never a button.
|
|
12
12
|
- **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
|
|
13
13
|
- No tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
|
|
14
|
-
- An icon only when the button sits in a set people scan,
|
|
14
|
+
- An icon only when the button sits in a set people scan, or `add` on a New or Add action wherever it sits ([buttons.md](../rules/buttons.md) § The form). No other icon on a filled or outlined button, and none on a dialog action.
|
|
15
15
|
- The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text and outlined buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
|
|
16
16
|
- **Loading** shows the work on the control the user pressed: a 16px spinner replaces the icon and the label stays (or becomes the present participle, "Deploying"). The button is busy, not disabled: full colour, presses ignored until it settles.
|
|
17
17
|
- Work with steps you can count (a deploy, an upload) moves its indicator into the content once it starts: an [AppProgress](AppProgress.md), and the button goes back to rest. One wait, one indicator ([loading.md](../rules/loading.md)).
|
|
@@ -21,15 +21,18 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
21
21
|
|
|
22
22
|
```html
|
|
23
23
|
<!-- Text (default) -->
|
|
24
|
-
<button type="button" class="app-btn app-state app-target">
|
|
24
|
+
<button type="button" class="app-btn app-state app-target">View logs</button>
|
|
25
25
|
|
|
26
26
|
<!-- With an icon (a set people scan; never on filled) -->
|
|
27
27
|
<button type="button" class="app-btn app-state app-target">
|
|
28
28
|
<span class="app-icon" aria-hidden="true">download</span>Export
|
|
29
29
|
</button>
|
|
30
30
|
|
|
31
|
-
<!-- Outlined: the lead of a title bar, pane or empty state, when it starts something
|
|
32
|
-
|
|
31
|
+
<!-- Outlined: the lead of a title bar, pane or empty state, when it starts something.
|
|
32
|
+
New and Add lead with add, at any rung -->
|
|
33
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined">
|
|
34
|
+
<span class="app-icon" aria-hidden="true">add</span>New environment
|
|
35
|
+
</button>
|
|
33
36
|
|
|
34
37
|
<!-- Filled: the one action of consequence on the screen -->
|
|
35
38
|
<button type="submit" class="app-btn app-state app-target app-btn--filled">Save changes</button>
|
|
@@ -6,7 +6,7 @@ An empty state that fills its pane and invites a first step.
|
|
|
6
6
|
|
|
7
7
|
See [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
|
-
- It speaks to the user: a headline that says why you would act (never the screen's name), one supporting line that says how, and an outlined [AppButton](AppButton.md) (`app-btn--outlined`) that repeats the title bar's lead under the same label: the empty state is a surface, and that action is its lead.
|
|
9
|
+
- It speaks to the user: a headline that says why you would act (never the screen's name), one supporting line that says how, and an outlined [AppButton](AppButton.md) (`app-btn--outlined`) that repeats the title bar's lead under the same label and glyph: the empty state is a surface, and that action is its lead.
|
|
10
10
|
- It takes the drafting field, one per screen. In `.app-shell__content` or the detail pane the field bleeds to the pane's edges (the CSS cancels the pane padding). Where the list pane and the detail pane are both empty, the detail pane takes the field and the list pane's empty state goes without it.
|
|
11
11
|
- Keep the title bar's name and verb; hide search and the filter row.
|
|
12
12
|
- An empty line inside working content ("No files yet" in a tab) is not this: use one supporting line, `.app-empty-line`.
|
|
@@ -25,7 +25,7 @@ See [page.md](../rules/page.md).
|
|
|
25
25
|
<div class="app-empty">
|
|
26
26
|
<h2 class="app-empty__headline text-page-title">Give every branch a safe place to run</h2>
|
|
27
27
|
<p class="app-empty__line text-supporting">Create an environment, then deploy a branch to it from here.</p>
|
|
28
|
-
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
28
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
@@ -7,7 +7,7 @@ The top of every product screen: the name and the verbs; route tabs under the na
|
|
|
7
7
|
See [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
9
|
- **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
|
|
10
|
-
- **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"). 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`.
|
|
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. 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
|
- **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.
|
|
12
12
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
13
13
|
- **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).
|
|
@@ -28,7 +28,7 @@ See [page.md](../rules/page.md).
|
|
|
28
28
|
<h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1>
|
|
29
29
|
</div>
|
|
30
30
|
<div class="app-titlebar__actions">
|
|
31
|
-
<button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button>
|
|
31
|
+
<button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
34
|
<!-- Optional route tabs -->
|
package/components/README.md
CHANGED
|
@@ -74,7 +74,7 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
74
74
|
<header class="app-titlebar">
|
|
75
75
|
<div class="app-titlebar__row">
|
|
76
76
|
<div class="app-titlebar__name"><h1 class="app-titlebar__title text-page-title" title="Environments">Environments</h1></div>
|
|
77
|
-
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined">New environment</button></div>
|
|
77
|
+
<div class="app-titlebar__actions"><button type="button" class="app-btn app-state app-target app-btn--outlined"><span class="app-icon" aria-hidden="true">add</span>New environment</button></div>
|
|
78
78
|
</div>
|
|
79
79
|
</header>
|
|
80
80
|
<div class="app-shell__content">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
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/buttons.md
CHANGED
|
@@ -83,7 +83,16 @@ stops it**, filled in `error`, and the label still names the outcome:
|
|
|
83
83
|
rationed. Add a leading icon only when **both** hold: the button sits in a set of
|
|
84
84
|
similar controls people scan repeatedly, and the glyph is conventional.
|
|
85
85
|
|
|
86
|
-
-
|
|
86
|
+
- **`add` on every New and Add.** The action that brings a thing into a screen
|
|
87
|
+
(§ Naming the action) leads with the plain `add` glyph wherever it appears: a
|
|
88
|
+
title bar's lead, an empty state, a text button in a pane, an alert. The glyph
|
|
89
|
+
names a kind of action, not the object, so never `person_add` or `note_add`;
|
|
90
|
+
in a menu the item follows the menu's rule (a glyph on every row or none), and
|
|
91
|
+
its glyph is `add`. "Add a follow-up round" works inside a thing and keeps none,
|
|
92
|
+
and so does a field's own action ("Add" beside an input, taking what you
|
|
93
|
+
typed): it is that field's affirmative.
|
|
94
|
+
- **No other icon on a lead**, filled or outlined, and none on a dialog action:
|
|
95
|
+
"Create project" finishes what New started.
|
|
87
96
|
- One icon, leading. The only trailing icon is a chevron meaning "opens a menu".
|
|
88
97
|
- An icon belongs to the action, not the instance: "Delete" is iconed everywhere
|
|
89
98
|
or nowhere.
|
|
@@ -131,14 +140,17 @@ Did this thing exist before the action?
|
|
|
131
140
|
- **One object, one label, everywhere it appears:** the title bar, an empty
|
|
132
141
|
state, a menu. Not Create, Generate new or Get started: the first two are more
|
|
133
142
|
words for New, and the last drops the object.
|
|
143
|
+
- **Upload is its own verb.** Files from your device are "Upload files", with
|
|
144
|
+
`upload`, never "Add files": Add brings a thing in, Upload says where it comes
|
|
145
|
+
from.
|
|
134
146
|
- **A product name keeps its capital and the object doesn't:** "New build
|
|
135
147
|
environment".
|
|
136
148
|
- **It names what brings a thing into a screen, not work inside one.** "Add a
|
|
137
149
|
follow-up round" edits an interview that exists. Plural only when one action
|
|
138
150
|
brings several: "Add participants".
|
|
139
151
|
- **The button that opens the dialog is outlined when it leads its surface**,
|
|
140
|
-
text otherwise ([page.md](page.md))
|
|
141
|
-
outcome.
|
|
152
|
+
text otherwise ([page.md](page.md)), and leads with `add` either way (§ The
|
|
153
|
+
form); the dialog's affirmative action names the outcome.
|
|
142
154
|
|
|
143
155
|
## Icon buttons
|
|
144
156
|
|
package/rules/quick-start.md
CHANGED
|
@@ -29,7 +29,7 @@ AppShell
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
31
|
| The frame and the navigation rail | `AppShell` |
|
|
32
|
-
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"
|
|
32
|
+
| The screen's name, verbs | `AppTitleBar`. Its lead ("New environment") is `AppButton variant="outlined"`, led by `add` when it is New or Add; other verbs are text or icon buttons; no icon on a single verb |
|
|
33
33
|
| To search or narrow one list | `AppFilterRow`: `search` first, then `AppSegmented` or filter `AppChip`s, the count last ("2 of 5" while narrowed) |
|
|
34
34
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
35
35
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|