@neetechs/ui 0.1.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 (285) hide show
  1. package/CHANGELOG.md +74 -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 -220
  25. package/dist/components/avatar/avatar.css +298 -220
  26. package/dist/components/badge/badge.css +180 -174
  27. package/dist/components/breadcrumb/breadcrumb.css +207 -207
  28. package/dist/components/button/button.css +278 -238
  29. package/dist/components/card/card.css +336 -265
  30. package/dist/components/checkbox/checkbox.css +189 -189
  31. package/dist/components/chip/chip.css +269 -269
  32. package/dist/components/choice-card/choice-card.css +244 -0
  33. package/dist/components/data-grid/data-grid.css +520 -520
  34. package/dist/components/description-list/description-list.css +187 -187
  35. package/dist/components/dialog/dialog.css +348 -339
  36. package/dist/components/disclosure/disclosure.css +154 -0
  37. package/dist/components/dock/dock.css +319 -0
  38. package/dist/components/drawer/drawer.css +493 -484
  39. package/dist/components/dropdown/dropdown.css +325 -316
  40. package/dist/components/fab/fab.css +281 -0
  41. package/dist/components/icon-button/icon-button.css +162 -162
  42. package/dist/components/index.css +4 -0
  43. package/dist/components/input/input.css +163 -163
  44. package/dist/components/menu/menu.css +315 -315
  45. package/dist/components/pagination/pagination.css +250 -250
  46. package/dist/components/panel/panel.css +316 -284
  47. package/dist/components/popover/popover.css +22 -0
  48. package/dist/components/progress/progress.css +268 -256
  49. package/dist/components/radio/radio.css +166 -166
  50. package/dist/components/segmented-control/segmented-control.css +264 -205
  51. package/dist/components/select/select.css +117 -117
  52. package/dist/components/skeleton/skeleton.css +267 -267
  53. package/dist/components/split-button/split-button.css +292 -292
  54. package/dist/components/stat/stat.css +433 -403
  55. package/dist/components/switch/switch.css +195 -195
  56. package/dist/components/table/table.css +220 -220
  57. package/dist/components/tabs/tabs.css +393 -293
  58. package/dist/components/textarea/textarea.css +86 -86
  59. package/dist/components/toast/toast.css +345 -345
  60. package/dist/components/tooltip/tooltip.css +267 -258
  61. package/dist/domain/billing/index.css +629 -629
  62. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
  63. package/dist/domain/calendar/day-slice/day-slice.css +384 -384
  64. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
  65. package/dist/domain/calendar/event-card/event-card.css +338 -338
  66. package/dist/domain/calendar/index.css +5 -5
  67. package/dist/domain/calendar/month-grid/month-grid.css +426 -426
  68. package/dist/domain/calendar/week-grid/week-grid.css +487 -480
  69. package/dist/domain/companies/index.css +526 -526
  70. package/dist/domain/index.css +3 -3
  71. package/dist/index.css +5 -5
  72. package/dist/patterns/command-palette/command-palette.css +488 -447
  73. package/dist/patterns/company-switcher/company-switcher.css +390 -390
  74. package/dist/patterns/content-state/content-state.css +236 -236
  75. package/dist/patterns/document-preview/document-preview.css +169 -0
  76. package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
  77. package/dist/patterns/empty-state/empty-state.css +260 -260
  78. package/dist/patterns/error-state/error-state.css +272 -272
  79. package/dist/patterns/form-layout/form-layout.css +106 -106
  80. package/dist/patterns/index.css +4 -0
  81. package/dist/patterns/loading-state/loading-state.css +287 -287
  82. package/dist/patterns/master-detail/master-detail.css +103 -103
  83. package/dist/patterns/notification-center/notification-center.css +443 -443
  84. package/dist/patterns/page/page.css +303 -303
  85. package/dist/patterns/profile-header/profile-header.css +205 -0
  86. package/dist/patterns/profile-menu/profile-menu.css +298 -298
  87. package/dist/patterns/record-list/record-list.css +302 -302
  88. package/dist/patterns/resource-card/resource-card.css +258 -0
  89. package/dist/patterns/search-bar/search-bar.css +457 -457
  90. package/dist/patterns/settings-layout/settings-layout.css +283 -150
  91. package/dist/patterns/workflow/workflow.css +168 -168
  92. package/dist/shell/app-shell/app-shell.css +429 -211
  93. package/dist/shell/content-frame/content-frame.css +93 -93
  94. package/dist/shell/header/header.css +328 -328
  95. package/dist/shell/index.css +8 -8
  96. package/dist/shell/mobile-nav/mobile-nav.css +254 -254
  97. package/dist/shell/navbar/navbar.css +28 -1
  98. package/dist/shell/sidebar/sidebar.css +923 -314
  99. package/dist/styles/accessibility.css +150 -150
  100. package/dist/styles/animations/motion.css +162 -162
  101. package/dist/styles/appearance/accent.css +215 -215
  102. package/dist/styles/appearance/density.css +61 -61
  103. package/dist/styles/appearance/motion.css +48 -40
  104. package/dist/styles/base.css +83 -83
  105. package/dist/styles/index.css +29 -28
  106. package/dist/styles/localization.css +56 -56
  107. package/dist/styles/reset.css +51 -51
  108. package/dist/styles/responsive.css +101 -101
  109. package/dist/styles/themes/dark.css +225 -202
  110. package/dist/styles/themes/high-contrast.css +378 -290
  111. package/dist/styles/themes/light.css +224 -201
  112. package/dist/styles/tokens/breakpoints.css +37 -37
  113. package/dist/styles/tokens/color.css +102 -102
  114. package/dist/styles/tokens/compatibility.css +33 -33
  115. package/dist/styles/tokens/elevation.css +33 -26
  116. package/dist/styles/tokens/index.css +9 -9
  117. package/dist/styles/tokens/motion.css +55 -36
  118. package/dist/styles/tokens/radius.css +26 -26
  119. package/dist/styles/tokens/spacing.css +56 -56
  120. package/dist/styles/tokens/typography.css +85 -85
  121. package/dist/styles/tokens/z-index.css +14 -14
  122. package/dist/styles/utilities/glass.css +97 -0
  123. package/dist/styles/utilities/layout.css +153 -153
  124. package/dist/styles/utilities/text.css +152 -152
  125. package/dist/styles/utilities/visibility.css +47 -47
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -192
  129. package/docs/accessibility.md +218 -218
  130. package/docs/appearance-and-theming.md +150 -150
  131. package/docs/brand-palette.md +36 -36
  132. package/docs/component-architecture.md +137 -137
  133. package/docs/component-guidelines.md +64 -64
  134. package/docs/components.md +326 -173
  135. package/docs/content-and-terminology.md +207 -207
  136. package/docs/design-system-baseline-audit.md +226 -226
  137. package/docs/design-token-contract.md +279 -279
  138. package/docs/glass-and-motion.md +310 -0
  139. package/docs/localization-and-rtl.md +147 -147
  140. package/docs/migration.md +193 -193
  141. package/docs/page-patterns-and-workflows.md +301 -275
  142. package/docs/responsive-and-adaptive-design.md +351 -351
  143. package/docs/semantic-role-migration-audit.md +77 -77
  144. package/docs/site-chrome.md +320 -313
  145. package/docs/states-feedback-and-recovery.md +206 -206
  146. package/docs/theming.md +5 -5
  147. package/package.json +2 -1
  148. package/src/ai/ai-action-button/ai-action-button.css +271 -271
  149. package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
  150. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
  151. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
  152. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  153. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
  154. package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
  155. package/src/ai/index.css +7 -7
  156. package/src/appearance/cache.ts +236 -236
  157. package/src/appearance/cookie.ts +184 -184
  158. package/src/appearance/index.ts +86 -86
  159. package/src/appearance/preference.ts +121 -121
  160. package/src/appearance/theme-controller.ts +384 -384
  161. package/src/appearance/types.ts +61 -61
  162. package/src/behaviors/announcer.ts +222 -222
  163. package/src/behaviors/calendar.ts +92 -92
  164. package/src/behaviors/data-grid.ts +133 -133
  165. package/src/behaviors/dialog.ts +203 -203
  166. package/src/behaviors/direction.ts +34 -34
  167. package/src/behaviors/drawer.ts +210 -210
  168. package/src/behaviors/dropdown.ts +344 -344
  169. package/src/behaviors/focus-trap.ts +304 -304
  170. package/src/behaviors/forms.ts +205 -205
  171. package/src/behaviors/ids.ts +47 -47
  172. package/src/behaviors/index.ts +1 -0
  173. package/src/behaviors/keyboard.ts +305 -305
  174. package/src/behaviors/overlay.ts +344 -344
  175. package/src/behaviors/selection-indicator.ts +162 -0
  176. package/src/behaviors/sidebar.ts +14 -4
  177. package/src/behaviors/state.ts +282 -282
  178. package/src/behaviors/tabs.ts +137 -137
  179. package/src/behaviors/viewport.ts +61 -61
  180. package/src/components/alert/alert.css +226 -220
  181. package/src/components/avatar/avatar.css +298 -220
  182. package/src/components/badge/badge.css +180 -174
  183. package/src/components/breadcrumb/breadcrumb.css +207 -207
  184. package/src/components/button/button.css +278 -238
  185. package/src/components/card/card.css +336 -265
  186. package/src/components/checkbox/checkbox.css +189 -189
  187. package/src/components/chip/chip.css +269 -269
  188. package/src/components/choice-card/choice-card.css +244 -0
  189. package/src/components/data-grid/data-grid.css +520 -520
  190. package/src/components/description-list/description-list.css +187 -187
  191. package/src/components/dialog/dialog.css +348 -339
  192. package/src/components/disclosure/disclosure.css +154 -0
  193. package/src/components/dock/dock.css +319 -0
  194. package/src/components/drawer/drawer.css +493 -484
  195. package/src/components/dropdown/dropdown.css +325 -316
  196. package/src/components/fab/fab.css +281 -0
  197. package/src/components/icon-button/icon-button.css +162 -162
  198. package/src/components/index.css +4 -0
  199. package/src/components/input/input.css +163 -163
  200. package/src/components/menu/menu.css +315 -315
  201. package/src/components/pagination/pagination.css +250 -250
  202. package/src/components/panel/panel.css +316 -284
  203. package/src/components/popover/popover.css +22 -0
  204. package/src/components/progress/progress.css +268 -256
  205. package/src/components/radio/radio.css +166 -166
  206. package/src/components/segmented-control/segmented-control.css +264 -205
  207. package/src/components/select/select.css +117 -117
  208. package/src/components/skeleton/skeleton.css +267 -267
  209. package/src/components/split-button/split-button.css +292 -292
  210. package/src/components/stat/stat.css +433 -403
  211. package/src/components/switch/switch.css +195 -195
  212. package/src/components/table/table.css +220 -220
  213. package/src/components/tabs/tabs.css +393 -293
  214. package/src/components/textarea/textarea.css +86 -86
  215. package/src/components/toast/toast.css +345 -345
  216. package/src/components/tooltip/tooltip.css +267 -258
  217. package/src/domain/billing/index.css +629 -629
  218. package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
  219. package/src/domain/calendar/day-slice/day-slice.css +384 -384
  220. package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
  221. package/src/domain/calendar/event-card/event-card.css +338 -338
  222. package/src/domain/calendar/index.css +5 -5
  223. package/src/domain/calendar/month-grid/month-grid.css +426 -426
  224. package/src/domain/calendar/week-grid/week-grid.css +487 -480
  225. package/src/domain/companies/index.css +526 -526
  226. package/src/domain/index.css +3 -3
  227. package/src/index.css +5 -5
  228. package/src/index.ts +7 -7
  229. package/src/localization/index.ts +56 -56
  230. package/src/patterns/command-palette/command-palette.css +488 -447
  231. package/src/patterns/company-switcher/company-switcher.css +390 -390
  232. package/src/patterns/content-state/content-state.css +236 -236
  233. package/src/patterns/document-preview/document-preview.css +169 -0
  234. package/src/patterns/editor-workspace/editor-workspace.css +276 -0
  235. package/src/patterns/empty-state/empty-state.css +260 -260
  236. package/src/patterns/error-state/error-state.css +272 -272
  237. package/src/patterns/form-layout/form-layout.css +106 -106
  238. package/src/patterns/index.css +4 -0
  239. package/src/patterns/loading-state/loading-state.css +287 -287
  240. package/src/patterns/master-detail/master-detail.css +103 -103
  241. package/src/patterns/notification-center/notification-center.css +443 -443
  242. package/src/patterns/page/page.css +303 -303
  243. package/src/patterns/profile-header/profile-header.css +205 -0
  244. package/src/patterns/profile-menu/profile-menu.css +298 -298
  245. package/src/patterns/record-list/record-list.css +302 -302
  246. package/src/patterns/resource-card/resource-card.css +258 -0
  247. package/src/patterns/search-bar/search-bar.css +457 -457
  248. package/src/patterns/settings-layout/settings-layout.css +283 -150
  249. package/src/patterns/workflow/workflow.css +168 -168
  250. package/src/shell/app-shell/app-shell.css +429 -211
  251. package/src/shell/content-frame/content-frame.css +93 -93
  252. package/src/shell/header/header.css +328 -328
  253. package/src/shell/index.css +8 -8
  254. package/src/shell/mobile-nav/mobile-nav.css +254 -254
  255. package/src/shell/navbar/navbar.css +28 -1
  256. package/src/shell/sidebar/sidebar.css +923 -314
  257. package/src/styles/accessibility.css +150 -150
  258. package/src/styles/animations/motion.css +162 -162
  259. package/src/styles/appearance/accent.css +215 -215
  260. package/src/styles/appearance/density.css +61 -61
  261. package/src/styles/appearance/motion.css +48 -40
  262. package/src/styles/base.css +83 -83
  263. package/src/styles/index.css +29 -28
  264. package/src/styles/localization.css +56 -56
  265. package/src/styles/reset.css +51 -51
  266. package/src/styles/responsive.css +101 -101
  267. package/src/styles/themes/dark.css +225 -202
  268. package/src/styles/themes/high-contrast.css +378 -290
  269. package/src/styles/themes/light.css +224 -201
  270. package/src/styles/tokens/breakpoints.css +37 -37
  271. package/src/styles/tokens/color.css +102 -102
  272. package/src/styles/tokens/compatibility.css +33 -33
  273. package/src/styles/tokens/elevation.css +33 -26
  274. package/src/styles/tokens/index.css +9 -9
  275. package/src/styles/tokens/motion.css +55 -36
  276. package/src/styles/tokens/radius.css +26 -26
  277. package/src/styles/tokens/spacing.css +56 -56
  278. package/src/styles/tokens/typography.css +85 -85
  279. package/src/styles/tokens/z-index.css +14 -14
  280. package/src/styles/utilities/glass.css +97 -0
  281. package/src/styles/utilities/layout.css +153 -153
  282. package/src/styles/utilities/text.css +152 -152
  283. package/src/styles/utilities/visibility.css +47 -47
  284. package/src/types/index.ts +126 -126
  285. package/src/version.ts +1 -1
