@neetechs/ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/components/alert/alert.css +6 -0
- package/dist/components/avatar/avatar.css +78 -0
- package/dist/components/badge/badge.css +9 -3
- package/dist/components/button/button.css +40 -0
- package/dist/components/card/card.css +19 -0
- package/dist/components/choice-card/choice-card.css +244 -0
- package/dist/components/disclosure/disclosure.css +154 -0
- package/dist/components/index.css +2 -0
- package/dist/components/progress/progress.css +12 -0
- package/dist/components/stat/stat.css +30 -0
- package/dist/domain/billing/index.css +6 -6
- package/dist/patterns/document-preview/document-preview.css +169 -0
- package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
- package/dist/patterns/index.css +4 -0
- package/dist/patterns/profile-header/profile-header.css +205 -0
- package/dist/patterns/resource-card/resource-card.css +258 -0
- package/dist/patterns/settings-layout/settings-layout.css +133 -0
- package/dist/shell/navbar/navbar.css +28 -1
- package/dist/styles/themes/dark.css +8 -0
- package/dist/styles/themes/high-contrast.css +8 -0
- package/dist/styles/themes/light.css +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/NEETECHS_UI_UPGRADE_PLAN.md +121 -1
- package/docs/components.md +148 -0
- package/docs/page-patterns-and-workflows.md +27 -1
- package/docs/site-chrome.md +4 -0
- package/package.json +1 -1
- package/src/components/alert/alert.css +6 -0
- package/src/components/avatar/avatar.css +78 -0
- package/src/components/badge/badge.css +9 -3
- package/src/components/button/button.css +40 -0
- package/src/components/card/card.css +19 -0
- package/src/components/choice-card/choice-card.css +244 -0
- package/src/components/disclosure/disclosure.css +154 -0
- package/src/components/index.css +2 -0
- package/src/components/progress/progress.css +12 -0
- package/src/components/stat/stat.css +30 -0
- package/src/domain/billing/index.css +6 -6
- package/src/patterns/document-preview/document-preview.css +169 -0
- package/src/patterns/editor-workspace/editor-workspace.css +276 -0
- package/src/patterns/index.css +4 -0
- package/src/patterns/profile-header/profile-header.css +205 -0
- package/src/patterns/resource-card/resource-card.css +258 -0
- package/src/patterns/settings-layout/settings-layout.css +133 -0
- package/src/shell/navbar/navbar.css +28 -1
- package/src/styles/themes/dark.css +8 -0
- package/src/styles/themes/high-contrast.css +8 -0
- package/src/styles/themes/light.css +8 -0
- package/src/version.ts +1 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Profile header: identity at the top of a profile, account, company, or
|
|
3
|
+
* contact page. Distilled from MyAccount: a large (optionally editable)
|
|
4
|
+
* avatar, name with handle, headline and detail line, a completion meter,
|
|
5
|
+
* contextual inline actions for missing information ("Add headline" as
|
|
6
|
+
* .nt-button--link), primary actions, and an optional aside for a
|
|
7
|
+
* promotional or next-step card. Lays out from its own width.
|
|
8
|
+
*
|
|
9
|
+
* Markup: <header class="nt-profile-header">
|
|
10
|
+
* <div class="nt-profile-header__identity">
|
|
11
|
+
* <span class="nt-avatar nt-avatar--2xl nt-avatar--rounded">…</span>
|
|
12
|
+
* <div class="nt-profile-header__main">
|
|
13
|
+
* <div class="nt-profile-header__name-row">
|
|
14
|
+
* <h1 class="nt-profile-header__name">…</h1>
|
|
15
|
+
* <span class="nt-profile-header__handle">@…</span>
|
|
16
|
+
* </div>
|
|
17
|
+
* <p class="nt-profile-header__headline">…</p>
|
|
18
|
+
* <ul class="nt-profile-header__details"><li>…</li></ul>
|
|
19
|
+
* <div class="nt-profile-header__completion">nt-progress</div>
|
|
20
|
+
* </div>
|
|
21
|
+
* </div>
|
|
22
|
+
* <div class="nt-profile-header__side">
|
|
23
|
+
* <div class="nt-profile-header__actions">…</div>
|
|
24
|
+
* <div class="nt-profile-header__aside">…</div>
|
|
25
|
+
* </div>
|
|
26
|
+
* </header>
|
|
27
|
+
*
|
|
28
|
+
* The root wraps intrinsically: the side column moves under the identity
|
|
29
|
+
* when both no longer fit side by side; descendants then re-align through
|
|
30
|
+
* the nt-profile-header container query.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
.nt-profile-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
align-items: flex-start;
|
|
37
|
+
gap: var(--nt-space-4) var(--nt-space-6);
|
|
38
|
+
min-width: 0;
|
|
39
|
+
container-type: inline-size;
|
|
40
|
+
container-name: nt-profile-header;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Sizes */
|
|
44
|
+
|
|
45
|
+
.nt-profile-header--compact {
|
|
46
|
+
gap: var(--nt-space-2) var(--nt-space-4);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nt-profile-header--compact .nt-profile-header__identity {
|
|
50
|
+
gap: var(--nt-space-3);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nt-profile-header--compact .nt-profile-header__name {
|
|
54
|
+
font: var(--nt-text-title-lg);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Variants */
|
|
58
|
+
|
|
59
|
+
.nt-profile-header--surface {
|
|
60
|
+
padding: var(--nt-density-card-padding);
|
|
61
|
+
border: 1px solid var(--nt-border-subtle);
|
|
62
|
+
border-radius: var(--nt-radius-panel);
|
|
63
|
+
background: var(--nt-bg-surface);
|
|
64
|
+
box-shadow: var(--nt-elevation-card);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Internals */
|
|
68
|
+
|
|
69
|
+
.nt-profile-header__identity {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex: 999 1 24rem;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
gap: var(--nt-space-4);
|
|
74
|
+
min-width: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.nt-profile-header__main {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex: 1 1 auto;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: var(--nt-space-1-5);
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nt-profile-header__name-row {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-wrap: wrap;
|
|
88
|
+
align-items: baseline;
|
|
89
|
+
gap: var(--nt-space-1) var(--nt-space-2-5);
|
|
90
|
+
min-width: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.nt-profile-header__name {
|
|
94
|
+
margin: 0;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
color: var(--nt-text-primary);
|
|
97
|
+
font-family: var(--nt-font-sans);
|
|
98
|
+
font-size: clamp(var(--nt-font-size-title-lg), calc(var(--nt-font-size-title-sm) + 1.2vw), var(--nt-font-size-heading-md));
|
|
99
|
+
font-weight: var(--nt-font-weight-bold);
|
|
100
|
+
line-height: var(--nt-line-height-heading-sm);
|
|
101
|
+
letter-spacing: var(--nt-letter-spacing-heading);
|
|
102
|
+
overflow-wrap: anywhere;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.nt-profile-header__handle {
|
|
106
|
+
color: var(--nt-text-secondary);
|
|
107
|
+
font: var(--nt-text-label-md);
|
|
108
|
+
unicode-bidi: plaintext;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nt-profile-header__headline {
|
|
112
|
+
margin: 0;
|
|
113
|
+
color: var(--nt-text-secondary);
|
|
114
|
+
font: var(--nt-text-body-md);
|
|
115
|
+
overflow-wrap: anywhere;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Detail line: location, organization, member since. Separators are
|
|
119
|
+
* generated with empty alternative text so they are not announced. */
|
|
120
|
+
.nt-profile-header__details {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-wrap: wrap;
|
|
123
|
+
align-items: center;
|
|
124
|
+
gap: var(--nt-space-1) var(--nt-space-2);
|
|
125
|
+
margin: 0;
|
|
126
|
+
padding: 0;
|
|
127
|
+
color: var(--nt-text-muted);
|
|
128
|
+
font: var(--nt-text-body-sm);
|
|
129
|
+
list-style: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.nt-profile-header__details > li {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: var(--nt-space-1-5);
|
|
136
|
+
min-width: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.nt-profile-header__details > li + li::before {
|
|
140
|
+
margin-inline-end: var(--nt-space-0-5);
|
|
141
|
+
color: var(--nt-text-subtle);
|
|
142
|
+
content: '·' / '';
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.nt-profile-header__completion {
|
|
146
|
+
width: min(100%, 18rem);
|
|
147
|
+
margin-block-start: var(--nt-space-1);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.nt-profile-header__side {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex: 1 1 22rem;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
align-items: flex-end;
|
|
155
|
+
gap: var(--nt-space-3);
|
|
156
|
+
min-width: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.nt-profile-header__actions {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-wrap: wrap;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: flex-end;
|
|
164
|
+
gap: var(--nt-space-2);
|
|
165
|
+
min-width: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.nt-profile-header__actions:empty,
|
|
169
|
+
.nt-profile-header__aside:empty,
|
|
170
|
+
.nt-profile-header__side:empty {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nt-profile-header__aside {
|
|
175
|
+
width: min(100%, 22rem);
|
|
176
|
+
min-width: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Once the side column has wrapped under the identity, align it to the
|
|
180
|
+
* start like the rest of the header. */
|
|
181
|
+
@container nt-profile-header (max-width: 48rem) {
|
|
182
|
+
.nt-profile-header__side {
|
|
183
|
+
align-items: stretch;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.nt-profile-header__actions {
|
|
187
|
+
justify-content: flex-start;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.nt-profile-header__aside {
|
|
191
|
+
width: min(100%, 32rem);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Narrow: the avatar sits above the text. */
|
|
196
|
+
@container nt-profile-header (max-width: 30rem) {
|
|
197
|
+
.nt-profile-header__identity {
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
gap: var(--nt-space-3);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.nt-profile-header__completion {
|
|
203
|
+
width: 100%;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Resource card: one connected or owned thing with its own status and
|
|
3
|
+
* actions: AI provider connections, connected accounts, integrations,
|
|
4
|
+
* uploaded documents, API keys, devices, payment methods. Distilled from
|
|
5
|
+
* MyAccount's provider cards and CV library cards: an identity tile, title
|
|
6
|
+
* with inline badges, an end-aligned status, a compact facts row, and an
|
|
7
|
+
* action row. The "in use" card is marked with a selection ring.
|
|
8
|
+
*
|
|
9
|
+
* Markup: <article class="nt-resource-card">
|
|
10
|
+
* <div class="nt-resource-card__header">
|
|
11
|
+
* <span class="nt-resource-card__media" aria-hidden="true">OA</span>
|
|
12
|
+
* <div class="nt-resource-card__main">
|
|
13
|
+
* <div class="nt-resource-card__title-row">
|
|
14
|
+
* <h3 class="nt-resource-card__title">OpenAI</h3>
|
|
15
|
+
* </div>
|
|
16
|
+
* <p class="nt-resource-card__description">…</p>
|
|
17
|
+
* </div>
|
|
18
|
+
* <span class="nt-resource-card__status">nt-badge</span>
|
|
19
|
+
* </div>
|
|
20
|
+
* <dl class="nt-description-list nt-description-list--boxed nt-description-list--compact">…</dl>
|
|
21
|
+
* <div class="nt-resource-card__actions">…</div>
|
|
22
|
+
* </article>
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
.nt-resource-card {
|
|
26
|
+
--nt-resource-card-media-bg: var(--nt-accent-subtle);
|
|
27
|
+
--nt-resource-card-media-fg: var(--nt-accent-text);
|
|
28
|
+
|
|
29
|
+
position: relative;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: var(--nt-space-4);
|
|
33
|
+
min-width: 0;
|
|
34
|
+
padding: var(--nt-density-card-padding);
|
|
35
|
+
border: 1px solid var(--nt-border-subtle);
|
|
36
|
+
border-radius: var(--nt-radius-card);
|
|
37
|
+
background: var(--nt-bg-surface);
|
|
38
|
+
color: var(--nt-text-primary);
|
|
39
|
+
box-shadow: var(--nt-elevation-card);
|
|
40
|
+
container-type: inline-size;
|
|
41
|
+
container-name: nt-resource-card;
|
|
42
|
+
transition: var(--nt-transition-colors);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nt-resource-card:hover {
|
|
46
|
+
border-color: var(--nt-border-strong);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nt-resource-card:focus-within {
|
|
50
|
+
border-color: var(--nt-border-strong);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Current: the resource in use (default provider, primary CV). */
|
|
54
|
+
.nt-resource-card--current,
|
|
55
|
+
.nt-resource-card[aria-current='true'] {
|
|
56
|
+
border-color: var(--nt-selection-border);
|
|
57
|
+
box-shadow: 0 0 0 1px var(--nt-selection-border), var(--nt-elevation-card);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Unavailable resources stay readable; actions inside should be disabled. */
|
|
61
|
+
.nt-resource-card--unavailable {
|
|
62
|
+
--nt-resource-card-media-bg: var(--nt-bg-surface-muted);
|
|
63
|
+
--nt-resource-card-media-fg: var(--nt-text-secondary);
|
|
64
|
+
|
|
65
|
+
background: var(--nt-bg-surface-muted);
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nt-resource-card--unavailable .nt-resource-card__description {
|
|
70
|
+
color: var(--nt-text-secondary);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Sizes */
|
|
74
|
+
|
|
75
|
+
.nt-resource-card--compact {
|
|
76
|
+
gap: var(--nt-space-3);
|
|
77
|
+
padding: var(--nt-space-3);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nt-resource-card--compact .nt-resource-card__media {
|
|
81
|
+
width: var(--nt-control-height-md);
|
|
82
|
+
height: var(--nt-control-height-md);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Variants */
|
|
86
|
+
|
|
87
|
+
.nt-resource-card--warning {
|
|
88
|
+
--nt-resource-card-media-bg: var(--nt-warning-bg);
|
|
89
|
+
--nt-resource-card-media-fg: var(--nt-warning-text);
|
|
90
|
+
|
|
91
|
+
border-color: var(--nt-warning-border);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nt-resource-card--danger {
|
|
95
|
+
--nt-resource-card-media-bg: var(--nt-danger-bg);
|
|
96
|
+
--nt-resource-card-media-fg: var(--nt-danger-text);
|
|
97
|
+
|
|
98
|
+
border-color: var(--nt-danger-border);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.nt-resource-card--success {
|
|
102
|
+
--nt-resource-card-media-bg: var(--nt-success-bg);
|
|
103
|
+
--nt-resource-card-media-fg: var(--nt-success-text);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.nt-resource-card--flat {
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Internals */
|
|
111
|
+
|
|
112
|
+
.nt-resource-card__header {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: flex-start;
|
|
115
|
+
gap: var(--nt-space-3);
|
|
116
|
+
min-width: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Identity tile: initials, a logo, or an icon. */
|
|
120
|
+
.nt-resource-card__media {
|
|
121
|
+
display: inline-flex;
|
|
122
|
+
flex: 0 0 auto;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
width: var(--nt-control-height-lg);
|
|
126
|
+
height: var(--nt-control-height-lg);
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
border-radius: var(--nt-radius-item);
|
|
129
|
+
background: var(--nt-resource-card-media-bg);
|
|
130
|
+
color: var(--nt-resource-card-media-fg);
|
|
131
|
+
font: var(--nt-text-label-lg);
|
|
132
|
+
font-weight: var(--nt-font-weight-bold);
|
|
133
|
+
text-transform: uppercase;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.nt-resource-card__media > :is(img, svg) {
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
object-fit: contain;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.nt-resource-card__media > svg {
|
|
143
|
+
width: var(--nt-icon-size-md);
|
|
144
|
+
height: var(--nt-icon-size-md);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Document tile: a portrait page for files (CVs, invoices, contracts). */
|
|
148
|
+
.nt-resource-card__media--document {
|
|
149
|
+
width: var(--nt-control-height-lg);
|
|
150
|
+
height: calc(var(--nt-control-height-lg) * 1.25);
|
|
151
|
+
border: 1px solid var(--nt-border-muted);
|
|
152
|
+
border-radius: var(--nt-radius-control);
|
|
153
|
+
background: var(--nt-bg-surface-muted);
|
|
154
|
+
color: var(--nt-accent-text);
|
|
155
|
+
font: var(--nt-text-label-sm);
|
|
156
|
+
font-weight: var(--nt-font-weight-bold);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.nt-resource-card__main {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex: 1 1 auto;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: var(--nt-space-1);
|
|
164
|
+
min-width: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nt-resource-card__title-row {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-wrap: wrap;
|
|
170
|
+
align-items: center;
|
|
171
|
+
gap: var(--nt-space-1) var(--nt-space-2);
|
|
172
|
+
min-width: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.nt-resource-card__title {
|
|
176
|
+
margin: 0;
|
|
177
|
+
min-width: 0;
|
|
178
|
+
color: var(--nt-text-primary);
|
|
179
|
+
font: var(--nt-text-title-sm);
|
|
180
|
+
letter-spacing: var(--nt-letter-spacing-title);
|
|
181
|
+
overflow-wrap: anywhere;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.nt-resource-card__description {
|
|
185
|
+
margin: 0;
|
|
186
|
+
color: var(--nt-text-muted);
|
|
187
|
+
font: var(--nt-text-body-sm);
|
|
188
|
+
overflow-wrap: anywhere;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nt-resource-card__status {
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
flex: 0 0 auto;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: var(--nt-space-2);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.nt-resource-card__actions {
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-wrap: wrap;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: var(--nt-space-2);
|
|
203
|
+
min-width: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* A destructive or overflow action pushed to the end of the row. */
|
|
207
|
+
.nt-resource-card__actions-end {
|
|
208
|
+
margin-inline-start: auto;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.nt-resource-card__footer {
|
|
212
|
+
margin: 0;
|
|
213
|
+
padding-block-start: var(--nt-space-3);
|
|
214
|
+
border-block-start: 1px solid var(--nt-border-subtle);
|
|
215
|
+
color: var(--nt-text-muted);
|
|
216
|
+
font: var(--nt-text-caption);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Card collection: as many cards per row as fit. */
|
|
220
|
+
.nt-resource-card-grid {
|
|
221
|
+
display: grid;
|
|
222
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
|
|
223
|
+
gap: var(--nt-space-4);
|
|
224
|
+
min-width: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nt-resource-card-list {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: var(--nt-space-3);
|
|
231
|
+
min-width: 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Narrow card: status takes its own row; actions fill the width. */
|
|
235
|
+
@container nt-resource-card (max-width: 26rem) {
|
|
236
|
+
.nt-resource-card__header {
|
|
237
|
+
flex-wrap: wrap;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.nt-resource-card__status {
|
|
241
|
+
order: 1;
|
|
242
|
+
flex-basis: 100%;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.nt-resource-card__actions > :is(.nt-button, a.nt-button) {
|
|
246
|
+
flex: 1 1 100%;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.nt-resource-card__actions-end {
|
|
250
|
+
margin-inline-start: 0;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@media (prefers-reduced-motion: reduce) {
|
|
255
|
+
.nt-resource-card {
|
|
256
|
+
transition: none !important;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.nt-settings-layout__nav-item {
|
|
25
|
+
position: relative;
|
|
25
26
|
display: flex;
|
|
26
27
|
align-items: center;
|
|
27
28
|
gap: var(--nt-space-2);
|
|
@@ -53,6 +54,110 @@
|
|
|
53
54
|
color: var(--nt-selection-fg);
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
/* In-page section navigation (profile sections, long settings pages)
|
|
58
|
+
* marks the current section with aria-current="true" or "location". */
|
|
59
|
+
.nt-settings-layout__nav-item:is([aria-current='true'], [aria-current='location'], [aria-current='step']) {
|
|
60
|
+
background: var(--nt-selection-bg);
|
|
61
|
+
border-color: var(--nt-selection-border);
|
|
62
|
+
color: var(--nt-selection-fg);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Current indicator: an inline-start bar that grows in, so the current
|
|
66
|
+
* section is identifiable without color. */
|
|
67
|
+
.nt-settings-layout__nav-item::before {
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset-block: var(--nt-space-2);
|
|
70
|
+
inset-inline-start: calc(var(--nt-space-px) * -1);
|
|
71
|
+
width: var(--nt-space-1);
|
|
72
|
+
border-radius: var(--nt-radius-pill);
|
|
73
|
+
background: var(--nt-selection-indicator);
|
|
74
|
+
content: '';
|
|
75
|
+
opacity: 0;
|
|
76
|
+
transform: scaleY(0.4);
|
|
77
|
+
transition:
|
|
78
|
+
opacity var(--nt-duration-fast) var(--nt-ease-standard),
|
|
79
|
+
transform var(--nt-duration-normal) var(--nt-ease-emphasized);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nt-settings-layout__nav-item:is([aria-current='page'], [aria-current='true'], [aria-current='location'], [aria-current='step'], .nt-settings-layout__nav-item--active)::before {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transform: scaleY(1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nt-settings-layout__nav-label {
|
|
88
|
+
flex: 1 1 auto;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
overflow-wrap: anywhere;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Section status (profile completeness, configuration needed). Decorative:
|
|
94
|
+
* put the meaning in text too, for example a visually hidden "Complete". */
|
|
95
|
+
.nt-settings-layout__nav-status {
|
|
96
|
+
flex: 0 0 auto;
|
|
97
|
+
width: var(--nt-space-2);
|
|
98
|
+
height: var(--nt-space-2);
|
|
99
|
+
border: 1px solid var(--nt-border-strong);
|
|
100
|
+
border-radius: var(--nt-radius-pill);
|
|
101
|
+
background: transparent;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.nt-settings-layout__nav-status--complete {
|
|
105
|
+
border-color: var(--nt-success);
|
|
106
|
+
background: var(--nt-success);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nt-settings-layout__nav-status--attention {
|
|
110
|
+
border-color: var(--nt-warning);
|
|
111
|
+
background: var(--nt-warning);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.nt-settings-layout__nav-status--error {
|
|
115
|
+
border-color: var(--nt-danger);
|
|
116
|
+
background: var(--nt-danger);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.nt-settings-layout__nav-count {
|
|
120
|
+
flex: 0 0 auto;
|
|
121
|
+
color: var(--nt-text-muted);
|
|
122
|
+
font: var(--nt-text-label-sm);
|
|
123
|
+
font-variant-numeric: tabular-nums;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Grouped navigation with headings. */
|
|
127
|
+
.nt-settings-layout__nav-group {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
gap: var(--nt-space-1);
|
|
131
|
+
min-width: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.nt-settings-layout__nav-group + .nt-settings-layout__nav-group {
|
|
135
|
+
margin-block-start: var(--nt-space-3);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nt-settings-layout__nav-title {
|
|
139
|
+
margin: 0;
|
|
140
|
+
padding: var(--nt-space-1) var(--nt-space-3);
|
|
141
|
+
color: var(--nt-text-muted);
|
|
142
|
+
font: var(--nt-text-label-sm);
|
|
143
|
+
letter-spacing: var(--nt-letter-spacing-wide);
|
|
144
|
+
text-transform: uppercase;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Surface navigation: the nav sits on its own card. */
|
|
148
|
+
.nt-settings-layout__nav--surface {
|
|
149
|
+
padding: var(--nt-space-2);
|
|
150
|
+
border: 1px solid var(--nt-border-subtle);
|
|
151
|
+
border-radius: var(--nt-radius-panel);
|
|
152
|
+
background: var(--nt-bg-surface);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Sticky navigation beside long content (wide layouts only). */
|
|
156
|
+
.nt-settings-layout--sticky-nav .nt-settings-layout__nav {
|
|
157
|
+
position: sticky;
|
|
158
|
+
top: calc(var(--nt-header-height) + var(--nt-space-3));
|
|
159
|
+
}
|
|
160
|
+
|
|
56
161
|
.nt-settings-layout__content {
|
|
57
162
|
display: flex;
|
|
58
163
|
flex-direction: column;
|
|
@@ -66,6 +171,27 @@
|
|
|
66
171
|
gap: var(--nt-space-5);
|
|
67
172
|
}
|
|
68
173
|
|
|
174
|
+
.nt-settings-layout--sticky-nav .nt-settings-layout__nav {
|
|
175
|
+
position: static;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.nt-settings-layout__nav-group + .nt-settings-layout__nav-group {
|
|
179
|
+
margin-block-start: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Row mode: the indicator moves under the label. */
|
|
183
|
+
.nt-settings-layout__nav-item::before {
|
|
184
|
+
inset-block: auto calc(var(--nt-space-px) * -1);
|
|
185
|
+
inset-inline: var(--nt-space-2);
|
|
186
|
+
width: auto;
|
|
187
|
+
height: var(--nt-space-0-5);
|
|
188
|
+
transform: scaleX(0.4);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nt-settings-layout__nav-item:is([aria-current='page'], [aria-current='true'], [aria-current='location'], [aria-current='step'], .nt-settings-layout__nav-item--active)::before {
|
|
192
|
+
transform: scaleX(1);
|
|
193
|
+
}
|
|
194
|
+
|
|
69
195
|
.nt-settings-layout__nav {
|
|
70
196
|
flex-direction: row;
|
|
71
197
|
gap: var(--nt-space-2);
|
|
@@ -148,3 +274,10 @@
|
|
|
148
274
|
color: var(--nt-text-muted);
|
|
149
275
|
font: var(--nt-text-body-sm);
|
|
150
276
|
}
|
|
277
|
+
|
|
278
|
+
@media (prefers-reduced-motion: reduce) {
|
|
279
|
+
.nt-settings-layout__nav-item,
|
|
280
|
+
.nt-settings-layout__nav-item::before {
|
|
281
|
+
transition: none !important;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
.nt-navbar__link,
|
|
38
38
|
.nt-navbar__trigger {
|
|
39
|
+
position: relative;
|
|
39
40
|
display: inline-flex;
|
|
40
41
|
align-items: center;
|
|
41
42
|
gap: var(--nt-space-1-5);
|
|
@@ -75,7 +76,31 @@
|
|
|
75
76
|
.nt-navbar__link--active,
|
|
76
77
|
.nt-navbar__item--active > .nt-navbar__trigger {
|
|
77
78
|
color: var(--nt-text-primary);
|
|
78
|
-
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Underline indicator: grows from the center. Hover previews it in a
|
|
82
|
+
* neutral tone; the current page keeps it in the accent. */
|
|
83
|
+
:is(.nt-navbar__link, .nt-navbar__trigger)::after {
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset-inline: var(--nt-space-2);
|
|
86
|
+
inset-block-end: calc(var(--nt-space-px) * -1);
|
|
87
|
+
height: var(--nt-space-0-5);
|
|
88
|
+
border-radius: var(--nt-radius-pill);
|
|
89
|
+
background: var(--nt-border-strong);
|
|
90
|
+
content: '';
|
|
91
|
+
transform: scaleX(0);
|
|
92
|
+
transition:
|
|
93
|
+
transform var(--nt-duration-normal) var(--nt-ease-emphasized),
|
|
94
|
+
background-color var(--nt-duration-fast) var(--nt-ease-standard);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.nt-navbar__link:hover::after {
|
|
98
|
+
transform: scaleX(1);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:is(.nt-navbar__link[aria-current='page'], .nt-navbar__link--active, .nt-navbar__item--active > .nt-navbar__trigger)::after {
|
|
102
|
+
background: var(--nt-accent);
|
|
103
|
+
transform: scaleX(1);
|
|
79
104
|
}
|
|
80
105
|
|
|
81
106
|
.nt-navbar__trigger[aria-expanded='true'] {
|
|
@@ -244,6 +269,8 @@
|
|
|
244
269
|
}
|
|
245
270
|
|
|
246
271
|
@media (prefers-reduced-motion: reduce) {
|
|
272
|
+
.nt-navbar__link::after,
|
|
273
|
+
.nt-navbar__trigger::after,
|
|
247
274
|
.nt-navbar__link,
|
|
248
275
|
.nt-navbar__trigger,
|
|
249
276
|
.nt-navbar__chevron,
|
|
@@ -199,4 +199,12 @@
|
|
|
199
199
|
--nt-status-paid: var(--nt-success);
|
|
200
200
|
--nt-status-overdue: var(--nt-danger);
|
|
201
201
|
--nt-status-failed: var(--nt-danger);
|
|
202
|
+
|
|
203
|
+
/* Document preview: printed paper stays paper-colored in every theme;
|
|
204
|
+
* only the surrounding canvas follows the theme. */
|
|
205
|
+
--nt-document-canvas: #162033;
|
|
206
|
+
--nt-document-paper: #ffffff;
|
|
207
|
+
--nt-document-ink: #141b24;
|
|
208
|
+
--nt-document-ink-muted: #46505e;
|
|
209
|
+
--nt-document-rule: #c3cad4;
|
|
202
210
|
}
|
|
@@ -198,6 +198,14 @@
|
|
|
198
198
|
--nt-status-paid: var(--nt-success);
|
|
199
199
|
--nt-status-overdue: var(--nt-danger);
|
|
200
200
|
--nt-status-failed: var(--nt-danger);
|
|
201
|
+
|
|
202
|
+
/* Document preview: printed paper stays paper-colored in every theme;
|
|
203
|
+
* only the surrounding canvas follows the theme. */
|
|
204
|
+
--nt-document-canvas: #000000;
|
|
205
|
+
--nt-document-paper: #ffffff;
|
|
206
|
+
--nt-document-ink: #000000;
|
|
207
|
+
--nt-document-ink-muted: #000000;
|
|
208
|
+
--nt-document-rule: #000000;
|
|
201
209
|
}
|
|
202
210
|
|
|
203
211
|
/*
|
|
@@ -198,4 +198,12 @@
|
|
|
198
198
|
--nt-status-paid: var(--nt-success);
|
|
199
199
|
--nt-status-overdue: var(--nt-danger);
|
|
200
200
|
--nt-status-failed: var(--nt-danger);
|
|
201
|
+
|
|
202
|
+
/* Document preview: printed paper stays paper-colored in every theme;
|
|
203
|
+
* only the surrounding canvas follows the theme. */
|
|
204
|
+
--nt-document-canvas: #cbd5e1;
|
|
205
|
+
--nt-document-paper: #ffffff;
|
|
206
|
+
--nt-document-ink: #141b24;
|
|
207
|
+
--nt-document-ink-muted: #46505e;
|
|
208
|
+
--nt-document-rule: #c3cad4;
|
|
201
209
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const NEETECHS_UI_VERSION = "0.
|
|
1
|
+
export declare const NEETECHS_UI_VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|