@cscfi/csc-ui 4.0.0-alpha.3 → 4.0.0-alpha.5

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.
@@ -0,0 +1,25 @@
1
+ A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive.
2
+
3
+ Put the element that opens the popover in the `trigger` slot and the content in the default slot. An optional `heading` prop renders a heading and doubles as the panel's accessible name (it is not called `title` — a `title` attribute would trigger the browser's native tooltip). The popover is deliberately minimal: compose footers, actions, or a close button from existing components (e.g. `c-button`) inside the body.
4
+
5
+ ## When to use
6
+
7
+ - Contextual, dismissable UI attached to a control: a small settings panel, a confirm-lite prompt, help content with links.
8
+ - Not for a plain text hint — use `c-tooltip`.
9
+ - Not for blocking flows the user must complete — the popover never traps focus or blocks the page; use `c-modal`.
10
+
11
+ ## Dismissal
12
+
13
+ Clicking outside the popover or pressing Escape closes it. Escape returns focus to the trigger when focus was inside the panel; light dismiss leaves focus where the user clicked. Focus is not moved into the panel on open — Tab reaches the content naturally from the trigger.
14
+
15
+ ## Accessibility
16
+
17
+ The panel is a non-modal `role="dialog"` and needs an accessible name: the `heading` prop provides one, or set `aria-label` on the `c-popover` element (`aria-labelledby` cannot reference slotted content across the shadow boundary). The component warns in the console when it opens unnamed. `aria-haspopup="dialog"` and `aria-expanded` are mirrored onto the slotted trigger.
18
+
19
+ ## Layering
20
+
21
+ The panel is a native popover in the top layer: it is never clipped by ancestor overflow and needs no z-index management, even when opened from inside a modal.
22
+
23
+ ## Customization
24
+
25
+ Structural styling via `::part(trigger)`, `::part(panel)` and `::part(heading)`. Colours come from the overlay-surface semantic tokens (`--c-surface-overlay`, `--c-on-surface`); override the tokens to re-theme.
@@ -0,0 +1,23 @@
1
+ A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label.
2
+
3
+ Bind the completion percentage to `value` (0–100; out-of-range values are clamped for the fill). By default a details line renders below the bar — the percentage plus whatever the `label` prop supplies (e.g. "57 % Uploading files"). Hide it with `hide-details`, or place it beside the bar with `single-line`.
4
+
5
+ For work of unknown duration the `indeterminate` prop replaces the fill with a looping sweep and hides the details line.
6
+
7
+ ## When to use
8
+
9
+ - For progress whose completion percentage is known — uploads, batch jobs, multi-step processing — or, with `indeterminate`, for an unknown-duration wait that should still read as a full-width bar.
10
+ - When space is tight or each item in a set needs its own compact indicator, `c-progress-circle` is the circular determinate counterpart.
11
+ - For a plain inline activity indicator use `c-spinner`; to cover a whole region while it loads, use `c-loader`.
12
+
13
+ ## Details line
14
+
15
+ The details line shows the raw `value` even when the fill clamps it, and a negative value renders the line in the error role — a hook for signalling a failed transfer while keeping the bar itself empty.
16
+
17
+ ## Accessibility
18
+
19
+ The bar is a native `<progress>` element exposing `role="progressbar"` with `aria-valuenow` while determinate; in indeterminate mode no value is exposed. The host mirrors `aria-busy` (true while indeterminate) and a `title` tooltip with the current percentage.
20
+
21
+ ## Customization
22
+
23
+ Restyle via the parts: `::part(root)` (the outer wrapper), `::part(bar)` (the visible track around the native `<progress>`), and `::part(details)` (the percentage/label line). Colours default to the primary fill on a muted surface track.
@@ -0,0 +1,25 @@
1
+ A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`.
2
+
3
+ Bind the completion percentage to `value` (0–100; out-of-range values are clamped). The circle's diameter comes from `size` and the track thickness from `width` — both in pixels, both props rather than styles because the arc geometry is computed from them. The value arc draws at half the track's width, inset within it, mirroring `c-progress-bar`'s fill-inside-track anatomy.
4
+
5
+ Nothing renders in the center by default. To show the percentage (or an icon), slot it in yourself; at the default 32&nbsp;px size, center text is rarely legible, so pair slotted text with a larger `size`.
6
+
7
+ ## When to use
8
+
9
+ - For progress whose completion percentage is known — uploads, batch jobs, quota consumption.
10
+ - **Not for unknown-duration waiting**: `c-progress-circle` is determinate-only and has no indeterminate mode. Use `c-spinner` for pure activity indication, or `c-loader` to cover a whole region while it loads.
11
+ - When vertical space is tight or many items each need their own compact indicator; otherwise `c-progress-bar` with its built-in details line is usually the better default.
12
+
13
+ ## Accessibility
14
+
15
+ The component exposes `role="progressbar"` with `aria-valuemin`/`aria-valuemax`/`aria-valuenow`, so assistive technology always gets the value even when the center is empty. Name the progressbar by setting `aria-label` on the element:
16
+
17
+ ```html
18
+ <c-progress-circle aria-label="Upload progress" value="72"></c-progress-circle>
19
+ ```
20
+
21
+ Slotted center content is presentational to assistive technology (the value is announced from `aria-valuenow`), so duplicating the percentage as slotted text is fine.
22
+
23
+ ## Customization
24
+
25
+ Restyle via the parts: `::part(track)` and `::part(bar)` accept any stroke colour (the defaults are the muted surface track and the primary arc), and `::part(content)` styles the centered slot wrapper. Keep stroke *width* on the `width` prop — the radius math depends on it.
@@ -0,0 +1,27 @@
1
+ A single radio option inside a `c-radio-group`: a native radio input whose
2
+ default slot is its clickable, announced label.
3
+
4
+ Author one `c-radio` per option, with a unique `value` and the option's
5
+ label content in the default slot. Selection state belongs to the group —
6
+ a radio has no checked prop; set the group's `value` (or `v-model`)
7
+ instead.
8
+
9
+ ```html
10
+ <c-radio value="paid">Paid</c-radio>
11
+ ```
12
+
13
+ Set `disabled` to exclude a single option while the rest of the group stays
14
+ operable.
15
+
16
+ ## Events
17
+
18
+ Selecting a radio fires a `change` event carrying its `value`. The event
19
+ bubbles (composed) so it can be heard on the radio, on the surrounding
20
+ `c-radio-group`, or further up — with the radio as the event target.
21
+
22
+ ## Standalone
23
+
24
+ Outside a group a radio still renders and operates — it can be selected but
25
+ never unselected, like a native radio without siblings. Grouping behavior
26
+ (exclusivity, arrow-key navigation, form value) requires the parent
27
+ `c-radio-group`.
@@ -0,0 +1,67 @@
1
+ A radio group is a set of mutually exclusive choices where exactly one can
2
+ be selected, authored as slotted `c-radio` children. Give the group a
3
+ `label` so the choice it represents is named for every user, and a `hint`
4
+ describing how to answer.
5
+
6
+ ## Authoring the options
7
+
8
+ Each option is a `<c-radio value="...">` whose default slot is its label —
9
+ keep the label text (or richer markup) inside the radio so it stays
10
+ clickable and is announced with the control:
11
+
12
+ ```html
13
+ <c-radio-group label="Subscription plan" value="free">
14
+ <c-radio value="free">Free</c-radio>
15
+ <c-radio value="paid">Paid</c-radio>
16
+ </c-radio-group>
17
+ ```
18
+
19
+ The radios may sit at any depth inside the default slot, so custom layouts
20
+ are plain markup — wrap each radio in whatever layout element the design
21
+ needs:
22
+
23
+ ```html
24
+ <c-radio-group label="Subscription plan" value="free">
25
+ <div class="card"><c-radio value="free">Free</c-radio></div>
26
+ <div class="card"><c-radio value="paid">Paid</c-radio></div>
27
+ </c-radio-group>
28
+ ```
29
+
30
+ Text placed *next to* a radio instead of inside it renders, but is not
31
+ click-associated or announced — put the label content in the radio's slot.
32
+
33
+ ## Value
34
+
35
+ The group's `value` is the selected radio's `value`, matched by strict
36
+ string equality; the group holds string values only. Selection is expressed
37
+ solely through the group — radios carry no checked state of their own.
38
+ Giving two radios the same `value` is a consumer error: every matching
39
+ radio will show as checked.
40
+
41
+ In Vue, bind with a plain `v-model`. The group also emits its radios'
42
+ bubbling `change` events onward, with the selected `c-radio` as the
43
+ event target.
44
+
45
+ ## Label
46
+
47
+ The `label` prop names the group; when richer label content is needed, use
48
+ the `label` slot instead (the prop wins when both are set). The default
49
+ slot is exclusively the radios' home — loose text there is not treated as a
50
+ label.
51
+
52
+ ## Validation
53
+
54
+ Validation is your job: set `valid` to `false` and supply an
55
+ `error-message` explaining why. While invalid without an `error-message`,
56
+ the `hint` keeps rendering as a hint. The message area reserves its height
57
+ (unless `hide-details`), so an error appearing at runtime doesn't shift the
58
+ layout.
59
+
60
+ ## Accessibility
61
+
62
+ The group is announced as a `radiogroup` named by its label. Keyboard
63
+ behavior follows the native pattern: Tab moves into the group (onto the
64
+ checked radio, or the first enabled one) and out of it in one stop; the
65
+ arrow keys move between radios, selecting as they go, wrapping at the ends
66
+ and skipping disabled radios; Space selects the focused radio. Enter is
67
+ left to the surrounding form.
@@ -0,0 +1,21 @@
1
+ A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration.
2
+
3
+ Size the spinner with the `size` (diameter) and `width` (stroke) props, both in pixels. It spins forever; there is nothing to bind. If the wait has a known completion percentage, use `c-progress-circle` instead — the boundary is the axis (pure activity vs known value), not the shape.
4
+
5
+ ## When to use
6
+
7
+ - For short, inline unknown-duration waits — inside a button, next to a field, in a table cell.
8
+ - To cover a whole container while it loads, use `c-loader`, which embeds this spinner behind a scrim with an optional message.
9
+ - For known progress, use `c-progress-bar` or `c-progress-circle`.
10
+
11
+ ## Color
12
+
13
+ The stroke defaults to the primary role, so a standalone spinner is brand-coloured in either theme mode. The `color` prop accepts any CSS colour value; pass `currentColor` to make the spinner track the ambient text colour instead — the contract parent components (`c-loader`, `c-switch`) use to tint their embedded spinner.
14
+
15
+ ## Accessibility
16
+
17
+ The spinner is purely visual and exposes nothing to assistive technology. Announce the loading state on the region it describes — `aria-busy` on the updating container, or a live-region message — or use `c-loader`, whose slotted message provides visible and announced context.
18
+
19
+ ## Customization
20
+
21
+ `::part(root)` targets the `<svg>` drawing the circle. Prefer the `size`/`width`/`color` props for geometry and colour — the dash animation is computed from the size.
@@ -0,0 +1,28 @@
1
+ A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier.
2
+
3
+ Put the element the tooltip describes in the `trigger` slot and the hint in the `text` prop. For formatted content, use the `content` slot instead — it overrides the prop but must stay non-interactive: a tooltip is never focusable and can hold no links or buttons. If the content needs to be clicked, use `c-popover`.
4
+
5
+ The tooltip shows after a short hover delay (configurable via the `delay` prop) and immediately on keyboard focus. The trigger must be focusable for keyboard and screen-reader users to reach the hint — a `c-icon-button` or `c-button` qualifies; a bare `<span>` does not.
6
+
7
+ ## When to use
8
+
9
+ - To name an icon-only control or clarify a truncated label.
10
+ - Never for content the user must interact with, or for information that is available nowhere else on the page for touch users — tooltips are unreliable on touch devices.
11
+
12
+ ## Dismissal
13
+
14
+ The tooltip hides when the pointer leaves the trigger and panel, when focus leaves the trigger, and on Escape (without moving focus). The pointer can travel from the trigger onto the tooltip without it vanishing.
15
+
16
+ ## Accessibility
17
+
18
+ The tooltip implements the WCAG 1.4.13 (Content on Hover or Focus) contract: dismissable, hoverable, persistent.
19
+
20
+ The tooltip content is mirrored onto the slotted trigger as `aria-description`, so screen readers announce it with the trigger even while the bubble is closed. `aria-describedby` is not used because ARIA ID references cannot cross the shadow boundary between the light-DOM trigger and the shadow-DOM panel (ADR-0033).
21
+
22
+ ## Layering
23
+
24
+ The panel is a native popover in the top layer: it is never clipped by ancestor overflow and paints above modals — correct for a tooltip triggered from inside one.
25
+
26
+ ## Customization
27
+
28
+ Structural styling via `::part(trigger)` and `::part(panel)`. Colours come from the inverted-surface semantic tokens (`--c-surface-inverted`, `--c-on-surface-inverted`); override the tokens to re-theme.
@@ -37,6 +37,16 @@
37
37
  --color-border-strong: var(--c-border-strong);
38
38
  --color-ring: var(--c-ring);
39
39
 
40
+ /* Inverted-surface tier (ADR-0032): mode-aware contrast flip — not the
41
+ * mode-invariant inverse-* family below. */
42
+ --color-surface-inverted: var(--c-surface-inverted);
43
+ --color-on-surface-inverted: var(--c-on-surface-inverted);
44
+ --color-on-surface-inverted-muted: var(--c-on-surface-inverted-muted);
45
+ --color-success-inverted: var(--c-success-inverted);
46
+ --color-info-inverted: var(--c-info-inverted);
47
+ --color-warning-inverted: var(--c-warning-inverted);
48
+ --color-error-inverted: var(--c-error-inverted);
49
+
40
50
  --color-primary: var(--c-primary);
41
51
  --color-primary-hover: var(--c-primary-hover);
42
52
  --color-on-primary: var(--c-on-primary);
@@ -107,6 +117,26 @@
107
117
  --color-logo-teal: var(--c-logo-teal);
108
118
  --color-logo-magenta: var(--c-logo-magenta);
109
119
 
120
+ /* Chart tokens (ADR-0030): 12 frozen categorical series slots — assign in
121
+ * slot order, never cycle — plus the chart anatomy roles (plot background,
122
+ * gridlines, axis labels). Validated as a set per mode; see the docs
123
+ * data-visualization guide for the folding and relief rules. */
124
+ --color-chart-1: var(--c-chart-1);
125
+ --color-chart-2: var(--c-chart-2);
126
+ --color-chart-3: var(--c-chart-3);
127
+ --color-chart-4: var(--c-chart-4);
128
+ --color-chart-5: var(--c-chart-5);
129
+ --color-chart-6: var(--c-chart-6);
130
+ --color-chart-7: var(--c-chart-7);
131
+ --color-chart-8: var(--c-chart-8);
132
+ --color-chart-9: var(--c-chart-9);
133
+ --color-chart-10: var(--c-chart-10);
134
+ --color-chart-11: var(--c-chart-11);
135
+ --color-chart-12: var(--c-chart-12);
136
+ --color-chart-surface: var(--c-chart-surface);
137
+ --color-chart-grid: var(--c-chart-grid);
138
+ --color-chart-axis: var(--c-chart-axis);
139
+
110
140
  /* Mode-invariant inverse family (content on a fixed brand/dark backdrop). */
111
141
  --color-inverse-surface: var(--c-inverse-surface);
112
142
  --color-inverse-on: var(--c-inverse-on);
@@ -159,6 +159,13 @@
159
159
  --c-border: var(--c-tertiary-200);
160
160
  --c-border-strong: var(--c-tertiary-600);
161
161
  --c-ring: var(--c-primary-500);
162
+ --c-surface-inverted: var(--c-slate-950);
163
+ --c-on-surface-inverted: var(--c-white);
164
+ --c-on-surface-inverted-muted: var(--c-slate-300);
165
+ --c-success-inverted: var(--c-success-400);
166
+ --c-info-inverted: var(--c-info-400);
167
+ --c-warning-inverted: var(--c-warning-400);
168
+ --c-error-inverted: var(--c-error-400);
162
169
  --c-primary: var(--c-primary-500);
163
170
  --c-primary-hover: var(--c-primary-300);
164
171
  --c-on-primary: var(--c-white);
@@ -212,6 +219,21 @@
212
219
  --c-on-nav: var(--c-white);
213
220
  --c-nav-active: var(--c-primary-100);
214
221
  --c-on-nav-active: var(--c-primary-700);
222
+ --c-chart-1: #006b9bff;
223
+ --c-chart-2: #a63a71ff;
224
+ --c-chart-3: #866c02ff;
225
+ --c-chart-4: #62488cff;
226
+ --c-chart-5: #00a190ff;
227
+ --c-chart-6: #8b3b3bff;
228
+ --c-chart-7: #04a3beff;
229
+ --c-chart-8: #c06a68ff;
230
+ --c-chart-9: #3f9bd1ff;
231
+ --c-chart-10: #c56793ff;
232
+ --c-chart-11: #af8f15ff;
233
+ --c-chart-12: #9076beff;
234
+ --c-chart-surface: var(--c-white);
235
+ --c-chart-grid: var(--c-tertiary-200);
236
+ --c-chart-axis: var(--c-tertiary-500);
215
237
  --c-logo-wordmark: var(--c-tertiary-600);
216
238
  --c-logo-teal: #006778ff;
217
239
  --c-logo-magenta: #830051ff;
@@ -230,13 +252,20 @@
230
252
  --c-on-surface-sunken: var(--c-slate-100);
231
253
  --c-border: var(--c-slate-700);
232
254
  --c-border-strong: var(--c-slate-400);
233
- --c-ring: var(--c-accent-400);
234
- --c-primary: var(--c-accent-500);
235
- --c-primary-hover: var(--c-accent-400);
255
+ --c-ring: var(--c-primary-300);
256
+ --c-surface-inverted: var(--c-white);
257
+ --c-on-surface-inverted: var(--c-slate-900);
258
+ --c-on-surface-inverted-muted: var(--c-tertiary-600);
259
+ --c-success-inverted: var(--c-success-600);
260
+ --c-info-inverted: var(--c-info-600);
261
+ --c-warning-inverted: var(--c-warning-600);
262
+ --c-error-inverted: var(--c-error-600);
263
+ --c-primary: var(--c-primary-300);
264
+ --c-primary-hover: var(--c-primary-200);
236
265
  --c-on-primary: var(--c-primary-950);
237
266
  --c-primary-subtle: var(--c-primary-800);
238
267
  --c-primary-subtle-hover: var(--c-primary-700);
239
- --c-on-primary-subtle: var(--c-accent-300);
268
+ --c-on-primary-subtle: var(--c-primary-200);
240
269
  --c-secondary: var(--c-secondary-300);
241
270
  --c-secondary-hover: var(--c-secondary-200);
242
271
  --c-on-secondary: var(--c-secondary-900);
@@ -273,8 +302,8 @@
273
302
  --c-error-subtle: var(--c-error-800);
274
303
  --c-error-subtle-hover: var(--c-error-700);
275
304
  --c-on-error-subtle: var(--c-error-200);
276
- --c-link: var(--c-accent-400);
277
- --c-link-hover: var(--c-accent-300);
305
+ --c-link: var(--c-link-200);
306
+ --c-link-hover: var(--c-link-100);
278
307
  --c-on-link: var(--c-link-900);
279
308
  --c-link-subtle: var(--c-link-800);
280
309
  --c-link-subtle-hover: var(--c-link-700);
@@ -284,6 +313,21 @@
284
313
  --c-on-nav: var(--c-primary-100);
285
314
  --c-nav-active: var(--c-primary-600);
286
315
  --c-on-nav-active: var(--c-white);
316
+ --c-chart-1: #0082bbff;
317
+ --c-chart-2: #a63a71ff;
318
+ --c-chart-3: #896f09ff;
319
+ --c-chart-4: #7555a8ff;
320
+ --c-chart-5: #00a190ff;
321
+ --c-chart-6: #a74546ff;
322
+ --c-chart-7: #0999b2ff;
323
+ --c-chart-8: #b96462ff;
324
+ --c-chart-9: #3f9bd1ff;
325
+ --c-chart-10: #c56793ff;
326
+ --c-chart-11: #af8f15ff;
327
+ --c-chart-12: #8a70b8ff;
328
+ --c-chart-surface: var(--c-slate-800);
329
+ --c-chart-grid: var(--c-slate-700);
330
+ --c-chart-axis: var(--c-slate-300);
287
331
  --c-logo-wordmark: var(--c-slate-100);
288
332
  --c-logo-teal: var(--c-slate-100);
289
333
  --c-logo-magenta: #c2447cff;
@@ -303,13 +347,20 @@
303
347
  --c-on-surface-sunken: var(--c-slate-100);
304
348
  --c-border: var(--c-slate-700);
305
349
  --c-border-strong: var(--c-slate-400);
306
- --c-ring: var(--c-accent-400);
307
- --c-primary: var(--c-accent-500);
308
- --c-primary-hover: var(--c-accent-400);
350
+ --c-ring: var(--c-primary-300);
351
+ --c-surface-inverted: var(--c-white);
352
+ --c-on-surface-inverted: var(--c-slate-900);
353
+ --c-on-surface-inverted-muted: var(--c-tertiary-600);
354
+ --c-success-inverted: var(--c-success-600);
355
+ --c-info-inverted: var(--c-info-600);
356
+ --c-warning-inverted: var(--c-warning-600);
357
+ --c-error-inverted: var(--c-error-600);
358
+ --c-primary: var(--c-primary-300);
359
+ --c-primary-hover: var(--c-primary-200);
309
360
  --c-on-primary: var(--c-primary-950);
310
361
  --c-primary-subtle: var(--c-primary-800);
311
362
  --c-primary-subtle-hover: var(--c-primary-700);
312
- --c-on-primary-subtle: var(--c-accent-300);
363
+ --c-on-primary-subtle: var(--c-primary-200);
313
364
  --c-secondary: var(--c-secondary-300);
314
365
  --c-secondary-hover: var(--c-secondary-200);
315
366
  --c-on-secondary: var(--c-secondary-900);
@@ -346,8 +397,8 @@
346
397
  --c-error-subtle: var(--c-error-800);
347
398
  --c-error-subtle-hover: var(--c-error-700);
348
399
  --c-on-error-subtle: var(--c-error-200);
349
- --c-link: var(--c-accent-400);
350
- --c-link-hover: var(--c-accent-300);
400
+ --c-link: var(--c-link-200);
401
+ --c-link-hover: var(--c-link-100);
351
402
  --c-on-link: var(--c-link-900);
352
403
  --c-link-subtle: var(--c-link-800);
353
404
  --c-link-subtle-hover: var(--c-link-700);
@@ -357,6 +408,21 @@
357
408
  --c-on-nav: var(--c-primary-100);
358
409
  --c-nav-active: var(--c-primary-600);
359
410
  --c-on-nav-active: var(--c-white);
411
+ --c-chart-1: #0082bbff;
412
+ --c-chart-2: #a63a71ff;
413
+ --c-chart-3: #896f09ff;
414
+ --c-chart-4: #7555a8ff;
415
+ --c-chart-5: #00a190ff;
416
+ --c-chart-6: #a74546ff;
417
+ --c-chart-7: #0999b2ff;
418
+ --c-chart-8: #b96462ff;
419
+ --c-chart-9: #3f9bd1ff;
420
+ --c-chart-10: #c56793ff;
421
+ --c-chart-11: #af8f15ff;
422
+ --c-chart-12: #8a70b8ff;
423
+ --c-chart-surface: var(--c-slate-800);
424
+ --c-chart-grid: var(--c-slate-700);
425
+ --c-chart-axis: var(--c-slate-300);
360
426
  --c-logo-wordmark: var(--c-slate-100);
361
427
  --c-logo-teal: var(--c-slate-100);
362
428
  --c-logo-magenta: #c2447cff;
@@ -408,7 +474,9 @@ c-option-value:not(:defined),
408
474
  c-otp-input:not(:defined),
409
475
  c-page:not(:defined),
410
476
  c-pagination:not(:defined),
477
+ c-popover:not(:defined),
411
478
  c-progress-bar:not(:defined),
479
+ c-progress-circle:not(:defined),
412
480
  c-radio:not(:defined),
413
481
  c-radio-group:not(:defined),
414
482
  c-select:not(:defined),
@@ -433,7 +501,8 @@ c-tags:not(:defined),
433
501
  c-text-field:not(:defined),
434
502
  c-toast:not(:defined),
435
503
  c-toasts:not(:defined),
436
- c-toolbar:not(:defined) {
504
+ c-toolbar:not(:defined),
505
+ c-tooltip:not(:defined) {
437
506
  visibility: hidden;
438
507
  animation-name: c-pre-upgrade-reveal;
439
508
  animation-duration: 0s;
@@ -463,3 +532,11 @@ c-select[hide-details]:not(:defined),
463
532
  c-text-field[hide-details]:not(:defined) {
464
533
  min-height: 44px;
465
534
  }
535
+
536
+ /* Each radio row has a fixed resting height (the 42px indicator), so the
537
+ reservation is exact per row; the group itself stays generic (its height
538
+ depends on item count/label/hint). */
539
+ c-radio:not(:defined) {
540
+ display: block;
541
+ min-height: 42px;
542
+ }
@@ -31,16 +31,17 @@
31
31
  },
32
32
  {
33
33
  "name": "::part(root)",
34
- "description": "The outer bordered box carrying the type's accent color"
35
- },
36
- {
37
- "name": "::part(icon)",
38
- "description": "The status icon svg shown for the error/info/success/warning types"
34
+ "description": "The tinted box carrying the type's wash, hairline border and accent edge"
39
35
  },
36
+ { "name": "::part(icon)", "description": "The status icon svg" },
40
37
  {
41
38
  "name": "::part(content)",
42
39
  "description": "The wrapper around the slotted title and message content"
43
40
  },
41
+ {
42
+ "name": "::part(dismiss)",
43
+ "description": "The dismiss button rendered when `dismissible` is set"
44
+ },
44
45
  {
45
46
  "name": "::part(panel)",
46
47
  "description": "The top-layer popover container anchored below the field"
@@ -317,6 +318,14 @@
317
318
  "name": "::part(content)",
318
319
  "description": "The flex wrapper around the default-slot content"
319
320
  },
321
+ {
322
+ "name": "::part(icon)",
323
+ "description": "The leading icon rendered from the `icon` prop"
324
+ },
325
+ {
326
+ "name": "::part(check)",
327
+ "description": "The trailing indicator icon shown while the item is active"
328
+ },
320
329
  {
321
330
  "name": "::part(submenu-panel)",
322
331
  "description": "The floating popover holding the submenu"
@@ -385,6 +394,18 @@
385
394
  "name": "::part(pages)",
386
395
  "description": "The `<ul>` list of page buttons and the prev/next controls"
387
396
  },
397
+ {
398
+ "name": "::part(trigger)",
399
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
400
+ },
401
+ {
402
+ "name": "::part(panel)",
403
+ "description": "The floating popover surface positioned against the trigger"
404
+ },
405
+ {
406
+ "name": "::part(heading)",
407
+ "description": "The heading rendered from the `heading` prop"
408
+ },
388
409
  {
389
410
  "name": "::part(root)",
390
411
  "description": "The outer flex wrapper around the bar and the details line"
@@ -399,19 +420,41 @@
399
420
  },
400
421
  {
401
422
  "name": "::part(root)",
402
- "description": "The radiogroup wrapper element carrying the disabled/error states"
423
+ "description": "The wrapper around the ring and the centered content"
424
+ },
425
+ {
426
+ "name": "::part(track)",
427
+ "description": "The background ring (SVG circle)"
428
+ },
429
+ { "name": "::part(bar)", "description": "The value arc (SVG circle)" },
430
+ {
431
+ "name": "::part(content)",
432
+ "description": "The centered slot-content wrapper"
433
+ },
434
+ {
435
+ "name": "::part(root)",
436
+ "description": "The `<label>` row wrapping the input, indicator and label content"
437
+ },
438
+ {
439
+ "name": "::part(indicator)",
440
+ "description": "The circular ripple surface holding the radio ring and dot"
441
+ },
442
+ {
443
+ "name": "::part(content)",
444
+ "description": "Wrapper around the slotted label content"
403
445
  },
446
+ { "name": "::part(root)", "description": "The radiogroup wrapper element" },
404
447
  {
405
448
  "name": "::part(label)",
406
449
  "description": "The group label above the radio buttons"
407
450
  },
408
451
  {
409
452
  "name": "::part(items)",
410
- "description": "The wrapper around the rendered radio button rows"
453
+ "description": "The container the radios are slotted into"
411
454
  },
412
455
  {
413
456
  "name": "::part(message)",
414
- "description": "The hint/error message line below the radios"
457
+ "description": "The hint/error message area below the radios (always reserved unless `hide-details`)"
415
458
  },
416
459
  {
417
460
  "name": "::part(menu)",
@@ -572,7 +615,7 @@
572
615
  },
573
616
  {
574
617
  "name": "::part(root)",
575
- "description": "The toast's outer box carrying the accent border and shadow"
618
+ "description": "The toast's outer box: the inverted-surface pill carrying the shadow"
576
619
  },
577
620
  {
578
621
  "name": "::part(custom)",
@@ -584,7 +627,15 @@
584
627
  },
585
628
  {
586
629
  "name": "::part(item)",
587
- "description": "Row layout of a standard toast: type icon, message body and close button"
630
+ "description": "Row layout of a standard toast: status badge, message body and dismiss button"
631
+ },
632
+ {
633
+ "name": "::part(badge)",
634
+ "description": "The circular tinted badge holding the status icon"
635
+ },
636
+ {
637
+ "name": "::part(dismiss)",
638
+ "description": "The dismiss button (icon-only, or labelled when the message sets `closeText`)"
588
639
  },
589
640
  {
590
641
  "name": "::part(progress)",
@@ -597,6 +648,14 @@
597
648
  {
598
649
  "name": "::part(root)",
599
650
  "description": "The toolbar bar itself, fixed to the top of the viewport"
651
+ },
652
+ {
653
+ "name": "::part(trigger)",
654
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
655
+ },
656
+ {
657
+ "name": "::part(panel)",
658
+ "description": "The floating tooltip bubble positioned against the trigger"
600
659
  }
601
660
  ]
602
661
  }