@neetechs/ui 0.2.0 → 0.3.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 (269) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +21 -21
  3. package/README.md +862 -861
  4. package/dist/ai/ai-action-button/ai-action-button.css +271 -271
  5. package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
  6. package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  7. package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  8. package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  9. package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  10. package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
  11. package/dist/ai/index.css +7 -7
  12. package/dist/behaviors/index.d.ts +1 -0
  13. package/dist/behaviors/index.d.ts.map +1 -1
  14. package/dist/behaviors/index.js +1 -0
  15. package/dist/behaviors/index.js.map +1 -1
  16. package/dist/behaviors/selection-indicator.d.ts +35 -0
  17. package/dist/behaviors/selection-indicator.d.ts.map +1 -0
  18. package/dist/behaviors/selection-indicator.js +133 -0
  19. package/dist/behaviors/selection-indicator.js.map +1 -0
  20. package/dist/behaviors/sidebar.d.ts +3 -1
  21. package/dist/behaviors/sidebar.d.ts.map +1 -1
  22. package/dist/behaviors/sidebar.js +10 -3
  23. package/dist/behaviors/sidebar.js.map +1 -1
  24. package/dist/components/alert/alert.css +226 -226
  25. package/dist/components/avatar/avatar.css +298 -298
  26. package/dist/components/badge/badge.css +180 -180
  27. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  28. package/dist/components/button/button.css +278 -278
  29. package/dist/components/card/card.css +336 -284
  30. package/dist/components/checkbox/checkbox.css +189 -189
  31. package/dist/components/chip/chip.css +269 -269
  32. package/dist/components/data-grid/data-grid.css +520 -520
  33. package/dist/components/description-list/description-list.css +187 -187
  34. package/dist/components/dialog/dialog.css +348 -339
  35. package/dist/components/dock/dock.css +319 -0
  36. package/dist/components/drawer/drawer.css +493 -484
  37. package/dist/components/dropdown/dropdown.css +325 -316
  38. package/dist/components/fab/fab.css +281 -0
  39. package/dist/components/icon-button/icon-button.css +162 -162
  40. package/dist/components/index.css +2 -0
  41. package/dist/components/input/input.css +163 -163
  42. package/dist/components/menu/menu.css +315 -315
  43. package/dist/components/pagination/pagination.css +250 -250
  44. package/dist/components/panel/panel.css +316 -284
  45. package/dist/components/popover/popover.css +22 -0
  46. package/dist/components/progress/progress.css +268 -268
  47. package/dist/components/radio/radio.css +166 -166
  48. package/dist/components/segmented-control/segmented-control.css +264 -205
  49. package/dist/components/select/select.css +117 -117
  50. package/dist/components/skeleton/skeleton.css +267 -267
  51. package/dist/components/split-button/split-button.css +292 -292
  52. package/dist/components/stat/stat.css +433 -433
  53. package/dist/components/switch/switch.css +195 -195
  54. package/dist/components/table/table.css +220 -220
  55. package/dist/components/tabs/tabs.css +393 -293
  56. package/dist/components/textarea/textarea.css +86 -86
  57. package/dist/components/toast/toast.css +345 -345
  58. package/dist/components/tooltip/tooltip.css +267 -258
  59. package/dist/domain/billing/index.css +629 -629
  60. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  61. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  62. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  63. package/dist/domain/calendar/event-card/event-card.css +338 -338
  64. package/dist/domain/calendar/index.css +5 -5
  65. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  66. package/dist/domain/calendar/week-grid/week-grid.css +487 -480
  67. package/dist/domain/companies/index.css +526 -526
  68. package/dist/domain/index.css +3 -3
  69. package/dist/index.css +5 -5
  70. package/dist/patterns/command-palette/command-palette.css +488 -447
  71. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  72. package/dist/patterns/content-state/content-state.css +236 -236
  73. package/dist/patterns/empty-state/empty-state.css +260 -260
  74. package/dist/patterns/error-state/error-state.css +272 -272
  75. package/dist/patterns/form-layout/form-layout.css +106 -106
  76. package/dist/patterns/loading-state/loading-state.css +287 -287
  77. package/dist/patterns/master-detail/master-detail.css +103 -103
  78. package/dist/patterns/notification-center/notification-center.css +443 -443
  79. package/dist/patterns/page/page.css +303 -303
  80. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  81. package/dist/patterns/record-list/record-list.css +302 -302
  82. package/dist/patterns/search-bar/search-bar.css +457 -457
  83. package/dist/patterns/settings-layout/settings-layout.css +283 -283
  84. package/dist/patterns/workflow/workflow.css +168 -168
  85. package/dist/shell/app-shell/app-shell.css +429 -211
  86. package/dist/shell/content-frame/content-frame.css +93 -93
  87. package/dist/shell/header/header.css +328 -328
  88. package/dist/shell/index.css +8 -8
  89. package/dist/shell/mobile-nav/mobile-nav.css +254 -254
  90. package/dist/shell/sidebar/sidebar.css +923 -314
  91. package/dist/styles/accessibility.css +150 -150
  92. package/dist/styles/animations/motion.css +162 -162
  93. package/dist/styles/appearance/accent.css +215 -215
  94. package/dist/styles/appearance/density.css +61 -61
  95. package/dist/styles/appearance/motion.css +48 -40
  96. package/dist/styles/base.css +83 -83
  97. package/dist/styles/index.css +29 -28
  98. package/dist/styles/localization.css +56 -56
  99. package/dist/styles/reset.css +51 -51
  100. package/dist/styles/responsive.css +101 -101
  101. package/dist/styles/themes/dark.css +225 -210
  102. package/dist/styles/themes/high-contrast.css +378 -298
  103. package/dist/styles/themes/light.css +224 -209
  104. package/dist/styles/tokens/breakpoints.css +37 -37
  105. package/dist/styles/tokens/color.css +102 -102
  106. package/dist/styles/tokens/compatibility.css +33 -33
  107. package/dist/styles/tokens/elevation.css +33 -26
  108. package/dist/styles/tokens/index.css +9 -9
  109. package/dist/styles/tokens/motion.css +55 -36
  110. package/dist/styles/tokens/radius.css +26 -26
  111. package/dist/styles/tokens/spacing.css +56 -56
  112. package/dist/styles/tokens/typography.css +85 -85
  113. package/dist/styles/tokens/z-index.css +14 -14
  114. package/dist/styles/utilities/glass.css +97 -0
  115. package/dist/styles/utilities/layout.css +153 -153
  116. package/dist/styles/utilities/text.css +152 -152
  117. package/dist/styles/utilities/visibility.css +47 -47
  118. package/dist/version.d.ts +1 -1
  119. package/dist/version.js +1 -1
  120. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -312
  121. package/docs/accessibility.md +218 -218
  122. package/docs/appearance-and-theming.md +150 -150
  123. package/docs/brand-palette.md +36 -36
  124. package/docs/component-architecture.md +137 -137
  125. package/docs/component-guidelines.md +64 -64
  126. package/docs/components.md +326 -321
  127. package/docs/content-and-terminology.md +207 -207
  128. package/docs/design-system-baseline-audit.md +226 -226
  129. package/docs/design-token-contract.md +279 -279
  130. package/docs/glass-and-motion.md +310 -0
  131. package/docs/localization-and-rtl.md +147 -147
  132. package/docs/migration.md +193 -193
  133. package/docs/page-patterns-and-workflows.md +301 -301
  134. package/docs/responsive-and-adaptive-design.md +351 -351
  135. package/docs/semantic-role-migration-audit.md +77 -77
  136. package/docs/site-chrome.md +320 -317
  137. package/docs/states-feedback-and-recovery.md +206 -206
  138. package/docs/theming.md +5 -5
  139. package/package.json +2 -1
  140. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  141. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  142. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  143. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  144. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  145. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  146. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  147. package/src/ai/index.css +7 -7
  148. package/src/appearance/cache.ts +236 -236
  149. package/src/appearance/cookie.ts +184 -184
  150. package/src/appearance/index.ts +86 -86
  151. package/src/appearance/preference.ts +121 -121
  152. package/src/appearance/theme-controller.ts +384 -384
  153. package/src/appearance/types.ts +61 -61
  154. package/src/behaviors/announcer.ts +222 -222
  155. package/src/behaviors/calendar.ts +92 -92
  156. package/src/behaviors/data-grid.ts +133 -133
  157. package/src/behaviors/dialog.ts +203 -203
  158. package/src/behaviors/direction.ts +34 -34
  159. package/src/behaviors/drawer.ts +210 -210
  160. package/src/behaviors/dropdown.ts +344 -344
  161. package/src/behaviors/focus-trap.ts +304 -304
  162. package/src/behaviors/forms.ts +205 -205
  163. package/src/behaviors/ids.ts +47 -47
  164. package/src/behaviors/index.ts +1 -0
  165. package/src/behaviors/keyboard.ts +305 -305
  166. package/src/behaviors/overlay.ts +344 -344
  167. package/src/behaviors/selection-indicator.ts +162 -0
  168. package/src/behaviors/sidebar.ts +14 -4
  169. package/src/behaviors/state.ts +282 -282
  170. package/src/behaviors/tabs.ts +137 -137
  171. package/src/behaviors/viewport.ts +61 -61
  172. package/src/components/alert/alert.css +226 -226
  173. package/src/components/avatar/avatar.css +298 -298
  174. package/src/components/badge/badge.css +180 -180
  175. package/src/components/breadcrumb/breadcrumb.css +207 -207
  176. package/src/components/button/button.css +278 -278
  177. package/src/components/card/card.css +336 -284
  178. package/src/components/checkbox/checkbox.css +189 -189
  179. package/src/components/chip/chip.css +269 -269
  180. package/src/components/data-grid/data-grid.css +520 -520
  181. package/src/components/description-list/description-list.css +187 -187
  182. package/src/components/dialog/dialog.css +348 -339
  183. package/src/components/dock/dock.css +319 -0
  184. package/src/components/drawer/drawer.css +493 -484
  185. package/src/components/dropdown/dropdown.css +325 -316
  186. package/src/components/fab/fab.css +281 -0
  187. package/src/components/icon-button/icon-button.css +162 -162
  188. package/src/components/index.css +2 -0
  189. package/src/components/input/input.css +163 -163
  190. package/src/components/menu/menu.css +315 -315
  191. package/src/components/pagination/pagination.css +250 -250
  192. package/src/components/panel/panel.css +316 -284
  193. package/src/components/popover/popover.css +22 -0
  194. package/src/components/progress/progress.css +268 -268
  195. package/src/components/radio/radio.css +166 -166
  196. package/src/components/segmented-control/segmented-control.css +264 -205
  197. package/src/components/select/select.css +117 -117
  198. package/src/components/skeleton/skeleton.css +267 -267
  199. package/src/components/split-button/split-button.css +292 -292
  200. package/src/components/stat/stat.css +433 -433
  201. package/src/components/switch/switch.css +195 -195
  202. package/src/components/table/table.css +220 -220
  203. package/src/components/tabs/tabs.css +393 -293
  204. package/src/components/textarea/textarea.css +86 -86
  205. package/src/components/toast/toast.css +345 -345
  206. package/src/components/tooltip/tooltip.css +267 -258
  207. package/src/domain/billing/index.css +629 -629
  208. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  209. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  210. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  211. package/src/domain/calendar/event-card/event-card.css +338 -338
  212. package/src/domain/calendar/index.css +5 -5
  213. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  214. package/src/domain/calendar/week-grid/week-grid.css +487 -480
  215. package/src/domain/companies/index.css +526 -526
  216. package/src/domain/index.css +3 -3
  217. package/src/index.css +5 -5
  218. package/src/index.ts +7 -7
  219. package/src/localization/index.ts +56 -56
  220. package/src/patterns/command-palette/command-palette.css +488 -447
  221. package/src/patterns/company-switcher/company-switcher.css +390 -390
  222. package/src/patterns/content-state/content-state.css +236 -236
  223. package/src/patterns/empty-state/empty-state.css +260 -260
  224. package/src/patterns/error-state/error-state.css +272 -272
  225. package/src/patterns/form-layout/form-layout.css +106 -106
  226. package/src/patterns/loading-state/loading-state.css +287 -287
  227. package/src/patterns/master-detail/master-detail.css +103 -103
  228. package/src/patterns/notification-center/notification-center.css +443 -443
  229. package/src/patterns/page/page.css +303 -303
  230. package/src/patterns/profile-menu/profile-menu.css +298 -298
  231. package/src/patterns/record-list/record-list.css +302 -302
  232. package/src/patterns/search-bar/search-bar.css +457 -457
  233. package/src/patterns/settings-layout/settings-layout.css +283 -283
  234. package/src/patterns/workflow/workflow.css +168 -168
  235. package/src/shell/app-shell/app-shell.css +429 -211
  236. package/src/shell/content-frame/content-frame.css +93 -93
  237. package/src/shell/header/header.css +328 -328
  238. package/src/shell/index.css +8 -8
  239. package/src/shell/mobile-nav/mobile-nav.css +254 -254
  240. package/src/shell/sidebar/sidebar.css +923 -314
  241. package/src/styles/accessibility.css +150 -150
  242. package/src/styles/animations/motion.css +162 -162
  243. package/src/styles/appearance/accent.css +215 -215
  244. package/src/styles/appearance/density.css +61 -61
  245. package/src/styles/appearance/motion.css +48 -40
  246. package/src/styles/base.css +83 -83
  247. package/src/styles/index.css +29 -28
  248. package/src/styles/localization.css +56 -56
  249. package/src/styles/reset.css +51 -51
  250. package/src/styles/responsive.css +101 -101
  251. package/src/styles/themes/dark.css +225 -210
  252. package/src/styles/themes/high-contrast.css +378 -298
  253. package/src/styles/themes/light.css +224 -209
  254. package/src/styles/tokens/breakpoints.css +37 -37
  255. package/src/styles/tokens/color.css +102 -102
  256. package/src/styles/tokens/compatibility.css +33 -33
  257. package/src/styles/tokens/elevation.css +33 -26
  258. package/src/styles/tokens/index.css +9 -9
  259. package/src/styles/tokens/motion.css +55 -36
  260. package/src/styles/tokens/radius.css +26 -26
  261. package/src/styles/tokens/spacing.css +56 -56
  262. package/src/styles/tokens/typography.css +85 -85
  263. package/src/styles/tokens/z-index.css +14 -14
  264. package/src/styles/utilities/glass.css +97 -0
  265. package/src/styles/utilities/layout.css +153 -153
  266. package/src/styles/utilities/text.css +152 -152
  267. package/src/styles/utilities/visibility.css +47 -47
  268. package/src/types/index.ts +126 -126
  269. package/src/version.ts +1 -1
