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

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
  {
@@ -7203,16 +7489,11 @@
7203
7489
  "kind": "class",
7204
7490
  "name": "CRadio",
7205
7491
  "tagName": "c-radio",
7492
+ "description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.",
7493
+ "csc": {
7494
+ "usage": "docs/c-radio/usage.md"
7495
+ },
7206
7496
  "attributes": [
7207
- {
7208
- "fieldName": "checked",
7209
- "name": "checked",
7210
- "description": "Set option as checked",
7211
- "type": {
7212
- "text": "boolean"
7213
- },
7214
- "default": "false"
7215
- },
7216
7497
  {
7217
7498
  "fieldName": "disabled",
7218
7499
  "name": "disabled",
@@ -7235,20 +7516,31 @@
7235
7516
  }
7236
7517
  }
7237
7518
  ],
7238
- "cssParts": [],
7519
+ "cssParts": [
7520
+ {
7521
+ "name": "root",
7522
+ "description": "The `<label>` row wrapping the input, indicator and label content"
7523
+ },
7524
+ {
7525
+ "name": "indicator",
7526
+ "description": "The circular ripple surface holding the radio ring and dot"
7527
+ },
7528
+ {
7529
+ "name": "content",
7530
+ "description": "Wrapper around the slotted label content"
7531
+ }
7532
+ ],
7239
7533
  "cssProperties": [],
7240
- "events": [],
7241
- "members": [
7534
+ "events": [
7242
7535
  {
7243
- "kind": "field",
7244
- "name": "checked",
7245
- "privacy": "public",
7246
- "description": "Set option as checked",
7536
+ "name": "change",
7247
7537
  "type": {
7248
- "text": "boolean"
7538
+ "text": "CustomEvent<string>"
7249
7539
  },
7250
- "default": "false"
7251
- },
7540
+ "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`."
7541
+ }
7542
+ ],
7543
+ "members": [
7252
7544
  {
7253
7545
  "kind": "field",
7254
7546
  "name": "disabled",
@@ -7276,7 +7568,7 @@
7276
7568
  "slots": [
7277
7569
  {
7278
7570
  "name": "default",
7279
- "description": "The radio button's label text, read by the parent c-radio-group"
7571
+ "description": "The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced"
7280
7572
  }
7281
7573
  ]
7282
7574
  }
@@ -7309,7 +7601,9 @@
7309
7601
  "kind": "class",
7310
7602
  "name": "CRadioGroup",
7311
7603
  "tagName": "c-radio-group",
7604
+ "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
7605
  "csc": {
7606
+ "usage": "docs/c-radio-group/usage.md",
7313
7607
  "subcomponents": [
7314
7608
  "c-radio"
7315
7609
  ]
@@ -7357,18 +7651,6 @@
7357
7651
  "freeform": true
7358
7652
  }
7359
7653
  },
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
7654
  {
7373
7655
  "fieldName": "inline",
7374
7656
  "name": "inline",
@@ -7399,15 +7681,6 @@
7399
7681
  },
7400
7682
  "default": "false"
7401
7683
  },
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
7684
  {
7412
7685
  "fieldName": "valid",
7413
7686
  "name": "valid",
@@ -7420,9 +7693,9 @@
7420
7693
  {
7421
7694
  "fieldName": "value",
7422
7695
  "name": "value",
7423
- "description": "Value of the radio group",
7696
+ "description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
7424
7697
  "type": {
7425
- "text": "null | number | RadioItem | string"
7698
+ "text": "null | string"
7426
7699
  },
7427
7700
  "default": "null"
7428
7701
  }
@@ -7430,7 +7703,7 @@
7430
7703
  "cssParts": [
7431
7704
  {
7432
7705
  "name": "root",
7433
- "description": "The radiogroup wrapper element carrying the disabled/error states"
7706
+ "description": "The radiogroup wrapper element"
7434
7707
  },
7435
7708
  {
7436
7709
  "name": "label",
@@ -7438,11 +7711,11 @@
7438
7711
  },
7439
7712
  {
7440
7713
  "name": "items",
7441
- "description": "The wrapper around the rendered radio button rows"
7714
+ "description": "The container the radios are slotted into"
7442
7715
  },
7443
7716
  {
7444
7717
  "name": "message",
7445
- "description": "The hint/error message line below the radios"
7718
+ "description": "The hint/error message area below the radios (always reserved unless `hide-details`)"
7446
7719
  }
7447
7720
  ],
7448
7721
  "cssProperties": [],
@@ -7450,9 +7723,9 @@
7450
7723
  {
7451
7724
  "name": "changeValue",
7452
7725
  "type": {
7453
- "text": "CustomEvent<number | RadioItem | string>"
7726
+ "text": "CustomEvent<string>"
7454
7727
  },
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."
7728
+ "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
7729
  },
7457
7730
  {
7458
7731
  "name": "input",
@@ -7464,9 +7737,9 @@
7464
7737
  {
7465
7738
  "name": "update:value",
7466
7739
  "type": {
7467
- "text": "CustomEvent<number | RadioItem | string>"
7740
+ "text": "CustomEvent<string>"
7468
7741
  },
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."
7742
+ "description": "v-model contract event fired on selection, carrying the selected radio's\nvalue."
7470
7743
  }
7471
7744
  ],
7472
7745
  "members": [
@@ -7516,19 +7789,6 @@
7516
7789
  "freeform": true
7517
7790
  }
7518
7791
  },
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
7792
  {
7533
7793
  "kind": "field",
7534
7794
  "name": "inline",
@@ -7539,16 +7799,6 @@
7539
7799
  },
