@alis-build/design-system 0.15.1 → 0.15.2
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/AppTitleBar.md +3 -2
- package/package.json +1 -1
- package/rules/page.md +6 -0
|
@@ -8,6 +8,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
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, and by `edit_square` when it starts a new conversation ("New chat"). 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
|
+
- **One order, by weight**: the lead, then text buttons, then icon buttons, ⋯ last ([page.md](../rules/page.md) § The title bar). The lead sits beside the name; ⋯ closes the row at every width, so the phone's bar is the same row folded. A destructive verb is the last before ⋯, or inside it.
|
|
11
12
|
- **Never status.** The bar names the screen and holds its verbs: no meter, no usage ring, no saving state, no count. A thing's state is a chip on the detail bar's row or in the content; an account's usage is a row in the account menu ([AppShell](AppShell.md) § The account menu).
|
|
12
13
|
- **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.
|
|
13
14
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
@@ -25,7 +26,7 @@ See [page.md](../rules/page.md).
|
|
|
25
26
|
|
|
26
27
|
The tabs scroll under it; the filter row is unchanged. The bar has no hairline at rest; add one (an `outline-variant` inset shadow) while content scrolls under it. Mark the parts that exist on only one side `app-compact-only` or `app-wide-only`, so one markup serves both.
|
|
27
28
|
|
|
28
|
-
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. On a phone the pane covers the window and its close becomes back (`arrow_back`). The pane pads it; add nothing.
|
|
29
|
+
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons in the bar's order, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. On a phone the pane covers the window and its close becomes back (`arrow_back`). The pane pads it; add nothing.
|
|
29
30
|
|
|
30
31
|
## Markup
|
|
31
32
|
|
|
@@ -58,8 +59,8 @@ The tabs scroll under it; the filter row is unchanged. The bar has no hairline a
|
|
|
58
59
|
<h1 class="app-titlebar__title text-page-title" title="Customer onboarding research">Customer onboarding research</h1>
|
|
59
60
|
</div>
|
|
60
61
|
<div class="app-titlebar__actions">
|
|
61
|
-
<button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
|
|
62
62
|
<button type="button" class="app-btn app-state app-target app-btn--outlined app-titlebar__lead"><span class="app-icon" aria-hidden="true">add</span><span class="app-titlebar__label">Add contribution</span></button>
|
|
63
|
+
<button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
|
|
63
64
|
<button type="button" class="app-icon-btn app-state app-target app-compact-only" aria-label="More actions" aria-haspopup="menu" aria-expanded="false" aria-controls="m-bar"><span class="app-icon" aria-hidden="true">more_vert</span></button>
|
|
64
65
|
</div>
|
|
65
66
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
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
|
@@ -50,6 +50,12 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
50
50
|
content ([buttons.md](buttons.md)). Destructive takes `error` ink. A split
|
|
51
51
|
action is a button and a `more_vert` icon button whose menu holds the
|
|
52
52
|
alternatives, never a button group.
|
|
53
|
+
- **One order, by weight: the lead, then text buttons, then icon buttons, ⋯
|
|
54
|
+
last.** The lead sits beside the name, where Material puts the action used most,
|
|
55
|
+
and each control after it weighs less. ⋯ closes the row at every width, so the
|
|
56
|
+
phone's bar is the same row folded: the lead's glyph, then ⋯ holding what
|
|
57
|
+
followed it, in its order. A split action's `more_vert` stays beside its button;
|
|
58
|
+
a destructive verb is the last before ⋯, or inside it.
|
|
53
59
|
- **Controls sit in a row with an 8px gap**, never per-control margins. A leading
|
|
54
60
|
back or close button pulls its glyph onto the 24px edge the title uses.
|
|
55
61
|
- **The verbs follow the route**: each route tab shows the verbs that act on what
|