@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.
@@ -8,6 +8,12 @@
8
8
  "kind": "type-alias",
9
9
  "name": "CFieldSize"
10
10
  },
11
+ {
12
+ "declaration": "export type CPlacement =\n | 'bottom-end'\n | 'bottom-start'\n | 'bottom'\n | 'left-end'\n | 'left-start'\n | 'left'\n | 'right-end'\n | 'right-start'\n | 'right'\n | 'top-end'\n | 'top-start'\n | 'top';",
13
+ "description": "Preferred placement of a floating panel relative to its anchor, shared by\nthe anchor-positioned overlay components (`c-menu`, `c-tooltip`,\n`c-popover`). The side names the panel's position; `-start`/`-end` align\nthe panel's edge with the anchor's on the cross axis.",
14
+ "kind": "type-alias",
15
+ "name": "CPlacement"
16
+ },
11
17
  {
12
18
  "declaration": "export interface CSelectItem {\n /** Disable the item so it cannot be selected. */\n disabled?: boolean;\n /** The item's display label. */\n name: string;\n /** The value emitted via v-model when the item is selected. */\n value: number | string;\n}",
13
19
  "description": "A selectable item for the value-selection components (`c-select`,\n`c-autocomplete`) when options are supplied via the `items` prop instead of\nslotted `<c-option>` elements.",
@@ -28,13 +34,13 @@
28
34
  },
29
35
  {
30
36
  "declaration": "export type CAlertIconType = 'error' | 'info' | 'success' | 'warning';",
31
- "description": "The alert types that render a status icon and carry that status's accent\ncolour.",
37
+ "description": "The alert types that carry a status family's accent colour; `default` uses\nthe brand primary. Every type renders its status icon.",
32
38
  "kind": "type-alias",
33
39
  "name": "CAlertIconType",
34
40
  "owner": "c-alert"
35
41
  },
36
42
  {
37
- "declaration": "export interface CAlertProps {\n /**\n * Type of the alert\n *\n * @seeded from csc-ui — verify\n */\n type?: CAlertType;\n}",
43
+ "declaration": "export interface CAlertProps {\n /**\n * Show a dismiss button. The alert only emits `dismiss` — removing it from\n * the page stays the consumer's job.\n */\n dismissible?: boolean;\n /**\n * Type of the alert\n *\n * @seeded from csc-ui — verify\n */\n type?: CAlertType;\n}",
38
44
  "description": "",
39
45
  "kind": "interface",
40
46
  "name": "CAlertProps",
@@ -42,7 +48,7 @@
42
48
  },
43
49
  {
44
50
  "declaration": "export type CAlertType = 'default' | CAlertIconType;",
45
- "description": "Type of the alert. `default` — equivalently, omitting the attribute —\nrenders the neutral box without a status icon.",
51
+ "description": "Type of the alert. `default` — equivalently, omitting the attribute —\nrenders the brand-primary look; the four status types carry their status\nfamily's colours.",
46
52
  "kind": "type-alias",
47
53
  "name": "CAlertType",
48
54
  "owner": "c-alert"
@@ -306,6 +312,13 @@
306
312
  "name": "CPaginationSize",
307
313
  "owner": "c-pagination"
308
314
  },
