@vegastack/design 0.26.0 → 0.28.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vegastack/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "VegaStack design system — cn utility, icon runtime, Tailwind v4 preset, and the vegastack-design CLI (tokens ship separately as @vegastack/design-tokens)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"test": "node test/compare.test.mjs && node test/check-updates.test.mjs && node test/skills-install.test.mjs && node test/doctor.test.mjs && node --test test/merge-refs.test.mjs test/registry-credentials.test.mjs test/registry-fetch.test.mjs"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@vegastack/design-tokens": "^0.
|
|
73
|
+
"@vegastack/design-tokens": "^0.28.0",
|
|
74
74
|
"clsx": "^2.1.1",
|
|
75
75
|
"tailwind-merge": "^3.6.0",
|
|
76
76
|
"tsconfig-paths": "^4.2.0",
|
|
@@ -66,12 +66,25 @@ rg -n 'style=\{\{' --glob '!components/ui/**'
|
|
|
66
66
|
expresses is not a finding; upstream writes several itself. **warning**
|
|
67
67
|
- **off-role corner** — a corner that is not a role (BRD-12): `rounded-sm|md|lg|xl|2xl|3xl|4xl`,
|
|
68
68
|
bare `rounded`, `rounded-[…]`, `rounded-(--…)` or the retired `rounded-chat-card`. Name the role
|
|
69
|
-
the element plays: `rounded-control` (in
|
|
70
|
-
square), `-segment` (control inside a control
|
|
71
|
-
buttons), `-chip
|
|
72
|
-
`-inline` (token in text), `-mark`, `-item` (row with a fill, tooltip), `-block`,
|
|
73
|
-
`-bubble`, `-overlay`, `-tile` (square media); `row-fill` on a table row.
|
|
74
|
-
|
|
69
|
+
the element plays: `rounded-control` (action or input in the page, 10px), `-icon` (icon-only
|
|
70
|
+
button, 10px square), `-segment` (control inside a control, and every 24px control, 8px),
|
|
71
|
+
`-capsule` (the top bar, a floating bar or media control, and its buttons), `-chip` (token or
|
|
72
|
+
state), `-inline` (token in text), `-mark`, `-item` (list row with a fill, tooltip), `-block`,
|
|
73
|
+
`-card`, `-bubble`, `-overlay`, `-tile` (square media); `row-fill` on a table row. **error**
|
|
74
|
+
- **wrong shape for what it is** (BRD-12: the shape says what the thing is) — mixed shapes in one
|
|
75
|
+
row (a rectangle `+ Filter` or button beside pill chips, a capsule button beside a rectangular
|
|
76
|
+
field); a pill (`rounded-full`, `rounded-capsule`, `shape="pill"`) on an in-page action or input
|
|
77
|
+
that is not in a row of pills; a rectangle on a chip, badge, reaction or quick-filter toggle; an
|
|
78
|
+
ad-hoc `rounded-*` that reshapes a VegaStack control in app code (use its `shape` prop or
|
|
79
|
+
`capsule-scope`); a table row whose hover or selected fill is an inset rounded shape (table rows
|
|
80
|
+
are a square band, `row-fill`); a square hover fill on a list row without dividers (`rounded-item`,
|
|
81
|
+
inset). **warning**
|
|
82
|
+
- **scrolling** (BRD-SCR, Foundations › Scrolling) — per-component scrollbar styling
|
|
83
|
+
(`[scrollbar-width:…]`, `::-webkit-scrollbar`, `scrollbar-thin` plugins) outside `scrollbar-none`
|
|
84
|
+
on a strip that shows fades or arrows; an `overflow-*-auto|scroll` element with no `relative` (or
|
|
85
|
+
`absolute`/`fixed`/`sticky`); a vertical scroller nested in a page region that also scrolls
|
|
86
|
+
vertically (a board or record view not filling the remaining height, `h-screen`/`100dvh` inside the
|
|
87
|
+
shell); a sideways scroller with a hidden bar and no `scroll-fade-x` or arrows. **warning**
|
|
75
88
|
- **inline style** — allowed only when every key is a `--*` custom property. Any direct visual
|
|
76
89
|
property is a finding. **error**
|
|
77
90
|
|
|
@@ -98,8 +98,9 @@ overflow="menu"`) left; the search, then the tools — Filter (n), Sort (`SortMe
|
|
|
98
98
|
(List | Board | Grid icons), Display (`DisplayMenu`: row height, columns, group) and ⋯ — right;
|
|
99
99
|
it measures itself and folds tools into Display and ⋯ when tight. The Filter tool opens a
|
|
100
100
|
`FilterRow`: `+ Filter` (`AddFilterMenu`), the pinned `ListFacet` / `PeopleFacet` /
|
|
101
|
-
`DateRangeFilter` chips (
|
|
102
|
-
chips, Clear
|
|
101
|
+
`DateRangeFilter` chips (28px pills with 12px text, dashed while unset, tinted when set), the
|
|
102
|
+
other chips, Clear — one chip tier and one shape: `+ Filter` and Clear are ghost 28px pills
|
|
103
|
+
(`FILTER_ROW_ACTION`); people facets take `itemToSecondaryLabel={(p) => p.email}`. Tables are `DataList` with `sortable` columns (`compare`, `sortFirst`,
|
|
103
104
|
`sortMode="client"`) and `rowActions` (the ⋯ column, always last); row links are never underlined.
|
|
104
105
|
- **`alert`** for an in-content notice — `variant` is `default · destructive · success · warning ·
|
|
105
106
|
info`, each an ink on the `card` surface with a required icon.
|
|
@@ -415,13 +416,23 @@ contract.
|
|
|
415
416
|
right-align a numeric column. `font-mono` is for code and identifiers (`SYS-1042`) only.
|
|
416
417
|
- Title a page with `PageHeader` (`font-heading text-page-title font-semibold`, 26/600); a section heading is
|
|
417
418
|
`font-heading text-base font-medium`, a group label `text-xs font-medium text-muted-foreground`.
|
|
418
|
-
-
|
|
419
|
-
|
|
420
|
-
`rounded-
|
|
421
|
-
bars,
|
|
422
|
-
`rounded-
|
|
423
|
-
|
|
424
|
-
|
|
419
|
+
- Let the shape say WHAT a thing is (BRD-12), never where it sits or how tall it is: a token or
|
|
420
|
+
state (chip, badge, tag, count, reaction, filter chip, quick-filter toggle, switch) is a pill
|
|
421
|
+
(`rounded-chip`, `ToggleGroup shape="pill"`); the app frame and anything floating (the top bar,
|
|
422
|
+
floating bars, controls over media) are `rounded-capsule capsule-scope`, their buttons circles; an
|
|
423
|
+
action or input in the page is `rounded-control` (10px) — `rounded-segment` (8px) at 24px and for a
|
|
424
|
+
control inside a control; a list row is `rounded-item` (inset); a table row is `row-fill` (square,
|
|
425
|
+
full width); anything inside anything is concentric. One shape per row: a button in a row of chips
|
|
426
|
+
is `Button shape="pill"` (the filter row's + Filter and Clear use `FILTER_ROW_ACTION`). Take shape
|
|
427
|
+
from the component (`shape` on Button, Input, InputGroup, ToggleGroup) — never `rounded-*` on a
|
|
428
|
+
VegaStack control, never `rounded-sm|md|lg|xl…`, bare `rounded` or `rounded-[…]`. Other roles:
|
|
429
|
+
`rounded-inline` (token in text), `rounded-mark`, `rounded-block`, `rounded-card`, `rounded-bubble`,
|
|
430
|
+
`rounded-overlay`, `rounded-tile` (square media).
|
|
431
|
+
- Scroll the way the shell does (BRD-SCR): the page scrolls in the shell's content area — add no
|
|
432
|
+
page-level scroller; a view inside it (`RecordLayout`, `Board height="fill"`) fills what is left.
|
|
433
|
+
Give every `overflow-*-auto` element `relative`; never style its scrollbar (the global thin bar
|
|
434
|
+
applies); use `ScrollArea` for a bounded region; fade a sideways strip with `scroll-fade-x
|
|
435
|
+
scrollbar-none`.
|
|
425
436
|
- Reach for a plain Tailwind utility for size, shadow, z-index, alpha, weight and motion:
|
|
426
437
|
`h-8`, `size-4`, `shadow-md`, `z-50`, `bg-foreground/10`, `opacity-50`,
|
|
427
438
|
`font-semibold`, `transition-colors duration-100 ease-in-out` are all on-system now.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- GENERATED — do not hand-edit. Regenerated from the design system's component contract,
|
|
4
4
|
which is the authority for membership and counts. -->
|
|
5
5
|
|
|
6
|
-
**
|
|
6
|
+
**238 components**, plus 467 animated-icon items, 16 hooks (`use-announcer`, `use-async-search`, `use-drag-reorder`, `use-file-drop`, `use-grid-selection`, `use-inline-edit`, `use-list-nav`, `use-media-query`, `use-mobile`, `use-modal-inert`, `use-overflow-fold`, `use-overflow`, `use-platform`, `use-stick-to-bottom`, `use-tabs-swipe`, `use-view-transition`), 15 starter blocks (`shell-01`, `board-01`, `issue-detail-01`, `page-editor-01`, `command-search-01`, `list-page-01`, `library-01`, `login-01`, `notifications-01`, `review-split-01`, `settings-01`, `settings-02`, `status-pages-01`, `email-kit`, `share-01`), 68 chart blocks across 7 families, and 23 data libs (`code-highlight`, `date-time`, `disclosure-trigger`, `drag-item`, `embed-providers`, `emoji-data`, `file-kind`, `grid-clipboard`, `icon-components`, `icon-data`, `markdown-as-typed`, `media-probe`, `page-layout`, `shell-layout`, `picker-preferences`, `picker-search`, `text-anchor`, `text-anchor-doc`, `text-edit-grammar`, `text-edit-markdown`, `text-edit-schema`, `tile-overlay`, `upload-progress`) — 827 registry items in total.
|
|
7
7
|
|
|
8
8
|
Install any of them with `shadcn add @vegastack/<name>`. Animated icons install as
|
|
9
9
|
`@vegastack/icon-<name>`; the bare name is reserved for components, so a component whose name
|
|
@@ -100,7 +100,8 @@ starts with `icon-` is a component and never an icon.
|
|
|
100
100
|
- **`markdown-view`** — Render a markdown string to safe, token-styled HTML — headings (with optional ids and copy links), lists, code, blockquotes, links, GFM tables that fade at a scrolling edge, mention and file chips, callouts and toggles — XSS-safe; at the document type scale, a page's read view with comment highlights, an outline, per-reader toggles and find.
|
|
101
101
|
- **`priority-icon`** — A flag marking priority — urgent, high, medium, low, none — each in a semantic color with filled, outline or dashed fill.
|
|
102
102
|
- **`relative-time`** — One Intl-based dates & times module — formatRelative, formatDuration, formatDate, formatDateTime, formatDateRange, formatTimeOfDay, formatDueLabel, groupByDay, time-zone cookie + provider — and the RelativeTime, DateTime, Duration and DueLabel components with absolute-time tooltips.
|
|
103
|
-
- **`status-
|
|
103
|
+
- **`request-status-chip`** — Where a request stands, as one chip: the tone follows the lifecycle state, the words are the state's, the table's renamed label or a stage name.
|
|
104
|
+
- **`status-icon`** — A small workflow status icon in Linear's set — backlog, todo, in progress, in review, done, canceled, duplicate, triage — plus planned and paused for plans, each a hand-drawn 16-unit glyph in a semantic color.
|
|
104
105
|
- **`table`** — A responsive table component — caption, header, body, footer, row, head and cell parts over semantic table markup.
|
|
105
106
|
- **`truncated-text`** — Truncate text to one line or N lines with an ellipsis, revealing the full text in a tooltip only when it overflows — with per-region control over the tab stop.
|
|
106
107
|
|
|
@@ -121,7 +122,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
121
122
|
- **`list-toolbar`** — The one header row of every list and table: the search left, the icon tools (Filter · Sort · Layout · Display · ⋯) right; scope tabs in their own row above and the filter row under it. Measures its own width and collapses in a fixed order.
|
|
122
123
|
- **`load-more`** — The shared infinite-loading tail for keyset lists — a sentinel that fetches the next cursor page as the list nears its scroll edge, skeleton rows while it loads, an error line with Try again, and an optional end caption.
|
|
123
124
|
- **`media-card`** — A record as a card — an image, the title with its badge beside it, a meta line and a ⋯ menu — where the whole card is one link.
|
|
124
|
-
- **`members-stack`** — Who has access, drawn one way everywhere: 24px faces overlapped 6px, at most three and a "+N" pill of the same height, active people first; only you, everyone in a space and a team as their own forms; names on hover and one members popover.
|
|
125
|
+
- **`members-stack`** — Who has access, drawn one way everywhere: 24px faces overlapped 6px, at most three and a "+N" pill of the same height, active people first; only you, everyone in a space and a team as their own forms; names on hover and one members popover. A compact viewers variant (22px faces, a hue ring for who is here, grouped Viewing now / Viewed popover).
|
|
125
126
|
- **`person-avatar`** — A person's avatar — the photo, else initials on their hue, else initials on the muted fallback — the one way every people surface draws a person; teams and workspaces are rounded squares, agents a soft hexagon with an optional mark.
|
|
126
127
|
- **`person-hover-card`** — A person behind an avatar or a name: hover, focus or tap opens a compact card with a 32px avatar, the name and a muted email.
|
|
127
128
|
- **`property-list`** — Record-facts rows: an icon+label column beside a value column, as an accessible definition list.
|
|
@@ -220,9 +221,11 @@ starts with `icon-` is a component and never an icon.
|
|
|
220
221
|
|
|
221
222
|
## Chat
|
|
222
223
|
|
|
224
|
+
- **`agent-directory-card`** — One agent in the directory: its name the card's one link, status and verified mark, where it lives, its job, example asks, apps, maintainers and Chat; a grid card or a list row.
|
|
223
225
|
- **`agent-edit-banner`** — The strip under a document's header after an agent changed it: the agent's hexagon, "Edited by Claude for Manoj · 3 changes · 2m ago", View changes, Approve, Undo and a dismiss — with the approving, undoing, refused, created and read-only states and the other agents behind +N.
|
|
224
226
|
- **`agent-panel`** — An agent on a record: identity, acting for, state with its actions, instructions, latest, reply and runs with Undo; plus slot, chip, badge, ring and hover card.
|
|
225
227
|
- **`agent-question-form`** — An agent asks one to five questions at once: options with their descriptions in view, the first recommended unless turned off, own words and a note per question, previews, steps and a review; and the read-only answers.
|
|
228
|
+
- **`ask-card`** — The one card an agent uses to ask a person's OK: the server's choices in its order (never a filled primary), the preview of what it would send first, bundles answered item by item, and one muted line once settled.
|
|
226
229
|
- **`chat-card`** — The chat's one card surface (ChatCard), one line of work (ChatRow) and a fold of work that opens and closes smoothly (ChatGroup).
|
|
227
230
|
- **`chat-chip`** — A compact pill for background work and counts on the chat card surface, with an attention tone that never fills.
|
|
228
231
|
- **`chat-composer`** — The box a person talks to an agent in, as a compound: an optional context strip, files above an auto-growing text, and an actions row with round + and @, the model, and a round Send that morphs into Stop.
|
|
@@ -241,9 +244,13 @@ starts with `icon-` is a component and never an icon.
|
|
|
241
244
|
- **`composer-chip`** — A round toolbar chip for the chat composer: a toggle (Plan), a menu trigger with a chevron (the model), or read-only words, with an optional tooltip.
|
|
242
245
|
- **`context-panel`** — What fills a chat's working memory, adding up to its window: share, a segmented bar, a legend, free, Summarize now.
|
|
243
246
|
- **`context-ring`** — How full a chat's memory is: a still 10px ring and its share, opening its ContextPanel on hover, focus or click.
|
|
247
|
+
- **`coverage-banner`** — Someone covering for someone: a quiet strip on a page with the delegate and one action, or one muted line under a name.
|
|
244
248
|
- **`delegate-popover`** — Delegate a record or rows to an agent: search agents (disabled with a reason), instructions, When finished, Connect an agent; bulk, empty and loading states.
|
|
249
|
+
- **`delegate-row`** — One person covering for another, in MemberList's row anatomy: avatar and name over what and when, a note, the state and a ⋯ with Edit and End.
|
|
250
|
+
- **`digest-group`** — One group in a digest: title and count, an urgent mark, a header extra, one group action, the caller's rows and a controlled Show N more footer.
|
|
245
251
|
- **`effect-pill`** — A small pill naming one plan step's effect (read, draft, change, send, remove, spend) with an icon, hued by reach; icon-only for narrow columns.
|
|
246
252
|
- **`file-preview`** — A file in a chat answer previewed on the chat card — Markdown formatted, a CSV's first rows, a PDF's first page, an image — with Download, Open and a reasoned error with Retry.
|
|
253
|
+
- **`for-you-card`** — One thing waiting on a person in For you: the verb, who asks, the deciding facts, what happens if nobody answers, the source's body and options (the preferred one secondary, never filled), its outcome once settled.
|
|
247
254
|
- **`memory-group`** — What an agent remembered in one turn, as one quiet fold — Remembered 3 things · Personal memory — with Undo and Edit per note.
|
|
248
255
|
- **`memory-note`** — One quiet row under a chat message saying what an agent remembered, updated, suggested or forgot in a memory notebook, with Undo, Edit, Why? and a filled Keep for suggestions, and its settled outcomes.
|
|
249
256
|
- **`message-parts`** — What an agent's answer is made of beyond its text: steps, a plan checklist, status and notice lines, changes with Undo, a hand-off divider, sources, the disclaimer, actions, a version switch and a fold.
|
|
@@ -251,6 +258,8 @@ starts with `icon-` is a component and never an icon.
|
|
|
251
258
|
- **`plan-card`** — An agent's plan put to the person: goal, steps with effect pills and touches, assumptions, won't do, will ask, risk, a version diff, per-step comments, four answers and settled lines.
|
|
252
259
|
- **`request-card`** — One card for every question an agent asks before it acts — Allow once · Always allow (one step wider from its menu) · Decline (with a note, or Never allow this) — its settled line in the same words on every channel, and What I've allowed with uses and Revoke.
|
|
253
260
|
- **`resource-pill`** — The person's own thing in an answer — its type icon and real title as an inline chip — never a numbered source.
|
|
261
|
+
- **`routine-row`** — One routine in a list: name and schedule, the next runs, owner and destination, the last run, Run now and a ⋯ with Skip next and Pause or Resume.
|
|
262
|
+
- **`run-timeline`** — An agent run's steps in the chat work log's anatomy: per-step cost, the permission decision with Why?, Undo, delivery unknown, nested subagent steps, one live bolt for the run and folding of long tool runs.
|
|
254
263
|
- **`run-usage`** — What one agent run used: a chip under the answer (steps, context, cache, optional money), a panel by model with cache per step and Subagents, and a table with one row per model call.
|
|
255
264
|
- **`shell-assistant`** — The compact assistant card at the page area's corner, opened from the global bar's Ask or ⌘J.
|
|
256
265
|
- **`source-list`** — The web pages an answer cites: a quiet Sources fold of one-line numbered rows, the citation card and the MarkdownView wiring.
|
|
@@ -259,6 +268,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
259
268
|
- **`task-list`** — An agent's live checklist for a longer job: the live item on top, the next two, finished items folded into a count and the rest into +N more, a waiting badge, Subagent progress, and a sticky progress bar.
|
|
260
269
|
- **`text-spinner`** — The one inline text loader: a dot-matrix bolt as tall as capital letters, Strike while working and Pulse while waiting, CSS only, a still bolt under reduced motion.
|
|
261
270
|
- **`tool-call-chip`** — An agent-activity chip — tool action label + muted result meta, optionally rendered as a button.
|
|
271
|
+
- **`tool-permission-list`** — What an agent may do with one source's tools: Allow, Auto-check, Ask or Block per class and per tool, inherited answers muted, locks, an admin's lock toggle and the rules at this layer.
|
|
262
272
|
|
|
263
273
|
## Communication
|
|
264
274
|
|