@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.
- package/CHANGELOG.md +39 -0
- package/LICENSE +21 -21
- package/README.md +862 -861
- package/dist/ai/ai-action-button/ai-action-button.css +271 -271
- package/dist/ai/ai-approval-card/ai-approval-card.css +323 -323
- package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
- package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -380
- package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
- package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
- package/dist/ai/ai-tool-call/ai-tool-call.css +256 -256
- package/dist/ai/index.css +7 -7
- package/dist/behaviors/index.d.ts +1 -0
- package/dist/behaviors/index.d.ts.map +1 -1
- package/dist/behaviors/index.js +1 -0
- package/dist/behaviors/index.js.map +1 -1
- package/dist/behaviors/selection-indicator.d.ts +35 -0
- package/dist/behaviors/selection-indicator.d.ts.map +1 -0
- package/dist/behaviors/selection-indicator.js +133 -0
- package/dist/behaviors/selection-indicator.js.map +1 -0
- package/dist/behaviors/sidebar.d.ts +3 -1
- package/dist/behaviors/sidebar.d.ts.map +1 -1
- package/dist/behaviors/sidebar.js +10 -3
- package/dist/behaviors/sidebar.js.map +1 -1
- package/dist/components/alert/alert.css +226 -226
- package/dist/components/avatar/avatar.css +298 -298
- package/dist/components/badge/badge.css +180 -180
- package/dist/components/breadcrumb/breadcrumb.css +207 -207
- package/dist/components/button/button.css +278 -278
- package/dist/components/card/card.css +336 -284
- package/dist/components/checkbox/checkbox.css +189 -189
- package/dist/components/chip/chip.css +269 -269
- package/dist/components/data-grid/data-grid.css +520 -520
- package/dist/components/description-list/description-list.css +187 -187
- package/dist/components/dialog/dialog.css +348 -339
- package/dist/components/dock/dock.css +319 -0
- package/dist/components/drawer/drawer.css +493 -484
- package/dist/components/dropdown/dropdown.css +325 -316
- package/dist/components/fab/fab.css +281 -0
- package/dist/components/icon-button/icon-button.css +162 -162
- package/dist/components/index.css +2 -0
- package/dist/components/input/input.css +163 -163
- package/dist/components/menu/menu.css +315 -315
- package/dist/components/pagination/pagination.css +250 -250
- package/dist/components/panel/panel.css +316 -284
- package/dist/components/popover/popover.css +22 -0
- package/dist/components/progress/progress.css +268 -268
- package/dist/components/radio/radio.css +166 -166
- package/dist/components/segmented-control/segmented-control.css +264 -205
- package/dist/components/select/select.css +117 -117
- package/dist/components/skeleton/skeleton.css +267 -267
- package/dist/components/split-button/split-button.css +292 -292
- package/dist/components/stat/stat.css +433 -433
- package/dist/components/switch/switch.css +195 -195
- package/dist/components/table/table.css +220 -220
- package/dist/components/tabs/tabs.css +393 -293
- package/dist/components/textarea/textarea.css +86 -86
- package/dist/components/toast/toast.css +345 -345
- package/dist/components/tooltip/tooltip.css +267 -258
- package/dist/domain/billing/index.css +629 -629
- package/dist/domain/calendar/agenda-list/agenda-list.css +224 -224
- package/dist/domain/calendar/day-slice/day-slice.css +384 -384
- package/dist/domain/calendar/day-timeline/day-timeline.css +332 -332
- package/dist/domain/calendar/event-card/event-card.css +338 -338
- package/dist/domain/calendar/index.css +5 -5
- package/dist/domain/calendar/month-grid/month-grid.css +426 -426
- package/dist/domain/calendar/week-grid/week-grid.css +487 -480
- package/dist/domain/companies/index.css +526 -526
- package/dist/domain/index.css +3 -3
- package/dist/index.css +5 -5
- package/dist/patterns/command-palette/command-palette.css +488 -447
- package/dist/patterns/company-switcher/company-switcher.css +390 -390
- package/dist/patterns/content-state/content-state.css +236 -236
- package/dist/patterns/empty-state/empty-state.css +260 -260
- package/dist/patterns/error-state/error-state.css +272 -272
- package/dist/patterns/form-layout/form-layout.css +106 -106
- package/dist/patterns/loading-state/loading-state.css +287 -287
- package/dist/patterns/master-detail/master-detail.css +103 -103
- package/dist/patterns/notification-center/notification-center.css +443 -443
- package/dist/patterns/page/page.css +303 -303
- package/dist/patterns/profile-menu/profile-menu.css +298 -298
- package/dist/patterns/record-list/record-list.css +302 -302
- package/dist/patterns/search-bar/search-bar.css +457 -457
- package/dist/patterns/settings-layout/settings-layout.css +283 -283
- package/dist/patterns/workflow/workflow.css +168 -168
- package/dist/shell/app-shell/app-shell.css +429 -211
- package/dist/shell/content-frame/content-frame.css +93 -93
- package/dist/shell/header/header.css +328 -328
- package/dist/shell/index.css +8 -8
- package/dist/shell/mobile-nav/mobile-nav.css +254 -254
- package/dist/shell/sidebar/sidebar.css +923 -314
- package/dist/styles/accessibility.css +150 -150
- package/dist/styles/animations/motion.css +162 -162
- package/dist/styles/appearance/accent.css +215 -215
- package/dist/styles/appearance/density.css +61 -61
- package/dist/styles/appearance/motion.css +48 -40
- package/dist/styles/base.css +83 -83
- package/dist/styles/index.css +29 -28
- package/dist/styles/localization.css +56 -56
- package/dist/styles/reset.css +51 -51
- package/dist/styles/responsive.css +101 -101
- package/dist/styles/themes/dark.css +225 -210
- package/dist/styles/themes/high-contrast.css +378 -298
- package/dist/styles/themes/light.css +224 -209
- package/dist/styles/tokens/breakpoints.css +37 -37
- package/dist/styles/tokens/color.css +102 -102
- package/dist/styles/tokens/compatibility.css +33 -33
- package/dist/styles/tokens/elevation.css +33 -26
- package/dist/styles/tokens/index.css +9 -9
- package/dist/styles/tokens/motion.css +55 -36
- package/dist/styles/tokens/radius.css +26 -26
- package/dist/styles/tokens/spacing.css +56 -56
- package/dist/styles/tokens/typography.css +85 -85
- package/dist/styles/tokens/z-index.css +14 -14
- package/dist/styles/utilities/glass.css +97 -0
- package/dist/styles/utilities/layout.css +153 -153
- package/dist/styles/utilities/text.css +152 -152
- package/dist/styles/utilities/visibility.css +47 -47
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/NEETECHS_UI_UPGRADE_PLAN.md +312 -312
- package/docs/accessibility.md +218 -218
- package/docs/appearance-and-theming.md +150 -150
- package/docs/brand-palette.md +36 -36
- package/docs/component-architecture.md +137 -137
- package/docs/component-guidelines.md +64 -64
- package/docs/components.md +326 -321
- package/docs/content-and-terminology.md +207 -207
- package/docs/design-system-baseline-audit.md +226 -226
- package/docs/design-token-contract.md +279 -279
- package/docs/glass-and-motion.md +310 -0
- package/docs/localization-and-rtl.md +147 -147
- package/docs/migration.md +193 -193
- package/docs/page-patterns-and-workflows.md +301 -301
- package/docs/responsive-and-adaptive-design.md +351 -351
- package/docs/semantic-role-migration-audit.md +77 -77
- package/docs/site-chrome.md +320 -317
- package/docs/states-feedback-and-recovery.md +206 -206
- package/docs/theming.md +5 -5
- package/package.json +2 -1
- package/src/ai/ai-action-button/ai-action-button.css +271 -271
- package/src/ai/ai-approval-card/ai-approval-card.css +323 -323
- package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -447
- package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -380
- package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
- package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -295
- package/src/ai/ai-tool-call/ai-tool-call.css +256 -256
- package/src/ai/index.css +7 -7
- package/src/appearance/cache.ts +236 -236
- package/src/appearance/cookie.ts +184 -184
- package/src/appearance/index.ts +86 -86
- package/src/appearance/preference.ts +121 -121
- package/src/appearance/theme-controller.ts +384 -384
- package/src/appearance/types.ts +61 -61
- package/src/behaviors/announcer.ts +222 -222
- package/src/behaviors/calendar.ts +92 -92
- package/src/behaviors/data-grid.ts +133 -133
- package/src/behaviors/dialog.ts +203 -203
- package/src/behaviors/direction.ts +34 -34
- package/src/behaviors/drawer.ts +210 -210
- package/src/behaviors/dropdown.ts +344 -344
- package/src/behaviors/focus-trap.ts +304 -304
- package/src/behaviors/forms.ts +205 -205
- package/src/behaviors/ids.ts +47 -47
- package/src/behaviors/index.ts +1 -0
- package/src/behaviors/keyboard.ts +305 -305
- package/src/behaviors/overlay.ts +344 -344
- package/src/behaviors/selection-indicator.ts +162 -0
- package/src/behaviors/sidebar.ts +14 -4
- package/src/behaviors/state.ts +282 -282
- package/src/behaviors/tabs.ts +137 -137
- package/src/behaviors/viewport.ts +61 -61
- package/src/components/alert/alert.css +226 -226
- package/src/components/avatar/avatar.css +298 -298
- package/src/components/badge/badge.css +180 -180
- package/src/components/breadcrumb/breadcrumb.css +207 -207
- package/src/components/button/button.css +278 -278
- package/src/components/card/card.css +336 -284
- package/src/components/checkbox/checkbox.css +189 -189
- package/src/components/chip/chip.css +269 -269
- package/src/components/data-grid/data-grid.css +520 -520
- package/src/components/description-list/description-list.css +187 -187
- package/src/components/dialog/dialog.css +348 -339
- package/src/components/dock/dock.css +319 -0
- package/src/components/drawer/drawer.css +493 -484
- package/src/components/dropdown/dropdown.css +325 -316
- package/src/components/fab/fab.css +281 -0
- package/src/components/icon-button/icon-button.css +162 -162
- package/src/components/index.css +2 -0
- package/src/components/input/input.css +163 -163
- package/src/components/menu/menu.css +315 -315
- package/src/components/pagination/pagination.css +250 -250
- package/src/components/panel/panel.css +316 -284
- package/src/components/popover/popover.css +22 -0
- package/src/components/progress/progress.css +268 -268
- package/src/components/radio/radio.css +166 -166
- package/src/components/segmented-control/segmented-control.css +264 -205
- package/src/components/select/select.css +117 -117
- package/src/components/skeleton/skeleton.css +267 -267
- package/src/components/split-button/split-button.css +292 -292
- package/src/components/stat/stat.css +433 -433
- package/src/components/switch/switch.css +195 -195
- package/src/components/table/table.css +220 -220
- package/src/components/tabs/tabs.css +393 -293
- package/src/components/textarea/textarea.css +86 -86
- package/src/components/toast/toast.css +345 -345
- package/src/components/tooltip/tooltip.css +267 -258
- package/src/domain/billing/index.css +629 -629
- package/src/domain/calendar/agenda-list/agenda-list.css +224 -224
- package/src/domain/calendar/day-slice/day-slice.css +384 -384
- package/src/domain/calendar/day-timeline/day-timeline.css +332 -332
- package/src/domain/calendar/event-card/event-card.css +338 -338
- package/src/domain/calendar/index.css +5 -5
- package/src/domain/calendar/month-grid/month-grid.css +426 -426
- package/src/domain/calendar/week-grid/week-grid.css +487 -480
- package/src/domain/companies/index.css +526 -526
- package/src/domain/index.css +3 -3
- package/src/index.css +5 -5
- package/src/index.ts +7 -7
- package/src/localization/index.ts +56 -56
- package/src/patterns/command-palette/command-palette.css +488 -447
- package/src/patterns/company-switcher/company-switcher.css +390 -390
- package/src/patterns/content-state/content-state.css +236 -236
- package/src/patterns/empty-state/empty-state.css +260 -260
- package/src/patterns/error-state/error-state.css +272 -272
- package/src/patterns/form-layout/form-layout.css +106 -106
- package/src/patterns/loading-state/loading-state.css +287 -287
- package/src/patterns/master-detail/master-detail.css +103 -103
- package/src/patterns/notification-center/notification-center.css +443 -443
- package/src/patterns/page/page.css +303 -303
- package/src/patterns/profile-menu/profile-menu.css +298 -298
- package/src/patterns/record-list/record-list.css +302 -302
- package/src/patterns/search-bar/search-bar.css +457 -457
- package/src/patterns/settings-layout/settings-layout.css +283 -283
- package/src/patterns/workflow/workflow.css +168 -168
- package/src/shell/app-shell/app-shell.css +429 -211
- package/src/shell/content-frame/content-frame.css +93 -93
- package/src/shell/header/header.css +328 -328
- package/src/shell/index.css +8 -8
- package/src/shell/mobile-nav/mobile-nav.css +254 -254
- package/src/shell/sidebar/sidebar.css +923 -314
- package/src/styles/accessibility.css +150 -150
- package/src/styles/animations/motion.css +162 -162
- package/src/styles/appearance/accent.css +215 -215
- package/src/styles/appearance/density.css +61 -61
- package/src/styles/appearance/motion.css +48 -40
- package/src/styles/base.css +83 -83
- package/src/styles/index.css +29 -28
- package/src/styles/localization.css +56 -56
- package/src/styles/reset.css +51 -51
- package/src/styles/responsive.css +101 -101
- package/src/styles/themes/dark.css +225 -210
- package/src/styles/themes/high-contrast.css +378 -298
- package/src/styles/themes/light.css +224 -209
- package/src/styles/tokens/breakpoints.css +37 -37
- package/src/styles/tokens/color.css +102 -102
- package/src/styles/tokens/compatibility.css +33 -33
- package/src/styles/tokens/elevation.css +33 -26
- package/src/styles/tokens/index.css +9 -9
- package/src/styles/tokens/motion.css +55 -36
- package/src/styles/tokens/radius.css +26 -26
- package/src/styles/tokens/spacing.css +56 -56
- package/src/styles/tokens/typography.css +85 -85
- package/src/styles/tokens/z-index.css +14 -14
- package/src/styles/utilities/glass.css +97 -0
- package/src/styles/utilities/layout.css +153 -153
- package/src/styles/utilities/text.css +152 -152
- package/src/styles/utilities/visibility.css +47 -47
- package/src/types/index.ts +126 -126
- package/src/version.ts +1 -1
package/docs/components.md
CHANGED
|
@@ -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
|
-
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<span class="nt-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
</
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
<
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<
|
|
162
|
-
</
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
(
|
|
190
|
-
`
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
</
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
</div>
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
`
|
|
272
|
-
(
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
|
286
|
-
|
|
287
|
-
|
|
|
288
|
-
|
|
|
289
|
-
|
|
|
290
|
-
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
|
298
|
-
|
|
299
|
-
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
`
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
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.
|