@cscfi/csc-ui 4.0.0-alpha.4 → 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.
@@ -7337,6 +7337,10 @@
7337
7337
  "kind": "class",
7338
7338
  "name": "CProgressBar",
7339
7339
  "tagName": "c-progress-bar",
7340
+ "description": "A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label.",
7341
+ "csc": {
7342
+ "usage": "docs/c-progress-bar/usage.md"
7343
+ },
7340
7344
  "attributes": [
7341
7345
  {
7342
7346
  "fieldName": "hideDetails",
@@ -7482,6 +7486,127 @@
7482
7486
  "kind": "javascript-module",
7483
7487
  "path": "src/components/c-progress-bar/CProgressBar.vue"
7484
7488
  },
7489
+ {
7490
+ "declarations": [
7491
+ {
7492
+ "customElement": true,
7493
+ "kind": "class",
7494
+ "name": "CProgressCircle",
7495
+ "tagName": "c-progress-circle",
7496
+ "description": "A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`.",
7497
+ "csc": {
7498
+ "usage": "docs/c-progress-circle/usage.md"
7499
+ },
7500
+ "attributes": [
7501
+ {
7502
+ "fieldName": "size",
7503
+ "name": "size",
7504
+ "description": "Diameter of the circle in pixels",
7505
+ "type": {
7506
+ "text": "number"
7507
+ },
7508
+ "default": "32"
7509
+ },
7510
+ {
7511
+ "fieldName": "value",
7512
+ "name": "value",
7513
+ "description": "Progress value in percentage (0 to 100)",
7514
+ "type": {
7515
+ "text": "number"
7516
+ },
7517
+ "default": "0"
7518
+ },
7519
+ {
7520
+ "fieldName": "width",
7521
+ "name": "width",
7522
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
7523
+ "type": {
7524
+ "text": "number"
7525
+ },
7526
+ "default": "6"
7527
+ }
7528
+ ],
7529
+ "cssParts": [
7530
+ {
7531
+ "name": "root",
7532
+ "description": "The wrapper around the ring and the centered content"
7533
+ },
7534
+ {
7535
+ "name": "track",
7536
+ "description": "The background ring (SVG circle)"
7537
+ },
7538
+ {
7539
+ "name": "bar",
7540
+ "description": "The value arc (SVG circle)"
7541
+ },
7542
+ {
7543
+ "name": "content",
7544
+ "description": "The centered slot-content wrapper"
7545
+ }
7546
+ ],
7547
+ "cssProperties": [],
7548
+ "events": [],
7549
+ "members": [
7550
+ {
7551
+ "kind": "field",
7552
+ "name": "size",
7553
+ "privacy": "public",
7554
+ "description": "Diameter of the circle in pixels",
7555
+ "type": {
7556
+ "text": "number"
7557
+ },
7558
+ "default": "32"
7559
+ },
7560
+ {
7561
+ "kind": "field",
7562
+ "name": "value",
7563
+ "privacy": "public",
7564
+ "description": "Progress value in percentage (0 to 100)",
7565
+ "type": {
7566
+ "text": "number"
7567
+ },
7568
+ "default": "0"
7569
+ },
7570
+ {
7571
+ "kind": "field",
7572
+ "name": "width",
7573
+ "privacy": "public",
7574
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
7575
+ "type": {
7576
+ "text": "number"
7577
+ },
7578
+ "default": "6"
7579
+ }
7580
+ ],
7581
+ "slots": [
7582
+ {
7583
+ "name": "default",
7584
+ "description": "Optional content centered inside the circle, e.g. '57%' or an icon"
7585
+ }
7586
+ ]
7587
+ }
7588
+ ],
7589
+ "exports": [
7590
+ {
7591
+ "declaration": {
7592
+ "module": "src/components/c-progress-circle/CProgressCircle.vue",
7593
+ "name": "CProgressCircle"
7594
+ },
7595
+ "kind": "js",
7596
+ "name": "CProgressCircle"
7597
+ },
7598
+ {
7599
+ "declaration": {
7600
+ "module": "src/components/c-progress-circle/CProgressCircle.vue",
7601
+ "name": "CProgressCircle"
7602
+ },
7603
+ "kind": "custom-element-definition",
7604
+ "name": "c-progress-circle"
7605
+ }
7606
+ ],
7607
+ "kind": "javascript-module",
7608
+ "path": "src/components/c-progress-circle/CProgressCircle.vue"
7609
+ },
7485
7610
  {
7486
7611
  "declarations": [
7487
7612
  {
@@ -9113,6 +9238,10 @@
9113
9238
  "kind": "class",
9114
9239
  "name": "CSpinner",
9115
9240
  "tagName": "c-spinner",
9241
+ "description": "A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration.",
9242
+ "csc": {
9243
+ "usage": "docs/c-spinner/usage.md"
9244
+ },
9116
9245
  "attributes": [
9117
9246
  {
9118
9247
  "fieldName": "color",
@@ -1,7 +1,5 @@
1
1
  A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive.
2
2
 
3
- ## Usage
4
-
5
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.
6
4
 
7
5
  ## When to use
@@ -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.
@@ -1,8 +1,6 @@
1
1
  A single radio option inside a `c-radio-group`: a native radio input whose
2
2
  default slot is its clickable, announced label.
3
3
 
4
- ## Usage
5
-
6
4
  Author one `c-radio` per option, with a unique `value` and the option's
7
5
  label content in the default slot. Selection state belongs to the group —
8
6
  a radio has no checked prop; set the group's `value` (or `v-model`)
@@ -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.
@@ -1,7 +1,5 @@
1
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
2
 
3
- ## Usage
4
-
5
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`.
6
4
 
7
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.
@@ -252,7 +252,7 @@
252
252
  --c-on-surface-sunken: var(--c-slate-100);
253
253
  --c-border: var(--c-slate-700);
254
254
  --c-border-strong: var(--c-slate-400);
255
- --c-ring: var(--c-accent-400);
255
+ --c-ring: var(--c-primary-300);
256
256
  --c-surface-inverted: var(--c-white);
257
257
  --c-on-surface-inverted: var(--c-slate-900);
258
258
  --c-on-surface-inverted-muted: var(--c-tertiary-600);
@@ -260,12 +260,12 @@
260
260
  --c-info-inverted: var(--c-info-600);
261
261
  --c-warning-inverted: var(--c-warning-600);
262
262
  --c-error-inverted: var(--c-error-600);
263
- --c-primary: var(--c-accent-500);
264
- --c-primary-hover: var(--c-accent-400);
263
+ --c-primary: var(--c-primary-300);
264
+ --c-primary-hover: var(--c-primary-200);
265
265
  --c-on-primary: var(--c-primary-950);
266
266
  --c-primary-subtle: var(--c-primary-800);
267
267
  --c-primary-subtle-hover: var(--c-primary-700);
268
- --c-on-primary-subtle: var(--c-accent-300);
268
+ --c-on-primary-subtle: var(--c-primary-200);
269
269
  --c-secondary: var(--c-secondary-300);
270
270
  --c-secondary-hover: var(--c-secondary-200);
271
271
  --c-on-secondary: var(--c-secondary-900);
@@ -302,8 +302,8 @@
302
302
  --c-error-subtle: var(--c-error-800);
303
303
  --c-error-subtle-hover: var(--c-error-700);
304
304
  --c-on-error-subtle: var(--c-error-200);
305
- --c-link: var(--c-accent-400);
306
- --c-link-hover: var(--c-accent-300);
305
+ --c-link: var(--c-link-200);
306
+ --c-link-hover: var(--c-link-100);
307
307
  --c-on-link: var(--c-link-900);
308
308
  --c-link-subtle: var(--c-link-800);
309
309
  --c-link-subtle-hover: var(--c-link-700);
@@ -347,7 +347,7 @@
347
347
  --c-on-surface-sunken: var(--c-slate-100);
348
348
  --c-border: var(--c-slate-700);
349
349
  --c-border-strong: var(--c-slate-400);
350
- --c-ring: var(--c-accent-400);
350
+ --c-ring: var(--c-primary-300);
351
351
  --c-surface-inverted: var(--c-white);
352
352
  --c-on-surface-inverted: var(--c-slate-900);
353
353
  --c-on-surface-inverted-muted: var(--c-tertiary-600);
@@ -355,12 +355,12 @@
355
355
  --c-info-inverted: var(--c-info-600);
356
356
  --c-warning-inverted: var(--c-warning-600);
357
357
  --c-error-inverted: var(--c-error-600);
358
- --c-primary: var(--c-accent-500);
359
- --c-primary-hover: var(--c-accent-400);
358
+ --c-primary: var(--c-primary-300);
359
+ --c-primary-hover: var(--c-primary-200);
360
360
  --c-on-primary: var(--c-primary-950);
361
361
  --c-primary-subtle: var(--c-primary-800);
362
362
  --c-primary-subtle-hover: var(--c-primary-700);
363
- --c-on-primary-subtle: var(--c-accent-300);
363
+ --c-on-primary-subtle: var(--c-primary-200);
364
364
  --c-secondary: var(--c-secondary-300);
365
365
  --c-secondary-hover: var(--c-secondary-200);
366
366
  --c-on-secondary: var(--c-secondary-900);
@@ -397,8 +397,8 @@
397
397
  --c-error-subtle: var(--c-error-800);
398
398
  --c-error-subtle-hover: var(--c-error-700);
399
399
  --c-on-error-subtle: var(--c-error-200);
400
- --c-link: var(--c-accent-400);
401
- --c-link-hover: var(--c-accent-300);
400
+ --c-link: var(--c-link-200);
401
+ --c-link-hover: var(--c-link-100);
402
402
  --c-on-link: var(--c-link-900);
403
403
  --c-link-subtle: var(--c-link-800);
404
404
  --c-link-subtle-hover: var(--c-link-700);
@@ -476,6 +476,7 @@ c-page:not(:defined),
476
476
  c-pagination:not(:defined),
477
477
  c-popover:not(:defined),
478
478
  c-progress-bar:not(:defined),
479
+ c-progress-circle:not(:defined),
479
480
  c-radio:not(:defined),
480
481
  c-radio-group:not(:defined),
481
482
  c-select:not(:defined),
@@ -418,6 +418,19 @@
418
418
  "name": "::part(details)",
419
419
  "description": "The percentage and label text line"
420
420
  },
421
+ {
422
+ "name": "::part(root)",
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
+ },
421
434
  {
422
435
  "name": "::part(root)",
423
436
  "description": "The `<label>` row wrapping the input, indicator and label content"
@@ -1210,7 +1210,7 @@
1210
1210
  },
1211
1211
  {
1212
1212
  "name": "c-progress-bar",
1213
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
1213
+ "description": "A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label.\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
1214
1214
  "attributes": [
1215
1215
  {
1216
1216
  "name": "hide-details",
@@ -1240,6 +1240,28 @@
1240
1240
  ],
1241
1241
  "references": []
1242
1242
  },
1243
+ {
1244
+ "name": "c-progress-circle",
1245
+ "description": "A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`.\n---\n\n\n### **Slots:**\n - **default** - Optional content centered inside the circle, e.g. '57%' or an icon\n\n### **CSS Parts:**\n - **root** - The wrapper around the ring and the centered content\n- **track** - The background ring (SVG circle)\n- **bar** - The value arc (SVG circle)\n- **content** - The centered slot-content wrapper",
1246
+ "attributes": [
1247
+ {
1248
+ "name": "size",
1249
+ "description": "Diameter of the circle in pixels",
1250
+ "values": []
1251
+ },
1252
+ {
1253
+ "name": "value",
1254
+ "description": "Progress value in percentage (0 to 100)",
1255
+ "values": []
1256
+ },
1257
+ {
1258
+ "name": "width",
1259
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
1260
+ "values": []
1261
+ }
1262
+ ],
1263
+ "references": []
1264
+ },
1243
1265
  {
1244
1266
  "name": "c-radio",
1245
1267
  "description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.\n---\n\n\n### **Events:**\n - **change** - Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`.\n\n### **Slots:**\n - **default** - The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced\n\n### **CSS Parts:**\n - **root** - The `<label>` row wrapping the input, indicator and label content\n- **indicator** - The circular ripple surface holding the radio ring and dot\n- **content** - Wrapper around the slotted label content",
@@ -1465,7 +1487,7 @@
1465
1487
  },
1466
1488
  {
1467
1489
  "name": "c-spinner",
1468
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The `<svg>` element that draws the spinning circle",
1490
+ "description": "A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration.\n---\n\n\n### **CSS Parts:**\n - **root** - The `<svg>` element that draws the spinning circle",
1469
1491
  "attributes": [
1470
1492
  {
1471
1493
  "name": "color",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@cscfi/csc-ui",
4
- "version": "4.0.0-alpha.4",
4
+ "version": "4.0.0-alpha.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -3153,7 +3153,7 @@
3153
3153
  },
3154
3154
  {
3155
3155
  "name": "c-progress-bar",
3156
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
3156
+ "description": "A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label.\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
3157
3157
  "doc-url": "",
3158
3158
  "attributes": [
3159
3159
  {
@@ -3215,6 +3215,55 @@
3215
3215
  "events": []
3216
3216
  }
3217
3217
  },
3218
+ {
3219
+ "name": "c-progress-circle",
3220
+ "description": "A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`.\n---\n\n\n### **Slots:**\n - **default** - Optional content centered inside the circle, e.g. '57%' or an icon\n\n### **CSS Parts:**\n - **root** - The wrapper around the ring and the centered content\n- **track** - The background ring (SVG circle)\n- **bar** - The value arc (SVG circle)\n- **content** - The centered slot-content wrapper",
3221
+ "doc-url": "",
3222
+ "attributes": [
3223
+ {
3224
+ "name": "size",
3225
+ "description": "Diameter of the circle in pixels",
3226
+ "value": { "type": "number", "default": "32" }
3227
+ },
3228
+ {
3229
+ "name": "value",
3230
+ "description": "Progress value in percentage (0 to 100)",
3231
+ "value": { "type": "number", "default": "0" }
3232
+ },
3233
+ {
3234
+ "name": "width",
3235
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
3236
+ "value": { "type": "number", "default": "6" }
3237
+ }
3238
+ ],
3239
+ "slots": [
3240
+ {
3241
+ "name": "default",
3242
+ "description": "Optional content centered inside the circle, e.g. '57%' or an icon"
3243
+ }
3244
+ ],
3245
+ "events": [],
3246
+ "js": {
3247
+ "properties": [
3248
+ {
3249
+ "name": "size",
3250
+ "description": "Diameter of the circle in pixels",
3251
+ "type": "number"
3252
+ },
3253
+ {
3254
+ "name": "value",
3255
+ "description": "Progress value in percentage (0 to 100)",
3256
+ "type": "number"
3257
+ },
3258
+ {
3259
+ "name": "width",
3260
+ "description": "Stroke width of the track in pixels; the value arc draws at half this\nwidth, inset within the track",
3261
+ "type": "number"
3262
+ }
3263
+ ],
3264
+ "events": []
3265
+ }
3266
+ },
3218
3267
  {
3219
3268
  "name": "c-radio",
3220
3269
  "description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.\n---\n\n\n### **Events:**\n - **change** - Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`.\n\n### **Slots:**\n - **default** - The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced\n\n### **CSS Parts:**\n - **root** - The `<label>` row wrapping the input, indicator and label content\n- **indicator** - The circular ripple surface holding the radio ring and dot\n- **content** - Wrapper around the slotted label content",
@@ -4002,7 +4051,7 @@
4002
4051
  },
4003
4052
  {
4004
4053
  "name": "c-spinner",
4005
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The `<svg>` element that draws the spinning circle",
4054
+ "description": "A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration.\n---\n\n\n### **CSS Parts:**\n - **root** - The `<svg>` element that draws the spinning circle",
4006
4055
  "doc-url": "",
4007
4056
  "attributes": [
4008
4057
  {
@@ -5782,6 +5831,19 @@
5782
5831
  "name": "part(details)",
5783
5832
  "description": "The percentage and label text line"
5784
5833
  },
5834
+ {
5835
+ "name": "part(root)",
5836
+ "description": "The wrapper around the ring and the centered content"
5837
+ },
5838
+ {
5839
+ "name": "part(track)",
5840
+ "description": "The background ring (SVG circle)"
5841
+ },
5842
+ { "name": "part(bar)", "description": "The value arc (SVG circle)" },
5843
+ {
5844
+ "name": "part(content)",
5845
+ "description": "The centered slot-content wrapper"
5846
+ },
5785
5847
  {
5786
5848
  "name": "part(root)",
5787
5849
  "description": "The `<label>` row wrapping the input, indicator and label content"
@@ -0,0 +1,32 @@
1
+ export interface CProgressCircleProps {
2
+ /**
3
+ * Diameter of the circle in pixels
4
+ */
5
+ size?: number;
6
+ /**
7
+ * Progress value in percentage (0 to 100)
8
+ */
9
+ value?: number;
10
+ /**
11
+ * Stroke width of the track in pixels; the value arc draws at half this
12
+ * width, inset within the track
13
+ */
14
+ width?: number;
15
+ }
16
+ declare var __VLS_1: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<CProgressCircleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CProgressCircleProps> & Readonly<{}>, {
21
+ value: number;
22
+ width: number;
23
+ size: number;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -9,6 +9,7 @@ export type { CLoginCardActionsAlign, CLoginCardActionsJustify, CLoginCardAction
9
9
  export type { CLoginCardBlendMode, CLoginCardProps, } from './components/c-login-card/CLoginCard.vue';
10
10
  export type { CPaginationOptions, CPaginationProps, CPaginationSize, } from './components/c-pagination/CPagination.vue';
11
11
  export type { CPopoverProps } from './components/c-popover/CPopover.vue';
12
+ export type { CProgressCircleProps } from './components/c-progress-circle/CProgressCircle.vue';
12
13
  export type { CStatusProps, CStatusType, } from './components/c-status/CStatus.vue';
13
14
  export type { CTabButtonsProps, CTabButtonsSize, } from './components/c-tab-buttons/CTabButtons.vue';
14
15
  export type { CTabsJustify, CTabsProps } from './components/c-tabs/CTabs.vue';
@@ -922,6 +922,7 @@ export interface CPopoverElement extends Omit<HTMLElement, 'distance' | 'heading
922
922
  removeEventListener<K extends keyof CPopoverElementEventMap>(type: K, listener: (this: CPopoverElement, ev: CPopoverElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
923
923
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
924
924
  }
925
+ /** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
925
926
  export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | 'indeterminate' | 'label' | 'singleLine' | 'value'> {
926
927
  /** Hide the percentage display */
927
928
  hideDetails?: boolean;
@@ -934,6 +935,18 @@ export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | '
934
935
  /** Progress bar value in percentage (0 to 100) */
935
936
  value?: number;
936
937
  }
938
+ /** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
939
+ export interface CProgressCircleElement extends Omit<HTMLElement, 'size' | 'value' | 'width'> {
940
+ /** Diameter of the circle in pixels */
941
+ size?: number;
942
+ /** Progress value in percentage (0 to 100) */
943
+ value?: number;
944
+ /**
945
+ * Stroke width of the track in pixels; the value arc draws at half this
946
+ * width, inset within the track
947
+ */
948
+ width?: number;
949
+ }
937
950
  /** Events dispatched by `<c-radio>`. */
938
951
  export interface CRadioElementEventMap {
939
952
  /**
@@ -1169,6 +1182,7 @@ export interface CSliderElement extends Omit<HTMLElement, 'ariaLabelInternal' |
1169
1182
  removeEventListener<K extends keyof CSliderElementEventMap>(type: K, listener: (this: CSliderElement, ev: CSliderElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1170
1183
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1171
1184
  }
1185
+ /** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
1172
1186
  export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'width'> {
1173
1187
  /** Color of the spinner */
1174
1188
  color?: string;
@@ -1613,6 +1627,7 @@ declare global {
1613
1627
  'c-pagination': CPaginationElement;
1614
1628
  'c-popover': CPopoverElement;
1615
1629
  'c-progress-bar': CProgressBarElement;
1630
+ 'c-progress-circle': CProgressCircleElement;
1616
1631
  'c-radio': CRadioElement;
1617
1632
  'c-radio-group': CRadioGroupElement;
1618
1633
  'c-select': CSelectElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "Vue 3-based replacement for @cscfi/csc-ui — same custom element tag names, Vue v-model contract.",
5
5
  "type": "module",
6
6
  "main": "./dist/csc-ui.js",