@voidable/ui 0.10.0 → 0.11.0

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.
Files changed (102) hide show
  1. package/dist/base.d.ts +6 -0
  2. package/dist/base.js +2 -2
  3. package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
  4. package/dist/chunks/data-BpiiNapL.js +95 -0
  5. package/dist/chunks/{modal-CgGp_fCs.js → modal-DWGkNdNG.js} +2 -2
  6. package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-CH7L4N-h.js} +1 -1
  7. package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
  8. package/dist/components/accordion.js +1 -1
  9. package/dist/components/action-input.js +2 -2
  10. package/dist/components/alert.d.ts +11 -0
  11. package/dist/components/alert.js +10 -3
  12. package/dist/components/avatar.js +2 -2
  13. package/dist/components/badge.d.ts +8 -2
  14. package/dist/components/badge.js +1 -4
  15. package/dist/components/banner.d.ts +9 -0
  16. package/dist/components/banner.js +10 -3
  17. package/dist/components/bar-chart.d.ts +21 -7
  18. package/dist/components/bar-chart.js +65 -43
  19. package/dist/components/breadcrumbs.js +1 -1
  20. package/dist/components/button.js +1 -1
  21. package/dist/components/calendar.d.ts +40 -2
  22. package/dist/components/calendar.js +110 -21
  23. package/dist/components/card.js +1 -1
  24. package/dist/components/carousel.js +3 -3
  25. package/dist/components/charts/data.d.ts +72 -0
  26. package/dist/components/checkbox-group.js +2 -2
  27. package/dist/components/checkbox.js +2 -2
  28. package/dist/components/collapsible.js +1 -1
  29. package/dist/components/color-picker.js +2 -2
  30. package/dist/components/combobox.js +3 -3
  31. package/dist/components/compose-input.js +2 -2
  32. package/dist/components/dialog.js +1 -1
  33. package/dist/components/divider.js +2 -2
  34. package/dist/components/donut-chart.d.ts +22 -6
  35. package/dist/components/donut-chart.js +95 -69
  36. package/dist/components/drawer.js +1 -1
  37. package/dist/components/dropdown-menu.js +2 -2
  38. package/dist/components/editable.js +2 -2
  39. package/dist/components/error-fallback.js +1 -1
  40. package/dist/components/field.js +2 -2
  41. package/dist/components/file-upload.d.ts +20 -5
  42. package/dist/components/file-upload.js +51 -21
  43. package/dist/components/gauge.d.ts +32 -8
  44. package/dist/components/gauge.js +202 -130
  45. package/dist/components/hamburger.d.ts +12 -1
  46. package/dist/components/hamburger.js +24 -13
  47. package/dist/components/hover-card.js +2 -2
  48. package/dist/components/indicator.js +2 -2
  49. package/dist/components/input.js +2 -2
  50. package/dist/components/line-chart.d.ts +22 -7
  51. package/dist/components/line-chart.js +76 -54
  52. package/dist/components/list.js +1 -1
  53. package/dist/components/menu.js +1 -1
  54. package/dist/components/multiselect.js +3 -3
  55. package/dist/components/nav-bar.d.ts +9 -0
  56. package/dist/components/nav-bar.js +16 -3
  57. package/dist/components/nav-menu.js +1 -1
  58. package/dist/components/number-input.js +2 -2
  59. package/dist/components/pagination.js +2 -2
  60. package/dist/components/panel.js +1 -1
  61. package/dist/components/pin-input.js +2 -2
  62. package/dist/components/popover.js +2 -2
  63. package/dist/components/progress.js +2 -2
  64. package/dist/components/radio-group.js +2 -2
  65. package/dist/components/radio.js +2 -2
  66. package/dist/components/scroll-area.js +2 -2
  67. package/dist/components/segmented-control.js +1 -1
  68. package/dist/components/select.js +2 -2
  69. package/dist/components/sidebar.js +1 -1
  70. package/dist/components/skeleton.js +1 -1
  71. package/dist/components/slider.js +2 -2
  72. package/dist/components/spinner.js +2 -2
  73. package/dist/components/stat.d.ts +13 -1
  74. package/dist/components/stat.js +28 -20
  75. package/dist/components/status-dot.js +1 -1
  76. package/dist/components/stepper.js +2 -2
  77. package/dist/components/switch.js +2 -2
  78. package/dist/components/table.d.ts +4 -0
  79. package/dist/components/table.js +42 -29
  80. package/dist/components/tabs.js +1 -1
  81. package/dist/components/tag.js +2 -2
  82. package/dist/components/tags-input.js +2 -2
  83. package/dist/components/textarea.js +2 -2
  84. package/dist/components/toast.js +1 -1
  85. package/dist/components/toggle-group.js +1 -1
  86. package/dist/components/toggle.js +1 -1
  87. package/dist/components/tooltip.js +2 -2
  88. package/dist/components.json +15 -13
  89. package/dist/custom-elements.json +272 -70
  90. package/dist/dev/types.d.ts +3 -1
  91. package/dist/dev.js +54 -9
  92. package/dist/index.js +1 -1
  93. package/dist/llms.txt +1 -1
  94. package/dist/reference.md +81 -56
  95. package/dist/types/elements.d.ts +13 -13
  96. package/dist/types/react.d.ts +2 -2
  97. package/dist/types/solid.d.ts +2 -2
  98. package/dist/types/svelte.d.ts +2 -2
  99. package/dist/types/vue.d.ts +2 -2
  100. package/dist/vscode.html-custom-data.json +95 -21
  101. package/dist/web-types.json +173 -44
  102. package/package.json +1 -1
