@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.
@@ -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.3",
4
+ "version": "4.0.0-alpha.5",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -187,9 +187,14 @@
187
187
  },
188
188
  {
189
189
  "name": "c-alert",
190
- "description": "\n---\n\n\n### **Slots:**\n - **title** - Title slot\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The outer bordered box carrying the type's accent color\n- **icon** - The status icon svg shown for the error/info/success/warning types\n- **content** - The wrapper around the slotted title and message content",
190
+ "description": "\n---\n\n\n### **Events:**\n - **dismiss** - Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **title** - Title slot\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The tinted box carrying the type's wash, hairline border and accent edge\n- **icon** - The status icon svg\n- **content** - The wrapper around the slotted title and message content\n- **dismiss** - The dismiss button rendered when `dismissible` is set",
191
191
  "doc-url": "",
192
192
  "attributes": [
193
+ {
194
+ "name": "dismissible",
195
+ "description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
196
+ "value": { "type": "boolean", "default": "false" }
197
+ },
193
198
  {
194
199
  "name": "type",
195
200
  "description": "Type of the alert",
@@ -203,16 +208,33 @@
203
208
  { "name": "title", "description": "Title slot" },
204
209
  { "name": "default", "description": "Default slot" }
205
210
  ],
206
- "events": [],
211
+ "events": [
212
+ {
213
+ "name": "dismiss",
214
+ "type": "CustomEvent<void>",
215
+ "description": "Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal."
216
+ }
217
+ ],
207
218
  "js": {
208
219
  "properties": [
220
+ {
221
+ "name": "dismissible",
222
+ "description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
223
+ "type": "boolean"
224
+ },
209
225
  {
210
226
  "name": "type",
211
227
  "description": "Type of the alert",
212
228
  "type": "'default' | 'error' | 'info' | 'success' | 'warning'"
213
229
  }
214
230
  ],
215
- "events": []
231
+ "events": [
232
+ {
233
+ "name": "dismiss",
234
+ "type": "CustomEvent<void>",
235
+ "description": "Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal."
236
+ }
237
+ ]
216
238
  }
217
239
  },
218
240
  {
@@ -2450,9 +2472,19 @@
2450
2472
  },
2451
2473
  {
2452
2474
  "name": "c-menu-item",
2453
- "description": "A single command in a `c-menu`.\n---\n\n\n### **Slots:**\n - **default** - The item's content: label text plus optional icons or shortcut hint\n- **submenu** - c-menu-item components for the nested submenu\n\n### **CSS Parts:**\n - **root** - The item row containing the content and the submenu chevron\n- **content** - The flex wrapper around the default-slot content\n- **submenu-panel** - The floating popover holding the submenu\n- **submenu** - The submenu list surface inside the popover",
2475
+ "description": "A single command in a `c-menu`.\n---\n\n\n### **Slots:**\n - **default** - The item's content: label text plus optional icons or shortcut hint\n- **submenu** - c-menu-item components for the nested submenu\n\n### **CSS Parts:**\n - **root** - The item row containing the content and the submenu chevron\n- **content** - The flex wrapper around the default-slot content\n- **icon** - The leading icon rendered from the `icon` prop\n- **check** - The trailing indicator icon shown while the item is active\n- **submenu-panel** - The floating popover holding the submenu\n- **submenu** - The submenu list surface inside the popover",
2454
2476
  "doc-url": "",
2455
2477
  "attributes": [
2478
+ {
2479
+ "name": "active",
2480
+ "description": "Marks the item as the currently selected choice: renders the trailing\nindicator icon and stamps `role=\"menuitemradio\"` + `aria-checked`. Leave\nunset for regular command items — only a true/false value marks the item\nas a selectable choice. The state is consumer-owned: the menu emits\n`select` as usual and never toggles this itself. Distinct from the\nkeyboard highlight (the `data-active` attribute the controlling menu\nmoves between rows).",
2481
+ "value": { "type": "boolean" }
2482
+ },
2483
+ {
2484
+ "name": "active-icon",
2485
+ "description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
2486
+ "value": { "type": "string", "default": "''" }
2487
+ },
2456
2488
  {
2457
2489
  "name": "danger",
2458
2490
  "description": "Marks the action as destructive (renders in the error colour).",
@@ -2463,6 +2495,11 @@
2463
2495
  "description": "Disables the item — it is skipped by keyboard nav and emits no select.",
2464
2496
  "value": { "type": "boolean", "default": "false" }
2465
2497
  },
2498
+ {
2499
+ "name": "icon",
2500
+ "description": "SVG path for a leading icon rendered before the item's content.",
2501
+ "value": { "type": "string", "default": "''" }
2502
+ },
2466
2503
  {
2467
2504
  "name": "value",
2468
2505
  "description": "Value reported in the menu's `select` event when this item is chosen.",
@@ -2482,6 +2519,16 @@
2482
2519
  "events": [],
2483
2520
  "js": {
2484
2521
  "properties": [
2522
+ {
2523
+ "name": "active",
2524
+ "description": "Marks the item as the currently selected choice: renders the trailing\nindicator icon and stamps `role=\"menuitemradio\"` + `aria-checked`. Leave\nunset for regular command items — only a true/false value marks the item\nas a selectable choice. The state is consumer-owned: the menu emits\n`select` as usual and never toggles this itself. Distinct from the\nkeyboard highlight (the `data-active` attribute the controlling menu\nmoves between rows).",
2525
+ "type": "boolean"
2526
+ },
2527
+ {
2528
+ "name": "activeIcon",
2529
+ "description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
2530
+ "type": "string"
2531
+ },
2485
2532
  {
2486
2533
  "name": "danger",
2487
2534
  "description": "Marks the action as destructive (renders in the error colour).",
@@ -2492,6 +2539,11 @@
2492
2539
  "description": "Disables the item — it is skipped by keyboard nav and emits no select.",
2493
2540
  "type": "boolean"
2494
2541
  },
2542
+ {
2543
+ "name": "icon",
2544
+ "description": "SVG path for a leading icon rendered before the item's content.",
2545
+ "type": "string"
2546
+ },
2495
2547
  {
2496
2548
  "name": "value",
2497
2549
  "description": "Value reported in the menu's `select` event when this item is chosen.",
@@ -3021,9 +3073,87 @@
3021
3073
  ]
3022
3074
  }
3023
3075
  },
3076
+ {
3077
+ "name": "c-popover",
3078
+ "description": "A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive.\n---\n\n\n### **Events:**\n - **change:open** - Fired whenever the popover opens or closes, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached.\n\n### **Slots:**\n - **trigger** - The element that opens the popover (e.g. a c-button)\n- **default** - The popover's content; may contain interactive elements\n\n### **CSS Parts:**\n - **trigger** - The inline wrapper around the slotted trigger, serving as the panel's anchor\n- **panel** - The floating popover surface positioned against the trigger\n- **heading** - The heading rendered from the `heading` prop",
3079
+ "doc-url": "",
3080
+ "attributes": [
3081
+ {
3082
+ "name": "distance",
3083
+ "description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
3084
+ "value": { "type": "number | string", "default": "0" }
3085
+ },
3086
+ {
3087
+ "name": "heading",
3088
+ "description": "Heading rendered at the top of the panel, doubling as its accessible\nname. Without it, set `aria-label` on the host. Named `heading`, not\n`title`: a `title` attribute on the host would trigger the browser's\nnative tooltip and collides with `HTMLElement.title`.",
3089
+ "value": { "type": "string", "default": "''" }
3090
+ },
3091
+ {
3092
+ "name": "open",
3093
+ "description": "Whether the popover is open. Two-way: emits `change:open`.",
3094
+ "value": { "type": "boolean", "default": "false" }
3095
+ },
3096
+ {
3097
+ "name": "position",
3098
+ "description": "Preferred placement of the panel relative to the trigger.",
3099
+ "value": {
3100
+ "type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'",
3101
+ "default": "'bottom'"
3102
+ }
3103
+ }
3104
+ ],
3105
+ "slots": [
3106
+ {
3107
+ "name": "trigger",
3108
+ "description": "The element that opens the popover (e.g. a c-button)"
3109
+ },
3110
+ {
3111
+ "name": "default",
3112
+ "description": "The popover's content; may contain interactive elements"
3113
+ }
3114
+ ],
3115
+ "events": [
3116
+ {
3117
+ "name": "change:open",
3118
+ "type": "CustomEvent<boolean>",
3119
+ "description": "Fired whenever the popover opens or closes, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
3120
+ }
3121
+ ],
3122
+ "js": {
3123
+ "properties": [
3124
+ {
3125
+ "name": "distance",
3126
+ "description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
3127
+ "type": "number | string"
3128
+ },
3129
+ {
3130
+ "name": "heading",
3131
+ "description": "Heading rendered at the top of the panel, doubling as its accessible\nname. Without it, set `aria-label` on the host. Named `heading`, not\n`title`: a `title` attribute on the host would trigger the browser's\nnative tooltip and collides with `HTMLElement.title`.",
3132
+ "type": "string"
3133
+ },
3134
+ {
3135
+ "name": "open",
3136
+ "description": "Whether the popover is open. Two-way: emits `change:open`.",
3137
+ "type": "boolean"
3138
+ },
3139
+ {
3140
+ "name": "position",
3141
+ "description": "Preferred placement of the panel relative to the trigger.",
3142
+ "type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
3143
+ }
3144
+ ],
3145
+ "events": [
3146
+ {
3147
+ "name": "change:open",
3148
+ "type": "CustomEvent<boolean>",
3149
+ "description": "Fired whenever the popover opens or closes, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
3150
+ }
3151
+ ]
3152
+ }
3153
+ },
3024
3154
  {
3025
3155
  "name": "c-progress-bar",
3026
- "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",
3027
3157
  "doc-url": "",
3028
3158
  "attributes": [
3029
3159
  {
@@ -3086,15 +3216,59 @@
3086
3216
  }
3087
3217
  },
3088
3218
  {
3089
- "name": "c-radio",
3090
- "description": "\n---\n\n\n### **Slots:**\n - **default** - The radio button's label text, read by the parent c-radio-group",
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",
3091
3221
  "doc-url": "",
3092
3222
  "attributes": [
3093
3223
  {
3094
- "name": "checked",
3095
- "description": "Set option as checked",
3096
- "value": { "type": "boolean", "default": "false" }
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" }
3097
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
+ },
3267
+ {
3268
+ "name": "c-radio",
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",
3270
+ "doc-url": "",
3271
+ "attributes": [
3098
3272
  {
3099
3273
  "name": "disabled",
3100
3274
  "description": "Disable the radio button",
@@ -3109,17 +3283,18 @@
3109
3283
  "slots": [
3110
3284
  {
3111
3285
  "name": "default",
3112
- "description": "The radio button's label text, read by the parent c-radio-group"
3286
+ "description": "The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced"
3287
+ }
3288
+ ],
3289
+ "events": [
3290
+ {
3291
+ "name": "change",
3292
+ "type": "CustomEvent<string>",
3293
+ "description": "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`."
3113
3294
  }
3114
3295
  ],
3115
- "events": [],
3116
3296
  "js": {
3117
3297
  "properties": [
3118
- {
3119
- "name": "checked",
3120
- "description": "Set option as checked",
3121
- "type": "boolean"
3122
- },
3123
3298
  {
3124
3299
  "name": "disabled",
3125
3300
  "description": "Disable the radio button",
@@ -3131,12 +3306,18 @@
3131
3306
  "type": "string"
3132
3307
  }
3133
3308
  ],
3134
- "events": []
3309
+ "events": [
3310
+ {
3311
+ "name": "change",
3312
+ "type": "CustomEvent<string>",
3313
+ "description": "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`."
3314
+ }
3315
+ ]
3135
3316
  }
3136
3317
  },
3137
3318
  {
3138
3319
  "name": "c-radio-group",
3139
- "description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when a radio option is selected, carrying the selected item's\nvalue — or the whole item object when `return-object` is set. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on selection so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on selection, carrying the selected item's\nvalue — or the whole item object when `return-object` is set.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The radiogroup wrapper element carrying the disabled/error states\n- **label** - The group label above the radio buttons\n- **items** - The wrapper around the rendered radio button rows\n- **message** - The hint/error message line below the radios",
3320
+ "description": "A radio group is a set of mutually exclusive choices where exactly one can be selected, authored as slotted `c-radio` children. Give the group a `label` so the choice it represents is named for every user, and a `hint` describing how to answer.\n---\n\n\n### **Events:**\n - **changeValue** - Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on selection so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on selection, carrying the selected radio's\nvalue.\n\n### **Slots:**\n - **default** - The radios' home: `<c-radio>` children, wrappable in arbitrary layout elements at any depth\n- **label** - Group label content, used when the `label` prop is not set\n\n### **CSS Parts:**\n - **root** - The radiogroup wrapper element\n- **label** - The group label above the radio buttons\n- **items** - The container the radios are slotted into\n- **message** - The hint/error message area below the radios (always reserved unless `hide-details`)",
3140
3321
  "doc-url": "",
3141
3322
  "attributes": [
3142
3323
  {
@@ -3159,11 +3340,6 @@
3159
3340
  "description": "Hint text for the input",
3160
3341
  "value": { "type": "string", "default": "''" }
3161
3342
  },
3162
- {
3163
- "name": "host-id",
3164
- "description": "Id of the element",
3165
- "value": { "type": "string", "default": "''" }
3166
- },
3167
3343
  {
3168
3344
  "name": "inline",
3169
3345
  "description": "Display radio buttons inline",
@@ -3179,11 +3355,6 @@
3179
3355
  "description": "Set as required",
3180
3356
  "value": { "type": "boolean", "default": "false" }
3181
3357
  },
3182
- {
3183
- "name": "return-object",
3184
- "description": "Return the whole item object",
3185
- "value": { "type": "boolean", "default": "false" }
3186
- },
3187
3358
  {
3188
3359
  "name": "valid",
3189
3360
  "description": "Set the validity of the input",
@@ -3191,21 +3362,25 @@
3191
3362
  },
3192
3363
  {
3193
3364
  "name": "value",
3194
- "description": "Value of the radio group",
3195
- "value": {
3196
- "type": "null | number | RadioItem | string",
3197
- "default": "null"
3198
- }
3365
+ "description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
3366
+ "value": { "type": "null | string", "default": "null" }
3199
3367
  }
3200
3368
  ],
3201
3369
  "slots": [
3202
- { "name": "default", "description": "Default slot for the label" }
3370
+ {
3371
+ "name": "default",
3372
+ "description": "The radios' home: `<c-radio>` children, wrappable in arbitrary layout elements at any depth"
3373
+ },
3374
+ {
3375
+ "name": "label",
3376
+ "description": "Group label content, used when the `label` prop is not set"
3377
+ }
3203
3378
  ],
3204
3379
  "events": [
3205
3380
  {
3206
3381
  "name": "changeValue",
3207
- "type": "CustomEvent<number | RadioItem | string>",
3208
- "description": "Fired when a radio option is selected, carrying the selected item's\nvalue — or the whole item object when `return-object` is set. Also dispatched as `change-value` — bind that name in Vue templates."
3382
+ "type": "CustomEvent<string>",
3383
+ "description": "Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates."
3209
3384
  },
3210
3385
  {
3211
3386
  "name": "input",
@@ -3214,8 +3389,8 @@
3214
3389
  },
3215
3390
  {
3216
3391
  "name": "update:value",
3217
- "type": "CustomEvent<number | RadioItem | string>",
3218
- "description": "v-model contract event fired on selection, carrying the selected item's\nvalue — or the whole item object when `return-object` is set."
3392
+ "type": "CustomEvent<string>",
3393
+ "description": "v-model contract event fired on selection, carrying the selected radio's\nvalue."
3219
3394
  }
3220
3395
  ],
3221
3396
  "js": {
@@ -3240,21 +3415,11 @@
3240
3415
  "description": "Hint text for the input",
3241
3416
  "type": "string"
3242
3417
  },
3243
- {
3244
- "name": "hostId",
3245
- "description": "Id of the element",
3246
- "type": "string"
3247
- },
3248
3418
  {
3249
3419
  "name": "inline",
3250
3420
  "description": "Display radio buttons inline",
3251
3421
  "type": "boolean"
3252
3422
  },
3253
- {
3254
- "name": "items",
3255
- "description": "Radio group items",
3256
- "type": "RadioItem[]"
3257
- },
3258
3423
  {
3259
3424
  "name": "label",
3260
3425
  "description": "Label of the radio group",
@@ -3265,11 +3430,6 @@
3265
3430
  "description": "Set as required",
3266
3431
  "type": "boolean"
3267
3432
  },
3268
- {
3269
- "name": "returnObject",
3270
- "description": "Return the whole item object",
3271
- "type": "boolean"
3272
- },
3273
3433
  {
3274
3434
  "name": "valid",
3275
3435
  "description": "Set the validity of the input",
@@ -3277,15 +3437,15 @@
3277
3437
  },
3278
3438
  {
3279
3439
  "name": "value",
3280
- "description": "Value of the radio group",
3281
- "type": "null | number | RadioItem | string"
3440
+ "description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
3441
+ "type": "null | string"
3282
3442
  }
3283
3443
  ],
3284
3444
  "events": [
3285
3445
  {
3286
3446
  "name": "changeValue",
3287
- "type": "CustomEvent<number | RadioItem | string>",
3288
- "description": "Fired when a radio option is selected, carrying the selected item's\nvalue — or the whole item object when `return-object` is set. Also dispatched as `change-value` — bind that name in Vue templates."
3447
+ "type": "CustomEvent<string>",
3448
+ "description": "Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates."
3289
3449
  },
3290
3450
  {
3291
3451
  "name": "input",
@@ -3294,8 +3454,8 @@
3294
3454
  },
3295
3455
  {
3296
3456
  "name": "update:value",
3297
- "type": "CustomEvent<number | RadioItem | string>",
3298
- "description": "v-model contract event fired on selection, carrying the selected item's\nvalue — or the whole item object when `return-object` is set."
3457
+ "type": "CustomEvent<string>",
3458
+ "description": "v-model contract event fired on selection, carrying the selected radio's\nvalue."
3299
3459
  }
3300
3460
  ]
3301
3461
  }
@@ -3891,7 +4051,7 @@
3891
4051
  },
3892
4052
  {
3893
4053
  "name": "c-spinner",
3894
- "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",
3895
4055
  "doc-url": "",
3896
4056
  "attributes": [
3897
4057
  {
@@ -5055,7 +5215,7 @@
5055
5215
  },
5056
5216
  {
5057
5217
  "name": "c-toast",
5058
- "description": "A single toast notification, rendered and managed by c-toasts\n---\n\n\n### **Events:**\n - **close** - Fired once the toast's leave transition has finished (after a manual\ndismiss or the auto-close timer), carrying the dismissed toast's message\nobject.\n\n### **Slots:**\n - **default** - Custom toast content, shown when the message is flagged `custom`\n\n### **CSS Parts:**\n - **root** - The toast's outer box carrying the accent border and shadow\n- **custom** - Wrapper shown for custom messages in place of the standard item layout\n- **content** - The message body holding the title and text, or the slotted custom content\n- **item** - Row layout of a standard toast: type icon, message body and close button\n- **progress** - The track of the auto-close progress bar",
5218
+ "description": "A single toast notification, rendered and managed by c-toasts\n---\n\n\n### **Events:**\n - **close** - Fired once the toast's leave transition has finished (after a manual\ndismiss or the auto-close timer), carrying the dismissed toast's message\nobject.\n\n### **Slots:**\n - **default** - Custom toast content, shown when the message is flagged `custom`\n\n### **CSS Parts:**\n - **root** - The toast's outer box: the inverted-surface pill carrying the shadow\n- **custom** - Wrapper shown for custom messages in place of the standard item layout\n- **content** - The message body holding the title and text, or the slotted custom content\n- **item** - Row layout of a standard toast: status badge, message body and dismiss button\n- **badge** - The circular tinted badge holding the status icon\n- **dismiss** - The dismiss button (icon-only, or labelled when the message sets `closeText`)\n- **progress** - The track of the auto-close progress bar",
5059
5219
  "doc-url": "",
5060
5220
  "attributes": [
5061
5221
  {
@@ -5154,6 +5314,94 @@
5154
5314
  "slots": [{ "name": "default", "description": "Content of toolbar" }],
5155
5315
  "events": [],
5156
5316
  "js": { "properties": [], "events": [] }
5317
+ },
5318
+ {
5319
+ "name": "c-tooltip",
5320
+ "description": "A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier.\n---\n\n\n### **Events:**\n - **change:open** - Fired whenever the tooltip shows or hides, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached.\n\n### **Slots:**\n - **trigger** - The element the tooltip describes (e.g. a c-icon-button)\n- **content** - Formatted tooltip content, overriding the `text` prop; must stay non-interactive (ADR-0033)\n\n### **CSS Parts:**\n - **trigger** - The inline wrapper around the slotted trigger, serving as the panel's anchor\n- **panel** - The floating tooltip bubble positioned against the trigger",
5321
+ "doc-url": "",
5322
+ "attributes": [
5323
+ {
5324
+ "name": "delay",
5325
+ "description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
5326
+ "value": { "type": "number | string", "default": "400" }
5327
+ },
5328
+ {
5329
+ "name": "distance",
5330
+ "description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
5331
+ "value": { "type": "number | string", "default": "4" }
5332
+ },
5333
+ {
5334
+ "name": "open",
5335
+ "description": "Whether the tooltip is open. Two-way: emits `change:open`.",
5336
+ "value": { "type": "boolean", "default": "false" }
5337
+ },
5338
+ {
5339
+ "name": "position",
5340
+ "description": "Preferred placement of the tooltip relative to the trigger.",
5341
+ "value": {
5342
+ "type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'",
5343
+ "default": "'top'"
5344
+ }
5345
+ },
5346
+ {
5347
+ "name": "text",
5348
+ "description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
5349
+ "value": { "type": "string", "default": "''" }
5350
+ }
5351
+ ],
5352
+ "slots": [
5353
+ {
5354
+ "name": "trigger",
5355
+ "description": "The element the tooltip describes (e.g. a c-icon-button)"
5356
+ },
5357
+ {
5358
+ "name": "content",
5359
+ "description": "Formatted tooltip content, overriding the `text` prop; must stay non-interactive (ADR-0033)"
5360
+ }
5361
+ ],
5362
+ "events": [
5363
+ {
5364
+ "name": "change:open",
5365
+ "type": "CustomEvent<boolean>",
5366
+ "description": "Fired whenever the tooltip shows or hides, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
5367
+ }
5368
+ ],
5369
+ "js": {
5370
+ "properties": [
5371
+ {
5372
+ "name": "delay",
5373
+ "description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
5374
+ "type": "number | string"
5375
+ },
5376
+ {
5377
+ "name": "distance",
5378
+ "description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
5379
+ "type": "number | string"
5380
+ },
5381
+ {
5382
+ "name": "open",
5383
+ "description": "Whether the tooltip is open. Two-way: emits `change:open`.",
5384
+ "type": "boolean"
5385
+ },
5386
+ {
5387
+ "name": "position",
5388
+ "description": "Preferred placement of the tooltip relative to the trigger.",
5389
+ "type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
5390
+ },
5391
+ {
5392
+ "name": "text",
5393
+ "description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
5394
+ "type": "string"
5395
+ }
5396
+ ],
5397
+ "events": [
5398
+ {
5399
+ "name": "change:open",
5400
+ "type": "CustomEvent<boolean>",
5401
+ "description": "Fired whenever the tooltip shows or hides, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
5402
+ }
5403
+ ]
5404
+ }
5157
5405
  }
5158
5406
  ]
5159
5407
  },
@@ -5187,16 +5435,17 @@
5187
5435
  },
5188
5436
  {
5189
5437
  "name": "part(root)",
5190
- "description": "The outer bordered box carrying the type's accent color"
5191
- },
5192
- {
5193
- "name": "part(icon)",
5194
- "description": "The status icon svg shown for the error/info/success/warning types"
5438
+ "description": "The tinted box carrying the type's wash, hairline border and accent edge"
5195
5439
  },
5440
+ { "name": "part(icon)", "description": "The status icon svg" },
5196
5441
  {
5197
5442
  "name": "part(content)",
5198
5443
  "description": "The wrapper around the slotted title and message content"
5199
5444
  },
5445
+ {
5446
+ "name": "part(dismiss)",
5447
+ "description": "The dismiss button rendered when `dismissible` is set"
5448
+ },
5200
5449
  {
5201
5450
  "name": "part(panel)",
5202
5451
  "description": "The top-layer popover container anchored below the field"
@@ -5482,6 +5731,14 @@
5482
5731
  "name": "part(content)",
5483
5732
  "description": "The flex wrapper around the default-slot content"
5484
5733
  },
5734
+ {
5735
+ "name": "part(icon)",
5736
+ "description": "The leading icon rendered from the `icon` prop"
5737
+ },
5738
+ {
5739
+ "name": "part(check)",
5740
+ "description": "The trailing indicator icon shown while the item is active"
5741
+ },
5485
5742
  {
5486
5743
  "name": "part(submenu-panel)",
5487
5744
  "description": "The floating popover holding the submenu"
@@ -5550,6 +5807,18 @@
5550
5807
  "name": "part(pages)",
5551
5808
  "description": "The `<ul>` list of page buttons and the prev/next controls"
5552
5809
  },
5810
+ {
5811
+ "name": "part(trigger)",
5812
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
5813
+ },
5814
+ {
5815
+ "name": "part(panel)",
5816
+ "description": "The floating popover surface positioned against the trigger"
5817
+ },
5818
+ {
5819
+ "name": "part(heading)",
5820
+ "description": "The heading rendered from the `heading` prop"
5821
+ },
5553
5822
  {
5554
5823
  "name": "part(root)",
5555
5824
  "description": "The outer flex wrapper around the bar and the details line"
@@ -5564,7 +5833,32 @@
5564
5833
  },
5565
5834
  {
5566
5835
  "name": "part(root)",
5567
- "description": "The radiogroup wrapper element carrying the disabled/error states"
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
+ },
5847
+ {
5848
+ "name": "part(root)",
5849
+ "description": "The `<label>` row wrapping the input, indicator and label content"
5850
+ },
5851
+ {
5852
+ "name": "part(indicator)",
5853
+ "description": "The circular ripple surface holding the radio ring and dot"
5854
+ },
5855
+ {
5856
+ "name": "part(content)",
5857
+ "description": "Wrapper around the slotted label content"
5858
+ },
5859
+ {
5860
+ "name": "part(root)",
5861
+ "description": "The radiogroup wrapper element"
5568
5862
  },
5569
5863
  {
5570
5864
  "name": "part(label)",
@@ -5572,11 +5866,11 @@
5572
5866
  },
5573
5867
  {
5574
5868
  "name": "part(items)",
5575
- "description": "The wrapper around the rendered radio button rows"
5869
+ "description": "The container the radios are slotted into"
5576
5870
  },
5577
5871
  {
5578
5872
  "name": "part(message)",
5579
- "description": "The hint/error message line below the radios"
5873
+ "description": "The hint/error message area below the radios (always reserved unless `hide-details`)"
5580
5874
  },
5581
5875
  {
5582
5876
  "name": "part(menu)",
@@ -5737,7 +6031,7 @@
5737
6031
  },
5738
6032
  {
5739
6033
  "name": "part(root)",
5740
- "description": "The toast's outer box carrying the accent border and shadow"
6034
+ "description": "The toast's outer box: the inverted-surface pill carrying the shadow"
5741
6035
  },
5742
6036
  {
5743
6037
  "name": "part(custom)",
@@ -5749,7 +6043,15 @@
5749
6043
  },
5750
6044
  {
5751
6045
  "name": "part(item)",
5752
- "description": "Row layout of a standard toast: type icon, message body and close button"
6046
+ "description": "Row layout of a standard toast: status badge, message body and dismiss button"
6047
+ },
6048
+ {
6049
+ "name": "part(badge)",
6050
+ "description": "The circular tinted badge holding the status icon"
6051
+ },
6052
+ {
6053
+ "name": "part(dismiss)",
6054
+ "description": "The dismiss button (icon-only, or labelled when the message sets `closeText`)"
5753
6055
  },
5754
6056
  {
5755
6057
  "name": "part(progress)",
@@ -5762,6 +6064,14 @@
5762
6064
  {
5763
6065
  "name": "part(root)",
5764
6066
  "description": "The toolbar bar itself, fixed to the top of the viewport"
6067
+ },
6068
+ {
6069
+ "name": "part(trigger)",
6070
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
6071
+ },
6072
+ {
6073
+ "name": "part(panel)",
6074
+ "description": "The floating tooltip bubble positioned against the trigger"
5765
6075
  }
5766
6076
  ]
5767
6077
  }