@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
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,41 @@ out explicitly and ship with compatibility aliases where feasible.
|
|
|
8
8
|
Releases are cut by `semantic-release` from Conventional Commits, but only
|
|
9
9
|
when the package owner manually runs the release workflow with `publish: true`.
|
|
10
10
|
|
|
11
|
+
## Unreleased
|
|
12
|
+
|
|
13
|
+
Additive changes on top of the published 0.1.0 contract (no classes, tokens,
|
|
14
|
+
exports, or behaviors removed).
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- MyAccount-referenced patterns (see `docs/NEETECHS_UI_UPGRADE_PLAN.md`):
|
|
18
|
+
- Profile header `.nt-profile-header` (`patterns/profile-header.css`): identity, handle,
|
|
19
|
+
headline, detail line, completion meter, side column with actions and a next-step card.
|
|
20
|
+
- Resource card `.nt-resource-card` + `.nt-resource-card-grid`/`-list`
|
|
21
|
+
(`patterns/resource-card.css`) for providers, connected accounts, files, and keys.
|
|
22
|
+
- Editor workspace `.nt-editor-workspace`, `.nt-editor-pane`, `.nt-editor-status`
|
|
23
|
+
(`patterns/editor-workspace.css`) and document preview `.nt-document-preview`
|
|
24
|
+
(`patterns/document-preview.css`) with print geometry.
|
|
25
|
+
- Choice card `.nt-choice-card` + `.nt-choice-group` (`components/choice-card.css`).
|
|
26
|
+
- Disclosure `.nt-disclosure` + `.nt-disclosure-group` (`components/disclosure.css`).
|
|
27
|
+
- `.nt-button--link`, `.nt-avatar--2xl`, `.nt-avatar--editable` + `__overlay`,
|
|
28
|
+
`.nt-badge--info`, `.nt-card--edge`, `.nt-progress--reveal`, `.nt-stat--split`
|
|
29
|
+
(`__body`, `__aside`).
|
|
30
|
+
- Settings navigation: current-item bar, `aria-current="true"|"location"|"step"`,
|
|
31
|
+
`__nav-label`, `__nav-status` (`--complete`, `--attention`, `--error`), `__nav-count`,
|
|
32
|
+
`__nav-group`, `__nav-title`, `__nav--surface`, `.nt-settings-layout--sticky-nav`.
|
|
33
|
+
- Tokens (all three themes): `--nt-document-canvas`, `--nt-document-paper`,
|
|
34
|
+
`--nt-document-ink`, `--nt-document-ink-muted`, `--nt-document-rule`.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
- Navbar current and hover indicator is an underline that grows from the center (it was
|
|
38
|
+
an instant inset shadow).
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
- Light-theme contrast: descriptions in tinted alerts and eyebrow/subtitle/meta text in
|
|
42
|
+
muted or tinted cards now use secondary text (muted text measured 4.23–4.34:1 there).
|
|
43
|
+
- `.nt-badge--neutral` and the base/draft `.nt-billing-status` use the neutral tone roles
|
|
44
|
+
(muted text on the muted surface measured 4.34:1 in the light theme).
|
|
45
|
+
|
|
11
46
|
## 0.1.0 — 2026-11-15
|
|
12
47
|
|
|
13
48
|
### Added
|
|
@@ -140,6 +140,12 @@
|
|
|
140
140
|
color: var(--nt-accent);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
/* Muted text steps up to secondary on tinted alerts so descriptions keep
|
|
144
|
+
* 4.5:1 contrast in the light theme. Outline alerts keep muted text. */
|
|
145
|
+
:is(.nt-alert--info, .nt-alert--success, .nt-alert--warning, .nt-alert--danger, .nt-alert--neutral, .nt-alert--accent):not(.nt-alert--outline) .nt-alert__description {
|
|
146
|
+
color: var(--nt-text-secondary);
|
|
147
|
+
}
|
|
148
|
+
|
|
143
149
|
.nt-alert--outline {
|
|
144
150
|
background: transparent;
|
|
145
151
|
}
|
|
@@ -123,6 +123,79 @@
|
|
|
123
123
|
height: 0.875rem;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
/* Profile hero size. */
|
|
127
|
+
.nt-avatar--2xl {
|
|
128
|
+
width: 6rem;
|
|
129
|
+
height: 6rem;
|
|
130
|
+
font: var(--nt-text-heading-sm);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nt-avatar--2xl .nt-avatar__status {
|
|
134
|
+
width: 1rem;
|
|
135
|
+
height: 1rem;
|
|
136
|
+
border-width: 3px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Editable avatar: a <button> or <label> whose overlay ("Change photo")
|
|
140
|
+
* fades in on hover and keyboard focus. Touch devices without hover show a
|
|
141
|
+
* compact strip permanently. Give the control its own accessible name. */
|
|
142
|
+
.nt-avatar--editable {
|
|
143
|
+
padding: 0;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
appearance: none;
|
|
146
|
+
transition:
|
|
147
|
+
border-color var(--nt-duration-fast) var(--nt-ease-standard),
|
|
148
|
+
box-shadow var(--nt-duration-fast) var(--nt-ease-standard);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.nt-avatar--editable:hover {
|
|
152
|
+
border-color: var(--nt-accent);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nt-avatar--editable:focus-visible,
|
|
156
|
+
.nt-avatar--editable:focus-within:has(:focus-visible) {
|
|
157
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
158
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.nt-avatar__overlay {
|
|
162
|
+
position: absolute;
|
|
163
|
+
inset: 0;
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
gap: var(--nt-space-1);
|
|
169
|
+
background: color-mix(in srgb, var(--nt-bg-surface-overlay) 86%, transparent);
|
|
170
|
+
color: var(--nt-text-primary);
|
|
171
|
+
font: var(--nt-text-label-sm);
|
|
172
|
+
text-align: center;
|
|
173
|
+
text-transform: none;
|
|
174
|
+
opacity: 0;
|
|
175
|
+
transition: opacity var(--nt-duration-fast) var(--nt-ease-standard);
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.nt-avatar__overlay > svg {
|
|
180
|
+
width: var(--nt-icon-size-sm);
|
|
181
|
+
height: var(--nt-icon-size-sm);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.nt-avatar--editable:hover .nt-avatar__overlay,
|
|
185
|
+
.nt-avatar--editable:focus-visible .nt-avatar__overlay,
|
|
186
|
+
.nt-avatar--editable:focus-within .nt-avatar__overlay {
|
|
187
|
+
opacity: 1;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@media (hover: none) {
|
|
191
|
+
.nt-avatar__overlay {
|
|
192
|
+
inset-block-start: auto;
|
|
193
|
+
min-height: 34%;
|
|
194
|
+
font: var(--nt-text-caption);
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
126
199
|
.nt-avatar--square {
|
|
127
200
|
border-radius: var(--nt-radius-item);
|
|
128
201
|
}
|
|
@@ -210,6 +283,11 @@
|
|
|
210
283
|
}
|
|
211
284
|
|
|
212
285
|
@media (prefers-reduced-motion: reduce) {
|
|
286
|
+
.nt-avatar--editable,
|
|
287
|
+
.nt-avatar__overlay {
|
|
288
|
+
transition: none !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
213
291
|
.nt-avatar--interactive {
|
|
214
292
|
transition: none !important;
|
|
215
293
|
}
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.nt-badge--neutral {
|
|
52
|
-
border-color: var(--nt-border
|
|
53
|
-
background: var(--nt-bg
|
|
54
|
-
color: var(--nt-text
|
|
52
|
+
border-color: var(--nt-neutral-border);
|
|
53
|
+
background: var(--nt-neutral-bg);
|
|
54
|
+
color: var(--nt-neutral-text);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.nt-badge--success {
|
|
@@ -72,6 +72,12 @@
|
|
|
72
72
|
color: var(--nt-danger-text);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
.nt-badge--info {
|
|
76
|
+
border-color: var(--nt-info-border);
|
|
77
|
+
background: var(--nt-info-bg);
|
|
78
|
+
color: var(--nt-info-text);
|
|
79
|
+
}
|
|
80
|
+
|
|
75
81
|
.nt-badge--outline {
|
|
76
82
|
background: transparent;
|
|
77
83
|
}
|
|
@@ -178,6 +178,46 @@
|
|
|
178
178
|
color: var(--nt-ai-action-hover);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
/* Link: an inline text action inside content ("Add headline", "View all").
|
|
182
|
+
* Keeps button semantics and the focus ring; the underline grows in on
|
|
183
|
+
* hover so the affordance is not color alone. */
|
|
184
|
+
.nt-button--link {
|
|
185
|
+
min-width: 0;
|
|
186
|
+
height: auto;
|
|
187
|
+
min-height: 0;
|
|
188
|
+
padding: 0;
|
|
189
|
+
border: 0;
|
|
190
|
+
background: transparent;
|
|
191
|
+
color: var(--nt-text-link);
|
|
192
|
+
text-decoration-line: underline;
|
|
193
|
+
text-decoration-color: transparent;
|
|
194
|
+
text-decoration-thickness: from-font;
|
|
195
|
+
text-underline-offset: 0.2em;
|
|
196
|
+
white-space: normal;
|
|
197
|
+
transition:
|
|
198
|
+
color var(--nt-duration-fast) var(--nt-ease-standard),
|
|
199
|
+
text-decoration-color var(--nt-duration-fast) var(--nt-ease-standard);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.nt-button--link:not(:disabled):not(.nt-button--disabled):hover {
|
|
203
|
+
color: var(--nt-text-link-hover);
|
|
204
|
+
text-decoration-color: currentColor;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.nt-button--link:not(:disabled):active {
|
|
208
|
+
transform: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.nt-button--link:is(:disabled, [aria-disabled='true'], .nt-button--disabled) {
|
|
212
|
+
background: transparent;
|
|
213
|
+
color: var(--nt-text-disabled);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.nt-button--link.nt-button--sm {
|
|
217
|
+
height: auto;
|
|
218
|
+
padding: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
181
221
|
/* Internals */
|
|
182
222
|
|
|
183
223
|
.nt-button__content {
|
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
background: var(--nt-bg-surface-muted);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/* Muted text steps up to secondary on non-white surfaces (contrast). */
|
|
76
|
+
:is(.nt-card--muted, .nt-card--danger, .nt-card--success, .nt-card--warning, .nt-card--info, .nt-card--accent) :is(.nt-card__eyebrow, .nt-card__subtitle, .nt-card__meta) {
|
|
77
|
+
color: var(--nt-text-secondary);
|
|
78
|
+
}
|
|
79
|
+
|
|
75
80
|
.nt-card--danger {
|
|
76
81
|
border-color: var(--nt-danger-border);
|
|
77
82
|
background: var(--nt-danger-bg);
|
|
@@ -98,6 +103,19 @@
|
|
|
98
103
|
background: var(--nt-accent-subtle);
|
|
99
104
|
}
|
|
100
105
|
|
|
106
|
+
/* Edge: an inline-start accent edge marking the primary sections of a page
|
|
107
|
+
* (profile core sections, the current plan). It strengthens to the accent
|
|
108
|
+
* while the pointer or keyboard focus is inside the card. */
|
|
109
|
+
.nt-card--edge {
|
|
110
|
+
border-inline-start: var(--nt-space-1) solid var(--nt-border-interactive);
|
|
111
|
+
transition: border-color var(--nt-duration-fast) var(--nt-ease-standard);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.nt-card--edge:hover,
|
|
115
|
+
.nt-card--edge:focus-within {
|
|
116
|
+
border-inline-start-color: var(--nt-accent);
|
|
117
|
+
}
|
|
118
|
+
|
|
101
119
|
/* Padded: content sits directly in the card without header/body wrappers
|
|
102
120
|
* (dense dashboard tiles). Children stack with the card body rhythm. */
|
|
103
121
|
.nt-card--padded {
|
|
@@ -255,6 +273,7 @@
|
|
|
255
273
|
}
|
|
256
274
|
|
|
257
275
|
@media (prefers-reduced-motion: reduce) {
|
|
276
|
+
.nt-card--edge,
|
|
258
277
|
.nt-card--interactive {
|
|
259
278
|
transition: none !important;
|
|
260
279
|
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Choice card: a radio or checkbox presented as a selectable card (résumé
|
|
3
|
+
* templates, plans, AI providers, export formats). Distilled from
|
|
4
|
+
* MyAccount's template picker. The native input stays in the accessibility
|
|
5
|
+
* tree and owns keyboard behavior (arrow keys within a radio group, Space
|
|
6
|
+
* for checkboxes); the card reflects its state through :has().
|
|
7
|
+
*
|
|
8
|
+
* Markup: <div class="nt-choice-group" role="radiogroup" aria-labelledby="…">
|
|
9
|
+
* <label class="nt-choice-card">
|
|
10
|
+
* <input class="nt-choice-card__input" type="radio" name="template" value="pro">
|
|
11
|
+
* <span class="nt-choice-card__indicator" aria-hidden="true"></span>
|
|
12
|
+
* <span class="nt-choice-card__body">
|
|
13
|
+
* <span class="nt-choice-card__title">Professional</span>
|
|
14
|
+
* <span class="nt-choice-card__description">One column, ATS friendly</span>
|
|
15
|
+
* </span>
|
|
16
|
+
* </label>
|
|
17
|
+
* </div>
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.nt-choice-card {
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
gap: var(--nt-space-3);
|
|
25
|
+
min-width: 0;
|
|
26
|
+
min-height: var(--nt-target-size-primary);
|
|
27
|
+
padding: var(--nt-space-3);
|
|
28
|
+
border: 1px solid var(--nt-control-border);
|
|
29
|
+
border-radius: var(--nt-radius-item);
|
|
30
|
+
background: var(--nt-bg-surface);
|
|
31
|
+
color: var(--nt-text-primary);
|
|
32
|
+
text-align: start;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
transition: var(--nt-transition-colors);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nt-choice-card:hover {
|
|
38
|
+
border-color: var(--nt-control-border-hover);
|
|
39
|
+
background: var(--nt-bg-surface-hover);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nt-choice-card:active {
|
|
43
|
+
background: var(--nt-bg-surface-active);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nt-choice-card:has(.nt-choice-card__input:focus-visible) {
|
|
47
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
48
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Selected: selection fill, border, and an inner ring (shape change), plus
|
|
52
|
+
* the filled indicator. */
|
|
53
|
+
.nt-choice-card:has(.nt-choice-card__input:checked),
|
|
54
|
+
.nt-choice-card--selected {
|
|
55
|
+
border-color: var(--nt-selection-border);
|
|
56
|
+
background: var(--nt-selection-bg);
|
|
57
|
+
box-shadow: inset 0 0 0 1px var(--nt-selection-border);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nt-choice-card:has(.nt-choice-card__input:disabled),
|
|
61
|
+
.nt-choice-card--disabled {
|
|
62
|
+
border-color: var(--nt-border-disabled);
|
|
63
|
+
background: var(--nt-bg-surface-disabled);
|
|
64
|
+
color: var(--nt-text-disabled);
|
|
65
|
+
cursor: not-allowed;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.nt-choice-card:has(.nt-choice-card__input:disabled) :is(.nt-choice-card__description, .nt-choice-card__meta) {
|
|
69
|
+
color: var(--nt-text-disabled);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Sizes */
|
|
73
|
+
|
|
74
|
+
.nt-choice-card--sm {
|
|
75
|
+
gap: var(--nt-space-2);
|
|
76
|
+
min-height: var(--nt-target-size-default);
|
|
77
|
+
padding: var(--nt-space-2) var(--nt-space-3);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nt-choice-card--lg {
|
|
81
|
+
gap: var(--nt-space-4);
|
|
82
|
+
padding: var(--nt-space-4);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Variants */
|
|
86
|
+
|
|
87
|
+
/* Indicator-free cards for visual pickers (themes, templates with a
|
|
88
|
+
* thumbnail); selection relies on the ring and a check in __meta. */
|
|
89
|
+
.nt-choice-card--plain .nt-choice-card__indicator {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Internals */
|
|
94
|
+
|
|
95
|
+
/* Visually hidden but focusable and announced. */
|
|
96
|
+
.nt-choice-card__input {
|
|
97
|
+
position: absolute;
|
|
98
|
+
width: 1px;
|
|
99
|
+
height: 1px;
|
|
100
|
+
margin: 0;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
clip-path: inset(50%);
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.nt-choice-card__indicator {
|
|
108
|
+
position: relative;
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
flex: 0 0 auto;
|
|
111
|
+
width: var(--nt-space-4);
|
|
112
|
+
height: var(--nt-space-4);
|
|
113
|
+
margin-block-start: var(--nt-space-0-5);
|
|
114
|
+
border: 1px solid var(--nt-control-border);
|
|
115
|
+
border-radius: var(--nt-radius-pill);
|
|
116
|
+
background: var(--nt-control-bg);
|
|
117
|
+
transition: var(--nt-transition-colors);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.nt-choice-card:has(input[type='checkbox']) .nt-choice-card__indicator {
|
|
121
|
+
border-radius: var(--nt-radius-indicator);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Radio dot / checkbox tick grow in from the center. */
|
|
125
|
+
.nt-choice-card__indicator::after {
|
|
126
|
+
position: absolute;
|
|
127
|
+
inset: 0;
|
|
128
|
+
margin: auto;
|
|
129
|
+
width: var(--nt-space-2);
|
|
130
|
+
height: var(--nt-space-2);
|
|
131
|
+
border-radius: var(--nt-radius-pill);
|
|
132
|
+
background: var(--nt-action-primary-fg);
|
|
133
|
+
content: '';
|
|
134
|
+
transform: scale(0);
|
|
135
|
+
transition: transform var(--nt-duration-fast) var(--nt-ease-emphasized);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nt-choice-card:has(input[type='checkbox']) .nt-choice-card__indicator::after {
|
|
139
|
+
width: var(--nt-space-1-5);
|
|
140
|
+
height: var(--nt-space-2-5);
|
|
141
|
+
margin-block-start: calc(var(--nt-space-0-5) * 0.5);
|
|
142
|
+
border: solid var(--nt-action-primary-fg);
|
|
143
|
+
border-width: 0 2px 2px 0;
|
|
144
|
+
border-radius: 0;
|
|
145
|
+
background: transparent;
|
|
146
|
+
transform: rotate(45deg) scale(0);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.nt-choice-card:has(.nt-choice-card__input:checked) .nt-choice-card__indicator,
|
|
150
|
+
.nt-choice-card--selected .nt-choice-card__indicator {
|
|
151
|
+
border-color: var(--nt-action-primary-bg);
|
|
152
|
+
background: var(--nt-action-primary-bg);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nt-choice-card:has(.nt-choice-card__input:checked) .nt-choice-card__indicator::after,
|
|
156
|
+
.nt-choice-card--selected .nt-choice-card__indicator::after {
|
|
157
|
+
transform: scale(1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.nt-choice-card:has(input[type='checkbox']:checked) .nt-choice-card__indicator::after {
|
|
161
|
+
transform: rotate(45deg) scale(1);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.nt-choice-card:has(.nt-choice-card__input:disabled) .nt-choice-card__indicator {
|
|
165
|
+
border-color: var(--nt-border-disabled);
|
|
166
|
+
background: var(--nt-bg-surface-disabled);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.nt-choice-card__media {
|
|
170
|
+
display: flex;
|
|
171
|
+
flex: 0 0 auto;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
border-radius: var(--nt-radius-control);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.nt-choice-card__body {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex: 1 1 auto;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
gap: var(--nt-space-1);
|
|
183
|
+
min-width: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.nt-choice-card__title {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-wrap: wrap;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: var(--nt-space-1) var(--nt-space-2);
|
|
191
|
+
font: var(--nt-text-label-lg);
|
|
192
|
+
overflow-wrap: anywhere;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.nt-choice-card__description {
|
|
196
|
+
color: var(--nt-text-muted);
|
|
197
|
+
font: var(--nt-text-body-sm);
|
|
198
|
+
overflow-wrap: anywhere;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.nt-choice-card:has(.nt-choice-card__input:checked) .nt-choice-card__description,
|
|
202
|
+
.nt-choice-card--selected .nt-choice-card__description {
|
|
203
|
+
color: var(--nt-text-secondary);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.nt-choice-card__meta {
|
|
207
|
+
margin-inline-start: auto;
|
|
208
|
+
color: var(--nt-text-muted);
|
|
209
|
+
font: var(--nt-text-label-sm);
|
|
210
|
+
white-space: nowrap;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* Group: as many cards per row as fit; cards in a row share a height. */
|
|
214
|
+
.nt-choice-group {
|
|
215
|
+
--nt-choice-group-min: 13rem;
|
|
216
|
+
|
|
217
|
+
display: grid;
|
|
218
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--nt-choice-group-min)), 1fr));
|
|
219
|
+
gap: var(--nt-space-2);
|
|
220
|
+
min-width: 0;
|
|
221
|
+
margin: 0;
|
|
222
|
+
padding: 0;
|
|
223
|
+
border: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.nt-choice-group--stacked {
|
|
227
|
+
grid-template-columns: minmax(0, 1fr);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@media (forced-colors: active) {
|
|
231
|
+
.nt-choice-card:has(.nt-choice-card__input:checked),
|
|
232
|
+
.nt-choice-card--selected {
|
|
233
|
+
outline: 2px solid Highlight;
|
|
234
|
+
outline-offset: -2px;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@media (prefers-reduced-motion: reduce) {
|
|
239
|
+
.nt-choice-card,
|
|
240
|
+
.nt-choice-card__indicator,
|
|
241
|
+
.nt-choice-card__indicator::after {
|
|
242
|
+
transition: none !important;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Disclosure: native <details>/<summary> for secondary content that should
|
|
3
|
+
* stay one click away (archived documents, version history, advanced
|
|
4
|
+
* options, tax-claim breakdowns). Used by both MyAccount (archived CVs,
|
|
5
|
+
* CV history) and Billing (RUT/ROT claims). Native semantics give keyboard
|
|
6
|
+
* and screen-reader support for free; the content height animates where
|
|
7
|
+
* the browser supports ::details-content, and opens instantly elsewhere.
|
|
8
|
+
*
|
|
9
|
+
* Markup: <details class="nt-disclosure">
|
|
10
|
+
* <summary class="nt-disclosure__summary">
|
|
11
|
+
* <span class="nt-disclosure__title">Archived CVs</span>
|
|
12
|
+
* <span class="nt-disclosure__meta">3</span>
|
|
13
|
+
* <svg class="nt-disclosure__chevron" aria-hidden="true">…</svg>
|
|
14
|
+
* </summary>
|
|
15
|
+
* <div class="nt-disclosure__content">…</div>
|
|
16
|
+
* </details>
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
.nt-disclosure {
|
|
20
|
+
min-width: 0;
|
|
21
|
+
color: var(--nt-text-primary);
|
|
22
|
+
interpolate-size: allow-keywords;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.nt-disclosure::details-content {
|
|
26
|
+
block-size: 0;
|
|
27
|
+
overflow-y: clip;
|
|
28
|
+
transition:
|
|
29
|
+
block-size var(--nt-duration-normal) var(--nt-ease-standard),
|
|
30
|
+
content-visibility var(--nt-duration-normal) var(--nt-ease-standard) allow-discrete;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.nt-disclosure[open]::details-content {
|
|
34
|
+
block-size: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nt-disclosure__summary {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: var(--nt-space-2);
|
|
41
|
+
min-height: var(--nt-target-size-primary);
|
|
42
|
+
padding-inline: var(--nt-space-2);
|
|
43
|
+
border-radius: var(--nt-radius-control);
|
|
44
|
+
font: var(--nt-text-label-lg);
|
|
45
|
+
list-style: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
user-select: none;
|
|
48
|
+
transition: var(--nt-transition-colors);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nt-disclosure__summary::-webkit-details-marker {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nt-disclosure__summary::marker {
|
|
56
|
+
content: '';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.nt-disclosure__summary:hover {
|
|
60
|
+
background: var(--nt-bg-surface-hover);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nt-disclosure__summary:focus-visible {
|
|
64
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
65
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Sizes */
|
|
69
|
+
|
|
70
|
+
.nt-disclosure--sm .nt-disclosure__summary {
|
|
71
|
+
min-height: var(--nt-target-size-default);
|
|
72
|
+
font: var(--nt-text-label-md);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Variants */
|
|
76
|
+
|
|
77
|
+
/* Surface: a bordered panel (stand-alone sections). */
|
|
78
|
+
.nt-disclosure--surface {
|
|
79
|
+
border: 1px solid var(--nt-border-subtle);
|
|
80
|
+
border-radius: var(--nt-radius-panel);
|
|
81
|
+
background: var(--nt-bg-surface);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nt-disclosure--surface > .nt-disclosure__summary {
|
|
85
|
+
padding-inline: var(--nt-space-4);
|
|
86
|
+
border-radius: calc(var(--nt-radius-panel) - var(--nt-space-px));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nt-disclosure--surface[open] > .nt-disclosure__summary {
|
|
90
|
+
border-end-start-radius: 0;
|
|
91
|
+
border-end-end-radius: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nt-disclosure--surface .nt-disclosure__content {
|
|
95
|
+
padding: 0 var(--nt-space-4) var(--nt-space-4);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Group: stacked disclosures separated by rules (FAQ, history). */
|
|
99
|
+
.nt-disclosure-group {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
min-width: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.nt-disclosure-group > .nt-disclosure + .nt-disclosure {
|
|
106
|
+
border-block-start: 1px solid var(--nt-border-subtle);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Internals */
|
|
110
|
+
|
|
111
|
+
.nt-disclosure__title {
|
|
112
|
+
flex: 1 1 auto;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
overflow-wrap: anywhere;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.nt-disclosure__meta {
|
|
118
|
+
flex: 0 0 auto;
|
|
119
|
+
color: var(--nt-text-muted);
|
|
120
|
+
font: var(--nt-text-label-sm);
|
|
121
|
+
font-variant-numeric: tabular-nums;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nt-disclosure__chevron {
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
flex: 0 0 auto;
|
|
127
|
+
width: var(--nt-icon-size-sm);
|
|
128
|
+
height: var(--nt-icon-size-sm);
|
|
129
|
+
color: var(--nt-icon-secondary);
|
|
130
|
+
transition: transform var(--nt-duration-normal) var(--nt-ease-standard);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nt-disclosure[open] > .nt-disclosure__summary .nt-disclosure__chevron {
|
|
134
|
+
transform: rotate(180deg);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.nt-disclosure__content {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
align-items: flex-start;
|
|
141
|
+
gap: var(--nt-space-3);
|
|
142
|
+
min-width: 0;
|
|
143
|
+
padding: var(--nt-space-2) var(--nt-space-2) var(--nt-space-3);
|
|
144
|
+
color: var(--nt-text-secondary);
|
|
145
|
+
font: var(--nt-text-body-sm);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@media (prefers-reduced-motion: reduce) {
|
|
149
|
+
.nt-disclosure::details-content,
|
|
150
|
+
.nt-disclosure__summary,
|
|
151
|
+
.nt-disclosure__chevron {
|
|
152
|
+
transition: none !important;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
@import './skeleton/skeleton.css';
|
|
23
23
|
@import './stat/stat.css';
|
|
24
24
|
@import './description-list/description-list.css';
|
|
25
|
+
@import './choice-card/choice-card.css';
|
|
26
|
+
@import './disclosure/disclosure.css';
|
|
25
27
|
@import './split-button/split-button.css';
|
|
26
28
|
@import './button-group/button-group.css';
|
|
27
29
|
@import './pagination/pagination.css';
|
|
@@ -58,6 +58,18 @@
|
|
|
58
58
|
transform-origin: right center;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* Reveal: the bar fills from zero when it first renders (profile
|
|
62
|
+
* completion, quota meters). Width changes afterwards animate as usual. */
|
|
63
|
+
.nt-progress--reveal .nt-progress__bar {
|
|
64
|
+
transition-duration: var(--nt-duration-slower), var(--nt-duration-fast);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@starting-style {
|
|
68
|
+
.nt-progress--reveal .nt-progress__bar {
|
|
69
|
+
width: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
61
73
|
.nt-progress__description {
|
|
62
74
|
margin: 0;
|
|
63
75
|
color: var(--nt-text-muted);
|