@@ -1,173 +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
-
23
- ## Forms
24
-
25
- | Component | Block class | CSS path | Behavior |
26
- |---|---|---|---|
27
- | Input / field | `.nt-input`, `.nt-field` | `components/input.css` | `ntConnectField`, `ntCreateFormController`, `ntFocusErrorSummary` |
28
- | Textarea | `.nt-textarea` | `components/textarea.css` | `ntConnectField` |
29
- | Select | `.nt-select` | `components/select.css` | native `<select>` |
30
- | Checkbox | `.nt-checkbox` | `components/checkbox.css` | native |
31
- | Radio | `.nt-radio` | `components/radio.css` | native |
32
- | Switch | `.nt-switch` | `components/switch.css` | native `role="switch"` |
33
- | Form layout | `.nt-form` | `patterns/form-layout.css` | — |
34
-
35
- ## Layout
36
-
37
- | Component | Block class | CSS path |
38
- |---|---|---|
39
- | Card | `.nt-card` | `components/card.css` |
40
- | Panel | `.nt-panel` | `components/panel.css` |
41
- | Container, stack, cluster, grid, divider | `.nt-container`, `.nt-stack`, `.nt-cluster`, `.nt-grid`, `.nt-divider` | `utilities/layout.css` |
42
- | 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
- | Page, master-detail, settings layout | `.nt-page`, `.nt-master-detail`, `.nt-settings-layout` | `patterns/*.css` |
44
-
45
- ## Navigation and site chrome
46
-
47
- | Component | Block class | CSS path | Behavior |
48
- |---|---|---|---|
49
- | Header | `.nt-header` | `shell/header.css` | — |
50
- | Navbar | `.nt-navbar` | `shell/navbar.css` | `ntCreateNavbar` |
51
- | Account dropdown | `.nt-header__account` + `.nt-profile-menu` | `shell/header.css`, `patterns/profile-menu.css` | `ntCreateAccountMenu` |
52
- | Mobile navigation | `.nt-mobile-nav` | `shell/mobile-nav.css` | `ntCreateMobileNav` |
53
- | Footer | `.nt-footer` | `shell/footer.css` | — |
54
- | Menu / dropdown | `.nt-menu`, `.nt-dropdown` | `components/menu.css`, `components/dropdown.css` | `ntCreateMenu`, `ntCreateDropdown` |
55
- | Tabs | `.nt-tabs` | `components/tabs.css` | `ntCreateTabs` |
56
- | Breadcrumb | `.nt-breadcrumb` | `components/breadcrumb.css` | — |
57
- | Pagination | `.nt-pagination` | `components/pagination.css` | — |
58
- | Company / workspace switcher | `.nt-company-switcher` | `patterns/company-switcher.css` | `ntCreateMenu` |
59
- | Command palette, search bar | `.nt-command-palette`, `.nt-search-bar` | `patterns/*.css` | `ntCreateDialog` |
60
-
61
- ## Data display
62
-
63
- | Component | Block class | CSS path | Notes |
64
- |---|---|---|---|
65
- | 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 |
66
- | Description list | `.nt-description-list` | `components/description-list.css` | `--2`, `--3`, `--inline` (totals), `--boxed` (breakdowns), `--compact`, `__item--emphasis`, `__item--full`, `__details--numeric` |
67
- | Record list | `.nt-record-list`, `.nt-record` | `patterns/record-list.css` | Recent items, queues, health checks; `--divided`, `--compact`, tones, selected bar, container-query stacking |
68
-
69
- ### Stat card
70
-
71
- ```html
72
- <div class="nt-stat-grid">
73
- <article class="nt-stat nt-stat--success">
74
- <span class="nt-stat__accent" aria-hidden="true"></span>
75
- <p class="nt-stat__label">Customer payments</p>
76
- <div class="nt-stat__row">
77
- <strong class="nt-stat__value">48 200<span class="nt-stat__unit">SEK</span></strong>
78
- <span class="nt-stat__delta nt-stat__delta--positive">▲ 12%</span>
79
- </div>
80
- <p class="nt-stat__hint">Received since 1 November</p>
81
- </article>
82
- </div>
83
- ```
84
-
85
- - The grid shows at most `--nt-stat-grid-columns` (default 4; `--2`, `--3`
86
- modifiers) and never narrower than `--nt-stat-grid-min` (13rem); it
87
- collapses intrinsically, so it behaves the same in a page, drawer, or pane.
88
- - A delta always contains a sign or arrow; the tone is secondary.
89
- - Set `aria-busy="true"` while loading: the value slot becomes a pulse block
90
- at the same line height, so the real figure appears without a shift.
91
- - Use links or buttons (`a.nt-stat`, `button.nt-stat`) for drill-down; they
92
- get hover lift, a pressed state, a focus ring, and a selected ring.
93
-
94
- ### Description list
95
-
96
- ```html
97
- <dl class="nt-description-list nt-description-list--inline">
98
- <div class="nt-description-list__item">
99
- <dt class="nt-description-list__term">Subtotal</dt>
100
- <dd class="nt-description-list__details nt-description-list__details--numeric">3 440 SEK</dd>
101
- </div>
102
- <div class="nt-description-list__item nt-description-list__item--emphasis">
103
- <dt class="nt-description-list__term">Amount due</dt>
104
- <dd class="nt-description-list__details">4 300 SEK</dd>
105
- </div>
106
- </dl>
107
- ```
108
-
109
- ### Record list
110
-
111
- ```html
112
- <ul class="nt-record-list">
113
- <li>
114
- <a class="nt-record nt-record--warning" href="/invoices/142">
115
- <span class="nt-record__leading"><span class="nt-record__indicator" aria-hidden="true"></span></span>
116
- <span class="nt-record__main">
117
- <span class="nt-record__title">INV-2026-0142</span>
118
- <span class="nt-record__meta">Northwind Traders · 2 Nov</span>
119
- </span>
120
- <span class="nt-record__trailing">
121
- <span class="nt-record__value">4 300 SEK</span>
122
- <span class="nt-record__caption">Overdue</span>
123
- </span>
124
- </a>
125
- </li>
126
- </ul>
127
- ```
128
-
129
- The indicator dot is decorative; the status is always in text (caption or
130
- badge). Below a 28rem container the trailing value moves under the title.
131
-
132
- ## Feedback
133
-
134
- | Component | Block class | CSS path | Behavior |
135
- |---|---|---|---|
136
- | Alert | `.nt-alert` | `components/alert.css` | — |
137
- | Toast | `.nt-toast` | `components/toast.css` | `ntCreateToastController`, `ntConfigureToastSemantics` |
138
- | Notification center | `.nt-notification-center` | `patterns/notification-center.css` | — |
139
- | Badge | `.nt-badge` | `components/badge.css` | — |
140
- | Progress, skeleton | `.nt-progress`, `.nt-skeleton` | `components/progress.css`, `components/skeleton.css` | — |
141
- | Loading / empty / error / content state | `.nt-loading-state`, `.nt-empty-state`, `.nt-error-state`, `.nt-content-state` | `patterns/*.css` | `ntApplyState` |
142
- | Live announcements | — | — | `ntCreateAnnouncer` |
143
-
144
- ## Overlays
145
-
146
- | Component | Block class | CSS path | Behavior |
147
- |---|---|---|---|
148
- | Dialog / modal | `.nt-dialog` (`.nt-modal` compatibility) | `components/dialog.css` | `ntCreateDialog`, `ntCreateModal` |
149
- | Drawer | `.nt-drawer` | `components/drawer.css` | `ntCreateDrawer` |
150
- | Popover | `.nt-popover` | `components/popover.css` | `ntCreatePopover` |
151
- | Tooltip | `.nt-tooltip` | `components/tooltip.css` | CSS (`:hover`/`:focus-visible`) |
152
-
153
- ## Data
154
-
155
- | Component | Block class | CSS path | Behavior |
156
- |---|---|---|---|
157
- | Table (read-only) | `.nt-table` | `components/table.css` | — |
158
- | Data grid (interactive) | `.nt-data-grid` | `components/data-grid.css` | `ntCreateDataGrid` |
159
- | Avatar | `.nt-avatar` | `components/avatar.css` | — |
160
-
161
- ## AI and domain modules
162
-
163
- AI surfaces (`ai/*.css`: action button, approval card, conversation panel,
164
- prompt input, proposal card, suggestion card, tool call) and domain modules
165
- (`domain/calendar/*.css` with `ntCreateCalendarGrid`, `domain/billing.css`,
166
- `domain/companies.css`) are documented in the README sections of the same name.
167
-
168
- ## Utilities
169
-
170
- `ntCreateFocusTrap`, `ntCreateOverlay`, `ntLockScroll`, `ntCreateRovingFocus`,
171
- `ntResolveDirection`, `ntGetInlineArrowKeys`, `ntWatchViewport`,
172
- `ntViewportQuery`, and id/ARIA helpers (`ntEnsureId`, `ntSetAriaControls`, …)
173
- 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.