@@ -1,321 +1,326 @@
1
- # Component catalog
2
-
3
- Every shipped module, its CSS import path, and its optional behavior helper.
4
- All CSS is included by `@neetechs/ui/styles.css`; per-module paths exist for
5
- bundle-size optimization. Behaviors are framework-free DOM functions from
6
- `@neetechs/ui/behaviors` (also re-exported by `@neetechs/ui`).
7
-
8
- Detailed guides: [site-chrome.md](./site-chrome.md) · [component-guidelines.md](./component-guidelines.md) ·
9
- [component-architecture.md](./component-architecture.md) · [accessibility.md](./accessibility.md) ·
10
- [layering.md](./layering.md).
11
-
12
- ## Actions
13
-
14
- | Component | Block class | CSS path | Behavior |
15
- |---|---|---|---|
16
- | Button | `.nt-button` | `components/button.css` | `ntCreateAsyncAction` (pending state) |
17
- | Icon button | `.nt-icon-button` | `components/icon-button.css` | — |
18
- | Button group | `.nt-button-group` | `components/button-group.css` | — (app toggles `aria-pressed`) |
19
- | Split button | `.nt-split-button` | `components/split-button.css` | `ntCreateMenu` for the menu |
20
- | Segmented control | `.nt-segmented-control` | `components/segmented-control.css` | — |
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 |
23
-
24
- ## Forms
25
-
26
- | Component | Block class | CSS path | Behavior |
27
- |---|---|---|---|
28
- | Input / field | `.nt-input`, `.nt-field` | `components/input.css` | `ntConnectField`, `ntCreateFormController`, `ntFocusErrorSummary` |
29
- | Textarea | `.nt-textarea` | `components/textarea.css` | `ntConnectField` |
30
- | Select | `.nt-select` | `components/select.css` | native `<select>` |
31
- | Checkbox | `.nt-checkbox` | `components/checkbox.css` | native |
32
- | Radio | `.nt-radio` | `components/radio.css` | native |
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) |
35
- | Form layout | `.nt-form` | `patterns/form-layout.css` | — |
36
-
37
- ## Layout
38
-
39
- | Component | Block class | CSS path |
40
- |---|---|---|
41
- | Card | `.nt-card` | `components/card.css` |
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` |
48
- | Container, stack, cluster, grid, divider | `.nt-container`, `.nt-stack`, `.nt-cluster`, `.nt-grid`, `.nt-divider` | `utilities/layout.css` |
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)) |
50
- | Page, master-detail, settings layout | `.nt-page`, `.nt-master-detail`, `.nt-settings-layout` | `patterns/*.css` |
51
-
52
- ## Navigation and site chrome
53
-
54
- | Component | Block class | CSS path | Behavior |
55
- |---|---|---|---|
56
- | Header | `.nt-header` | `shell/header.css` | — |
57
- | Navbar | `.nt-navbar` | `shell/navbar.css` | `ntCreateNavbar` |
58
- | Account dropdown | `.nt-header__account` + `.nt-profile-menu` | `shell/header.css`, `patterns/profile-menu.css` | `ntCreateAccountMenu` |
59
- | Mobile navigation | `.nt-mobile-nav` | `shell/mobile-nav.css` | `ntCreateMobileNav` |
60
- | Footer | `.nt-footer` | `shell/footer.css` | — |
61
- | Menu / dropdown | `.nt-menu`, `.nt-dropdown` | `components/menu.css`, `components/dropdown.css` | `ntCreateMenu`, `ntCreateDropdown` |
62
- | Tabs | `.nt-tabs` | `components/tabs.css` | `ntCreateTabs` |
63
- | Breadcrumb | `.nt-breadcrumb` | `components/breadcrumb.css` | — |
64
- | Pagination | `.nt-pagination` | `components/pagination.css` | — |
65
- | Company / workspace switcher | `.nt-company-switcher` | `patterns/company-switcher.css` | `ntCreateMenu` |
66
- | Command palette, search bar | `.nt-command-palette`, `.nt-search-bar` | `patterns/*.css` | `ntCreateDialog` |
67
-
68
- ## Data display
69
-
70
- | Component | Block class | CSS path | Notes |
71
- |---|---|---|---|
72
- | Stat (KPI) card | `.nt-stat`, `.nt-stat-grid` | `components/stat.css` | Tones `--success/--warning/--danger/--info/--accent`, `--tinted`, `--emphasis`, `--wide`, `--sm/--lg`, `--interactive`, selected (`aria-pressed`/`aria-current`), loading (`aria-busy`) without layout shift |
73
- | Description list | `.nt-description-list` | `components/description-list.css` | `--2`, `--3`, `--inline` (totals), `--boxed` (breakdowns), `--compact`, `__item--emphasis`, `__item--full`, `__details--numeric` |
74
- | Record list | `.nt-record-list`, `.nt-record` | `patterns/record-list.css` | Recent items, queues, health checks; `--divided`, `--compact`, tones, selected bar, container-query stacking |
75
-
76
- ### Stat card
77
-
78
- ```html
79
- <div class="nt-stat-grid">
80
- <article class="nt-stat nt-stat--success">
81
- <span class="nt-stat__accent" aria-hidden="true"></span>
82
- <p class="nt-stat__label">Customer payments</p>
83
- <div class="nt-stat__row">
84
- <strong class="nt-stat__value">48 200<span class="nt-stat__unit">SEK</span></strong>
85
- <span class="nt-stat__delta nt-stat__delta--positive">▲ 12%</span>
86
- </div>
87
- <p class="nt-stat__hint">Received since 1 November</p>
88
- </article>
89
- </div>
90
- ```
91
-
92
- - The grid shows at most `--nt-stat-grid-columns` (default 4; `--2`, `--3`
93
- modifiers) and never narrower than `--nt-stat-grid-min` (13rem); it
94
- collapses intrinsically, so it behaves the same in a page, drawer, or pane.
95
- - A delta always contains a sign or arrow; the tone is secondary.
96
- - Set `aria-busy="true"` while loading: the value slot becomes a pulse block
97
- at the same line height, so the real figure appears without a shift.
98
- - Use links or buttons (`a.nt-stat`, `button.nt-stat`) for drill-down; they
99
- get hover lift, a pressed state, a focus ring, and a selected ring.
100
-
101
- ### Description list
102
-
103
- ```html
104
- <dl class="nt-description-list nt-description-list--inline">
105
- <div class="nt-description-list__item">
106
- <dt class="nt-description-list__term">Subtotal</dt>
107
- <dd class="nt-description-list__details nt-description-list__details--numeric">3 440 SEK</dd>
108
- </div>
109
- <div class="nt-description-list__item nt-description-list__item--emphasis">
110
- <dt class="nt-description-list__term">Amount due</dt>
111
- <dd class="nt-description-list__details">4 300 SEK</dd>
112
- </div>
113
- </dl>
114
- ```
115
-
116
- ### Record list
117
-
118
- ```html
119
- <ul class="nt-record-list">
120
- <li>
121
- <a class="nt-record nt-record--warning" href="/invoices/142">
122
- <span class="nt-record__leading"><span class="nt-record__indicator" aria-hidden="true"></span></span>
123
- <span class="nt-record__main">
124
- <span class="nt-record__title">INV-2026-0142</span>
125
- <span class="nt-record__meta">Northwind Traders · 2 Nov</span>
126
- </span>
127
- <span class="nt-record__trailing">
128
- <span class="nt-record__value">4 300 SEK</span>
129
- <span class="nt-record__caption">Overdue</span>
130
- </span>
131
- </a>
132
- </li>
133
- </ul>
134
- ```
135
-
136
- The indicator dot is decorative; the status is always in text (caption or
137
- badge). Below a 28rem container the trailing value moves under the title.
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
-
280
- ## Feedback
281
-
282
- | Component | Block class | CSS path | Behavior |
283
- |---|---|---|---|
284
- | Alert | `.nt-alert` | `components/alert.css` | — |
285
- | Toast | `.nt-toast` | `components/toast.css` | `ntCreateToastController`, `ntConfigureToastSemantics` |
286
- | Notification center | `.nt-notification-center` | `patterns/notification-center.css` | — |
287
- | Badge | `.nt-badge` | `components/badge.css` | — |
288
- | Progress, skeleton | `.nt-progress`, `.nt-skeleton` | `components/progress.css`, `components/skeleton.css` | — |
289
- | Loading / empty / error / content state | `.nt-loading-state`, `.nt-empty-state`, `.nt-error-state`, `.nt-content-state` | `patterns/*.css` | `ntApplyState` |
290
- | Live announcements | — | — | `ntCreateAnnouncer` |
291
-
292
- ## Overlays
293
-
294
- | Component | Block class | CSS path | Behavior |
295
- |---|---|---|---|
296
- | Dialog / modal | `.nt-dialog` (`.nt-modal` compatibility) | `components/dialog.css` | `ntCreateDialog`, `ntCreateModal` |
297
- | Drawer | `.nt-drawer` | `components/drawer.css` | `ntCreateDrawer` |
298
- | Popover | `.nt-popover` | `components/popover.css` | `ntCreatePopover` |
299
- | Tooltip | `.nt-tooltip` | `components/tooltip.css` | CSS (`:hover`/`:focus-visible`) |
300
-
301
- ## Data
302
-
303
- | Component | Block class | CSS path | Behavior |
304
- |---|---|---|---|
305
- | Table (read-only) | `.nt-table` | `components/table.css` | — |
306
- | Data grid (interactive) | `.nt-data-grid` | `components/data-grid.css` | `ntCreateDataGrid` |
307
- | Avatar | `.nt-avatar` | `components/avatar.css` | — |
308
-
309
- ## AI and domain modules
310
-
311
- AI surfaces (`ai/*.css`: action button, approval card, conversation panel,
312
- prompt input, proposal card, suggestion card, tool call) and domain modules
313
- (`domain/calendar/*.css` with `ntCreateCalendarGrid`, `domain/billing.css`,
314
- `domain/companies.css`) are documented in the README sections of the same name.
315
-
316
- ## Utilities
317
-
318
- `ntCreateFocusTrap`, `ntCreateOverlay`, `ntLockScroll`, `ntCreateRovingFocus`,
319
- `ntResolveDirection`, `ntGetInlineArrowKeys`, `ntWatchViewport`,
320
- `ntViewportQuery`, and id/ARIA helpers (`ntEnsureId`, `ntSetAriaControls`, …)
321
- are the building blocks the controllers above share.
1
+ # Component catalog
2
+
3
+ Every shipped module, its CSS import path, and its optional behavior helper.
4
+ All CSS is included by `@neetechs/ui/styles.css`; per-module paths exist for
5
+ bundle-size optimization. Behaviors are framework-free DOM functions from
6
+ `@neetechs/ui/behaviors` (also re-exported by `@neetechs/ui`).
7
+
8
+ Detailed guides: [site-chrome.md](./site-chrome.md) · [component-guidelines.md](./component-guidelines.md) ·
9
+ [component-architecture.md](./component-architecture.md) · [accessibility.md](./accessibility.md) ·
10
+ [layering.md](./layering.md).
11
+
12
+ ## Actions
13
+
14
+ | Component | Block class | CSS path | Behavior |
15
+ |---|---|---|---|
16
+ | Button | `.nt-button` | `components/button.css` | `ntCreateAsyncAction` (pending state) |
17
+ | Icon button | `.nt-icon-button` | `components/icon-button.css` | — |
18
+ | Button group | `.nt-button-group` | `components/button-group.css` | — (app toggles `aria-pressed`) |
19
+ | Split button | `.nt-split-button` | `components/split-button.css` | `ntCreateMenu` for the menu |
20
+ | Segmented control | `.nt-segmented-control` | `components/segmented-control.css` | — |
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 |
23
+
24
+ ## Forms
25
+
26
+ | Component | Block class | CSS path | Behavior |
27
+ |---|---|---|---|
28
+ | Input / field | `.nt-input`, `.nt-field` | `components/input.css` | `ntConnectField`, `ntCreateFormController`, `ntFocusErrorSummary` |
29
+ | Textarea | `.nt-textarea` | `components/textarea.css` | `ntConnectField` |
30
+ | Select | `.nt-select` | `components/select.css` | native `<select>` |
31
+ | Checkbox | `.nt-checkbox` | `components/checkbox.css` | native |
32
+ | Radio | `.nt-radio` | `components/radio.css` | native |
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) |
35
+ | Form layout | `.nt-form` | `patterns/form-layout.css` | — |
36
+
37
+ ## Layout
38
+
39
+ | Component | Block class | CSS path |
40
+ |---|---|---|
41
+ | Card | `.nt-card` | `components/card.css` |
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` |
48
+ | Container, stack, cluster, grid, divider | `.nt-container`, `.nt-stack`, `.nt-cluster`, `.nt-grid`, `.nt-divider` | `utilities/layout.css` |
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); glass and connected variants: [Glass and motion](./glass-and-motion.md)) |
50
+ | Glass material | `.nt-glass`, `.nt-glass-backdrop`, `.nt-card--glass`, `.nt-panel--glass` | `utilities/glass.css`, `components/card.css`, `components/panel.css` (see [Glass and motion](./glass-and-motion.md#glass-material)) |
51
+ | Page, master-detail, settings layout | `.nt-page`, `.nt-master-detail`, `.nt-settings-layout` | `patterns/*.css` |
52
+
53
+ ## Navigation and site chrome
54
+
55
+ | Component | Block class | CSS path | Behavior |
56
+ |---|---|---|---|
57
+ | Header | `.nt-header` | `shell/header.css` | — |
58
+ | Navbar | `.nt-navbar` | `shell/navbar.css` | `ntCreateNavbar` |
59
+ | Account dropdown | `.nt-header__account` + `.nt-profile-menu` | `shell/header.css`, `patterns/profile-menu.css` | `ntCreateAccountMenu` |
60
+ | Mobile navigation | `.nt-mobile-nav` | `shell/mobile-nav.css` | `ntCreateMobileNav` |
61
+ | Footer | `.nt-footer` | `shell/footer.css` | — |
62
+ | Menu / dropdown | `.nt-menu`, `.nt-dropdown` | `components/menu.css`, `components/dropdown.css` | `ntCreateMenu`, `ntCreateDropdown` |
63
+ | Tabs | `.nt-tabs` (`--sliding`) | `components/tabs.css` | `ntCreateTabs`, `ntCreateSelectionIndicator` |
64
+ | Dock | `.nt-dock` | `components/dock.css` | — |
65
+ | Floating action menu | `.nt-fab` | `components/fab.css` | `ntCreateMenuPopover` |
66
+ | Breadcrumb | `.nt-breadcrumb` | `components/breadcrumb.css` | — |
67
+ | Pagination | `.nt-pagination` | `components/pagination.css` | — |
68
+ | Company / workspace switcher | `.nt-company-switcher` | `patterns/company-switcher.css` | `ntCreateMenu` |
69
+ | Command palette, search bar | `.nt-command-palette`, `.nt-search-bar` | `patterns/*.css` | `ntCreateDialog` |
70
+
71
+ ## Data display
72
+
73
+ | Component | Block class | CSS path | Notes |
74
+ |---|---|---|---|
75
+ | Stat (KPI) card | `.nt-stat`, `.nt-stat-grid` | `components/stat.css` | Tones `--success/--warning/--danger/--info/--accent`, `--tinted`, `--emphasis`, `--wide`, `--sm/--lg`, `--interactive`, selected (`aria-pressed`/`aria-current`), loading (`aria-busy`) without layout shift |
76
+ | Description list | `.nt-description-list` | `components/description-list.css` | `--2`, `--3`, `--inline` (totals), `--boxed` (breakdowns), `--compact`, `__item--emphasis`, `__item--full`, `__details--numeric` |
77
+ | Record list | `.nt-record-list`, `.nt-record` | `patterns/record-list.css` | Recent items, queues, health checks; `--divided`, `--compact`, tones, selected bar, container-query stacking |
78
+
79
+ ### Stat card
80
+
81
+ ```html
82
+ <div class="nt-stat-grid">
83
+ <article class="nt-stat nt-stat--success">
84
+ <span class="nt-stat__accent" aria-hidden="true"></span>
85
+ <p class="nt-stat__label">Customer payments</p>
86
+ <div class="nt-stat__row">
87
+ <strong class="nt-stat__value">48 200<span class="nt-stat__unit">SEK</span></strong>
88
+ <span class="nt-stat__delta nt-stat__delta--positive">▲ 12%</span>
89
+ </div>
90
+ <p class="nt-stat__hint">Received since 1 November</p>
91
+ </article>
92
+ </div>
93
+ ```
94
+
95
+ - The grid shows at most `--nt-stat-grid-columns` (default 4; `--2`, `--3`
96
+ modifiers) and never narrower than `--nt-stat-grid-min` (13rem); it
97
+ collapses intrinsically, so it behaves the same in a page, drawer, or pane.
98
+ - A delta always contains a sign or arrow; the tone is secondary.
99
+ - Set `aria-busy="true"` while loading: the value slot becomes a pulse block
100
+ at the same line height, so the real figure appears without a shift.
101
+ - Use links or buttons (`a.nt-stat`, `button.nt-stat`) for drill-down; they
102
+ get hover lift, a pressed state, a focus ring, and a selected ring.
103
+
104
+ ### Description list
105
+
106
+ ```html
107
+ <dl class="nt-description-list nt-description-list--inline">
108
+ <div class="nt-description-list__item">
109
+ <dt class="nt-description-list__term">Subtotal</dt>
110
+ <dd class="nt-description-list__details nt-description-list__details--numeric">3 440 SEK</dd>
111
+ </div>
112
+ <div class="nt-description-list__item nt-description-list__item--emphasis">
113
+ <dt class="nt-description-list__term">Amount due</dt>
114
+ <dd class="nt-description-list__details">4 300 SEK</dd>
115
+ </div>
116
+ </dl>
117
+ ```
118
+
119
+ ### Record list
120
+
121
+ ```html
122
+ <ul class="nt-record-list">
123
+ <li>
124
+ <a class="nt-record nt-record--warning" href="/invoices/142">
125
+ <span class="nt-record__leading"><span class="nt-record__indicator" aria-hidden="true"></span></span>
126
+ <span class="nt-record__main">
127
+ <span class="nt-record__title">INV-2026-0142</span>
128
+ <span class="nt-record__meta">Northwind Traders · 2 Nov</span>
129
+ </span>
130
+ <span class="nt-record__trailing">
131
+ <span class="nt-record__value">4 300 SEK</span>
132
+ <span class="nt-record__caption">Overdue</span>
133
+ </span>
134
+ </a>
135
+ </li>
136
+ </ul>
137
+ ```
138
+
139
+ The indicator dot is decorative; the status is always in text (caption or
140
+ badge). Below a 28rem container the trailing value moves under the title.
141
+
142
+ ## Account and workspace patterns
143
+
144
+ ### Profile header
145
+
146
+ ```html
147
+ <header class="nt-profile-header nt-profile-header--surface">
148
+ <div class="nt-profile-header__identity">
149
+ <button class="nt-avatar nt-avatar--2xl nt-avatar--rounded nt-avatar--editable" type="button" aria-label="Change profile photo">
150
+ <img class="nt-avatar__image" src="/me.jpg" alt="">
151
+ <span class="nt-avatar__overlay" aria-hidden="true">Change</span>
152
+ </button>
153
+ <div class="nt-profile-header__main">
154
+ <div class="nt-profile-header__name-row">
155
+ <h1 class="nt-profile-header__name">Jamie Svensson</h1>
156
+ <span class="nt-profile-header__handle">@jamie</span>
157
+ </div>
158
+ <p class="nt-profile-header__headline">Full-stack developer</p>
159
+ <ul class="nt-profile-header__details">
160
+ <li>Stockholm</li>
161
+ <li><button class="nt-button nt-button--link" type="button">Add website</button></li>
162
+ </ul>
163
+ <div class="nt-profile-header__completion">
164
+ <div class="nt-progress nt-progress--sm nt-progress--reveal" style="--nt-progress-value: 72%">…</div>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ <div class="nt-profile-header__side">
169
+ <div class="nt-profile-header__actions">…</div>
170
+ <div class="nt-profile-header__aside">…</div>
171
+ </div>
172
+ </header>
173
+ ```
174
+
175
+ - Missing information is an inline `.nt-button--link` action in place of the
176
+ value ("Add headline", "Add location"), never an empty row.
177
+ - `.nt-avatar--editable` shows a "Change" overlay on hover and keyboard focus
178
+ (a permanent strip on touch devices); give the control an `aria-label`.
179
+ - `.nt-progress--reveal` fills the completion bar from zero on first render.
180
+ - The side column wraps under the identity when both no longer fit, and the
181
+ avatar moves above the text below a 30rem container.
182
+ - A next-step card in `__aside` is an ordinary card:
183
+ `.nt-card.nt-card--muted.nt-card--padded` with `__eyebrow`, `__title`,
184
+ and `__subtitle`.
185
+
186
+ ### Resource card
187
+
188
+ For AI provider connections, connected accounts, integrations, uploaded
189
+ documents, API keys, and devices: identity tile (`__media`, or
190
+ `__media--document` for files), title with inline badges, end-aligned
191
+ `__status` badge (always with text), a facts row
192
+ (`.nt-description-list--boxed.nt-description-list--compact`), and
193
+ `__actions` (`__actions-end` pushes a destructive action to the end).
194
+ `--current` (or `aria-current="true"`) marks the one in use with a selection
195
+ ring; `--unavailable`, `--warning`, `--danger`, `--success`, `--compact`.
196
+
197
+ ### Choice card
198
+
199
+ ```html
200
+ <fieldset class="nt-choice-group">
201
+ <legend>CV template</legend>
202
+ <label class="nt-choice-card">
203
+ <input class="nt-choice-card__input" type="radio" name="template" value="professional" checked>
204
+ <span class="nt-choice-card__indicator" aria-hidden="true"></span>
205
+ <span class="nt-choice-card__body">
206
+ <span class="nt-choice-card__title">Professional</span>
207
+ <span class="nt-choice-card__description">One column, ATS friendly</span>
208
+ </span>
209
+ </label>
210
+ </fieldset>
211
+ ```
212
+
213
+ The input stays native (arrow keys in radio groups, Space for checkboxes);
214
+ the card shows checked, focus, hover, pressed, and disabled states through
215
+ `:has()`, with a selection ring and an indicator dot or tick.
216
+
217
+ ### Disclosure
218
+
219
+ ```html
220
+ <details class="nt-disclosure nt-disclosure--surface">
221
+ <summary class="nt-disclosure__summary">
222
+ <span class="nt-disclosure__title">Archived CVs</span>
223
+ <span class="nt-disclosure__meta">2</span>
224
+ <svg class="nt-disclosure__chevron" aria-hidden="true"></svg>
225
+ </summary>
226
+ <div class="nt-disclosure__content">…</div>
227
+ </details>
228
+ ```
229
+
230
+ Native `<details>`; the height animates where `::details-content` is
231
+ supported and opens instantly elsewhere.
232
+
233
+ ### Editor workspace and document preview
234
+
235
+ ```html
236
+ <div class="nt-editor-workspace nt-editor-workspace--sticky-preview">
237
+ <div class="nt-editor-workspace__panes">
238
+ <section class="nt-editor-pane" aria-labelledby="source-title">
239
+ <div class="nt-editor-pane__header"><h2 class="nt-editor-pane__title" id="source-title">Markdown</h2></div>
240
+ <textarea class="nt-editor-pane__source" aria-labelledby="source-title"></textarea>
241
+ <div class="nt-editor-pane__footer">
242
+ <span class="nt-editor-status" data-state="saved" role="status">Saved</span>
243
+ </div>
244
+ </section>
245
+ <section class="nt-editor-pane nt-editor-pane--preview" aria-label="Preview">
246
+ <div class="nt-editor-pane__body">
247
+ <div class="nt-document-preview nt-document-preview--flush">
248
+ <div class="nt-document-preview__viewport" tabindex="0" role="region" aria-label="Preview">
249
+ <article class="nt-document-preview__page">…</article>
250
+ </div>
251
+ </div>
252
+ </div>
253
+ </section>
254
+ </div>
255
+ </div>
256
+ ```
257
+
258
+ - Panes sit side by side above a 64rem workspace width and stack below it;
259
+ `--balanced` splits evenly; `--sticky-preview` keeps the preview in view.
260
+ - `.nt-editor-status` states: `saving` (pulsing dot), `saved` (one pop),
261
+ `unsaved`, `error`; always with a word.
262
+ - The page keeps true paper size (`--letter`, `--fluid`, `--margin-narrow`,
263
+ `--margin-wide`) so lines wrap as in the export; narrow screens scroll the
264
+ canvas. Paper and ink use `--nt-document-*` tokens that stay paper-colored
265
+ in every theme. Printing keeps only the page; set the matching
266
+ `@page { size; margin }` in the application.
267
+
268
+ ### Settings and section navigation
269
+
270
+ `.nt-settings-layout` navigation now has an animated current-item bar,
271
+ `aria-current="true"`/`"location"` for in-page section links,
272
+ `__nav-status` dots (`--complete`, `--attention`, `--error`; add the
273
+ meaning as text), `__nav-count`, grouped navigation (`__nav-group`,
274
+ `__nav-title`), a card surface (`__nav--surface`), and a sticky nav
275
+ (`.nt-settings-layout--sticky-nav`, static on narrow layouts).
276
+
277
+ ### Smaller additions
278
+
279
+ `.nt-avatar--2xl` (6rem), `.nt-badge--info`, `.nt-card--edge` (accent edge
280
+ that strengthens on hover and focus-within), `.nt-stat--split` with
281
+ `__body`/`__aside` (balances with supporting facts).
282
+
283
+ ## Feedback
284
+
285
+ | Component | Block class | CSS path | Behavior |
286
+ |---|---|---|---|
287
+ | Alert | `.nt-alert` | `components/alert.css` | — |
288
+ | Toast | `.nt-toast` | `components/toast.css` | `ntCreateToastController`, `ntConfigureToastSemantics` |
289
+ | Notification center | `.nt-notification-center` | `patterns/notification-center.css` | — |
290
+ | Badge | `.nt-badge` | `components/badge.css` | — |
291
+ | Progress, skeleton | `.nt-progress`, `.nt-skeleton` | `components/progress.css`, `components/skeleton.css` | — |
292
+ | Loading / empty / error / content state | `.nt-loading-state`, `.nt-empty-state`, `.nt-error-state`, `.nt-content-state` | `patterns/*.css` | `ntApplyState` |
293
+ | Live announcements | — | — | `ntCreateAnnouncer` |
294
+
295
+ ## Overlays
296
+
297
+ | Component | Block class | CSS path | Behavior |
298
+ |---|---|---|---|
299
+ | Dialog / modal | `.nt-dialog` (`.nt-modal` compatibility) | `components/dialog.css` | `ntCreateDialog`, `ntCreateModal` |
300
+ | Drawer | `.nt-drawer` | `components/drawer.css` | `ntCreateDrawer` |
301
+ | Popover | `.nt-popover` | `components/popover.css` | `ntCreatePopover` |
302
+ | Tooltip | `.nt-tooltip` | `components/tooltip.css` | CSS (`:hover`/`:focus-visible`) |
303
+
304
+ ## Data
305
+
306
+ | Component | Block class | CSS path | Behavior |
307
+ |---|---|---|---|
308
+ | Table (read-only) | `.nt-table` | `components/table.css` | — |
309
+ | Data grid (interactive) | `.nt-data-grid` | `components/data-grid.css` | `ntCreateDataGrid` |
310
+ | Avatar | `.nt-avatar` | `components/avatar.css` | — |
311
+
312
+ ## AI and domain modules
313
+
314
+ AI surfaces (`ai/*.css`: action button, approval card, conversation panel,
315
+ prompt input, proposal card, suggestion card, tool call) and domain modules
316
+ (`domain/calendar/*.css` with `ntCreateCalendarGrid`, `domain/billing.css`,
317
+ `domain/companies.css`) are documented in the README sections of the same name.
318
+
319
+ ## Utilities
320
+
321
+ `ntCreateSelectionIndicator` (sliding tab and segmented-control indicators,
322
+ see [Glass and motion](./glass-and-motion.md#sliding-selection-indicator)),
323
+ `ntCreateFocusTrap`, `ntCreateOverlay`, `ntLockScroll`, `ntCreateRovingFocus`,
324
+ `ntResolveDirection`, `ntGetInlineArrowKeys`, `ntWatchViewport`,
325
+ `ntViewportQuery`, and id/ARIA helpers (`ntEnsureId`, `ntSetAriaControls`, …)
326
+ are the building blocks the controllers above share.