315
+ {
316
+ "declaration": "export interface CPopoverProps {\n /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */\n distance?: number | string;\n /**\n * Heading rendered at the top of the panel, doubling as its accessible\n * name. Without it, set `aria-label` on the host. Named `heading`, not\n * `title`: a `title` attribute on the host would trigger the browser's\n * native tooltip and collides with `HTMLElement.title`.\n * @freeform\n */\n heading?: string;\n /** Whether the popover is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the panel relative to the trigger. */\n position?: CPlacement;\n}",
317
+ "description": "",
318
+ "kind": "interface",
319
+ "name": "CPopoverProps",
320
+ "owner": "c-popover"
321
+ },
309
322
  {
310
323
  "declaration": "export interface CStatusProps {\n /**\n * Status type\n *\n * @seeded from csc-ui — verify\n */\n type?: CStatusType;\n}",
311
324
  "description": "",
@@ -424,6 +437,13 @@
424
437
  "kind": "type-alias",
425
438
  "name": "CToastsVertical",
426
439
  "owner": "c-toasts"
440
+ },
441
+ {
442
+ "declaration": "export interface CTooltipProps {\n /**\n * Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\n * shows the tooltip immediately, regardless of this value. Defaults to\n * `400`.\n */\n delay?: number | string;\n /** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */\n distance?: number | string;\n /** Whether the tooltip is open. Two-way: emits `change:open`. */\n open?: boolean;\n /** Preferred placement of the tooltip relative to the trigger. */\n position?: CPlacement;\n /**\n * The tooltip text. Overridden by the `content` slot when that is\n * populated.\n * @freeform\n */\n text?: string;\n}",
443
+ "description": "",
444
+ "kind": "interface",
445
+ "name": "CTooltipProps",
446
+ "owner": "c-tooltip"
427
447
  }
428
448
  ]
429
449
  },
@@ -760,6 +780,15 @@
760
780
  "name": "CAlert",
761
781
  "tagName": "c-alert",
762
782
  "attributes": [
783
+ {
784
+ "fieldName": "dismissible",
785
+ "name": "dismissible",
786
+ "description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
787
+ "type": {
788
+ "text": "boolean"
789
+ },
790
+ "default": "false"
791
+ },
763
792
  {
764
793
  "fieldName": "type",
765
794
  "name": "type",
@@ -776,20 +805,42 @@
776
805
  "cssParts": [
777
806
  {
778
807
  "name": "root",
779
- "description": "The outer bordered box carrying the type's accent color"
808
+ "description": "The tinted box carrying the type's wash, hairline border and accent edge"
780
809
  },
781
810
  {
782
811
  "name": "icon",
783
- "description": "The status icon svg shown for the error/info/success/warning types"
812
+ "description": "The status icon svg"
784
813
  },
785
814
  {
786
815
  "name": "content",
787
816
  "description": "The wrapper around the slotted title and message content"
817
+ },
818
+ {
819
+ "name": "dismiss",
820
+ "description": "The dismiss button rendered when `dismissible` is set"
788
821
  }
789
822
  ],
790
823
  "cssProperties": [],
791
- "events": [],
824
+ "events": [
825
+ {
826
+ "name": "dismiss",
827
+ "type": {
828
+ "text": "CustomEvent<void>"
829
+ },
830
+ "description": "Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal."
831
+ }
832
+ ],
792
833
  "members": [
834
+ {
835
+ "kind": "field",
836
+ "name": "dismissible",
837
+ "privacy": "public",
838
+ "description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
839
+ "type": {
840
+ "text": "boolean"
841
+ },
842
+ "default": "false"
843
+ },
793
844
  {
794
845
  "kind": "field",
795
846
  "name": "type",
@@ -5699,7 +5750,7 @@
5699
5750
  },
5700
5751
  "default": "'bottom-start'",
5701
5752
  "csc": {
5702
- "typeAlias": "Placement"
5753
+ "typeAlias": "CPlacement"
5703
5754
  }
5704
5755
  }
5705
5756
  ],
@@ -5765,7 +5816,7 @@
5765
5816
  },
5766
5817
  "default": "'bottom-start'",
5767
5818
  "csc": {
5768
- "typeAlias": "Placement"
5819
+ "typeAlias": "CPlacement"
5769
5820
  }
5770
5821
  }
5771
5822
  ],
@@ -5814,6 +5865,26 @@
5814
5865
  "usage": "docs/c-menu-item/usage.md"
5815
5866
  },
5816
5867
  "attributes": [
5868
+ {
5869
+ "fieldName": "active",
5870
+ "name": "active",
5871
+ "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).",
5872
+ "type": {
5873
+ "text": "boolean"
5874
+ }
5875
+ },
5876
+ {
5877
+ "fieldName": "activeIcon",
5878
+ "name": "active-icon",
5879
+ "description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
5880
+ "type": {
5881
+ "text": "string"
5882
+ },
5883
+ "default": "''",
5884
+ "csc": {
5885
+ "freeform": "SVG path data"
5886
+ }
5887
+ },
5817
5888
  {
5818
5889
  "fieldName": "danger",
5819
5890
  "name": "danger",
@@ -5832,6 +5903,18 @@
5832
5903
  },
5833
5904
  "default": "false"
5834
5905
  },
