@neetechs/ui 0.1.0 → 0.2.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/components/alert/alert.css +6 -0
  3. package/dist/components/avatar/avatar.css +78 -0
  4. package/dist/components/badge/badge.css +9 -3
  5. package/dist/components/button/button.css +40 -0
  6. package/dist/components/card/card.css +19 -0
  7. package/dist/components/choice-card/choice-card.css +244 -0
  8. package/dist/components/disclosure/disclosure.css +154 -0
  9. package/dist/components/index.css +2 -0
  10. package/dist/components/progress/progress.css +12 -0
  11. package/dist/components/stat/stat.css +30 -0
  12. package/dist/domain/billing/index.css +6 -6
  13. package/dist/patterns/document-preview/document-preview.css +169 -0
  14. package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
  15. package/dist/patterns/index.css +4 -0
  16. package/dist/patterns/profile-header/profile-header.css +205 -0
  17. package/dist/patterns/resource-card/resource-card.css +258 -0
  18. package/dist/patterns/settings-layout/settings-layout.css +133 -0
  19. package/dist/shell/navbar/navbar.css +28 -1
  20. package/dist/styles/themes/dark.css +8 -0
  21. package/dist/styles/themes/high-contrast.css +8 -0
  22. package/dist/styles/themes/light.css +8 -0
  23. package/dist/version.d.ts +1 -1
  24. package/dist/version.js +1 -1
  25. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +121 -1
  26. package/docs/components.md +148 -0
  27. package/docs/page-patterns-and-workflows.md +27 -1
  28. package/docs/site-chrome.md +4 -0
  29. package/package.json +1 -1
  30. package/src/components/alert/alert.css +6 -0
  31. package/src/components/avatar/avatar.css +78 -0
  32. package/src/components/badge/badge.css +9 -3
  33. package/src/components/button/button.css +40 -0
  34. package/src/components/card/card.css +19 -0
  35. package/src/components/choice-card/choice-card.css +244 -0
  36. package/src/components/disclosure/disclosure.css +154 -0
  37. package/src/components/index.css +2 -0
  38. package/src/components/progress/progress.css +12 -0
  39. package/src/components/stat/stat.css +30 -0
  40. package/src/domain/billing/index.css +6 -6
  41. package/src/patterns/document-preview/document-preview.css +169 -0
  42. package/src/patterns/editor-workspace/editor-workspace.css +276 -0
  43. package/src/patterns/index.css +4 -0
  44. package/src/patterns/profile-header/profile-header.css +205 -0
  45. package/src/patterns/resource-card/resource-card.css +258 -0
  46. package/src/patterns/settings-layout/settings-layout.css +133 -0
  47. package/src/shell/navbar/navbar.css +28 -1
  48. package/src/styles/themes/dark.css +8 -0
  49. package/src/styles/themes/high-contrast.css +8 -0
  50. package/src/styles/themes/light.css +8 -0
  51. package/src/version.ts +1 -1
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/sync-version.mjs from package.json. Do not edit.
2
- export const NEETECHS_UI_VERSION = '0.1.0';
2
+ export const NEETECHS_UI_VERSION = '0.2.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -4,7 +4,7 @@ Single progress tracker for the 8-stage `@neetechs/ui` upgrade. Site chrome
4
4
  (Header, Navbar, Account dropdown, Mobile navigation, Footer) is part of
5
5
  Stages 4–6 below; there is no separate plan.
6
6
 
7
- **Current stage:** 8: 0.1.0 published to npm on 2026-11-15 (local `npm publish` by the owner account, tagged `v0.1.0`); consumer migrations can start.
7
+ **Current stage:** 8: 0.1.0 published to npm on 2026-11-15 (local `npm publish` by the owner account, tagged `v0.1.0`); consumer migrations can start. MyAccount design adoption is on `main` for the next release (see below).
8
8
 
9
9
  ## Billing-referenced design upgrade (2026-11-15)
10
10
 
@@ -93,6 +93,126 @@ tokens; nothing was copied verbatim.
93
93
  platform's font metrics; it passes on Windows and Linux CI.
94
94
  - `src.zip` is still tracked (owner decision, unchanged).
95
95
 