7540
7800
  "default": "false"
7541
7801
  },
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
7802
  {
7553
7803
  "kind": "field",
7554
7804
  "name": "label",
@@ -7572,16 +7822,6 @@
7572
7822
  },
7573
7823
  "default": "false"
7574
7824
  },
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
7825
  {
7586
7826
  "kind": "field",
7587
7827
  "name": "valid",
@@ -7596,9 +7836,9 @@
7596
7836
  "kind": "field",
7597
7837
  "name": "value",
7598
7838
  "privacy": "public",
7599
- "description": "Value of the radio group",
7839
+ "description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
7600
7840
  "type": {
7601
- "text": "null | number | RadioItem | string"
7841
+ "text": "null | string"
7602
7842
  },
7603
7843
  "default": "null"
7604
7844
  }
@@ -7606,7 +7846,11 @@
7606
7846
  "slots": [
7607
7847
  {
7608
7848
  "name": "default",
7609
- "description": "Default slot for the label"
7849
+ "description": "The radios' home: `<c-radio>` children, wrappable in arbitrary layout elements at any depth"
7850
+ },
7851
+ {
7852
+ "name": "label",
7853
+ "description": "Group label content, used when the `label` prop is not set"
7610
7854
  }
7611
7855
  ]
7612
7856
  }
