@vegastack/design 0.11.0 → 0.12.1
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.12.1",
|
|
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": {
|
|
@@ -63,7 +63,10 @@ link` (upstream's set, verbatim). `destructive` is a soft tint, not a solid red
|
|
|
63
63
|
`personInitials`, exported from `person-avatar`) on the person's stored `hue`, else muted. Pass `hue` wherever a
|
|
64
64
|
person is (`RecordChip` `person`, `BoardCard` `assignee`, `InboxItem` `avatar`, `PropertyPerson`,
|
|
65
65
|
`SearchableSelect` `itemToAvatar`); never hand-roll `Avatar` + initials for a person, and set a
|
|
66
|
-
person's own photo with `AvatarPicker`.
|
|
66
|
+
person's own photo with `AvatarPicker`. Size it with `size` (`2xs` 16 · `xs` 20 · `sm` 24 ·
|
|
67
|
+
`default` 32 · `lg` 40 · `xl` 64), never a `className="size-*"`. An agent (`kind: "agent"`) is a
|
|
68
|
+
soft hexagon: pass its provider's logo as `mark` (`{ src, alt, fit, tile }` or a node); the
|
|
69
|
+
design system holds no provider names or logos.
|
|
67
70
|
- **Control sizes are upstream's names: `default · xs · sm · lg`**, plus
|
|
68
71
|
`icon · icon-xs · icon-sm · icon-lg` where a square tier exists. The old `md` default is gone, and
|
|
69
72
|
most of the components that are ours dropped their `size` prop entirely and take their height from
|
|
@@ -28,7 +28,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
28
28
|
- **`color-picker`** — A swatch-triggered popover presenting a grid of preset colors — pick one, fire onValueChange, mark the selection.
|
|
29
29
|
- **`combobox`** — A filterable listbox behind a text input — grouped items, an announced empty state and a chips mode.
|
|
30
30
|
- **`country-select`** — A searchable country picker returning the ISO 3166-1 alpha-2 code, with flag + name. A thin wrapper over SearchableSelect fed by the geo-data item.
|
|
31
|
-
- **`date-picker`** — Pick a single date or a date range from a calendar popover — token-styled, keyboard-navigable, with optional quick presets.
|
|
31
|
+
- **`date-picker`** — Pick a single date, a date and a time, or a date range from a calendar popover — token-styled, keyboard-navigable, with optional quick presets.
|
|
32
32
|
- **`dropzone`** — File acquisition surface — drop, click-to-browse, and paste — as a thin shell over use-file-drop; the surface is the named focusable control over a hidden picker-bridge input; data-dragging/data-drag-invalid styling flags.
|
|
33
33
|
- **`editable-cell`** — Inline-editable value whose edit mode looks like view — same box, inherited type, no border — with optimistic saves, a delayed spinner, rollback plus a Retry toast on failure, required, multiline, table-cell and heading variants, and a typed text/select/custom editor registry.
|
|
34
34
|
- **`emoji-picker`** — A popover with a quick row, search, a category bar, recents and a category-grouped grid of emoji that returns the selected character via onValueChange (curated set, loaded lazily).
|
|
@@ -118,7 +118,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
118
118
|
- **`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.
|
|
119
119
|
- **`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.
|
|
120
120
|
- **`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.
|
|
121
|
-
- **`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.
|
|
121
|
+
- **`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.
|
|
122
122
|
- **`person-hover-card`** — Stacked avatars with a hover card per person — a compact card with a 32px avatar, with the name and muted email beside it — and the rest behind "+N".
|
|
123
123
|
- **`property-list`** — Record-facts rows: an icon+label column beside a value column, as an accessible definition list.
|
|
124
124
|
- **`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.
|
|
@@ -218,7 +218,7 @@ starts with `icon-` is a component and never an icon.
|
|
|
218
218
|
|
|
219
219
|
## Chat
|
|
220
220
|
|
|
221
|
-
- **`agent-edit-banner`** — The strip under a document's header after an agent changed it: the agent's purple bot, "Edited by Claude (via Manoj) · 3 changes · 2m ago", View changes, Undo and a dismiss — with the undoing, refused, created and read-only states and the other agents behind +N.
|
|
221
|
+
- **`agent-edit-banner`** — The strip under a document's header after an agent changed it: the agent's purple bot, "Edited by Claude (via 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.
|
|
222
222
|
- **`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.
|
|
223
223
|
- **`approval-card`** — An agent asks its owner to approve a risky action: who asks, the action in words, the records it touches, its reason, a reassurance, the expiry, and one Approve / Decline for the whole request — then the outcome.
|
|
224
224
|
- **`cited-list`** — An answer as numbered points, each a sentence followed by its sources as small muted chips — links by default, or any element through render.
|