5906
+ {
5907
+ "fieldName": "icon",
5908
+ "name": "icon",
5909
+ "description": "SVG path for a leading icon rendered before the item's content.",
5910
+ "type": {
5911
+ "text": "string"
5912
+ },
5913
+ "default": "''",
5914
+ "csc": {
5915
+ "freeform": "SVG path data"
5916
+ }
5917
+ },
5835
5918
  {
5836
5919
  "fieldName": "value",
5837
5920
  "name": "value",
@@ -5853,6 +5936,14 @@
5853
5936
  "name": "content",
5854
5937
  "description": "The flex wrapper around the default-slot content"
5855
5938
  },
5939
+ {
5940
+ "name": "icon",
5941
+ "description": "The leading icon rendered from the `icon` prop"
5942
+ },
5943
+ {
5944
+ "name": "check",
5945
+ "description": "The trailing indicator icon shown while the item is active"
5946
+ },
5856
5947
  {
5857
5948
  "name": "submenu-panel",
5858
5949
  "description": "The floating popover holding the submenu"
@@ -5865,6 +5956,28 @@
5865
5956
  "cssProperties": [],
5866
5957
  "events": [],
5867
5958
  "members": [
5959
+ {
5960
+ "kind": "field",
5961
+ "name": "active",
5962
+ "privacy": "public",
5963
+ "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).",
5964
+ "type": {
5965
+ "text": "boolean"
5966
+ }
5967
+ },
5968
+ {
5969
+ "kind": "field",
5970
+ "name": "activeIcon",
5971
+ "privacy": "public",
5972
+ "description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
5973
+ "type": {
5974
+ "text": "string"
5975
+ },
5976
+ "default": "''",
5977
+ "csc": {
5978
+ "freeform": "SVG path data"
5979
+ }
5980
+ },
5868
5981
  {
5869
5982
  "kind": "field",
5870
5983
  "name": "danger",
@@ -5885,6 +5998,19 @@
5885
5998
  },
5886
5999
  "default": "false"
5887
6000
  },
6001
+ {
6002
+ "kind": "field",
6003
+ "name": "icon",
6004
+ "privacy": "public",
6005
+ "description": "SVG path for a leading icon rendered before the item's content.",
6006
+ "type": {
6007
+ "text": "string"
6008
+ },
6009
+ "default": "''",
6010
+ "csc": {
6011
+ "freeform": "SVG path data"
6012
+ }
6013
+ },
5888
6014
  {
5889
6015
  "kind": "field",
5890
6016
  "name": "value",
@@ -7044,6 +7170,166 @@
7044
7170
  "kind": "javascript-module",
7045
7171
  "path": "src/components/c-pagination/CPagination.vue"
7046
7172
  },
7173
+ {
7174
+ "declarations": [
7175
+ {
7176
+ "customElement": true,
7177
+ "kind": "class",
7178
+ "name": "CPopover",
7179
+ "tagName": "c-popover",
7180
+ "description": "A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive.",
7181
+ "csc": {
7182
+ "usage": "docs/c-popover/usage.md"
7183
+ },
7184
+ "attributes": [
7185
+ {
7186
+ "fieldName": "distance",
7187
+ "name": "distance",
7188
+ "description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
7189
+ "type": {
7190
+ "text": "number | string"
7191
+ },
7192
+ "default": "0"
7193
+ },
7194
+ {
7195
+ "fieldName": "heading",
7196
+ "name": "heading",
7197
+ "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`.",
7198
+ "type": {
7199
+ "text": "string"
7200
+ },
7201
+ "default": "''",
7202
+ "csc": {
7203
+ "freeform": true
7204
+ }
7205
+ },
7206
+ {
7207
+ "fieldName": "open",
7208
+ "name": "open",
7209
+ "description": "Whether the popover is open. Two-way: emits `change:open`.",
7210
+ "type": {
7211
+ "text": "boolean"
7212
+ },
7213
+ "default": "false"
7214
+ },
7215
+ {
7216
+ "fieldName": "position",
7217
+ "name": "position",
7218
+ "description": "Preferred placement of the panel relative to the trigger.",
7219
+ "type": {
7220
+ "text": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
7221
+ },
7222
+ "default": "'bottom'",
7223
+ "csc": {
7224
+ "typeAlias": "CPlacement"
7225
+ }
7226
+ }
7227
+ ],
7228
+ "cssParts": [
7229
+ {
7230
+ "name": "trigger",
7231
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
7232
+ },
7233
+ {
7234
+ "name": "panel",
7235
+ "description": "The floating popover surface positioned against the trigger"
7236
+ },
7237
+ {
7238
+ "name": "heading",
7239
+ "description": "The heading rendered from the `heading` prop"
7240
+ }
7241
+ ],
7242
+ "cssProperties": [],
7243
+ "events": [
7244
+ {
7245
+ "name": "change:open",
7246
+ "type": {
7247
+ "text": "CustomEvent<boolean>"
7248
+ },
7249
+ "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."
7250
+ }
7251
+ ],
7252
+ "members": [
7253
+ {
7254
+ "kind": "field",
7255
+ "name": "distance",
7256
+ "privacy": "public",
7257
+ "description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
7258
+ "type": {
7259
+ "text": "number | string"
7260
+ },
7261
+ "default": "0"
7262
+ },
7263
+ {
7264
+ "kind": "field",
7265
+ "name": "heading",
7266
+ "privacy": "public",
7267
+ "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`.",
7268
+ "type": {
7269
+ "text": "string"
7270
+ },
7271
+ "default": "''",
7272
+ "csc": {
7273
+ "freeform": true
7274
+ }
7275
+ },
7276
+ {
7277
+ "kind": "field",
7278
+ "name": "open",
7279
+ "privacy": "public",
7280
+ "description": "Whether the popover is open. Two-way: emits `change:open`.",
7281
+ "type": {
7282
+ "text": "boolean"
7283
+ },
7284
+ "default": "false"
7285
+ },
7286
+ {
7287
+ "kind": "field",
7288
+ "name": "position",
7289
+ "privacy": "public",
7290
+ "description": "Preferred placement of the panel relative to the trigger.",
7291
+ "type": {
7292
+ "text": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
7293
+ },
7294
+ "default": "'bottom'",
7295
+ "csc": {
7296
+ "typeAlias": "CPlacement"
7297
+ }
7298
+ }
7299
+ ],
7300
+ "slots": [
7301
+ {
7302
+ "name": "trigger",
7303
+ "description": "The element that opens the popover (e.g. a c-button)"
7304
+ },
7305
+ {
7306
+ "name": "default",
7307
+ "description": "The popover's content; may contain interactive elements"
7308
+ }
7309
+ ]
7310
+ }
7311
+ ],
7312
+ "exports": [
7313
+ {
7314
+ "declaration": {
7315
+ "module": "src/components/c-popover/CPopover.vue",
7316
+ "name": "CPopover"
7317
+ },
7318
+ "kind": "js",
7319
+ "name": "CPopover"
7320
+ },
7321
+ {
7322
+ "declaration": {
7323
+ "module": "src/components/c-popover/CPopover.vue",
7324
+ "name": "CPopover"
7325
+ },
7326
+ "kind": "custom-element-definition",
7327
+ "name": "c-popover"
7328
+ }
7329
+ ],
7330
+ "kind": "javascript-module",
7331
+ "path": "src/components/c-popover/CPopover.vue"
7332
+ },
7047
7333
  {
7048
7334
  "declarations": [
7049
7335
  {
@@ -7051,6 +7337,10 @@
7051
7337
  "kind": "class",
7052
7338
  "name": "CProgressBar",
7053
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
+ },
7054
7344
  "attributes": [
7055
7345
  {
7056
7346
  "fieldName": "hideDetails",
@@ -7201,26 +7491,142 @@
7201
7491
  {
7202
7492
  "customElement": true,
7203
7493
  "kind": "class",
7204
- "name": "CRadio",
7205
- "tagName": "c-radio",
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
+ },
7206
7500
  "attributes": [
7207
7501
  {
7208
- "fieldName": "checked",
7209
- "name": "checked",
7210
- "description": "Set option as checked",
7502
+ "fieldName": "size",
7503
+ "name": "size",
7504
+ "description": "Diameter of the circle in pixels",
7211
7505
  "type": {
7212
- "text": "boolean"
7506
+ "text": "number"
7213
7507
  },
7214
- "default": "false"
7508
+ "default": "32"
7215
7509
  },
7216
7510
  {
7217
- "fieldName": "disabled",
7218
- "name": "disabled",
7219
- "description": "Disable the radio button",
7511
+ "fieldName": "value",
7512
+ "name": "value",
7513
+ "description": "Progress value in percentage (0 to 100)",
7220
7514
  "type": {
7221
- "text": "boolean"
7515
+ "text": "number"
7222
7516
  },
7223
- "default": "false"
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
+ },
7610
+ {
7611
+ "declarations": [
7612
+ {
7613
+ "customElement": true,
7614
+ "kind": "class",
7615
+ "name": "CRadio",
7616
+ "tagName": "c-radio",
7617
+ "description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.",
7618
+ "csc": {
7619
+ "usage": "docs/c-radio/usage.md"
7620
+ },
7621
+ "attributes": [
7622
+ {
7623
+ "fieldName": "disabled",
7624
+ "name": "disabled",
7625
+ "description": "Disable the radio button",
7626
+ "type": {
7627
+ "text": "boolean"
7628
+ },
7629
+ "default": "false"
7224
7630
  },
7225
7631
  {
7226
7632
  "fieldName": "value",
@@ -7235,20 +7641,31 @@
7235
7641
  }
7236
7642
  }
7237
7643
  ],
7238
- "cssParts": [],
7644
+ "cssParts": [
7645
+ {
7646
+ "name": "root",
7647
+ "description": "The `<label>` row wrapping the input, indicator and label content"
7648
+ },
7649
+ {
7650
+ "name": "indicator",
7651
+ "description": "The circular ripple surface holding the radio ring and dot"
7652
+ },
7653
+ {
7654
+ "name": "content",
7655
+ "description": "Wrapper around the slotted label content"
7656
+ }
7657
+ ],
7239
7658
  "cssProperties": [],
7240
- "events": [],
7241
- "members": [
7659
+ "events": [
7242
7660
  {
7243
- "kind": "field",
7244
- "name": "checked",
7245
- "privacy": "public",
7246
- "description": "Set option as checked",
7661
+ "name": "change",
7247
7662
  "type": {
7248
- "text": "boolean"
7663
+ "text": "CustomEvent<string>"
7249
7664
  },
7250
- "default": "false"
7251
- },
7665
+ "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`."
7666
+ }
7667
+ ],
7668
+ "members": [
7252
7669
  {
7253
7670
  "kind": "field",
7254
7671
  "name": "disabled",
@@ -7276,7 +7693,7 @@
7276
7693
  "slots": [
7277
7694
  {
7278
7695
  "name": "default",
7279
- "description": "The radio button's label text, read by the parent c-radio-group"
7696
+ "description": "The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced"
7280
7697
  }
7281
7698
  ]
7282
7699
  }
@@ -7309,7 +7726,9 @@
7309
7726
  "kind": "class",
7310
7727
  "name": "CRadioGroup",
7311
7728
  "tagName": "c-radio-group",
7729
+ "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.",
7312
7730
  "csc": {
7731
+ "usage": "docs/c-radio-group/usage.md",
7313
7732
  "subcomponents": [
7314
7733
  "c-radio"
7315
7734
  ]
@@ -7357,18 +7776,6 @@
7357
7776
  "freeform": true
7358
7777
  }
7359
7778
  },
7360
- {
7361
- "fieldName": "hostId",
7362
- "name": "host-id",
7363
- "description": "Id of the element",
7364
- "type": {
7365
- "text": "string"
7366
- },
7367
- "default": "''",
7368
- "csc": {
7369
- "freeform": true
7370
- }
7371
- },
7372
7779
  {
7373
7780
  "fieldName": "inline",
7374
7781
  "name": "inline",
@@ -7399,15 +7806,6 @@
7399
7806
  },
7400
7807
  "default": "false"
7401
7808
  },
7402
- {
7403
- "fieldName": "returnObject",
7404
- "name": "return-object",
7405
- "description": "Return the whole item object",
7406
- "type": {
7407
- "text": "boolean"
7408
- },
7409
- "default": "false"
7410
- },
7411
7809
  {
7412
7810
  "fieldName": "valid",
7413
7811
  "name": "valid",
@@ -7420,9 +7818,9 @@
7420
7818
  {
7421
7819
  "fieldName": "value",
7422
7820
  "name": "value",
7423
- "description": "Value of the radio group",
7821
+ "description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
7424
7822
  "type": {
7425
- "text": "null | number | RadioItem | string"
7823
+ "text": "null | string"
7426
7824
  },
7427
7825
  "default": "null"
7428
7826
  }
@@ -7430,7 +7828,7 @@
7430
7828
  "cssParts": [
7431
7829
  {
7432
7830
  "name": "root",
7433
- "description": "The radiogroup wrapper element carrying the disabled/error states"
7831
+ "description": "The radiogroup wrapper element"
7434
7832
  },
7435
7833
  {
7436
7834
  "name": "label",
@@ -7438,11 +7836,11 @@
7438
7836
  },
7439
7837
  {
7440
7838
  "name": "items",
7441
- "description": "The wrapper around the rendered radio button rows"
7839
+ "description": "The container the radios are slotted into"
7442
7840
  },
7443
7841
  {
7444
7842
  "name": "message",
7445
- "description": "The hint/error message line below the radios"
7843
+ "description": "The hint/error message area below the radios (always reserved unless `hide-details`)"
7446
7844
  }
7447
7845
  ],
7448
7846
  "cssProperties": [],
@@ -7450,9 +7848,9 @@
7450
7848
  {
7451
7849
  "name": "changeValue",
7452
7850
  "type": {
7453
- "text": "CustomEvent<number | RadioItem | string>"
7851
+ "text": "CustomEvent<string>"
7454
7852
  },
7455
- "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."
7853
+ "description": "Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates."
7456
7854
  },
7457
7855
  {
7458
7856
  "name": "input",
@@ -7464,9 +7862,9 @@
7464
7862
  {
7465
7863
  "name": "update:value",
7466
7864
  "type": {
7467
- "text": "CustomEvent<number | RadioItem | string>"
7865
+ "text": "CustomEvent<string>"
7468
7866
  },
7469
- "description": "v-model contract event fired on selection, carrying the selected item's\nvalue — or the whole item object when `return-object` is set."
7867
+ "description": "v-model contract event fired on selection, carrying the selected radio's\nvalue."
7470
7868
  }
7471
7869
  ],
7472
7870
  "members": [
@@ -7516,19 +7914,6 @@
7516
7914
  "freeform": true
7517
7915
  }
7518
7916
  },
7519
- {
7520
- "kind": "field",
7521
- "name": "hostId",
7522
- "privacy": "public",
7523
- "description": "Id of the element",
7524
- "type": {
7525
- "text": "string"
7526
- },
7527
- "default": "''",
7528
- "csc": {
7529
- "freeform": true
7530
- }
7531
- },
7532
7917
  {
7533
7918
  "kind": "field",
7534
7919
  "name": "inline",
@@ -7539,16 +7924,6 @@
7539
7924
  },
7540
7925
  "default": "false"
7541
7926
  },
7542
- {
7543
- "kind": "field",
7544
- "name": "items",
7545
- "privacy": "public",
7546
- "description": "Radio group items",
7547
- "type": {
7548
- "text": "RadioItem[]"
7549
- },
7550
- "default": "() => []"
7551
- },
7552
7927
  {
7553
7928
  "kind": "field",
7554
7929
  "name": "label",
@@ -7572,16 +7947,6 @@
7572
7947
  },
7573
7948
  "default": "false"
7574
7949
  },
7575
- {
7576
- "kind": "field",
7577
- "name": "returnObject",
7578
- "privacy": "public",
7579
- "description": "Return the whole item object",
7580
- "type": {
7581
- "text": "boolean"
7582
- },
7583
- "default": "false"
7584
- },
7585
7950
  {
7586
7951
  "kind": "field",
7587
7952
  "name": "valid",
@@ -7596,9 +7961,9 @@
7596
7961
  "kind": "field",
7597
7962
  "name": "value",
7598
7963
  "privacy": "public",
7599
- "description": "Value of the radio group",
7964
+ "description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
7600
7965
  "type": {
7601
- "text": "null | number | RadioItem | string"
7966
+ "text": "null | string"
7602
7967
  },
7603
7968
  "default": "null"
7604
7969
  }
@@ -7606,7 +7971,11 @@
7606
7971
  "slots": [
7607
7972
  {
7608
7973
  "name": "default",
7609
- "description": "Default slot for the label"
7974
+ "description": "The radios' home: `<c-radio>` children, wrappable in arbitrary layout elements at any depth"
7975
+ },
7976
+ {
7977
+ "name": "label",
7978
+ "description": "Group label content, used when the `label` prop is not set"
7610
7979
  }
7611
7980
  ]
7612
7981
  }
@@ -8869,6 +9238,10 @@
8869
9238
  "kind": "class",
8870
9239
  "name": "CSpinner",
8871
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
+ },
8872
9245
  "attributes": [
8873
9246
  {
8874
9247
  "fieldName": "color",
@@ -11320,7 +11693,7 @@
11320
11693
  "cssParts": [
11321
11694
  {
11322
11695
  "name": "root",
11323
- "description": "The toast's outer box carrying the accent border and shadow"
11696
+ "description": "The toast's outer box: the inverted-surface pill carrying the shadow"
11324
11697
  },
11325
11698
  {
11326
11699
  "name": "custom",
@@ -11332,7 +11705,15 @@
11332
11705
  },
11333
11706
  {
11334
11707
  "name": "item",
11335
- "description": "Row layout of a standard toast: type icon, message body and close button"
11708
+ "description": "Row layout of a standard toast: status badge, message body and dismiss button"
11709
+ },
11710
+ {
11711
+ "name": "badge",
11712
+ "description": "The circular tinted badge holding the status icon"
11713
+ },
11714
+ {
11715
+ "name": "dismiss",
11716
+ "description": "The dismiss button (icon-only, or labelled when the message sets `closeText`)"
11336
11717
  },
11337
11718
  {
11338
11719
  "name": "progress",
@@ -11582,6 +11963,181 @@
11582
11963
  ],
11583
11964
  "kind": "javascript-module",
11584
11965
  "path": "src/components/c-toolbar/CToolbar.vue"
11966
+ },
11967
+ {
11968
+ "declarations": [
11969
+ {
11970
+ "customElement": true,
11971
+ "kind": "class",
11972
+ "name": "CTooltip",
11973
+ "tagName": "c-tooltip",
11974
+ "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.",
11975
+ "csc": {
11976
+ "usage": "docs/c-tooltip/usage.md"
11977
+ },
11978
+ "attributes": [
11979
+ {
11980
+ "fieldName": "delay",
11981
+ "name": "delay",
11982
+ "description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
11983
+ "type": {
11984
+ "text": "number | string"
11985
+ },
11986
+ "default": "400"
11987
+ },
11988
+ {
11989
+ "fieldName": "distance",
11990
+ "name": "distance",
11991
+ "description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
11992
+ "type": {
11993
+ "text": "number | string"
11994
+ },
11995
+ "default": "4"
11996
+ },
11997
+ {
11998
+ "fieldName": "open",
11999
+ "name": "open",
12000
+ "description": "Whether the tooltip is open. Two-way: emits `change:open`.",
12001
+ "type": {
12002
+ "text": "boolean"
12003
+ },
12004
+ "default": "false"
12005
+ },
12006
+ {
12007
+ "fieldName": "position",
12008
+ "name": "position",
12009
+ "description": "Preferred placement of the tooltip relative to the trigger.",
12010
+ "type": {
12011
+ "text": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
12012
+ },
12013
+ "default": "'top'",
12014
+ "csc": {
12015
+ "typeAlias": "CPlacement"
12016
+ }
12017
+ },
12018
+ {
12019
+ "fieldName": "text",
12020
+ "name": "text",
12021
+ "description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
12022
+ "type": {
12023
+ "text": "string"
12024
+ },
12025
+ "default": "''",
12026
+ "csc": {
12027
+ "freeform": true
12028
+ }
12029
+ }
12030
+ ],
12031
+ "cssParts": [
12032
+ {
12033
+ "name": "trigger",
12034
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
12035
+ },
12036
+ {
12037
+ "name": "panel",
12038
+ "description": "The floating tooltip bubble positioned against the trigger"
12039
+ }
12040
+ ],
12041
+ "cssProperties": [],
12042
+ "events": [
12043
+ {
12044
+ "name": "change:open",
12045
+ "type": {
12046
+ "text": "CustomEvent<boolean>"
12047
+ },
12048
+ "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."
12049
+ }
12050
+ ],
12051
+ "members": [
12052
+ {
12053
+ "kind": "field",
12054
+ "name": "delay",
12055
+ "privacy": "public",
12056
+ "description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
12057
+ "type": {
12058
+ "text": "number | string"
12059
+ },
12060
+ "default": "400"
12061
+ },
12062
+ {
12063
+ "kind": "field",
12064
+ "name": "distance",
12065
+ "privacy": "public",
12066
+ "description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
12067
+ "type": {
12068
+ "text": "number | string"
12069
+ },
12070
+ "default": "4"
12071
+ },
12072
+ {
12073
+ "kind": "field",
12074
+ "name": "open",
12075
+ "privacy": "public",
12076
+ "description": "Whether the tooltip is open. Two-way: emits `change:open`.",
12077
+ "type": {
12078
+ "text": "boolean"
12079
+ },
12080
+ "default": "false"
12081
+ },
12082
+ {
12083
+ "kind": "field",
12084
+ "name": "position",
12085
+ "privacy": "public",
12086
+ "description": "Preferred placement of the tooltip relative to the trigger.",
12087
+ "type": {
12088
+ "text": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
12089
+ },
12090
+ "default": "'top'",
12091
+ "csc": {
12092
+ "typeAlias": "CPlacement"
12093
+ }
12094
+ },
12095
+ {
12096
+ "kind": "field",
12097
+ "name": "text",
12098
+ "privacy": "public",
12099
+ "description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
12100
+ "type": {
12101
+ "text": "string"
12102
+ },
12103
+ "default": "''",
12104
+ "csc": {
12105
+ "freeform": true
12106
+ }
12107
+ }
12108
+ ],
12109
+ "slots": [
12110
+ {
12111
+ "name": "trigger",
12112
+ "description": "The element the tooltip describes (e.g. a c-icon-button)"
12113
+ },
12114
+ {
12115
+ "name": "content",
12116
+ "description": "Formatted tooltip content, overriding the `text` prop; must stay non-interactive (ADR-0033)"
12117
+ }
12118
+ ]
12119
+ }
12120
+ ],
12121
+ "exports": [
12122
+ {
12123
+ "declaration": {
12124
+ "module": "src/components/c-tooltip/CTooltip.vue",
12125
+ "name": "CTooltip"
12126
+ },
12127
+ "kind": "js",
12128
+ "name": "CTooltip"
12129
+ },
12130
+ {
12131
+ "declaration": {
12132
+ "module": "src/components/c-tooltip/CTooltip.vue",
12133
+ "name": "CTooltip"
12134
+ },
12135
+ "kind": "custom-element-definition",
12136
+ "name": "c-tooltip"
12137
+ }
12138
+ ],
12139
+ "kind": "javascript-module",
12140
+ "path": "src/components/c-tooltip/CTooltip.vue"
11585
12141
  }
11586
12142
  ]
11587
12143
  }