@@ -11320,7 +11564,7 @@
11320
11564
  "cssParts": [
11321
11565
  {
11322
11566
  "name": "root",
11323
- "description": "The toast's outer box carrying the accent border and shadow"
11567
+ "description": "The toast's outer box: the inverted-surface pill carrying the shadow"
11324
11568
  },
11325
11569
  {
11326
11570
  "name": "custom",
@@ -11332,7 +11576,15 @@
11332
11576
  },
11333
11577
  {
11334
11578
  "name": "item",
11335
- "description": "Row layout of a standard toast: type icon, message body and close button"
11579
+ "description": "Row layout of a standard toast: status badge, message body and dismiss button"
11580
+ },
11581
+ {
11582
+ "name": "badge",
11583
+ "description": "The circular tinted badge holding the status icon"
11584
+ },
11585
+ {
11586
+ "name": "dismiss",
11587
+ "description": "The dismiss button (icon-only, or labelled when the message sets `closeText`)"
11336
11588
  },
11337
11589
  {
11338
11590
  "name": "progress",
@@ -11582,6 +11834,181 @@
11582
11834
  ],
11583
11835
  "kind": "javascript-module",
11584
11836
  "path": "src/components/c-toolbar/CToolbar.vue"
11837
+ },
11838
+ {
11839
+ "declarations": [
11840
+ {
11841
+ "customElement": true,
11842
+ "kind": "class",
11843
+ "name": "CTooltip",
11844
+ "tagName": "c-tooltip",
11845
+ "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.",
11846
+ "csc": {
11847
+ "usage": "docs/c-tooltip/usage.md"
11848
+ },
11849
+ "attributes": [
11850
+ {
11851
+ "fieldName": "delay",
11852
+ "name": "delay",
11853
+ "description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
11854
+ "type": {
11855
+ "text": "number | string"
11856
+ },
11857
+ "default": "400"
11858
+ },
11859
+ {
11860
+ "fieldName": "distance",
11861
+ "name": "distance",
11862
+ "description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
11863
+ "type": {
11864
+ "text": "number | string"
11865
+ },
11866
+ "default": "4"
11867
+ },
11868
+ {
11869
+ "fieldName": "open",
11870
+ "name": "open",
11871
+ "description": "Whether the tooltip is open. Two-way: emits `change:open`.",
11872
+ "type": {
11873
+ "text": "boolean"
11874
+ },
11875
+ "default": "false"
11876
+ },
11877
+ {
11878
+ "fieldName": "position",
11879
+ "name": "position",
11880
+ "description": "Preferred placement of the tooltip relative to the trigger.",
11881
+ "type": {
11882
+ "text": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
11883
+ },
11884
+ "default": "'top'",
11885
+ "csc": {
11886
+ "typeAlias": "CPlacement"
11887
+ }
11888
+ },
11889
+ {
11890
+ "fieldName": "text",
11891
+ "name": "text",
11892
+ "description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
11893
+ "type": {
11894
+ "text": "string"
11895
+ },
11896
+ "default": "''",
11897
+ "csc": {
11898
+ "freeform": true
11899
+ }
11900
+ }
11901
+ ],
11902
+ "cssParts": [
11903
+ {
11904
+ "name": "trigger",
11905
+ "description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
11906
+ },
11907
+ {
11908
+ "name": "panel",
11909
+ "description": "The floating tooltip bubble positioned against the trigger"
11910
+ }
11911
+ ],
11912
+ "cssProperties": [],
11913
+ "events": [
11914
+ {
11915
+ "name": "change:open",
11916
+ "type": {
11917
+ "text": "CustomEvent<boolean>"
11918
+ },
11919
+ "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."
11920
+ }
11921
+ ],
11922
+ "members": [
11923
+ {
11924
+ "kind": "field",
11925
+ "name": "delay",
11926
+ "privacy": "public",
11927
+ "description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
11928
+ "type": {
11929
+ "text": "number | string"
11930
+ },
11931
+ "default": "400"
11932
+ },
11933
+ {
11934
+ "kind": "field",
11935
+ "name": "distance",
11936
+ "privacy": "public",
11937
+ "description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
11938
+ "type": {
11939
+ "text": "number | string"
11940
+ },
11941
+ "default": "4"
11942
+ },
11943
+ {
11944
+ "kind": "field",
11945
+ "name": "open",
11946
+ "privacy": "public",
11947
+ "description": "Whether the tooltip is open. Two-way: emits `change:open`.",
11948
+ "type": {
11949
+ "text": "boolean"
11950
+ },
11951
+ "default": "false"
11952
+ },
11953
+ {
11954
+ "kind": "field",
11955
+ "name": "position",
11956
+ "privacy": "public",
11957
+ "description": "Preferred placement of the tooltip relative to the trigger.",
11958
+ "type": {
11959
+ "text": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
11960
+ },
11961
+ "default": "'top'",
11962
+ "csc": {
11963
+ "typeAlias": "CPlacement"
11964
+ }
11965
+ },
11966
+ {
11967
+ "kind": "field",
11968
+ "name": "text",
11969
+ "privacy": "public",
11970
+ "description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
11971
+ "type": {
11972
+ "text": "string"
11973
+ },
11974
+ "default": "''",
11975
+ "csc": {
11976
+ "freeform": true
11977
+ }
11978
+ }
11979
+ ],
11980
+ "slots": [
11981
+ {
11982
+ "name": "trigger",
11983
+ "description": "The element the tooltip describes (e.g. a c-icon-button)"
11984
+ },
11985
+ {
11986
+ "name": "content",
11987
+ "description": "Formatted tooltip content, overriding the `text` prop; must stay non-interactive (ADR-0033)"
11988
+ }
11989
+ ]
11990
+ }
11991
+ ],
11992
+ "exports": [
11993
+ {
11994
+ "declaration": {
11995
+ "module": "src/components/c-tooltip/CTooltip.vue",
11996
+ "name": "CTooltip"
11997
+ },
11998
+ "kind": "js",
11999
+ "name": "CTooltip"
12000
+ },
12001
+ {
12002
+ "declaration": {
12003
+ "module": "src/components/c-tooltip/CTooltip.vue",
12004
+ "name": "CTooltip"
12005
+ },
12006
+ "kind": "custom-element-definition",
12007
+ "name": "c-tooltip"
12008
+ }
12009
+ ],
12010
+ "kind": "javascript-module",
12011
+ "path": "src/components/c-tooltip/CTooltip.vue"
11585
12012
  }
11586
12013
  ]
11587
12014
  }