@vegastack/design 0.21.0 → 0.23.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/bin/doctor.mjs +1 -1
- package/dist/{chunk-BJGPQLMW.js → chunk-72UTPXMT.js} +1 -1
- package/dist/create-animated-icon.cjs +1 -1
- package/dist/create-animated-icon.js +1 -1
- package/dist/icons/index.cjs +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/skills/vegastack-design-system/SKILL.md +2 -2
- package/skills/vegastack-design-system/references/components.md +5 -4
package/bin/doctor.mjs
CHANGED
|
@@ -149,7 +149,7 @@ function readJson(path) {
|
|
|
149
149
|
const GUIDE = "https://design.vegastack.com/docs/guides/migrating-shadcn-reset";
|
|
150
150
|
const HEADING_HINT = {
|
|
151
151
|
"text-h1":
|
|
152
|
-
"PageHeader (font-heading text-
|
|
152
|
+
"PageHeader (font-heading text-page-title font-semibold, the page heading)",
|
|
153
153
|
"text-h2": "font-heading text-base font-medium (section heading)",
|
|
154
154
|
"text-h3": "text-lg font-semibold",
|
|
155
155
|
"text-h4": "text-base font-medium (card / dialog title)",
|
|
@@ -165,7 +165,7 @@ var CORNER_ROLES = [
|
|
|
165
165
|
"tile"
|
|
166
166
|
];
|
|
167
167
|
var twMerge = extendTailwindMerge({
|
|
168
|
-
extend: { theme: { radius: [...CORNER_ROLES] } }
|
|
168
|
+
extend: { theme: { radius: [...CORNER_ROLES], text: ["page-title"] } }
|
|
169
169
|
});
|
|
170
170
|
function cn(...inputs) {
|
|
171
171
|
return twMerge(clsx(inputs));
|
|
@@ -205,7 +205,7 @@ var CORNER_ROLES = [
|
|
|
205
205
|
"tile"
|
|
206
206
|
];
|
|
207
207
|
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
208
|
-
extend: { theme: { radius: [...CORNER_ROLES] } }
|
|
208
|
+
extend: { theme: { radius: [...CORNER_ROLES], text: ["page-title"] } }
|
|
209
209
|
});
|
|
210
210
|
function cn(...inputs) {
|
|
211
211
|
return twMerge((0, import_clsx.clsx)(inputs));
|
package/dist/icons/index.cjs
CHANGED
|
@@ -219,7 +219,7 @@ var CORNER_ROLES = [
|
|
|
219
219
|
"tile"
|
|
220
220
|
];
|
|
221
221
|
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
222
|
-
extend: { theme: { radius: [...CORNER_ROLES] } }
|
|
222
|
+
extend: { theme: { radius: [...CORNER_ROLES], text: ["page-title"] } }
|
|
223
223
|
});
|
|
224
224
|
function cn(...inputs) {
|
|
225
225
|
return twMerge((0, import_clsx.clsx)(inputs));
|
package/dist/icons/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -198,7 +198,7 @@ var CORNER_ROLES = [
|
|
|
198
198
|
"tile"
|
|
199
199
|
];
|
|
200
200
|
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
201
|
-
extend: { theme: { radius: [...CORNER_ROLES] } }
|
|
201
|
+
extend: { theme: { radius: [...CORNER_ROLES], text: ["page-title"] } }
|
|
202
202
|
});
|
|
203
203
|
function cn(...inputs) {
|
|
204
204
|
return twMerge((0, import_clsx.clsx)(inputs));
|
package/dist/index.d.cts
CHANGED
|
@@ -109,8 +109,8 @@ declare const proseClassName: string;
|
|
|
109
109
|
* `cn` (tailwind-merge resolves each `[&_h1]:text-lg` against its `[&_h1]:text-2xl/8`), or use
|
|
110
110
|
* `proseDocumentClassName`, which is that composition done once.
|
|
111
111
|
*
|
|
112
|
-
* The column's width is the layout's, not the recipe's: `DocumentLayout`
|
|
113
|
-
* column
|
|
112
|
+
* The column's width is the layout's, not the recipe's: `DocumentLayout` gives the text a fixed
|
|
113
|
+
* 720px column, in the same font size this recipe sets.
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* <div className={cn(proseClassName, proseDocument.root, proseDocument.h1)} />
|
package/dist/index.d.ts
CHANGED
|
@@ -109,8 +109,8 @@ declare const proseClassName: string;
|
|
|
109
109
|
* `cn` (tailwind-merge resolves each `[&_h1]:text-lg` against its `[&_h1]:text-2xl/8`), or use
|
|
110
110
|
* `proseDocumentClassName`, which is that composition done once.
|
|
111
111
|
*
|
|
112
|
-
* The column's width is the layout's, not the recipe's: `DocumentLayout`
|
|
113
|
-
* column
|
|
112
|
+
* The column's width is the layout's, not the recipe's: `DocumentLayout` gives the text a fixed
|
|
113
|
+
* 720px column, in the same font size this recipe sets.
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
116
|
* <div className={cn(proseClassName, proseDocument.root, proseDocument.h1)} />
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vegastack/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.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.23.0",
|
|
74
74
|
"clsx": "^2.1.1",
|
|
75
75
|
"tailwind-merge": "^3.6.0",
|
|
76
76
|
"tsconfig-paths": "^4.2.0",
|
|
@@ -75,7 +75,7 @@ link` (upstream's set, verbatim). `destructive` is a soft tint, not a solid red
|
|
|
75
75
|
`Image`'s corner — and they say so on their own pages.
|
|
76
76
|
- **Compose `shell`** for the global bar, rail, column, top bar and main region — never hand-roll
|
|
77
77
|
the landmarks. A record from a list opens in `Peek`; a record page is `RecordLayout`, with its
|
|
78
|
-
|
|
78
|
+
one side panel of stacked sections in `RecordPanel` (▥ `RecordPanelToggle` in the page bar).
|
|
79
79
|
- **Space a page with the page-rhythm recipe** — gutters `px-4 py-6` / `md:px-8 md:py-8`,
|
|
80
80
|
`gap-6` under `PageHeader`, `gap-8` between sections, `gap-3` from a section heading or a list
|
|
81
81
|
toolbar to its content, `--card-spacing` inside a card, and `FieldGroup`'s own gaps in a form
|
|
@@ -413,7 +413,7 @@ contract.
|
|
|
413
413
|
rest); the filled primary `Button` is only the page's top-bar action and a dialog's confirm.
|
|
414
414
|
- Set numbers — counts, dates, amounts, quantities — in the regular font with `tabular-nums`, and
|
|
415
415
|
right-align a numeric column. `font-mono` is for code and identifiers (`SYS-1042`) only.
|
|
416
|
-
- Title a page with `PageHeader` (`font-heading text-
|
|
416
|
+
- Title a page with `PageHeader` (`font-heading text-page-title font-semibold`, 26/600); a section heading is
|
|
417
417
|
`font-heading text-base font-medium`, a group label `text-xs font-medium text-muted-foreground`.
|
|
418
418
|
- Give every corner its ROLE, never a size (BRD-12): `rounded-control` for a single-line control,
|
|
419
419
|
`rounded-icon` for an icon-only button, `rounded-chip`, `rounded-inline` for a token inside text,
|
|
@@ -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
|
+
**228 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`) — 817 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
|
|
@@ -121,8 +121,9 @@ starts with `icon-` is a component and never an icon.
|
|
|
121
121
|
- **`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
122
|
- **`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
123
|
- **`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.
|
|
124
125
|
- **`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.
|
|
125
|
-
- **`person-hover-card`** —
|
|
126
|
+
- **`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.
|
|
126
127
|
- **`property-list`** — Record-facts rows: an icon+label column beside a value column, as an accessible definition list.
|
|
127
128
|
- **`recent-strip`** — One row of the records a person opened last — compact cards in a sideways strip with edge fades and roving arrow keys, a single line of chips on a phone, collapsible, with a same-shape skeleton.
|
|
128
129
|
- **`record-aside`** — The cards of a record's details — titled sections of inline properties, people, linked records and full-width action rows.
|
|
@@ -166,7 +167,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
166
167
|
- **`link-provider`** — One rule for every link, set once at the app root: an in-app link opens in place through the host router, a modified click stays the browser's, another origin opens a new tab.
|
|
167
168
|
- **`menubar`** — A persistent horizontal bar of menus — application-style File / Edit / View navigation.
|
|
168
169
|
- **`multi-step-form`** — A guarded, branching flow around a Stepper — conditional steps, sync and async advance guards, locking, reachability-derived deep links and resume, and a phone layout chosen from the same predicate. Owns no fields and no validator.
|
|
169
|
-
- **`nav-tree`** — A column's navigation: titled sections of items left-aligned with their title, children indented one 12px step
|
|
170
|
+
- **`nav-tree`** — A column's navigation: titled sections of items left-aligned with their title, children indented one 12px step under their parent, counts, an inset rounded active state, a fold control at a parent's end, arrow-key navigation and a 44px touch size.
|
|
170
171
|
- **`navigation-menu`** — A collection of links for navigating websites — triggers that open one shared panel, and plain links styled to match.
|
|
171
172
|
- **`page-header`** — The standardized header at the top of a page — back button, breadcrumb trail, title, description, actions and secondary menu — plus SectionHeading for in-page section titles (sm and md sizes, a muted eyebrow variant, trailing actions).
|
|
172
173
|
- **`pagination`** — Page navigation — previous/next, numbered page links, an ellipsis for long ranges, and the active page.
|
|
@@ -192,7 +193,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
192
193
|
- **`aspect-ratio`** — Constrains its children to a given width-to-height ratio.
|
|
193
194
|
- **`board`** — Kanban lanes — full-height lanes that scroll their cards inside, sticky headers with a collapse button left of the ⋯ menu, a subtle top-down fade on each lane, + Add after the last card (the empty lane's action when it has none), Nothing here / Drop here empty zones, per-lane skeletons and load-on-scroll paging; live pointer and touch drag (lift, make room, settle, edge auto-scroll), a keyboard pick-up/move/drop model, a per-card ⋯ menu of the card's own actions, optimistic moves with rollback and a toast, and one lane at a time on a phone.
|
|
194
195
|
- **`direction`** — Base UI's DirectionProvider and useDirection — the text-direction context components read.
|
|
195
|
-
- **`document-layout`** — A page read as a document — the title area and its meta lines, a
|
|
196
|
+
- **`document-layout`** — A page read as a document — the title area and its meta lines, a 720px text column, what follows it, a contents rail before it and a comment margin after it — on one grid with five tiers by its own width, plus its skeleton and a tier hook.
|
|
196
197
|
- **`global-bar`** — The app's 44px bar across the top of every page: leading (column toggle, back and forward, workspace switcher), a centred search trigger with ⌘K, and trailing (Ask with ⌘J, Help, account); the desktop app's draggable title row; hidden on phones.
|
|
197
198
|
- **`record-layout`** — A record page: the main column, and the right-edge strip that opens one reference panel at a time.
|
|
198
199
|
- **`resizable`** — Accessible resizable panel groups and layouts with keyboard support — horizontal or vertical, nestable, with an optional visible grip.
|