@@ -2224,7 +2224,7 @@
2224
2224
  "declarations": [
2225
2225
  {
2226
2226
  "kind": "class",
2227
- "description": "Inline contextual message for form validation feedback, permission warnings, and system status notices.\n\nIts text is written as parts: an optional `<void-alert-title>`, the `<void-alert-description>` and an optional\n`<void-alert-close>`. The parts are never moved. The close part wraps the one control the author writes (a\n`<button type=\"button\" aria-label=\"Dismiss\">`); pressing it fires `void-close` and, unless that is cancelled, removes the alert (focus inside\nit moves on to the next focusable element). Without a close part the alert cannot be dismissed.",
2227
+ "description": "Inline contextual message for form validation feedback, permission warnings, and system status notices.\n\nIts role follows the colour: `error` and `warning` are `role=\"alert\"` (announced at once, interrupting), every\nother colour is `role=\"status\"` (announced politely). A role you write on it is kept.\n\nIts text is written as parts: an optional `<void-alert-title>`, the `<void-alert-description>` and an optional\n`<void-alert-close>`. The parts are never moved. The close part wraps the one control the author writes (a\n`<button type=\"button\" aria-label=\"Dismiss\">`); pressing it fires `void-close` and, unless that is cancelled, removes the alert (focus inside\nit moves on to the next focusable element). Without a close part the alert cannot be dismissed.",
2228
2228
  "name": "VoidAlert",
2229
2229
  "members": [
2230
2230
  {
@@ -2892,7 +2892,7 @@
2892
2892
  "declarations": [
2893
2893
  {
2894
2894
  "kind": "class",
2895
- "description": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.",
2895
+ "description": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.\n\nA badge has no role: it is text beside other text, and a screen reader reads it where it sits. It is not\na live region, because a table of status badges would announce every one as it is inserted. For the one\nbadge whose change must be heard (a count that updates while the user works), write `role=\"status\"` on it\nyourself; the component leaves it alone.",
2896
2896
  "name": "VoidBadge",
2897
2897
  "members": [
2898
2898
  {
@@ -3192,7 +3192,7 @@
3192
3192
  "declarations": [
3193
3193
  {
3194
3194
  "kind": "class",
3195
- "description": "Full-width site-level announcement for maintenance windows, cookie consent, and promotional messaging.\n\nIts text is written as parts: an optional `<void-banner-title>`, the `<void-banner-description>`, an optional\n`<void-banner-actions>` (buttons or links) and an optional `<void-banner-close>`. The parts are never moved. The\nclose part wraps the one control the author writes (a `<void-button aria-label=\"Dismiss\">`); pressing it fires\n`void-close` and removes the banner (focus inside it moves on to the next focusable element). Without a close part the banner cannot be dismissed.",
3195
+ "description": "Full-width site-level announcement for maintenance windows, cookie consent, and promotional messaging.\n\nIt never has the `banner` role: that is the page header landmark (at most one per page, never inside\n`<main>`), which an announcement is not. Like the alert it carries an announcement, so its role follows its\n`color`: `alert` for `error` and `warning`, `status` for the rest. To make it a landmark users can jump to,\nwrite `role=\"region\"` and an `aria-label`; the component leaves a role you write alone.\n\nIts text is written as parts: an optional `<void-banner-title>`, the `<void-banner-description>`, an optional\n`<void-banner-actions>` (buttons or links) and an optional `<void-banner-close>`. The parts are never moved. The\nclose part wraps the one control the author writes (a `<void-button aria-label=\"Dismiss\">`); pressing it fires\n`void-close` and removes the banner (focus inside it moves on to the next focusable element). Without a close part the banner cannot be dismissed.",
3196
3196
  "name": "VoidBanner",
3197
3197
  "members": [
3198
3198
  {
@@ -3534,7 +3534,7 @@
3534
3534
  "declarations": [
3535
3535
  {
3536
3536
  "kind": "class",
3537
- "description": "Bar chart for comparing categories and series, drawn in SVG with animated bars. Give it `data`\n(`{ series: [{ name, values }], labels }`) from script; it has no children. The chart is an image to\nassistive technology, so set `aria-label` and state the key figures in the surrounding text.",
3537
+ "description": "Bar chart for comparing categories and series, drawn in SVG with animated bars. Give it `data`\n(`{ series: [{ name, values }], labels }`) as the `data` property or as JSON in the `data` attribute, so\nserver-rendered markup draws it with no script; it has no children. The drawing is hidden from assistive\ntechnology and a visually hidden data table (captioned with `aria-label`) carries the values instead; add\n`show-table` to show the table below the chart too.",
3538
3538
  "name": "VoidBarChart",
3539
3539
  "members": [
3540
3540
  {
@@ -3577,9 +3577,20 @@
3577
3577
  "text": "string"
3578
3578
  },
3579
3579
  "default": "''",
3580
- "description": "Accessible name of the chart, such as `Revenue by quarter`. The chart is an image to assistive\ntechnology, so set it and put the key figures in the text around it.",
3580
+ "description": "Accessible name of the chart, such as `Revenue by quarter`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
3581
3581
  "attribute": "aria-label"
3582
3582
  },
3583
+ {
3584
+ "kind": "field",
3585
+ "name": "showTable",
3586
+ "type": {
3587
+ "text": "boolean"
3588
+ },
3589
+ "default": "false",
3590
+ "description": "Show the data table (one row per category, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
3591
+ "attribute": "show-table",
3592
+ "reflects": true
3593
+ },
3583
3594
  {
3584
3595
  "kind": "field",
3585
3596
  "name": "stagger",
@@ -3596,7 +3607,9 @@
3596
3607
  "type": {
3597
3608
  "text": "BarChartData"
3598
3609
  },
3599
- "description": "The chart's data: `{ series: [{ name, values, color?, colors? }], labels? }`. `values` are aligned with\n`labels` (the category names along the axis); `color` colours a whole series and `colors` overrides single\nbars. Negative values are bars below a zero baseline: the value axis then spans the lowest value as\nwell, and a baseline is drawn at zero. Property only: assign a new object to update the chart and\nanimate to it."
3610
+ "description": "The chart's data: `{ series: [{ name, values, color?, colors? }], labels? }`. `values` are aligned with\n`labels` (the category names along the axis); `color` colours a whole series and `colors` overrides single\nbars. Negative values are bars below a zero baseline: the value axis then spans the lowest value as\nwell, and a baseline is drawn at zero. Give it as a property (assign a new object to update the chart\nand animate to it) or as JSON in the `data` attribute: `<void-bar-chart data='{\"series\":[{\"name\":\"Sales\",\"values\":[3,5]}],\"labels\":[\"Mon\",\"Tue\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
3611
+ "default": "{ series: [] }",
3612
+ "attribute": "data"
3600
3613
  },
3601
3614
  {
3602
3615
  "kind": "field",
@@ -3834,9 +3847,18 @@
3834
3847
  "text": "string"
3835
3848
  },
3836
3849
  "default": "''",
3837
- "description": "Accessible name of the chart, such as `Revenue by quarter`. The chart is an image to assistive\ntechnology, so set it and put the key figures in the text around it.",
3850
+ "description": "Accessible name of the chart, such as `Revenue by quarter`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
3838
3851
  "fieldName": "ariaLabel"
3839
3852
  },
3853
+ {
3854
+ "name": "show-table",
3855
+ "type": {
3856
+ "text": "boolean"
3857
+ },
3858
+ "default": "false",
3859
+ "description": "Show the data table (one row per category, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
3860
+ "fieldName": "showTable"
3861
+ },
3840
3862
  {
3841
3863
  "name": "stagger",
3842
3864
  "type": {
@@ -3845,6 +3867,15 @@
3845
3867
  "default": "null",
3846
3868
  "description": "Delay in milliseconds between the bars as they animate in, one after another. Without it the theme's\n`--void-stagger-chart-bars` applies; `stagger=\"0\"` animates them together.",
3847
3869
  "fieldName": "stagger"
3870
+ },
3871
+ {
3872
+ "name": "data",
3873
+ "type": {
3874
+ "text": "BarChartData"
3875
+ },
3876
+ "description": "The chart's data: `{ series: [{ name, values, color?, colors? }], labels? }`. `values` are aligned with\n`labels` (the category names along the axis); `color` colours a whole series and `colors` overrides single\nbars. Negative values are bars below a zero baseline: the value axis then spans the lowest value as\nwell, and a baseline is drawn at zero. Give it as a property (assign a new object to update the chart\nand animate to it) or as JSON in the `data` attribute: `<void-bar-chart data='{\"series\":[{\"name\":\"Sales\",\"values\":[3,5]}],\"labels\":[\"Mon\",\"Tue\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
3877
+ "default": "{ series: [] }",
3878
+ "fieldName": "data"
3848
3879
  }
3849
3880
  ],
3850
3881
  "superclass": {
@@ -5043,7 +5074,7 @@
5043
5074
  },
5044
5075
  {
5045
5076
  "kind": "class",
5046
- "description": "Input-anchored date picker that combines a text field with a VoidCalendar dropdown for form date selection.\n\nThe calendar opens in a non-modal popup dialog in the top layer, placed under the input with CSS anchor\npositioning (flipping above near the bottom of the viewport). A click on the field opens it and leaves focus\nin the field (ArrowDown then moves into the calendar); the calendar button, Enter, Space or ArrowDown on the\nfield open it with focus on the selected (or current) day. Choosing a day, Escape, or a press outside closes\nit and focus returns to the input.",
5077
+ "description": "Input-anchored date picker that combines a text field with a VoidCalendar dropdown for form date selection.\n\nThe calendar opens in a non-modal popup dialog in the top layer, placed under the input with CSS anchor\npositioning (flipping above near the bottom of the viewport). A click on the field opens it and leaves focus\nin the field (ArrowDown then moves into the calendar); the calendar button, Enter, Space or ArrowDown on the\nfield open it with focus on the selected (or current) day. Choosing a day, Escape, or a press outside closes\nit and focus returns to the input.\n\nThe field also takes a typed date, in `format` or as ISO `YYYY-MM-DD`: it is read when the field loses focus\nand on Enter, the calendar follows, and `void-change` fires once with the ISO value. A date that is not a date,\nor is before `min` or after `max`, is refused: the text stays for correction, `error` explains it, the field\nis `aria-invalid` and described by the message, and the form is not submitted (`badInput`, `rangeUnderflow` or\n`rangeOverflow`). An empty field clears the value.",
5047
5078
  "name": "VoidDatePicker",
5048
5079
  "members": [
5049
5080
  {
@@ -5161,7 +5192,7 @@
5161
5192
  "text": "string"
5162
5193
  },
5163
5194
  "default": "'MM/DD/YYYY'",
5164
- "description": "How the chosen date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`.\nDisplay only; the value stays `YYYY-MM-DD`.",
5195
+ "description": "How the date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`. A date\ntyped into the field is read the same way (and as ISO `YYYY-MM-DD` always); the value stays `YYYY-MM-DD`.",
5165
5196
  "attribute": "format"
5166
5197
  },
5167
5198
  {
@@ -5175,6 +5206,45 @@
5175
5206
  "attribute": "color",
5176
5207
  "reflects": true
5177
5208
  },
5209
+ {
5210
+ "kind": "field",
5211
+ "name": "error",
5212
+ "type": {
5213
+ "text": "string"
5214
+ },
5215
+ "default": "''",
5216
+ "description": "Mark the field invalid: it gets the error styling and `aria-invalid`. Set it for a server-side message;\nthe field also sets it itself, with the reason, when a typed date is not taken, and clears what it set\nonce a valid date is typed or picked. A message you set is left alone.",
5217
+ "attribute": "error",
5218
+ "reflects": true
5219
+ },
5220
+ {
5221
+ "kind": "field",
5222
+ "name": "clientState",
5223
+ "type": {
5224
+ "text": "Record<string, string | null> | undefined"
5225
+ },
5226
+ "static": true,
5227
+ "description": "The typed text is the field's own to keep: a server patch of `value` discards it, any other morph does not.",
5228
+ "default": "{ _draft: 'value' }",
5229
+ "inheritedFrom": {
5230
+ "name": "VoidElement",
5231
+ "module": "dist/base.js"
5232
+ }
5233
+ },
5234
+ {
5235
+ "kind": "field",
5236
+ "name": "editState",
5237
+ "type": {
5238
+ "text": "readonly string[] | undefined"
5239
+ },
5240
+ "static": true,
5241
+ "description": "While focus is inside, a morph does not apply the server's value over the date the user is typing.",
5242
+ "default": "['value']",
5243
+ "inheritedFrom": {
5244
+ "name": "VoidElement",
5245
+ "module": "dist/base.js"
5246
+ }
5247
+ },
5178
5248
  {
5179
5249
  "kind": "field",
5180
5250
  "name": "required",
@@ -5282,32 +5352,6 @@
5282
5352
  "name": "CoreFormControl"
5283
5353
  }
5284
5354
  },
5285
- {
5286
- "kind": "field",
5287
- "name": "clientState",
5288
- "type": {
5289
- "text": "Record<string, string | null> | undefined"
5290
- },
5291
- "static": true,
5292
- "description": "Client state that no reflected attribute carries and the server never\nrenders, such as text typed but not committed yet: property name -> the\nattribute whose change by the server discards it (the property is set to\n`null` so the server's value shows), or `null` to keep it whatever the\nserver sends. Morphs leave these properties alone otherwise; the component\nrenders them in place of the committed value while they are set.\n\n```ts\nstatic override clientState = { _pendingText: 'value' };\n```",
5293
- "inheritedFrom": {
5294
- "name": "VoidElement",
5295
- "module": "dist/base.js"
5296
- }
5297
- },
5298
- {
5299
- "kind": "field",
5300
- "name": "editState",
5301
- "type": {
5302
- "text": "readonly string[] | undefined"
5303
- },
5304
- "static": true,
5305
- "description": "Attributes whose value the user is editing while focus is inside the\nelement (the text of an input): a morph that arrives then never applies\nthe server's value of these, as a browser never rewrites what a user typed\ninto a native field from its `value` attribute. The server's value still\nbecomes the baseline, and the next morph after focus has left applies a\nserver change as usual. This is what keeps every keystroke when each one\nround-trips to the server and comes back a few keys behind (Livewire's\n`$wire.set` on `void-input`, LiveView's `phx-change` echo).\n\n```ts\nstatic override editState = ['value'];\n```",
5306
- "inheritedFrom": {
5307
- "name": "VoidElement",
5308
- "module": "dist/base.js"
5309
- }
5310
- },
5311
5355
  {
5312
5356
  "kind": "method",
5313
5357
  "name": "removeAttribute",
@@ -5472,6 +5516,12 @@
5472
5516
  }
5473
5517
  ],
5474
5518
  "events": [
5519
+ {
5520
+ "name": "void-change",
5521
+ "type": {
5522
+ "text": "CustomEvent<{ value: string; date: Date | null }>"
5523
+ }
5524
+ },
5475
5525
  {
5476
5526
  "type": {
5477
5527
  "text": "CustomEvent<{ reason: 'trigger' | 'focus' | 'keyboard' | 'api' }>"
@@ -5485,12 +5535,6 @@
5485
5535
  },
5486
5536
  "description": "The calendar popup is closing. Cancelable when the user caused it.",
5487
5537
  "name": "void-close"
5488
- },
5489
- {
5490
- "name": "void-change",
5491
- "type": {
5492
- "text": "CustomEvent<{ value: string; date: Date }>"
5493
- }
5494
5538
  }
5495
5539
  ],
5496
5540
  "attributes": [
@@ -5581,7 +5625,7 @@
5581
5625
  "text": "string"
5582
5626
  },
5583
5627
  "default": "'MM/DD/YYYY'",
5584
- "description": "How the chosen date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`.\nDisplay only; the value stays `YYYY-MM-DD`.",
5628
+ "description": "How the date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`. A date\ntyped into the field is read the same way (and as ISO `YYYY-MM-DD` always); the value stays `YYYY-MM-DD`.",
5585
5629
  "fieldName": "format"
5586
5630
  },
5587
5631
  {
@@ -5593,6 +5637,15 @@
5593
5637
  "description": "Status colour of the field: `default`, `error`, `warning`, `caution`, `success`, `info`, `notice` or `highlight`.",
5594
5638
  "fieldName": "color"
5595
5639
  },
5640
+ {
5641
+ "name": "error",
5642
+ "type": {
5643
+ "text": "string"
5644
+ },
5645
+ "default": "''",
5646
+ "description": "Mark the field invalid: it gets the error styling and `aria-invalid`. Set it for a server-side message;\nthe field also sets it itself, with the reason, when a typed date is not taken, and clears what it set\nonce a valid date is typed or picked. A message you set is left alone.",
5647
+ "fieldName": "error"
5648
+ },
5596
5649
  {
5597
5650
  "name": "required",
5598
5651
  "type": {
@@ -6833,6 +6886,14 @@
6833
6886
  },
6834
6887
  "tagName": "void-carousel",
6835
6888
  "customElement": true,
6889
+ "voidName": {
6890
+ "attributes": [
6891
+ "aria-label",
6892
+ "aria-labelledby",
6893
+ "title"
6894
+ ],
6895
+ "hint": "say what it shows: aria-label=\"Product photos\""
6896
+ },
6836
6897
  "voidHints": {
6837
6898
  "controls": "write <void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous> and <void-carousel-next aria-label=\"Next slide\"></void-carousel-next> after the content; leave them out for no arrows",
6838
6899
  "indicators": "write an empty <void-carousel-indicators></void-carousel-indicators> after the content; leave it out for no dots"
@@ -6853,7 +6914,7 @@
6853
6914
  "voidParts": {
6854
6915
  "children": "parts",
6855
6916
  "ordered": true,
6856
- "skeleton": "<void-carousel><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
6917
+ "skeleton": "<void-carousel aria-label=\"Slides\"><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
6857
6918
  "legacy": {
6858
6919
  "attributes": {
6859
6920
  "controls": "write <void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous> and <void-carousel-next aria-label=\"Next slide\"></void-carousel-next> after the content; leave them out for no arrows",
@@ -6885,7 +6946,7 @@
6885
6946
  "type": {
6886
6947
  "text": "boolean"
6887
6948
  },
6888
- "description": "Set by <void-carousel> on the slide being shown."
6949
+ "description": "Set by the carousel on the slide being shown."
6889
6950
  }
6890
6951
  ]
6891
6952
  }
@@ -10411,7 +10472,7 @@
10411
10472
  "declarations": [
10412
10473
  {
10413
10474
  "kind": "class",
10414
- "description": "Donut chart for part-to-whole breakdowns, drawn in SVG with animated segments and an optional total in the\ncentre. Give it `data` (`{ segments: [{ name, value }] }`) from script; it has no children. The chart is an\nimage to assistive technology, so set `aria-label` and state the key figures in the surrounding text.",
10475
+ "description": "Donut chart for part-to-whole breakdowns, drawn in SVG with animated segments and an optional total in the\ncentre. Give it `data` (`{ segments: [{ name, value }] }`) as the `data` property or as JSON in the `data`\nattribute, so server-rendered markup draws it with no script; it has no children. The drawing is hidden\nfrom assistive technology and a visually hidden data table (captioned with `aria-label`) carries the\nvalues instead; add `show-table` to show the table below the chart too.",
10415
10476
  "name": "VoidDonutChart",
10416
10477
  "members": [
10417
10478
  {
@@ -10485,16 +10546,29 @@
10485
10546
  "text": "string"
10486
10547
  },
10487
10548
  "default": "''",
10488
- "description": "Accessible name of the chart, such as `Traffic by source`. The chart is an image to assistive\ntechnology, so set it and put the key figures in the text around it.",
10549
+ "description": "Accessible name of the chart, such as `Traffic by source`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
10489
10550
  "attribute": "aria-label"
10490
10551
  },
10552
+ {
10553
+ "kind": "field",
10554
+ "name": "showTable",
10555
+ "type": {
10556
+ "text": "boolean"
10557
+ },
10558
+ "default": "false",
10559
+ "description": "Show the data table (one row per segment: name, value and share) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
10560
+ "attribute": "show-table",
10561
+ "reflects": true
10562
+ },
10491
10563
  {
10492
10564
  "kind": "field",
10493
10565
  "name": "data",
10494
10566
  "type": {
10495
10567
  "text": "DonutChartData"
10496
10568
  },
10497
- "description": "The chart's data: `{ segments: [{ name, value, color? }] }`. Each segment's share of the ring is its\n`value` over the sum of all values. Property only: assign a new object to update the chart and animate to it."
10569
+ "description": "The chart's data: `{ segments: [{ name, value, color? }] }`. Each segment's share of the ring is its\n`value` over the sum of all values. Give it as a property (assign a new object to update the chart and\nanimate to it) or as JSON in the `data` attribute:\n`<void-donut-chart data='{\"segments\":[{\"name\":\"Search\",\"value\":40},{\"name\":\"Direct\",\"value\":25}]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
10570
+ "default": "{ segments: [] }",
10571
+ "attribute": "data"
10498
10572
  },
10499
10573
  {
10500
10574
  "kind": "field",
@@ -10759,8 +10833,26 @@
10759
10833
  "text": "string"
10760
10834
  },
10761
10835
  "default": "''",
10762
- "description": "Accessible name of the chart, such as `Traffic by source`. The chart is an image to assistive\ntechnology, so set it and put the key figures in the text around it.",
10836
+ "description": "Accessible name of the chart, such as `Traffic by source`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
10763
10837
  "fieldName": "ariaLabel"
10838
+ },
10839
+ {
10840
+ "name": "show-table",
10841
+ "type": {
10842
+ "text": "boolean"
10843
+ },
10844
+ "default": "false",
10845
+ "description": "Show the data table (one row per segment: name, value and share) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
10846
+ "fieldName": "showTable"
10847
+ },
10848
+ {
10849
+ "name": "data",
10850
+ "type": {
10851
+ "text": "DonutChartData"
10852
+ },
10853
+ "description": "The chart's data: `{ segments: [{ name, value, color? }] }`. Each segment's share of the ring is its\n`value` over the sum of all values. Give it as a property (assign a new object to update the chart and\nanimate to it) or as JSON in the `data` attribute:\n`<void-donut-chart data='{\"segments\":[{\"name\":\"Search\",\"value\":40},{\"name\":\"Direct\",\"value\":25}]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
10854
+ "default": "{ segments: [] }",
10855
+ "fieldName": "data"
10764
10856
  }
10765
10857
  ],
10766
10858
  "superclass": {
@@ -13206,7 +13298,7 @@
13206
13298
  "text": "string"
13207
13299
  },
13208
13300
  "default": "''",
13209
- "description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are dropped without an error.",
13301
+ "description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are not taken: `void-reject` fires with\nreason `type` and the zone shows an error.",
13210
13302
  "attribute": "accept"
13211
13303
  },
13212
13304
  {
@@ -13238,7 +13330,7 @@
13238
13330
  "text": "number"
13239
13331
  },
13240
13332
  "default": "0",
13241
- "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are dropped silently.",
13333
+ "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
13242
13334
  "attribute": "max-size"
13243
13335
  },
13244
13336
  {
@@ -13248,7 +13340,7 @@
13248
13340
  "text": "string"
13249
13341
  },
13250
13342
  "default": "''",
13251
- "description": "Message shown under the zone, such as a server-side upload failure. It does not set `aria-invalid`;\nthe component never produces an error text itself.",
13343
+ "description": "Error message shown under the zone; while it is set the drop zone is `aria-invalid` and described by\nit. Set it for a server-side upload failure. The zone also sets it itself when it rejects a file\n(see `void-reject`) and clears what it set on the next accepted selection; a message you set is\nleft alone.",
13252
13344
  "attribute": "error",
13253
13345
  "reflects": true
13254
13346
  },
@@ -13549,6 +13641,13 @@
13549
13641
  }
13550
13642
  ],
13551
13643
  "events": [
13644
+ {
13645
+ "name": "void-reject",
13646
+ "type": {
13647
+ "text": "CustomEvent<{ rejected: { file: File; reason: 'type' | 'size' | 'count' }[] }>"
13648
+ },
13649
+ "description": "Files were refused: one entry per file with the reason. Does not bubble."
13650
+ },
13552
13651
  {
13553
13652
  "name": "void-change",
13554
13653
  "type": {
@@ -13563,7 +13662,7 @@
13563
13662
  "text": "string"
13564
13663
  },
13565
13664
  "default": "''",
13566
- "description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are dropped without an error.",
13665
+ "description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are not taken: `void-reject` fires with\nreason `type` and the zone shows an error.",
13567
13666
  "fieldName": "accept"
13568
13667
  },
13569
13668
  {
@@ -13590,7 +13689,7 @@
13590
13689
  "text": "number"
13591
13690
  },
13592
13691
  "default": "0",
13593
- "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are dropped silently.",
13692
+ "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
13594
13693
  "fieldName": "maxSize"
13595
13694
  },
13596
13695
  {
@@ -13599,7 +13698,7 @@
13599
13698
  "text": "string"
13600
13699
  },
13601
13700
  "default": "''",
13602
- "description": "Message shown under the zone, such as a server-side upload failure. It does not set `aria-invalid`;\nthe component never produces an error text itself.",
13701
+ "description": "Error message shown under the zone; while it is set the drop zone is `aria-invalid` and described by\nit. Set it for a server-side upload failure. The zone also sets it itself when it rejects a file\n(see `void-reject`) and clears what it set on the next accepted selection; a message you set is\nleft alone.",
13603
13702
  "fieldName": "error"
13604
13703
  },
13605
13704
  {
@@ -13865,17 +13964,29 @@
13865
13964
  "text": "string"
13866
13965
  },
13867
13966
  "default": "''",
13868
- "description": "Accessible name of the gauge, such as `Disk usage`. The gauge is an image to assistive technology,\nso set it and put the figure in the text around it.",
13967
+ "description": "Accessible name of the gauge, such as `Disk usage`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
13869
13968
  "attribute": "aria-label"
13870
13969
  },
13970
+ {
13971
+ "kind": "field",
13972
+ "name": "showTable",
13973
+ "type": {
13974
+ "text": "boolean"
13975
+ },
13976
+ "default": "false",
13977
+ "description": "Show the data table (the reading with its range, or one row per segment) below the gauge. The table\nis always there for assistive technology; this makes it visible too.",
13978
+ "attribute": "show-table",
13979
+ "reflects": true
13980
+ },
13871
13981
  {
13872
13982
  "kind": "field",
13873
13983
  "name": "zones",
13874
13984
  "type": {
13875
13985
  "text": "GaugeZone[]"
13876
13986
  },
13987
+ "description": "Colour bands over the value range: an array of `{ from, to, color }`; the fill takes the colour of the\nzone containing the value. Give it as a property or as JSON in the `zones` attribute:\n`<void-gauge zones='[{\"from\":0,\"to\":60,\"color\":\"green\"},{\"from\":60,\"to\":100,\"color\":\"red\"}]'>`.\nInvalid JSON draws no zones and is reported by `@voidable/ui/dev`. Not reflected to the attribute.",
13877
13988
  "default": "[]",
13878
- "description": "Colour bands over the value range. Assign an array of `{ from, to, color }`;\nthe fill takes the colour of the zone containing the value. Property only."
13989
+ "attribute": "zones"
13879
13990
  },
13880
13991
  {
13881
13992
  "kind": "field",
@@ -13883,7 +13994,9 @@
13883
13994
  "type": {
13884
13995
  "text": "GaugeData"
13885
13996
  },
13886
- "description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading. Property only: assign a new object to update the gauge and\nanimate to it. For a single reading, set the `value` attribute instead."
13997
+ "description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading. Give it as a property (assign a new object to update the\ngauge and animate to it) or as JSON in the `data` attribute:\n`<void-gauge data='{\"segments\":[{\"name\":\"Used\",\"value\":40},{\"name\":\"Cache\",\"value\":15}]}'>`. Invalid\nJSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute, and an attribute a server morph leaves unchanged does not animate again. For a single\nreading, set the `value` attribute instead.",
13998
+ "default": "{}",
13999
+ "attribute": "data"
13887
14000
  },
13888
14001
  {
13889
14002
  "kind": "field",
@@ -14238,8 +14351,35 @@
14238
14351
  "text": "string"
14239
14352
  },
14240
14353
  "default": "''",
14241
- "description": "Accessible name of the gauge, such as `Disk usage`. The gauge is an image to assistive technology,\nso set it and put the figure in the text around it.",
14354
+ "description": "Accessible name of the gauge, such as `Disk usage`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
14242
14355
  "fieldName": "ariaLabel"
14356
+ },
14357
+ {
14358
+ "name": "show-table",
14359
+ "type": {
14360
+ "text": "boolean"
14361
+ },
14362
+ "default": "false",
14363
+ "description": "Show the data table (the reading with its range, or one row per segment) below the gauge. The table\nis always there for assistive technology; this makes it visible too.",
14364
+ "fieldName": "showTable"
14365
+ },
14366
+ {
14367
+ "name": "zones",
14368
+ "type": {
14369
+ "text": "GaugeZone[]"
14370
+ },
14371
+ "description": "Colour bands over the value range: an array of `{ from, to, color }`; the fill takes the colour of the\nzone containing the value. Give it as a property or as JSON in the `zones` attribute:\n`<void-gauge zones='[{\"from\":0,\"to\":60,\"color\":\"green\"},{\"from\":60,\"to\":100,\"color\":\"red\"}]'>`.\nInvalid JSON draws no zones and is reported by `@voidable/ui/dev`. Not reflected to the attribute.",
14372
+ "default": "[]",
14373
+ "fieldName": "zones"
14374
+ },
14375
+ {
14376
+ "name": "data",
14377
+ "type": {
14378
+ "text": "GaugeData"
14379
+ },
14380
+ "description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading. Give it as a property (assign a new object to update the\ngauge and animate to it) or as JSON in the `data` attribute:\n`<void-gauge data='{\"segments\":[{\"name\":\"Used\",\"value\":40},{\"name\":\"Cache\",\"value\":15}]}'>`. Invalid\nJSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute, and an attribute a server morph leaves unchanged does not animate again. For a single\nreading, set the `value` attribute instead.",
14381
+ "default": "{}",
14382
+ "fieldName": "data"
14243
14383
  }
14244
14384
  ],
14245
14385
  "superclass": {
@@ -14300,7 +14440,7 @@
14300
14440
  "declarations": [
14301
14441
  {
14302
14442
  "kind": "class",
14303
- "description": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.",
14443
+ "description": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.\n\nName it by what it opens: `aria-label=\"Main navigation\"` (or `aria-labelledby`). Without one it is called \"Menu\" (\"Close menu\" while open).",
14304
14444
  "name": "VoidHamburger",
14305
14445
  "members": [
14306
14446
  {
@@ -14530,9 +14670,9 @@
14530
14670
  "events": [
14531
14671
  {
14532
14672
  "type": {
14533
- "text": "CustomEvent<{ reason: 'trigger' }>"
14673
+ "text": "CustomEvent<{ reason: 'trigger' | 'keyboard' }>"
14534
14674
  },
14535
- "description": "The user opened it (click, Enter or Space). Does not bubble.",
14675
+ "description": "The user opened it: `trigger` for a click, `keyboard` for Enter or Space. Does not bubble.",
14536
14676
  "name": "void-open"
14537
14677
  },
14538
14678
  {
@@ -14569,6 +14709,14 @@
14569
14709
  },
14570
14710
  "tagName": "void-hamburger",
14571
14711
  "customElement": true,
14712
+ "voidName": {
14713
+ "attributes": [
14714
+ "aria-label",
14715
+ "aria-labelledby",
14716
+ "title"
14717
+ ],
14718
+ "hint": "say what it opens: aria-label=\"Main navigation\""
14719
+ },
14572
14720
  "voidRenamed": {
14573
14721
  "attributes": {
14574
14722
  "active": {
@@ -15999,7 +16147,7 @@
15999
16147
  "declarations": [
16000
16148
  {
16001
16149
  "kind": "class",
16002
- "description": "Line chart for trends over time with one or more series, linear or stepped, drawn in SVG with an animated\nentry. Give it `data` (`{ series: [{ name, values }], labels }`) from script; it has no children. The chart\nis an image to assistive technology, so set `aria-label` and state the key figures in the surrounding text.",
16150
+ "description": "Line chart for trends over time with one or more series, linear or stepped, drawn in SVG with an animated\nentry. Give it `data` (`{ series: [{ name, values }], labels }`) as the `data` property or as JSON in the\n`data` attribute, so server-rendered markup draws it with no script; it has no children. The drawing is\nhidden from assistive technology and a visually hidden data table (captioned with `aria-label`) carries\nthe values instead; add `show-table` to show the table below the chart too.",
16003
16151
  "name": "VoidLineChart",
16004
16152
  "members": [
16005
16153
  {
@@ -16053,16 +16201,29 @@
16053
16201
  "text": "string"
16054
16202
  },
16055
16203
  "default": "''",
16056
- "description": "Accessible name of the chart, such as `Visitors per day`. The chart is an image to assistive\ntechnology, so set it and put the key figures in the text around it.",
16204
+ "description": "Accessible name of the chart, such as `Visitors per day`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
16057
16205
  "attribute": "aria-label"
16058
16206
  },
16207
+ {
16208
+ "kind": "field",
16209
+ "name": "showTable",
16210
+ "type": {
16211
+ "text": "boolean"
16212
+ },
16213
+ "default": "false",
16214
+ "description": "Show the data table (one row per point, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
16215
+ "attribute": "show-table",
16216
+ "reflects": true
16217
+ },
16059
16218
  {
16060
16219
  "kind": "field",
16061
16220
  "name": "data",
16062
16221
  "type": {
16063
16222
  "text": "LineChartData"
16064
16223
  },
16065
- "description": "The chart's data: `{ series: [{ name, values, color? }], labels? }`. `values` are aligned with `labels`\n(the names along the horizontal axis); `color` overrides a series' colour. Property only: assign a new\nobject to update the chart and animate to it."
16224
+ "description": "The chart's data: `{ series: [{ name, values, color? }], labels? }`. `values` are aligned with `labels`\n(the names along the horizontal axis); `color` overrides a series' colour. Give it as a property\n(assign a new object to update the chart and animate to it) or as JSON in the `data` attribute:\n`<void-line-chart data='{\"series\":[{\"name\":\"Visitors\",\"values\":[3,5,4]}],\"labels\":[\"Mon\",\"Tue\",\"Wed\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
16225
+ "default": "{ series: [] }",
16226
+ "attribute": "data"
16066
16227
  },
16067
16228
  {
16068
16229
  "kind": "field",
@@ -16309,8 +16470,26 @@
16309
16470
  "text": "string"
16310
16471
  },
16311
16472
  "default": "''",
16312
- "description": "Accessible name of the chart, such as `Visitors per day`. The chart is an image to assistive\ntechnology, so set it and put the key figures in the text around it.",
16473
+ "description": "Accessible name of the chart, such as `Visitors per day`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
16313
16474
  "fieldName": "ariaLabel"
16475
+ },
16476
+ {
16477
+ "name": "show-table",
16478
+ "type": {
16479
+ "text": "boolean"
16480
+ },
16481
+ "default": "false",
16482
+ "description": "Show the data table (one row per point, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
16483
+ "fieldName": "showTable"
16484
+ },
16485
+ {
16486
+ "name": "data",
16487
+ "type": {
16488
+ "text": "LineChartData"
16489
+ },
16490
+ "description": "The chart's data: `{ series: [{ name, values, color? }], labels? }`. `values` are aligned with `labels`\n(the names along the horizontal axis); `color` overrides a series' colour. Give it as a property\n(assign a new object to update the chart and animate to it) or as JSON in the `data` attribute:\n`<void-line-chart data='{\"series\":[{\"name\":\"Visitors\",\"values\":[3,5,4]}],\"labels\":[\"Mon\",\"Tue\",\"Wed\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
16491
+ "default": "{ series: [] }",
16492
+ "fieldName": "data"
16314
16493
  }
16315
16494
  ],
16316
16495
  "superclass": {
@@ -18777,7 +18956,7 @@
18777
18956
  "declarations": [
18778
18957
  {
18779
18958
  "kind": "class",
18780
- "description": "Top application navigation bar for branding, primary links, and user account controls.\n\nThe bar is a row: what you write inside it is laid out by the theme as it stands, with no part elements and\nnothing rendered. Use the patterns beside it for the usual contents: `<void-brand>` for the name or logo,\n`<void-nav-links>` for the links (mark the current page with `aria-current=\"page\"`) and `<void-spacer>` to\npush what follows to the far end.",
18959
+ "description": "Top application navigation bar for branding, primary links, and user account controls.\n\nThe bar is a row: what you write inside it is laid out by the theme as it stands, with no part elements and\nnothing rendered. Use the patterns beside it for the usual contents: `<void-brand>` for the name or logo,\n`<void-nav-links>` for the links (mark the current page with `aria-current=\"page\"`) and `<void-spacer>` to\npush what follows to the far end.\n\nThe bar is a `navigation` landmark. Where the page already has one around it (the bar sits inside a `<nav>`\nor an element with a navigation or other role of its own) or inside it (the links are already in a `<nav>`),\nit adds nothing, so landmarks never nest; a role you write on it is kept. When a page has more than one\nnavigation landmark, give each an `aria-label` (`<void-nav-bar aria-label=\"Primary\">`); with one, a name is optional.",
18781
18960
  "name": "VoidNavBar",
18782
18961
  "members": [
18783
18962
  {
@@ -21017,6 +21196,17 @@
21017
21196
  },
21018
21197
  "tagName": "void-panel",
21019
21198
  "customElement": true,
21199
+ "voidName": {
21200
+ "attributes": [
21201
+ "aria-label",
21202
+ "aria-labelledby",
21203
+ "title"
21204
+ ],
21205
+ "parts": [
21206
+ "void-panel-title"
21207
+ ],
21208
+ "hint": "write its title as <void-panel-header><void-panel-title>, or give it an aria-label"
21209
+ },
21020
21210
  "voidHints": {
21021
21211
  "label": "write <void-panel-header><void-panel-title>...</void-panel-title></void-panel-header> as the first child; the title names the panel"
21022
21212
  },
@@ -22410,7 +22600,7 @@
22410
22600
  "tag": "label"
22411
22601
  }
22412
22602
  ],
22413
- "hint": "wrap it in <void-field label=\"...\"> or give it aria-label"
22603
+ "hint": "say what is progressing: aria-label=\"Uploading photo\""
22414
22604
  }
22415
22605
  }
22416
22606
  ],
@@ -26098,7 +26288,7 @@
26098
26288
  "declarations": [
26099
26289
  {
26100
26290
  "kind": "class",
26101
- "description": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.",
26291
+ "description": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.\n\nWith a `label` it is a `group` named by the label; without one it has no role.",
26102
26292
  "name": "VoidStat",
26103
26293
  "members": [
26104
26294
  {
@@ -27526,7 +27716,7 @@
27526
27716
  "declarations": [
27527
27717
  {
27528
27718
  "kind": "class",
27529
- "description": "Data table around a native `<table>`: sets how it looks (`striped`, `hoverable`, `compact`,\n`bordered`, `inset`), how it behaves when the container is narrow (`stack`) and when it is wider\nthan its container (`scrollable`, `sticky-header`, `sticky-column`).\n\n**Stacked presentation.** `stack` turns each row into a block of label and value pairs while the\ntable's container (not the viewport) is narrower than a breakpoint (`stack=\"48rem\"`, `stack=\"always\"`). The label of a cell is the\ntext of the header cell of its column; it is copied to the cell as `data-label` (a `data-label`\nwritten on a cell is kept). `data-stack` on a header cell sets the role of a column in the block:\n`title` (the block's heading, no label), `select` (a row checkbox, beside the title), `actions`\n(buttons, grouped at the end) or `hide` (left out). It is copied to the cells of the column.\n`data-align=\"end\"` on a header cell right-aligns a numeric column. Because browsers can drop table\nsemantics when `display` changes, a table with `stack` carries explicit table, row and cell roles.\n\n**Overflow.** Nothing is clipped by default, so a menu, popover or tooltip opened from a cell is\nalways fully visible. `scrollable` makes the table its own horizontal scroll region: it is\nfocusable and labelled (`label`, else the `<caption>`, else `aria-label`) only while it actually\noverflows, and fades its edges while there is more to scroll to. `max-height` makes the region\nscroll vertically too, which is what `sticky-header` needs; without it a sticky header sticks to\nthe page.",
27719
+ "description": "Data table around a native `<table>`: sets how it looks (`striped`, `hoverable`, `compact`,\n`bordered`, `inset`), how it behaves when the container is narrow (`stack`) and when it is wider\nthan its container (`scrollable`, `sticky-header`, `sticky-column`).\n\n**Stacked presentation.** `stack` turns each row into a block of label and value pairs while the\ntable's container (not the viewport) is narrower than a breakpoint (`stack=\"48rem\"`, `stack=\"always\"`). The label of a cell is the\ntext of the header cell of its column; it is copied to the cell as `data-label` (a `data-label`\nwritten on a cell is kept). `data-stack` on a header cell sets the role of a column in the block:\n`title` (the block's heading, no label), `select` (a row checkbox, beside the title), `actions`\n(buttons, grouped at the end) or `hide` (left out). It is copied to the cells of the column.\n`data-align=\"end\"` on a header cell right-aligns a numeric column. Because browsers can drop table\nsemantics when `display` changes, a table with `stack` carries explicit table, row and cell roles.\n\n**Name.** A table needs a name: write a `<caption>` (the caption part; it can be visually hidden), or an\n`aria-label` (or `label`) on the `<void-table>`, which the component copies onto the native `<table>`. `voidable check`\nreports a `<void-table>` with neither (rule `missing-name`).\n\n**Overflow.** Nothing is clipped by default, so a menu, popover or tooltip opened from a cell is\nalways fully visible. `scrollable` makes the table its own horizontal scroll region: it is\nfocusable and labelled (`label`, else the `<caption>`, else `aria-label`) only while it actually\noverflows, and fades its edges while there is more to scroll to. `max-height` makes the region\nscroll vertically too, which is what `sticky-header` needs; without it a sticky header sticks to\nthe page.",
27530
27720
  "name": "VoidTable",
27531
27721
  "cssProperties": [
27532
27722
  {
@@ -27972,7 +28162,19 @@
27972
28162
  "data-stack-title"
27973
28163
  ],
27974
28164
  "tagName": "void-table",
27975
- "customElement": true
28165
+ "customElement": true,
28166
+ "voidName": {
28167
+ "attributes": [
28168
+ "aria-label",
28169
+ "aria-labelledby",
28170
+ "title",
28171
+ "label"
28172
+ ],
28173
+ "parts": [
28174
+ "caption"
28175
+ ],
28176
+ "hint": "write a <caption> in the table, or give the void-table an aria-label"
28177
+ }
27976
28178
  },
27977
28179
  {
27978
28180
  "kind": "variable",