@vegastack/design 0.7.16 → 0.7.18

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.7.16",
3
+ "version": "0.7.18",
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"
71
71
  },
72
72
  "dependencies": {
73
- "@vegastack/design-tokens": "^0.7.1",
73
+ "@vegastack/design-tokens": "^0.7.18",
74
74
  "clsx": "^2.1.1",
75
75
  "tailwind-merge": "^3.6.0",
76
76
  "tsconfig-paths": "^4.2.0",
@@ -80,6 +80,16 @@ link` (upstream's set, verbatim). `destructive` is a soft tint, not a solid red
80
80
  - **Empty is tiered** — nothing yet, no matches ("Clear filters"), couldn't load (`role="alert"`,
81
81
  "Try again"), blocked. Pick the tier from the empty-state foundation
82
82
  (<https://design.vegastack.com/docs/foundations/empty-states>); never leave a region blank.
83
+ `Empty` always shows an icon (`icon`, `Inbox` by default). In a `DataList`, use `emptyState` for
84
+ "nothing yet" and `noResults={{ onClear }}` for "no matches" (SearchX, "No matches", "Clear
85
+ filters" wired to the FilterBar's `onClear`) — never hand-roll empty markup.
86
+ - **List toolbars are one recipe** — `FilterBar`: search (~320px) left; right, the Filters (n)
87
+ toggle, then views as `Tabs` (default variant, `TabsList size="sm"`, optional leading icons), then
88
+ the layout switch as an icon `ToggleGroup`, furthest right. Filters are `FilterBarFacet` /
89
+ `DateRangeFilter` chips (compact, rounded-md, tinted when set) on the toggled row; people facets
90
+ take `itemToSecondaryLabel={(p) => p.email}`. Use Tabs for scope/views, an icon ToggleGroup for
91
+ List/Board. Tables are `DataList` with `sortable` columns (`compare`, `sortFirst`,
92
+ `sortMode="client"`) and `rowActions` (the ⋯ column, always last); row links are never underlined.
83
93
  - **`alert`** for an in-content notice — `variant` is `default · destructive · success · warning ·
84
94
  info`, each an ink on the `card` surface with a required icon; **`announcement-banner`** only for
85
95
  the full-width inverse strip at the very top of the page.
@@ -185,7 +195,7 @@ on shadcn's `neutral` base. Always use the utility, never a raw value.
185
195
  | Fill | `bg-primary` (solid action, every checked control) · `bg-secondary` (soft) · `bg-muted` (well, track, skeleton) · `bg-accent` (hover) |
186
196
  | Text | `text-foreground` · `text-muted-foreground` · `text-{primary,secondary,accent,card,popover}-foreground` |
187
197
  | Status | `bg-{destructive,success,warning,info}` · `-foreground` (ink ON the fill) · `-text` (ink on the page or on the family's own tint) |
188
- | Border | `border-border` · `border-input` — there are no rings; focus is one global outline |
198
+ | Border | `border-border` · `border-input` — there are no rings; focus is a global background tint (Tabs alone keep a ring) |
189
199
  | Radius | `rounded-{sm,md,lg,xl,2xl}` — all derived from the single `--radius` |
190
200
  | Type | Tailwind's own `text-{xs…7xl}`. `text-sm` is 14px, `text-base` is 16px. Line-height and letter-spacing above `text-base` come from the theme — never write `tracking-*`, an arbitrary `text-[13px]`, or `uppercase` |
191
201
  | Font | `font-sans` `font-mono` `font-serif` `font-heading` |
@@ -316,8 +326,11 @@ contract.
316
326
  **Don't**
317
327
 
318
328
  - Hardcode a hex, a px value, or a raw Tailwind palette class (`bg-neutral-900`, `text-red-500`).
319
- - Add a focus ring or glow. Focus is one global outline, and text entry tints its border instead;
320
- `ring-3`, `ring-ring/50` and `focus-visible:ring-*` are rejected by lint.
329
+ - Add a focus ring, outline or glow. No focus rings anywhere except Tabs: `base.css` paints a subtle
330
+ background tint on `:focus-visible` and text entry tints its border instead; `ring-3`,
331
+ `ring-ring/50`, `focus-visible:ring-*` and `focus-visible:outline-*` are rejected by lint.
332
+ - Leave a neutral hover on a button inside a tinted container — a status `Alert` already gives its
333
+ buttons the family's own hover; don't override it back to `hover:bg-muted`.
321
334
  - Set `outline-none` without providing another focus affordance.
322
335
  - Use a status FILL as ink on its own tint — `bg-destructive/10 text-destructive` measures 3.99:1.
323
336
  The ink on a tint is `-text`.
@@ -41,7 +41,7 @@ starts with `icon-` is a component and never an icon.
41
41
  - **`radio-group`** — Mutually-exclusive options with arrow-key navigation and a 24px invisible hit area (A11Y-2).
42
42
  - **`region-select`** — A searchable picker of states/provinces for a country, with a free-text fallback for countries with no subdivisions. A thin wrapper over SearchableSelect fed by the geo-data item.
43
43
  - **`search-input`** — A token-safe search field with a consistent clear action and controlled or uncontrolled native input semantics.
44
- - **`searchable-select`** — The Select-shaped Combobox preset: a full-width trigger, an in-panel search field, a check on the selected row and an optional clear control. Single-select, controlled through value/onValueChange.
44
+ - **`searchable-select`** — The Select-shaped Combobox preset: a full-width trigger, an in-panel search field, a tick on the selected row (matched by key, so async options tick too), a standard person option (name plus muted email, both searched) and an optional clear control. Single or multiple, controlled through value/onValueChange.
45
45
  - **`select`** — A dropdown for one value — trigger, grouped scrollable popup and item-aligned positioning.
46
46
  - **`slider`** — A number or range over a continuous track — horizontal or vertical, any number of thumbs.
47
47
  - **`switch`** — An on/off toggle for instant settings — two sizes and a 24px invisible hit area (A11Y-2).
@@ -64,8 +64,8 @@ starts with `icon-` is a component and never an icon.
64
64
  - **`carousel`** — A slide track with previous and next controls — horizontal or vertical, any slide size or spacing, Embla options, events and plugins.
65
65
  - **`chart`** — A themed Recharts wrapper — a ChartConfig that maps each series to a colour and a label, a bordered tooltip and legend, and Recharts' own built-in keyboard + screen-reader layer.
66
66
  - **`collapsible`** — An interactive component which expands and collapses a panel, with an animated height and a trigger you supply.
67
- - **`empty`** — A zero-data placeholder — media, title, description and a content slot.
68
- - **`item`** — A composable row for list and feed content — media, title, description, actions.
67
+ - **`empty`** — A zero-data placeholder — always an icon (the icon prop, Inbox by default), title, description and a content slot, with a compact sm size for inline empties. The one empty-state markup: DataList's emptyState and noResults (SearchX, "No matches", Clear filters) are built on it.
68
+ - **`item`** — A composable row for list and feed content — media, title, description, actions — with a highlighted flash for a just-changed row.
69
69
  - **`kbd`** — A keyboard-key chip, and a group that lays several of them out inline.
70
70
  - **`markdown-view`** — Render a markdown string to safe, token-styled HTML — headings, lists, code, blockquotes, links, GFM tables — XSS-safe, no raw HTML.
71
71
  - **`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.
@@ -77,10 +77,10 @@ starts with `icon-` is a component and never an icon.
77
77
  ## Data
78
78
 
79
79
  - **`data-grid`** — The full-parity grid — TanStack-sorted multi-key sort, column picker with responsive revelation, collapsible grouping, keyboard-continuous load-more, opt-in virtualization, and an APG grid keyboard layer with inline cell editing.
80
- - **`data-list`** — A generic, typed data table — configurable columns, row selection, sortable headers, plus loading and empty states.
80
+ - **`data-list`** — A generic, typed data table — configurable columns, row selection, sortable columns (indicator, custom compare and first direction, client or manual), a standard rowActions ⋯ column always last, untinted-link rows (no underline), loading, and Empty-based emptyState and noResults states.
81
81
  - **`data-list-pager`** — A controlled paging footer for DataList — a tabular-numeral range summary, a rows-per-page Select, and a windowed Pagination that hides on a single page.
82
82
  - **`data-table-parts`** — The chrome DataList and DataGrid share — sort header, selection cells, skeleton rows, the empty row, column class rules, and the selection/sort/controlled-state hooks.
83
- - **`filter-bar`** — The two-row toolbar above a list or table — search, scope and view on top, filters below, folding into a sheet on a narrow screen.
83
+ - **`filter-bar`** — The two-row toolbar above a list or table — search (~320px) left; a Filters (n) toggle, scope Tabs and the view switch right; compact rounded-md filter chips (FilterBarFacet, DateRangeFilter with presets) on a toggled row 12px below that scrolls sideways on a phone.
84
84
  - **`filter-bar-managed`** — The controlled nested and/or filter builder — host-injected field grammar (vocabulary + per-type value editors), depth and condition caps, focus-managed removal, and a removable FilterChip summary.
85
85
  - **`load-more`** — The shared Load more footer for keyset lists — an outline button that keeps its width while loading, an error line with Try again, and an optional end caption.
86
86
  - **`property-list`** — Record-facts rows: an icon+label column beside a value column, as an accessible definition list.
@@ -90,13 +90,13 @@ starts with `icon-` is a component and never an icon.
90
90
 
91
91
  - **`alert-dialog`** — A modal that interrupts for a decision — an optional media slot, two sizes and an action/cancel footer.
92
92
  - **`context-menu`** — The same menu vocabulary opened by right-click, positioned at the pointer.
93
- - **`dialog`** — A modal overlay — a backdrop, a centred popup, an optional close button and a plain, right-aligned footer.
93
+ - **`dialog`** — A modal overlay — backdrop, centred popup, a plain right-aligned footer and an optional close button; opens onto the first field or the popup, never the close ×.
94
94
  - **`drawer`** — A swipeable panel with snap points — four directions, a swipe handle, nesting and a non-modal mode.
95
95
  - **`dropdown-menu`** — An anchored action menu — items, submenus, checkboxes, radio groups, shortcuts and a destructive variant.
96
96
  - **`hover-card`** — A preview surface that opens on hover or focus, with configurable delays and sides.
97
97
  - **`panel-search`** — The sticky, box-free search row a filtering popup puts at the top of its panel (decision OVL-11) — shared by EmojiPicker and ShortcutOverlay.
98
98
  - **`popover`** — An anchored, dismissible surface for secondary content, with a header, title and description.
99
- - **`sheet`** — A panel that slides in from any edge — Dialog semantics with a side, a header and a footer.
99
+ - **`sheet`** — A panel that slides in from any edge — Dialog semantics with a side, a header and a footer; opens onto the first field, never the close ×; a left sheet can dock beside the sidebar rail (beside).
100
100
  - **`shortcut-overlay`** — The ?-triggered dialog listing keyboard shortcuts, rendered from a declaration registry (keys, label, category, when) — grouped, filterable, platform-aware via use-platform + Kbd.
101
101
  - **`tooltip`** — A floating label on hover or focus, portaled inside the theme scope (OVL-13).
102
102
 
@@ -107,16 +107,16 @@ starts with `icon-` is a component and never an icon.
107
107
  - **`menubar`** — A persistent horizontal bar of menus — application-style File / Edit / View navigation.
108
108
  - **`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.
109
109
  - **`navigation-menu`** — A collection of links for navigating websites — triggers that open one shared panel, and plain links styled to match.
110
- - **`page-header`** — The standardized header at the top of a page — back button, breadcrumb trail, title, description, actions, secondary menu, and a favorite star.
110
+ - **`page-header`** — The standardized header at the top of a page — back button, breadcrumb trail, title, description, actions, secondary menu, and a favorite star — plus SectionHeading for in-page section titles (sm and md sizes, a muted eyebrow variant, trailing actions).
111
111
  - **`pagination`** — Page navigation — previous/next, numbered page links, an ellipsis for long ranges, and the active page.
112
- - **`sidebar`** — A composable, themeable and customizable sidebar — a provider, a collapsible panel with header, content and footer, labelled groups, menu rows with actions, badges and submenus, a rail and a trigger.
112
+ - **`sidebar`** — A collapsible app navigation rail — header/content/footer, labelled groups, menu items with active and open (menu-trigger) states, and an expand/collapse trigger.
113
113
  - **`stepper`** — A bounded linear process as an ordered list — seven step states on a numbered rail that fills in behind you, aria-current=step, orientation chosen from the step count, and a compact summary below a container width.
114
- - **`tabs`** — A set of layered sections of content — known as tab panels — that are displayed one at a time.
114
+ - **`tabs`** — Layered content sections — default (segmented) or line variants, compact size, optional leading icons and counts, horizontal or vertical, full keyboard navigation. Use Tabs for scope/views (My tasks | Team tasks); use an icon ToggleGroup for List/Board layout switches. The one component that keeps a focus ring.
115
115
 
116
116
  ## Feedback
117
117
 
118
118
  - **`action-bar`** — Floating contextual bar — status region + action children, CSS-only enter/exit, raised band. Bulk selection, unsaved changes, and batch progress are recipes over it.
119
- - **`alert`** — A status banner — upstream's two variants plus our three extra status tones (COL-12).
119
+ - **`alert`** — A status banner — upstream's two variants plus our three extra status tones (COL-12); buttons inside a status alert hover in the family's own tint and ink, never white.
120
120
  - **`progress`** — Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
121
121
  - **`provider`** — The single app-root wrapper — theme (next-themes), Base UI toasts, tooltip delays, and text direction in one mount-once component.
122
122
  - **`skeleton`** — A pulsing placeholder that reserves layout space while content loads.
@@ -138,7 +138,7 @@ starts with `icon-` is a component and never an icon.
138
138
 
139
139
  - **`audio-player`** — A custom audio transport with play/pause, skip, seek, a tappable speed control, and keyboard shortcuts (mute on the M key); a single line on a wide player, two lines with an optional transcript control on a narrow, mobile-width player. Docks to the bottom of a scroll column with a close, resolves a lazy source on first play, and seeks from outside through actionsRef.
140
140
  - **`image`** — A presentational framed image with aspect-ratio, rounding, a loading skeleton, and an error fallback.
141
- - **`inbox`** — The notification Inbox: frame with header actions, All | Unread chips, sticky day groups, full-bleed rows with avatar or icon, rich titles, action chips, hover read toggle and menu, and empty, loading and error states.
141
+ - **`inbox`** — The notification Inbox: frame with header actions, All | Unread chips, sticky day groups, full-bleed rows with avatar or icon and an unread tint (no dot), rich titles, action chips, a fixed right column with the time over the hover actions (read toggle and menu), and empty, loading and error states.
142
142
  - **`media-player-controls`** — The shared media transport — play/pause, skip, seek, elapsed/duration, mute + volume, playback speed, and one keyboard shortcut map (useMediaShortcuts) — composed by Audio Player and Video Player.
143
143
  - **`notification-bell`** — A bell icon button with an unread-count badge overlay, plus the shared NotificationDot unread marker. Presentational — the app supplies the count.
144
144
  - **`video-player`** — A framed video player with the same grouped custom transport controls as Audio Player.