96
+ ## MyAccount Design Adoption (2026-11-15)
97
+
98
+ Neetechs_Myaccount (Angular, consuming 0.0.4, commit `d7658b0`) was audited as
99
+ read-only reference material after the Billing upgrade and the 0.1.0 release:
100
+ profile hero and profile page, settings shell, AI settings (provider cards,
101
+ connection overview, credit wallet, usage summary), CV library, CV preview and
102
+ template picker, Resume Studio, desktop/mobile header, and global styles.
103
+ MyAccount was not modified. The work targets the next release: 0.1.0 stays
104
+ exactly as published, and every change is additive (verified against the
105
+ published tarball).
106
+
107
+ ### Comparison results
108
+
109
+ | Area | MyAccount | Design System before | Better / result |
110
+ |---|---|---|---|
111
+ | Profile hero | 96px rounded avatar, name + handle, headline/location with inline "Add …" actions, completion bar, CV call-to-action panel | Avatar up to 4rem, no profile header, no inline text action | **MyAccount** → added `.nt-profile-header`, `.nt-avatar--2xl`, `--editable`, `.nt-button--link`, `.nt-progress--reveal` |
112
+ | Section navigation | Card-wrapped nav, completion dots, inline-start bar that grows in, in-page anchors | `.nt-settings-layout` nav with selection fill only | **MyAccount** → enhanced settings-layout nav (bar, status, groups, surface, sticky, `aria-current="location"`) |
113
+ | Section cards | Accent edge on core sections, contextual Edit/Manage | Card header with actions | **Combined** → `.nt-card--edge`; actions already covered by `nt-card__actions` |
114
+ | Provider / CV cards | Icon tile, badges, status pill, fact tiles, action row; "in use" border; document tile for CVs | None | **MyAccount** (hardcoded colors) → `.nt-resource-card` on tokens, reusing the Billing-derived description list |
115
+ | Credit wallet / usage | Large balance with side facts and a threshold warning; 4-up stat grid; breakdown rows | `.nt-stat`, `.nt-stat-grid`, `.nt-description-list` (from Billing) | **DS for stats and breakdowns**; added `.nt-stat--split` for the wallet layout |
116
+ | Template picker | Selectable option cards | None (only `.nt-card--selected`) | **MyAccount** → `.nt-choice-card` on native inputs |
117
+ | Archived CVs / history | Native `<details>` with ad-hoc styling | None | **MyAccount idea, DS quality** → `.nt-disclosure` (also fits Billing's RUT claims) |
118
+ | Resume Studio | Split editor/preview, pane headings, status footer, A4 paper on a grey canvas, horizontal scroll on phones, print-only page | None | **MyAccount** (hardcoded colors) → `.nt-editor-workspace`, `.nt-editor-status`, `.nt-document-preview`, `--nt-document-*` tokens |
119
+ | Header nav | Underline that scales in from the center on hover/current | Instant inset bar | **MyAccount** → navbar underline |
120
+ | Account dropdown, mobile nav, footer, drawers, toasts | Local re-implementations with a z-index hot-fix | Package versions with keyboard, layering, RTL, and tests | **DS already better**; no change |
121
+ | Buttons, forms, badges, alerts, tables | Package classes plus local overrides | Package | **DS already better**; added link button and info badge |
122
+ | Motion | Blur fade-ins, pop-in avatar, shimmer sweep, looping pulses (most disabled by MyAccount's own final overrides) | Token-driven motion | **DS**; adopted only the purposeful ones (below) |
123
+
124
+ ### Components improved or added
125
+ - **Added:** `.nt-profile-header`, `.nt-resource-card` (+ `-grid`, `-list`), `.nt-editor-workspace`
126
+ / `.nt-editor-pane` / `.nt-editor-status`, `.nt-document-preview`, `.nt-choice-card` /
127
+ `.nt-choice-group`, `.nt-disclosure` / `.nt-disclosure-group`.
128
+ - **Improved:** button (`--link`), avatar (`--2xl`, `--editable` + `__overlay`), badge (`--info`),
129
+ card (`--edge`; contrast of muted text on tinted cards), progress (`--reveal`), stat
130
+ (`--split`), alert (tinted description contrast), settings layout navigation, navbar.
131
+ - **Tokens:** `--nt-document-canvas`, `--nt-document-paper`, `--nt-document-ink`,
132
+ `--nt-document-ink-muted`, `--nt-document-rule` in dark, light, and high-contrast themes.
133
+ - **Billing additions reused, not duplicated:** the credit wallet is `.nt-stat--split` with a
134
+ `.nt-description-list--boxed` aside; resource-card facts use the description list; usage
135
+ metrics use `.nt-stat-grid`; profile sections use `.nt-card--padded`.
136
+
137
+ ### Animations and interaction improvements
138
+ - Section-nav current bar grows in (`--nt-ease-emphasized`); in narrow row mode it becomes an
139
+ underline.
140
+ - Navbar underline grows from the center: neutral on hover, accent for the current page.
141
+ - Avatar "Change" overlay fades in on hover and keyboard focus (always visible on touch).
142
+ - Link buttons fade their underline in.
143
+ - The completion bar fills from zero on first render without moving the track.
144
+ - Choice-card dot or tick grows in; checked cards get a selection ring.
145
+ - Disclosure chevron rotates, and the height animates where `::details-content` exists.
146
+ - Editor status pulses while saving and pops once when saved. The focused editor pane is
147
+ marked without layout change.
148
+ - All of these use the existing duration/easing tokens, have no layout shift, and are
149
+ disabled under `prefers-reduced-motion` (tested).
150
+
151
+ ### Patterns already covered by the Design System
152
+ Promotional/next-step panels (card `--muted --padded` with eyebrow/title/subtitle), usage
153
+ breakdown rows (`.nt-description-list--inline`), dashed empty states (`.nt-empty-state`),
154
+ overflow action menus (`.nt-dropdown`/`ntCreateMenu`), skeletons, toasts, dialogs and drawers,
155
+ account dropdown, mobile navigation, footer, quota meters (`.nt-progress`).
156
+
157
+ ### Intentionally excluded
158
+ | MyAccount pattern | Reason |
159
+ |---|---|
160
+ | Blur-in `fadeSlideUp`/`popIn` entrances and staggered card delays | Motion for its own sake; MyAccount's final overrides already disabled them |
161
+ | Hover shimmer sweep on profile cards, looping `brandPulse` on the active nav dot | Decorative, distracting, and repeated; no information value |
162
+ | Scroll-driven card entrances (`animation-timeline: view()`) | Content should be readable immediately; adds motion without feedback value |
163
+ | Radial-gradient hero and nav-card backgrounds, `--brand-rgb` alpha tints | Bridge-era literals; tokens and accent preferences already cover tinting |
164
+ | Resume Studio's literal palette (`#0c1523`, `#f97316`, …) and Arial résumé typography | Hardcoded; the résumé's own typography is application content, not design-system chrome |
165
+ | `@page` named margins and résumé break rules | Document-specific print rules stay in the application; the pattern provides sheet, margins, page breaks, and print visibility |
166
+ | CV upload/processing, wallet API states, provider connection logic | Business logic and services |
167
+ | `<details>`-based CV action menu | Replaced by the existing accessible menu/dropdown |
168
+
169
+ ### Tests and compatibility (2026-11-15, Windows, Node 24, Chromium; local after `npm ci`)
170
+ | Command | Result |
171
+ |---|---|
172
+ | `npm test` | pass: 131/131 unit (+7 in `tests/account-patterns.test.mjs`) and all static contracts |
173
+ | `npx playwright test` | pass: 117/117 (+24 in `account.spec.mjs`: axe in dark, light, high contrast, and RTL; keyboard, focus, responsive, print, and reduced motion; one new snapshot). All 5 pre-existing snapshots unchanged |
174
+ | `npm run check:package` | pass: 299.6 kB packed, 393 files, clean consumer install + import |
175
+ | `check-api --compare` against the published `@neetechs/ui@0.1.0` tarball | pass: nothing removed |
176
+ | `check-api --update` | +123 additions, 0 removals |
177
+ | GitHub Actions `c8247d7`, `4169bc1` (ubuntu) | **failed**: first a real light-theme contrast bug in `.nt-badge--neutral` (fixed in `16ae4f8`), then a timing race in one new test (fixed in `0824ca6`) |
178
+ | GitHub Actions `0824ca6` (ubuntu, full gate incl. Playwright and package check; publish skipped) | pass |
179
+
180
+ Issues found and fixed during testing:
181
+ - Profile header overlapped on phones: a container query cannot restyle its own container.
182
+ The root now wraps intrinsically and only descendants use the query; a unit test guards
183
+ against self-referencing queries.
184
+ - Profile handle rendered `jamie@` in RTL: switched to `unicode-bidi: plaintext`.
185
+ - Light-theme contrast (muted text 4.23–4.34:1) in tinted alerts and muted/tinted cards,
186
+ both predating this work: they now use secondary text.
187
+ - Linux CI (`c8247d7`) flagged `.nt-badge--neutral` at 4.34:1 in the light theme (muted
188
+ text on the muted surface); Windows axe had not. The neutral badge and the base/draft
189
+ `.nt-billing-status` now use the `--nt-neutral-*` tone roles (`fix(badge)` commit).
190
+ - The profile snapshot's height varied with platform font metrics (246px vs 267px). The
191
+ snapshot pins a metric-compatible stack (`"Liberation Sans", Arial`).
192
+
193
+ ### Remaining issues
194
+ - `.nt-settings-layout` (from before 0.1.0) also queries its own container; its `@media`
195
+ fallback keeps it working at viewport level, but inside narrow panes on wide screens the
196
+ nav does not switch to row mode. Fixing it needs a wrapper or a layout change, which is a
197
+ breaking markup change; left for a deliberate decision.
198
+ - `::details-content` height animation and `@starting-style` progress reveal need current
199
+ evergreen browsers. Others open instantly or show the final width; nothing breaks.
200
+ - The light theme's `--nt-text-muted` reaches 4.5:1 only on white. Components were fixed
201
+ case by case; a token-level adjustment would be a visible theme change for every consumer.
202
+ - `.nt-mobile-only` utility specificity (see the Billing section) and the tracked `src.zip`
203
+ are unchanged.
204
+ - One local run failed `actions-overlays.spec.mjs` "pass axe (high contrast)" once (it
205
+ predates this work and its page has no changed components); 15 repeated runs and the
206
+ following full run passed. Treated as an intermittent flake; not changed.
207
+ - The package version stays 0.1.0 in `package.json`. The release workflow (semantic-release)
208
+ will compute the next version from these `feat` commits (0.2.0) when the owner runs it;
209
+ nothing was published.
210
+
211
+ ### Commits
212
+ `7a56e6f`, `e55c051`, `bb4514a`, `cde3c92`, `997c183`, `896dafd`, `7a73f3c`, `c8247d7`
213
+ (docs), `16ae4f8` (neutral badge contrast), `4169bc1` (docs), `0824ca6` (test race fix), and
214
+ the documentation commit recording these CI results.
215
+
96
216
  ## Release safety
97
217
 
98
218
  - Pushes to `main` run verification only. npm publishing requires the owner to
@@ -19,6 +19,7 @@ Detailed guides: [site-chrome.md](./site-chrome.md) · [component-guidelines.md]
19
19
  | Split button | `.nt-split-button` | `components/split-button.css` | `ntCreateMenu` for the menu |
20
20
  | Segmented control | `.nt-segmented-control` | `components/segmented-control.css` | — |
21
21
  | Chip | `.nt-chip` | `components/chip.css` | — |
22
+ | Link button | `.nt-button--link` | `components/button.css` | Inline text action ("Add headline", "View all") with button semantics |
22
23
 
23
24
  ## Forms
24
25
 
@@ -30,6 +31,7 @@ Detailed guides: [site-chrome.md](./site-chrome.md) · [component-guidelines.md]
30
31
  | Checkbox | `.nt-checkbox` | `components/checkbox.css` | native |
31
32
  | Radio | `.nt-radio` | `components/radio.css` | native |
32
33
  | Switch | `.nt-switch` | `components/switch.css` | native `role="switch"` |
34
+ | Choice card | `.nt-choice-card`, `.nt-choice-group` | `components/choice-card.css` | native radio or checkbox (arrow keys, Space) |
33
35
  | Form layout | `.nt-form` | `patterns/form-layout.css` | — |
34
36
 
35
37
  ## Layout
@@ -38,6 +40,11 @@ Detailed guides: [site-chrome.md](./site-chrome.md) · [component-guidelines.md]
38
40
  |---|---|---|
39
41
  | Card | `.nt-card` | `components/card.css` |
40
42
  | Panel | `.nt-panel` | `components/panel.css` |
43
+ | Disclosure | `.nt-disclosure`, `.nt-disclosure-group` | `components/disclosure.css` |
44
+ | Profile header | `.nt-profile-header` | `patterns/profile-header.css` |
45
+ | Resource card | `.nt-resource-card`, `.nt-resource-card-grid` | `patterns/resource-card.css` |
46
+ | Editor workspace | `.nt-editor-workspace`, `.nt-editor-pane`, `.nt-editor-status` | `patterns/editor-workspace.css` |
47
+ | Document preview | `.nt-document-preview` | `patterns/document-preview.css` |
41
48
  | Container, stack, cluster, grid, divider | `.nt-container`, `.nt-stack`, `.nt-cluster`, `.nt-grid`, `.nt-divider` | `utilities/layout.css` |
42
49
  | App shell, sidebar, content frame | `.nt-app-shell`, `.nt-sidebar`, `.nt-content-frame` | `shell/app-shell.css`, `shell/sidebar.css`, `shell/content-frame.css` (behavior: `ntCreateSidebar`, see [Workspace sidebar](./site-chrome.md#workspace-sidebar)) |
43
50
  | Page, master-detail, settings layout | `.nt-page`, `.nt-master-detail`, `.nt-settings-layout` | `patterns/*.css` |
@@ -129,6 +136,147 @@ Detailed guides: [site-chrome.md](./site-chrome.md) · [component-guidelines.md]
129
136
  The indicator dot is decorative; the status is always in text (caption or
130
137
  badge). Below a 28rem container the trailing value moves under the title.
131
138
 
139
+ ## Account and workspace patterns
140
+
141
+ ### Profile header
142
+
143
+ ```html
144
+ <header class="nt-profile-header nt-profile-header--surface">
145
+ <div class="nt-profile-header__identity">
146
+ <button class="nt-avatar nt-avatar--2xl nt-avatar--rounded nt-avatar--editable" type="button" aria-label="Change profile photo">
147
+ <img class="nt-avatar__image" src="/me.jpg" alt="">
148
+ <span class="nt-avatar__overlay" aria-hidden="true">Change</span>
149
+ </button>
150
+ <div class="nt-profile-header__main">
151
+ <div class="nt-profile-header__name-row">
152
+ <h1 class="nt-profile-header__name">Jamie Svensson</h1>
153
+ <span class="nt-profile-header__handle">@jamie</span>
154
+ </div>
155
+ <p class="nt-profile-header__headline">Full-stack developer</p>
156
+ <ul class="nt-profile-header__details">
157
+ <li>Stockholm</li>
158
+ <li><button class="nt-button nt-button--link" type="button">Add website</button></li>
159
+ </ul>
160
+ <div class="nt-profile-header__completion">
161
+ <div class="nt-progress nt-progress--sm nt-progress--reveal" style="--nt-progress-value: 72%">…</div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <div class="nt-profile-header__side">
166
+ <div class="nt-profile-header__actions">…</div>
167
+ <div class="nt-profile-header__aside">…</div>
168
+ </div>
169
+ </header>
170
+ ```
171
+
172
+ - Missing information is an inline `.nt-button--link` action in place of the
173
+ value ("Add headline", "Add location"), never an empty row.
174
+ - `.nt-avatar--editable` shows a "Change" overlay on hover and keyboard focus
175
+ (a permanent strip on touch devices); give the control an `aria-label`.
176
+ - `.nt-progress--reveal` fills the completion bar from zero on first render.
177
+ - The side column wraps under the identity when both no longer fit, and the
178
+ avatar moves above the text below a 30rem container.
179
+ - A next-step card in `__aside` is an ordinary card:
180
+ `.nt-card.nt-card--muted.nt-card--padded` with `__eyebrow`, `__title`,
181
+ and `__subtitle`.
182
+
183
+ ### Resource card
184
+
185
+ For AI provider connections, connected accounts, integrations, uploaded
186
+ documents, API keys, and devices: identity tile (`__media`, or
187
+ `__media--document` for files), title with inline badges, end-aligned
188
+ `__status` badge (always with text), a facts row
189
+ (`.nt-description-list--boxed.nt-description-list--compact`), and
190
+ `__actions` (`__actions-end` pushes a destructive action to the end).
191
+ `--current` (or `aria-current="true"`) marks the one in use with a selection
192
+ ring; `--unavailable`, `--warning`, `--danger`, `--success`, `--compact`.
193
+
194
+ ### Choice card
195
+
196
+ ```html
197
+ <fieldset class="nt-choice-group">
198
+ <legend>CV template</legend>
199
+ <label class="nt-choice-card">
200
+ <input class="nt-choice-card__input" type="radio" name="template" value="professional" checked>
201
+ <span class="nt-choice-card__indicator" aria-hidden="true"></span>
202
+ <span class="nt-choice-card__body">
203
+ <span class="nt-choice-card__title">Professional</span>
204
+ <span class="nt-choice-card__description">One column, ATS friendly</span>
205
+ </span>
206
+ </label>
207
+ </fieldset>
208
+ ```
209
+
210
+ The input stays native (arrow keys in radio groups, Space for checkboxes);
211
+ the card shows checked, focus, hover, pressed, and disabled states through
212
+ `:has()`, with a selection ring and an indicator dot or tick.
213
+
214
+ ### Disclosure
215
+
216
+ ```html
217
+ <details class="nt-disclosure nt-disclosure--surface">
218
+ <summary class="nt-disclosure__summary">
219
+ <span class="nt-disclosure__title">Archived CVs</span>
220
+ <span class="nt-disclosure__meta">2</span>
221
+ <svg class="nt-disclosure__chevron" aria-hidden="true"></svg>
222
+ </summary>
223
+ <div class="nt-disclosure__content">…</div>
224
+ </details>
225
+ ```
226
+
227
+ Native `<details>`; the height animates where `::details-content` is
228
+ supported and opens instantly elsewhere.
229
+
230
+ ### Editor workspace and document preview
231
+
232
+ ```html
233
+ <div class="nt-editor-workspace nt-editor-workspace--sticky-preview">
234
+ <div class="nt-editor-workspace__panes">
235
+ <section class="nt-editor-pane" aria-labelledby="source-title">
236
+ <div class="nt-editor-pane__header"><h2 class="nt-editor-pane__title" id="source-title">Markdown</h2></div>
237
+ <textarea class="nt-editor-pane__source" aria-labelledby="source-title"></textarea>
238
+ <div class="nt-editor-pane__footer">
239
+ <span class="nt-editor-status" data-state="saved" role="status">Saved</span>
240
+ </div>
241
+ </section>
242
+ <section class="nt-editor-pane nt-editor-pane--preview" aria-label="Preview">
243
+ <div class="nt-editor-pane__body">
244
+ <div class="nt-document-preview nt-document-preview--flush">
245
+ <div class="nt-document-preview__viewport" tabindex="0" role="region" aria-label="Preview">
246
+ <article class="nt-document-preview__page">…</article>
247
+ </div>
248
+ </div>
249
+ </div>
250
+ </section>
251
+ </div>
252
+ </div>
253
+ ```
254
+
255
+ - Panes sit side by side above a 64rem workspace width and stack below it;
256
+ `--balanced` splits evenly; `--sticky-preview` keeps the preview in view.
257
+ - `.nt-editor-status` states: `saving` (pulsing dot), `saved` (one pop),
258
+ `unsaved`, `error`; always with a word.
259
+ - The page keeps true paper size (`--letter`, `--fluid`, `--margin-narrow`,
260
+ `--margin-wide`) so lines wrap as in the export; narrow screens scroll the
261
+ canvas. Paper and ink use `--nt-document-*` tokens that stay paper-colored
262
+ in every theme. Printing keeps only the page; set the matching
263
+ `@page { size; margin }` in the application.
264
+
265
+ ### Settings and section navigation
266
+
267
+ `.nt-settings-layout` navigation now has an animated current-item bar,
268
+ `aria-current="true"`/`"location"` for in-page section links,
269
+ `__nav-status` dots (`--complete`, `--attention`, `--error`; add the
270
+ meaning as text), `__nav-count`, grouped navigation (`__nav-group`,
271
+ `__nav-title`), a card surface (`__nav--surface`), and a sticky nav
272
+ (`.nt-settings-layout--sticky-nav`, static on narrow layouts).
273
+
274
+ ### Smaller additions
275
+
276
+ `.nt-avatar--2xl` (6rem), `.nt-badge--info`, `.nt-card--edge` (accent edge
277
+ that strengthens on hover and focus-within), `.nt-stat--split` with
278
+ `__body`/`__aside` (balances with supporting facts).
279
+
132
280
  ## Feedback
133
281
 
134
282
  | Component | Block class | CSS path | Behavior |
@@ -107,7 +107,9 @@ title ("Create invoice", "Edit INV-1042").
107
107
  ## Settings page
108
108
 
109
109
  Use `.nt-settings-layout` (side navigation ↔ scrollable row on narrow) with
110
- `.nt-settings-section`s.
110
+ `.nt-settings-section`s. Long pages use `--sticky-nav` and
111
+ `__nav--surface`; profile-style pages link in-page sections with
112
+ `aria-current="location"` and show completeness with `__nav-status`.
111
113
 
112
114
  - Group by user intent, not backend model.
113
115
  - Permanent account settings live in MyAccount; tools link to them with
@@ -135,6 +137,30 @@ first, key metrics, recent activity, quick actions.
135
137
  - Widgets declare `--nt-grid-min-item`; not every widget gets equal weight.
136
138
  - Conversational Neenee pages are conversations, never dashboards.
137
139
 
140
+ ## Profile page
141
+
142
+ Compose `.nt-profile-header` (identity, completion, primary actions, an
143
+ optional next-step card) above `.nt-settings-layout--sticky-nav`, whose
144
+ content holds one `.nt-card` per section with a contextual "Edit" or
145
+ "Manage" ghost button in `__header`. Primary sections use `.nt-card--edge`.
146
+ Missing values are inline `.nt-button--link` actions, never empty rows.
147
+
148
+ ## Connections and resources
149
+
150
+ Providers, connected accounts, integrations, and files use
151
+ `.nt-resource-card` in a `.nt-resource-card-grid`; exactly one card is
152
+ `--current`. Unavailable options stay visible with an explanation instead
153
+ of disappearing. Balances use `.nt-stat--split` with a warning
154
+ `.nt-alert` inside when action is needed. Older items (archived files,
155
+ history) sit in a `.nt-disclosure`.
156
+
157
+ ## Document editor
158
+
159
+ `.nt-editor-workspace` with a compact page header, a formatting row
160
+ (`.nt-page-toolbar--surface`), a source pane, and a `.nt-document-preview`
161
+ pane. Export actions print only the document. Template and format pickers
162
+ use `.nt-choice-card`s.
163
+
138
164
  ## Master-detail
139
165
 
140
166
  `.nt-master-detail` — side-by-side on wide regions; below a 48rem container
@@ -103,6 +103,10 @@ Modifiers: `.nt-navbar--compact` (smaller rows), `.nt-navbar__panel--end`
103
103
  (multi-column panel). Current page: `aria-current="page"` (draws an indicator
104
104
  bar, so state never depends on color alone). Disabled entries: `aria-disabled="true"`.
105
105
 
106
+ Current-page links show an accent underline that grows from the center; on
107
+ hover other links preview the underline in a neutral tone. The underline is
108
+ a shape cue, so the current page never relies on color alone.
109
+
106
110
  ## Account dropdown
107
111
 
108
112
  ```html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neetechs/ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Official framework-agnostic Neetechs UI design system.",
5
5
  "license": "MIT",
6
6
  "author": "Neetechs",
@@ -140,6 +140,12 @@
140
140
  color: var(--nt-accent);
141
141
  }
142
142
 
143
+ /* Muted text steps up to secondary on tinted alerts so descriptions keep
144
+ * 4.5:1 contrast in the light theme. Outline alerts keep muted text. */
145
+ :is(.nt-alert--info, .nt-alert--success, .nt-alert--warning, .nt-alert--danger, .nt-alert--neutral, .nt-alert--accent):not(.nt-alert--outline) .nt-alert__description {
146
+ color: var(--nt-text-secondary);
147
+ }
148
+
143
149
  .nt-alert--outline {
144
150
  background: transparent;
145
151
  }
@@ -123,6 +123,79 @@
123
123
  height: 0.875rem;
124
124
  }
125
125
 
126
+ /* Profile hero size. */
127
+ .nt-avatar--2xl {
128
+ width: 6rem;
129
+ height: 6rem;
130
+ font: var(--nt-text-heading-sm);
131
+ }
132
+
133
+ .nt-avatar--2xl .nt-avatar__status {
134
+ width: 1rem;
135
+ height: 1rem;
136
+ border-width: 3px;
137
+ }
138
+
139
+ /* Editable avatar: a <button> or <label> whose overlay ("Change photo")
140
+ * fades in on hover and keyboard focus. Touch devices without hover show a
141
+ * compact strip permanently. Give the control its own accessible name. */
142
+ .nt-avatar--editable {
143
+ padding: 0;
144
+ cursor: pointer;
145
+ appearance: none;
146
+ transition:
147
+ border-color var(--nt-duration-fast) var(--nt-ease-standard),
148
+ box-shadow var(--nt-duration-fast) var(--nt-ease-standard);
149
+ }
150
+
151
+ .nt-avatar--editable:hover {
152
+ border-color: var(--nt-accent);
153
+ }
154
+
155
+ .nt-avatar--editable:focus-visible,
156
+ .nt-avatar--editable:focus-within:has(:focus-visible) {
157
+ outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
158
+ outline-offset: var(--nt-focus-ring-offset);
159
+ }
160
+
161
+ .nt-avatar__overlay {
162
+ position: absolute;
163
+ inset: 0;
164
+ display: flex;
165
+ flex-direction: column;
166
+ align-items: center;
167
+ justify-content: center;
168
+ gap: var(--nt-space-1);
169
+ background: color-mix(in srgb, var(--nt-bg-surface-overlay) 86%, transparent);
170
+ color: var(--nt-text-primary);
171
+ font: var(--nt-text-label-sm);
172
+ text-align: center;
173
+ text-transform: none;
174
+ opacity: 0;
175
+ transition: opacity var(--nt-duration-fast) var(--nt-ease-standard);
176
+ pointer-events: none;
177
+ }
178
+
179
+ .nt-avatar__overlay > svg {
180
+ width: var(--nt-icon-size-sm);
181
+ height: var(--nt-icon-size-sm);
182
+ }
183
+
184
+ .nt-avatar--editable:hover .nt-avatar__overlay,
185
+ .nt-avatar--editable:focus-visible .nt-avatar__overlay,
186
+ .nt-avatar--editable:focus-within .nt-avatar__overlay {
187
+ opacity: 1;
188
+ }
189
+
190
+ @media (hover: none) {
191
+ .nt-avatar__overlay {
192
+ inset-block-start: auto;
193
+ min-height: 34%;
194
+ font: var(--nt-text-caption);
195
+ opacity: 1;
196
+ }
197
+ }
198
+
126
199
  .nt-avatar--square {
127
200
  border-radius: var(--nt-radius-item);
128
201
  }
@@ -210,6 +283,11 @@
210
283
  }
211
284
 
212
285
  @media (prefers-reduced-motion: reduce) {
286
+ .nt-avatar--editable,
287
+ .nt-avatar__overlay {
288
+ transition: none !important;
289
+ }
290
+
213
291
  .nt-avatar--interactive {
214
292
  transition: none !important;
215
293
  }
@@ -49,9 +49,9 @@
49
49
  }
50
50
 
51
51
  .nt-badge--neutral {
52
- border-color: var(--nt-border-subtle);
53
- background: var(--nt-bg-surface-muted);
54
- color: var(--nt-text-muted);
52
+ border-color: var(--nt-neutral-border);
53
+ background: var(--nt-neutral-bg);
54
+ color: var(--nt-neutral-text);
55
55
  }
56
56
 
57
57
  .nt-badge--success {
@@ -72,6 +72,12 @@
72
72
  color: var(--nt-danger-text);
73
73
  }
74
74
 
75
+ .nt-badge--info {
76
+ border-color: var(--nt-info-border);
77
+ background: var(--nt-info-bg);
78
+ color: var(--nt-info-text);
79
+ }
80
+
75
81
  .nt-badge--outline {
76
82
  background: transparent;
77
83
  }
@@ -178,6 +178,46 @@
178
178
  color: var(--nt-ai-action-hover);
179
179
  }
180
180
 
181
+ /* Link: an inline text action inside content ("Add headline", "View all").
182
+ * Keeps button semantics and the focus ring; the underline grows in on
183
+ * hover so the affordance is not color alone. */
184
+ .nt-button--link {
185
+ min-width: 0;
186
+ height: auto;
187
+ min-height: 0;
188
+ padding: 0;
189
+ border: 0;
190
+ background: transparent;
191
+ color: var(--nt-text-link);
192
+ text-decoration-line: underline;
193
+ text-decoration-color: transparent;
194
+ text-decoration-thickness: from-font;
195
+ text-underline-offset: 0.2em;
196
+ white-space: normal;
197
+ transition:
198
+ color var(--nt-duration-fast) var(--nt-ease-standard),
199
+ text-decoration-color var(--nt-duration-fast) var(--nt-ease-standard);
200
+ }
201
+
202
+ .nt-button--link:not(:disabled):not(.nt-button--disabled):hover {
203
+ color: var(--nt-text-link-hover);
204
+ text-decoration-color: currentColor;
205
+ }
206
+
207
+ .nt-button--link:not(:disabled):active {
208
+ transform: none;
209
+ }
210
+
211
+ .nt-button--link:is(:disabled, [aria-disabled='true'], .nt-button--disabled) {
212
+ background: transparent;
213
+ color: var(--nt-text-disabled);
214
+ }
215
+
216
+ .nt-button--link.nt-button--sm {
217
+ height: auto;
218
+ padding: 0;
219
+ }
220
+
181
221
  /* Internals */
182
222
 
183
223
  .nt-button__content {
@@ -72,6 +72,11 @@
72
72
  background: var(--nt-bg-surface-muted);
73
73
  }
74
74
 
75
+ /* Muted text steps up to secondary on non-white surfaces (contrast). */
76
+ :is(.nt-card--muted, .nt-card--danger, .nt-card--success, .nt-card--warning, .nt-card--info, .nt-card--accent) :is(.nt-card__eyebrow, .nt-card__subtitle, .nt-card__meta) {
77
+ color: var(--nt-text-secondary);
78
+ }
79
+
75
80
  .nt-card--danger {
76
81
  border-color: var(--nt-danger-border);
77
82
  background: var(--nt-danger-bg);
@@ -98,6 +103,19 @@
98
103
  background: var(--nt-accent-subtle);
99
104
  }
100
105
 
106
+ /* Edge: an inline-start accent edge marking the primary sections of a page
107
+ * (profile core sections, the current plan). It strengthens to the accent
108
+ * while the pointer or keyboard focus is inside the card. */
109
+ .nt-card--edge {
110
+ border-inline-start: var(--nt-space-1) solid var(--nt-border-interactive);
111
+ transition: border-color var(--nt-duration-fast) var(--nt-ease-standard);
112
+ }
113
+
114
+ .nt-card--edge:hover,
115
+ .nt-card--edge:focus-within {
116
+ border-inline-start-color: var(--nt-accent);
117
+ }
118
+
101
119
  /* Padded: content sits directly in the card without header/body wrappers
102
120
  * (dense dashboard tiles). Children stack with the card body rhythm. */
103
121
  .nt-card--padded {
@@ -255,6 +273,7 @@
255
273
  }
256
274
 
257
275
  @media (prefers-reduced-motion: reduce) {
276
+ .nt-card--edge,
258
277
  .nt-card--interactive {
259
278
  transition: none !important;
260
279
  }