@cscfi/csc-ui 4.0.0-alpha.2 → 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.
- package/dist/csc-ui.js +6427 -6059
- package/dist/custom-elements.json +727 -160
- package/dist/docs/c-popover/usage.md +27 -0
- package/dist/docs/c-radio/usage.md +29 -0
- package/dist/docs/c-radio-group/usage.md +67 -0
- package/dist/docs/c-tooltip/usage.md +30 -0
- package/dist/styles/css/tailwind-theme.css +30 -0
- package/dist/styles/css/tokens.css +77 -1
- package/dist/vscode.css-custom-data.json +80 -12
- package/dist/vscode.html-custom-data.json +136 -22
- package/dist/web-types.json +398 -79
- package/dist-types/components/c-alert/CAlert.vue.d.ts +10 -3
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +4 -1
- package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
- package/dist-types/components/c-icon/CIcon.vue.d.ts +1 -1
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
- package/dist-types/components/c-input/CInput.vue.d.ts +4 -0
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +4 -2
- package/dist-types/components/c-menu/CMenu.vue.d.ts +3 -3
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +29 -3
- package/dist-types/components/c-popover/CPopover.vue.d.ts +34 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +0 -10
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +8 -46
- package/dist-types/components/c-select/CSelect.vue.d.ts +4 -1
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +1 -1
- package/dist-types/components/c-tag/CTag.vue.d.ts +1 -1
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +4 -0
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +39 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
- package/dist-types/shared/positionArea.d.ts +13 -0
- package/dist-types/tag-name-map.d.ts +142 -31
- package/dist-types/types.d.ts +13 -0
- package/package.json +1 -1
|
@@ -58,8 +58,13 @@
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "c-alert",
|
|
61
|
-
"description": "\n---\n\n\n### **Slots:**\n - **title** - Title slot\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The
|
|
61
|
+
"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",
|
|
62
62
|
"attributes": [
|
|
63
|
+
{
|
|
64
|
+
"name": "dismissible",
|
|
65
|
+
"description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
|
|
66
|
+
"values": []
|
|
67
|
+
},
|
|
63
68
|
{
|
|
64
69
|
"name": "type",
|
|
65
70
|
"description": "Type of the alert",
|
|
@@ -147,6 +152,11 @@
|
|
|
147
152
|
"values": []
|
|
148
153
|
},
|
|
149
154
|
{ "name": "shadow", "description": "Shadow variant", "values": [] },
|
|
155
|
+
{
|
|
156
|
+
"name": "size",
|
|
157
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
158
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
159
|
+
},
|
|
150
160
|
{
|
|
151
161
|
"name": "valid",
|
|
152
162
|
"description": "Set the validity of the input",
|
|
@@ -345,7 +355,7 @@
|
|
|
345
355
|
},
|
|
346
356
|
{
|
|
347
357
|
"name": "c-checkbox",
|
|
348
|
-
"description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message
|
|
358
|
+
"description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ncheckbox is toggled (the inner input's change does not cross the shadow\nboundary). No detail; read the new value from the host's `value` property.\n- **changeValue** - Fired when the checkbox is toggled, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on toggle so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on toggle, carrying the new value —\n`trueValue` when checked, `falseValue` when unchecked.\n\n### **Slots:**\n - **default** - Default slot for the label\n\n### **CSS Parts:**\n - **root** - The outer wrapper containing the checkbox, label and message\n- **label** - The `<label>` element wrapping the indicator and the label content\n- **indicator** - The circular ripple surface holding the checkbox box and checkmark\n- **content** - Wrapper around the label text or slotted label content\n- **message** - The hint / error message area below the checkbox (always reserved unless `hide-details`)",
|
|
349
359
|
"attributes": [
|
|
350
360
|
{
|
|
351
361
|
"name": "checked",
|
|
@@ -497,7 +507,7 @@
|
|
|
497
507
|
},
|
|
498
508
|
{
|
|
499
509
|
"name": "c-dropdown",
|
|
500
|
-
"description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field",
|
|
510
|
+
"description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field\n\n### **CSS Parts:**\n - **menu** - The positioned dialog surface holding the field and the list\n- **list** - The scrolling listbox\n- **item** - One option row",
|
|
501
511
|
"attributes": [
|
|
502
512
|
{
|
|
503
513
|
"name": "dropdown-item-type",
|
|
@@ -672,6 +682,11 @@
|
|
|
672
682
|
"description": "Shadow variant of the input",
|
|
673
683
|
"values": []
|
|
674
684
|
},
|
|
685
|
+
{
|
|
686
|
+
"name": "size",
|
|
687
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
688
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
689
|
+
},
|
|
675
690
|
{
|
|
676
691
|
"name": "valid",
|
|
677
692
|
"description": "Set the validíty of the input",
|
|
@@ -779,7 +794,7 @@
|
|
|
779
794
|
},
|
|
780
795
|
{
|
|
781
796
|
"name": "c-login-button",
|
|
782
|
-
"description": "\n---\n\n\n### **Slots:**\n - **default** -
|
|
797
|
+
"description": "\n---\n\n\n### **Slots:**\n - **default** - The title shown in the bottom bar\n- **image** - Custom provider logo markup (an inline `<svg>`, a `<picture>`, …) replacing the default `<img>` rendered from `src`\n\n### **CSS Parts:**\n - **root** - The anchor element forming the whole clickable card\n- **image-wrap** - The area above the title bar that centers the logo (default image or slotted content)\n- **image** - The default provider logo `<img>` (absent when the `image` slot is used)\n- **title** - The bottom title bar wrapping the slotted label",
|
|
783
798
|
"attributes": [
|
|
784
799
|
{
|
|
785
800
|
"name": "alt",
|
|
@@ -939,8 +954,18 @@
|
|
|
939
954
|
},
|
|
940
955
|
{
|
|
941
956
|
"name": "c-menu-item",
|
|
942
|
-
"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",
|
|
957
|
+
"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",
|
|
943
958
|
"attributes": [
|
|
959
|
+
{
|
|
960
|
+
"name": "active",
|
|
961
|
+
"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).",
|
|
962
|
+
"values": []
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "active-icon",
|
|
966
|
+
"description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
|
|
967
|
+
"values": []
|
|
968
|
+
},
|
|
944
969
|
{
|
|
945
970
|
"name": "danger",
|
|
946
971
|
"description": "Marks the action as destructive (renders in the error colour).",
|
|
@@ -951,6 +976,11 @@
|
|
|
951
976
|
"description": "Disables the item — it is skipped by keyboard nav and emits no select.",
|
|
952
977
|
"values": []
|
|
953
978
|
},
|
|
979
|
+
{
|
|
980
|
+
"name": "icon",
|
|
981
|
+
"description": "SVG path for a leading icon rendered before the item's content.",
|
|
982
|
+
"values": []
|
|
983
|
+
},
|
|
954
984
|
{
|
|
955
985
|
"name": "value",
|
|
956
986
|
"description": "Value reported in the menu's `select` event when this item is chosen.",
|
|
@@ -1138,6 +1168,46 @@
|
|
|
1138
1168
|
],
|
|
1139
1169
|
"references": []
|
|
1140
1170
|
},
|
|
1171
|
+
{
|
|
1172
|
+
"name": "c-popover",
|
|
1173
|
+
"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",
|
|
1174
|
+
"attributes": [
|
|
1175
|
+
{
|
|
1176
|
+
"name": "distance",
|
|
1177
|
+
"description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
|
|
1178
|
+
"values": []
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "heading",
|
|
1182
|
+
"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`.",
|
|
1183
|
+
"values": []
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"name": "open",
|
|
1187
|
+
"description": "Whether the popover is open. Two-way: emits `change:open`.",
|
|
1188
|
+
"values": []
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "position",
|
|
1192
|
+
"description": "Preferred placement of the panel relative to the trigger.",
|
|
1193
|
+
"values": [
|
|
1194
|
+
{ "name": "bottom-end" },
|
|
1195
|
+
{ "name": "bottom-start" },
|
|
1196
|
+
{ "name": "bottom" },
|
|
1197
|
+
{ "name": "left-end" },
|
|
1198
|
+
{ "name": "left-start" },
|
|
1199
|
+
{ "name": "left" },
|
|
1200
|
+
{ "name": "right-end" },
|
|
1201
|
+
{ "name": "right-start" },
|
|
1202
|
+
{ "name": "right" },
|
|
1203
|
+
{ "name": "top-end" },
|
|
1204
|
+
{ "name": "top-start" },
|
|
1205
|
+
{ "name": "top" }
|
|
1206
|
+
]
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"references": []
|
|
1210
|
+
},
|
|
1141
1211
|
{
|
|
1142
1212
|
"name": "c-progress-bar",
|
|
1143
1213
|
"description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
|
|
@@ -1172,13 +1242,8 @@
|
|
|
1172
1242
|
},
|
|
1173
1243
|
{
|
|
1174
1244
|
"name": "c-radio",
|
|
1175
|
-
"description": "
|
|
1245
|
+
"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",
|
|
1176
1246
|
"attributes": [
|
|
1177
|
-
{
|
|
1178
|
-
"name": "checked",
|
|
1179
|
-
"description": "Set option as checked",
|
|
1180
|
-
"values": []
|
|
1181
|
-
},
|
|
1182
1247
|
{
|
|
1183
1248
|
"name": "disabled",
|
|
1184
1249
|
"description": "Disable the radio button",
|
|
@@ -1190,7 +1255,7 @@
|
|
|
1190
1255
|
},
|
|
1191
1256
|
{
|
|
1192
1257
|
"name": "c-radio-group",
|
|
1193
|
-
"description": "
|
|
1258
|
+
"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`)",
|
|
1194
1259
|
"attributes": [
|
|
1195
1260
|
{
|
|
1196
1261
|
"name": "disabled",
|
|
@@ -1212,7 +1277,6 @@
|
|
|
1212
1277
|
"description": "Hint text for the input",
|
|
1213
1278
|
"values": []
|
|
1214
1279
|
},
|
|
1215
|
-
{ "name": "host-id", "description": "Id of the element", "values": [] },
|
|
1216
1280
|
{
|
|
1217
1281
|
"name": "inline",
|
|
1218
1282
|
"description": "Display radio buttons inline",
|
|
@@ -1224,11 +1288,6 @@
|
|
|
1224
1288
|
"values": []
|
|
1225
1289
|
},
|
|
1226
1290
|
{ "name": "required", "description": "Set as required", "values": [] },
|
|
1227
|
-
{
|
|
1228
|
-
"name": "return-object",
|
|
1229
|
-
"description": "Return the whole item object",
|
|
1230
|
-
"values": []
|
|
1231
|
-
},
|
|
1232
1291
|
{
|
|
1233
1292
|
"name": "valid",
|
|
1234
1293
|
"description": "Set the validity of the input",
|
|
@@ -1236,15 +1295,15 @@
|
|
|
1236
1295
|
},
|
|
1237
1296
|
{
|
|
1238
1297
|
"name": "value",
|
|
1239
|
-
"description": "Value of the radio group",
|
|
1240
|
-
"values": [
|
|
1298
|
+
"description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
|
|
1299
|
+
"values": []
|
|
1241
1300
|
}
|
|
1242
1301
|
],
|
|
1243
1302
|
"references": []
|
|
1244
1303
|
},
|
|
1245
1304
|
{
|
|
1246
1305
|
"name": "c-select",
|
|
1247
|
-
"description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls",
|
|
1306
|
+
"description": "\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls\n\n### **CSS Parts:**\n - **menu** - The dropdown surface (the positioned dialog) holding the field and the list\n- **list** - The scrolling listbox of options\n- **item** - One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup",
|
|
1248
1307
|
"attributes": [
|
|
1249
1308
|
{
|
|
1250
1309
|
"name": "clearable",
|
|
@@ -1310,6 +1369,11 @@
|
|
|
1310
1369
|
"values": []
|
|
1311
1370
|
},
|
|
1312
1371
|
{ "name": "shadow", "description": "Shadow variant", "values": [] },
|
|
1372
|
+
{
|
|
1373
|
+
"name": "size",
|
|
1374
|
+
"description": "Field height: the 44px default or the 36px `small` box",
|
|
1375
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
1376
|
+
},
|
|
1313
1377
|
{
|
|
1314
1378
|
"name": "valid",
|
|
1315
1379
|
"description": "Set the validity of the input",
|
|
@@ -1774,6 +1838,11 @@
|
|
|
1774
1838
|
"description": "Shadow variant of the input",
|
|
1775
1839
|
"values": []
|
|
1776
1840
|
},
|
|
1841
|
+
{
|
|
1842
|
+
"name": "size",
|
|
1843
|
+
"description": "Field height: the 44px default or the 36px `small` box (single-line fields)",
|
|
1844
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
1845
|
+
},
|
|
1777
1846
|
{
|
|
1778
1847
|
"name": "step",
|
|
1779
1848
|
"description": "Step size on a numeric input",
|
|
@@ -1809,7 +1878,7 @@
|
|
|
1809
1878
|
},
|
|
1810
1879
|
{
|
|
1811
1880
|
"name": "c-toast",
|
|
1812
|
-
"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
|
|
1881
|
+
"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",
|
|
1813
1882
|
"attributes": [
|
|
1814
1883
|
{
|
|
1815
1884
|
"name": "message",
|
|
@@ -1850,6 +1919,51 @@
|
|
|
1850
1919
|
"description": "\n---\n\n\n### **Slots:**\n - **default** - Content of toolbar\n\n### **CSS Parts:**\n - **root** - The toolbar bar itself, fixed to the top of the viewport",
|
|
1851
1920
|
"attributes": [],
|
|
1852
1921
|
"references": []
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "c-tooltip",
|
|
1925
|
+
"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",
|
|
1926
|
+
"attributes": [
|
|
1927
|
+
{
|
|
1928
|
+
"name": "delay",
|
|
1929
|
+
"description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
|
|
1930
|
+
"values": []
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"name": "distance",
|
|
1934
|
+
"description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
|
|
1935
|
+
"values": []
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"name": "open",
|
|
1939
|
+
"description": "Whether the tooltip is open. Two-way: emits `change:open`.",
|
|
1940
|
+
"values": []
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "position",
|
|
1944
|
+
"description": "Preferred placement of the tooltip relative to the trigger.",
|
|
1945
|
+
"values": [
|
|
1946
|
+
{ "name": "bottom-end" },
|
|
1947
|
+
{ "name": "bottom-start" },
|
|
1948
|
+
{ "name": "bottom" },
|
|
1949
|
+
{ "name": "left-end" },
|
|
1950
|
+
{ "name": "left-start" },
|
|
1951
|
+
{ "name": "left" },
|
|
1952
|
+
{ "name": "right-end" },
|
|
1953
|
+
{ "name": "right-start" },
|
|
1954
|
+
{ "name": "right" },
|
|
1955
|
+
{ "name": "top-end" },
|
|
1956
|
+
{ "name": "top-start" },
|
|
1957
|
+
{ "name": "top" }
|
|
1958
|
+
]
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"name": "text",
|
|
1962
|
+
"description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
|
|
1963
|
+
"values": []
|
|
1964
|
+
}
|
|
1965
|
+
],
|
|
1966
|
+
"references": []
|
|
1853
1967
|
}
|
|
1854
1968
|
]
|
|
1855
1969
|
}
|