@voidable/ui 0.10.0 → 0.12.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 (177) hide show
  1. package/dist/angular/index.d.ts +2 -2
  2. package/dist/angular/index.js +2 -1
  3. package/dist/base.d.ts +6 -0
  4. package/dist/base.js +2 -2
  5. package/dist/chunks/activation-B8aBarKd.js +4 -0
  6. package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
  7. package/dist/chunks/carousel-C9u0bg5l.js +10 -0
  8. package/dist/chunks/choice-BTrsi7OW.js +16 -0
  9. package/dist/chunks/data-Baycjoo4.js +96 -0
  10. package/dist/chunks/fields-MEqz-olE.js +21 -0
  11. package/dist/chunks/{form-control-C0vH6gii.js → form-control-fL-Hhy91.js} +49 -48
  12. package/dist/chunks/{keyboard-CEhMSkws.js → keyboard-ChtDvhB_.js} +4 -23
  13. package/dist/chunks/{keyboard-activation-CV0m4hkn.js → keyboard-activation-BfEyoaMT.js} +4 -6
  14. package/dist/chunks/menu-CxRRgkJI.js +21 -0
  15. package/dist/chunks/{modal-CgGp_fCs.js → modal-Cz2-Ov76.js} +24 -16
  16. package/dist/chunks/nav-menu-Bx284Dk6.js +12 -0
  17. package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-BuV-4Yvt.js} +76 -69
  18. package/dist/chunks/overlay-K1ilWC1p.js +4 -0
  19. package/dist/chunks/pickers-CjlFgNke.js +36 -0
  20. package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
  21. package/dist/chunks/table-BBpqwWEi.js +4 -0
  22. package/dist/chunks/tabs-Buf3EBWq.js +10 -0
  23. package/dist/components/accordion.d.ts +7 -0
  24. package/dist/components/accordion.js +23 -15
  25. package/dist/components/action-input.d.ts +2 -1
  26. package/dist/components/action-input.js +60 -56
  27. package/dist/components/alert.d.ts +11 -0
  28. package/dist/components/alert.js +10 -3
  29. package/dist/components/avatar.js +2 -2
  30. package/dist/components/badge.d.ts +8 -2
  31. package/dist/components/badge.js +1 -4
  32. package/dist/components/banner.d.ts +9 -0
  33. package/dist/components/banner.js +10 -3
  34. package/dist/components/bar-chart.d.ts +21 -7
  35. package/dist/components/bar-chart.js +68 -45
  36. package/dist/components/breadcrumbs.d.ts +2 -0
  37. package/dist/components/breadcrumbs.js +16 -12
  38. package/dist/components/button.d.ts +7 -0
  39. package/dist/components/button.js +24 -17
  40. package/dist/components/calendar.d.ts +85 -12
  41. package/dist/components/calendar.js +263 -120
  42. package/dist/components/card.js +1 -1
  43. package/dist/components/carousel.d.ts +22 -0
  44. package/dist/components/carousel.js +66 -37
  45. package/dist/components/charts/data.d.ts +72 -0
  46. package/dist/components/checkbox-group.js +23 -22
  47. package/dist/components/checkbox.d.ts +7 -0
  48. package/dist/components/checkbox.js +30 -25
  49. package/dist/components/collapsible.d.ts +7 -0
  50. package/dist/components/collapsible.js +20 -12
  51. package/dist/components/color-picker.js +29 -28
  52. package/dist/components/combobox.d.ts +13 -1
  53. package/dist/components/combobox.js +55 -42
  54. package/dist/components/compose-input.d.ts +9 -1
  55. package/dist/components/compose-input.js +29 -17
  56. package/dist/components/dialog.js +1 -1
  57. package/dist/components/divider.js +2 -2
  58. package/dist/components/donut-chart.d.ts +22 -6
  59. package/dist/components/donut-chart.js +97 -70
  60. package/dist/components/drawer.js +1 -1
  61. package/dist/components/dropdown-menu.d.ts +22 -0
  62. package/dist/components/dropdown-menu.js +55 -40
  63. package/dist/components/editable.d.ts +11 -1
  64. package/dist/components/editable.js +36 -23
  65. package/dist/components/error-fallback.d.ts +4 -2
  66. package/dist/components/error-fallback.js +35 -29
  67. package/dist/components/field.js +2 -2
  68. package/dist/components/file-upload.d.ts +29 -5
  69. package/dist/components/file-upload.js +84 -28
  70. package/dist/components/gauge.d.ts +32 -8
  71. package/dist/components/gauge.js +206 -133
  72. package/dist/components/hamburger.d.ts +19 -1
  73. package/dist/components/hamburger.js +45 -25
  74. package/dist/components/hover-card.d.ts +7 -0
  75. package/dist/components/hover-card.js +23 -15
  76. package/dist/components/indicator.js +16 -15
  77. package/dist/components/input.js +3 -3
  78. package/dist/components/line-chart.d.ts +22 -7
  79. package/dist/components/line-chart.js +80 -57
  80. package/dist/components/list.js +1 -1
  81. package/dist/components/menu.d.ts +25 -0
  82. package/dist/components/menu.js +56 -34
  83. package/dist/components/multiselect.d.ts +17 -1
  84. package/dist/components/multiselect.js +97 -75
  85. package/dist/components/nav-bar.d.ts +9 -0
  86. package/dist/components/nav-bar.js +16 -3
  87. package/dist/components/nav-menu.d.ts +9 -0
  88. package/dist/components/nav-menu.js +31 -24
  89. package/dist/components/number-input.d.ts +15 -1
  90. package/dist/components/number-input.js +72 -38
  91. package/dist/components/pagination.js +26 -25
  92. package/dist/components/panel.js +1 -1
  93. package/dist/components/pin-input.d.ts +11 -0
  94. package/dist/components/pin-input.js +47 -33
  95. package/dist/components/popover.d.ts +7 -0
  96. package/dist/components/popover.js +22 -14
  97. package/dist/components/progress.js +2 -2
  98. package/dist/components/radio-group.js +3 -3
  99. package/dist/components/radio.d.ts +10 -1
  100. package/dist/components/radio.js +38 -33
  101. package/dist/components/scroll-area.js +2 -2
  102. package/dist/components/segmented-control.d.ts +14 -0
  103. package/dist/components/segmented-control.js +41 -29
  104. package/dist/components/select.js +2 -2
  105. package/dist/components/sidebar.d.ts +1 -0
  106. package/dist/components/sidebar.js +15 -11
  107. package/dist/components/skeleton.js +1 -1
  108. package/dist/components/slider.js +3 -3
  109. package/dist/components/spinner.d.ts +5 -3
  110. package/dist/components/spinner.js +22 -15
  111. package/dist/components/stat.d.ts +13 -1
  112. package/dist/components/stat.js +28 -20
  113. package/dist/components/status-dot.d.ts +2 -2
  114. package/dist/components/status-dot.js +13 -15
  115. package/dist/components/stepper.d.ts +2 -0
  116. package/dist/components/stepper.js +21 -14
  117. package/dist/components/switch.d.ts +7 -0
  118. package/dist/components/switch.js +25 -17
  119. package/dist/components/table.d.ts +81 -1
  120. package/dist/components/table.js +571 -69
  121. package/dist/components/tabs.d.ts +11 -0
  122. package/dist/components/tabs.js +43 -34
  123. package/dist/components/tag.js +13 -12
  124. package/dist/components/tags-input.d.ts +10 -1
  125. package/dist/components/tags-input.js +43 -31
  126. package/dist/components/textarea.js +3 -3
  127. package/dist/components/toast.d.ts +2 -0
  128. package/dist/components/toast.js +36 -29
  129. package/dist/components/toggle-group.d.ts +8 -0
  130. package/dist/components/toggle-group.js +25 -18
  131. package/dist/components/toggle.d.ts +7 -0
  132. package/dist/components/toggle.js +24 -16
  133. package/dist/components/tooltip.d.ts +7 -0
  134. package/dist/components/tooltip.js +21 -13
  135. package/dist/components.json +108 -84
  136. package/dist/custom-elements.json +4520 -236
  137. package/dist/dev/rules.d.ts +0 -1
  138. package/dist/dev/types.d.ts +5 -1
  139. package/dist/dev.js +298 -122
  140. package/dist/index.d.ts +4 -0
  141. package/dist/index.js +69 -67
  142. package/dist/keyboard-activation.d.ts +9 -9
  143. package/dist/keyboard.d.ts +2 -10
  144. package/dist/keymaps/activation.d.ts +8 -0
  145. package/dist/keymaps/carousel.d.ts +9 -0
  146. package/dist/keymaps/choice.d.ts +21 -0
  147. package/dist/keymaps/fields.d.ts +31 -0
  148. package/dist/keymaps/index.d.ts +2 -0
  149. package/dist/keymaps/menu.d.ts +36 -0
  150. package/dist/keymaps/nav-menu.d.ts +11 -0
  151. package/dist/keymaps/overlay.d.ts +4 -0
  152. package/dist/keymaps/pickers.d.ts +36 -0
  153. package/dist/keymaps/table.d.ts +8 -0
  154. package/dist/keymaps/tabs.d.ts +7 -0
  155. package/dist/keymaps.js +51 -0
  156. package/dist/keys.d.ts +46 -0
  157. package/dist/keys.js +57 -0
  158. package/dist/llms.txt +11 -3
  159. package/dist/messages/ar.d.ts +1 -0
  160. package/dist/messages/ar.js +130 -0
  161. package/dist/messages/fr.d.ts +1 -0
  162. package/dist/messages/fr.js +109 -0
  163. package/dist/messages.d.ts +213 -0
  164. package/dist/messages.js +190 -0
  165. package/dist/modal.d.ts +7 -0
  166. package/dist/reference.md +885 -60
  167. package/dist/testing/index.d.ts +46 -0
  168. package/dist/testing.js +79 -0
  169. package/dist/types/elements.d.ts +100 -84
  170. package/dist/types/react.d.ts +7 -3
  171. package/dist/types/solid.d.ts +7 -3
  172. package/dist/types/solid2.d.ts +4 -0
  173. package/dist/types/svelte.d.ts +7 -3
  174. package/dist/types/vue.d.ts +7 -3
  175. package/dist/vscode.html-custom-data.json +478 -38
  176. package/dist/web-types.json +1001 -111
  177. package/package.json +22 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@voidable/ui",
4
- "version": "0.10.0",
4
+ "version": "0.12.0",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "contributions": {
@@ -54,6 +54,15 @@
54
54
  "symbol": "VoidAccordionItem"
55
55
  },
56
56
  "attributes": [
57
+ {
58
+ "name": "keys",
59
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
60
+ "default": "null",
61
+ "value": {
62
+ "kind": "plain",
63
+ "type": "KeyOverrides | null"
64
+ }
65
+ },
57
66
  {
58
67
  "name": "open",
59
68
  "description": "Whether the content is shown. Add the attribute to start open; it is updated when the user toggles\nthe item.",
@@ -66,6 +75,12 @@
66
75
  ],
67
76
  "js": {
68
77
  "properties": [
78
+ {
79
+ "name": "keys",
80
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
81
+ "type": "KeyOverrides | null",
82
+ "default": "null"
83
+ },
69
84
  {
70
85
  "name": "open",
71
86
  "description": "Whether the content is shown. Add the attribute to start open; it is updated when the user toggles\nthe item.",
@@ -268,8 +283,8 @@
268
283
  },
269
284
  {
270
285
  "name": "action-label",
271
- "description": "Accessible name of the button and its tooltip. Defaults to `Action`; say what it does (`Copy link`).",
272
- "default": "'Action'",
286
+ "description": "Accessible name of the button and its tooltip. Defaults to the `actionInput.action` message (English: `Action`); say what it does (`Copy link`).",
287
+ "default": "''",
273
288
  "value": {
274
289
  "kind": "plain",
275
290
  "type": "string"
@@ -409,9 +424,9 @@
409
424
  },
410
425
  {
411
426
  "name": "actionLabel",
412
- "description": "Accessible name of the button and its tooltip. Defaults to `Action`; say what it does (`Copy link`).",
427
+ "description": "Accessible name of the button and its tooltip. Defaults to the `actionInput.action` message (English: `Action`); say what it does (`Copy link`).",
413
428
  "type": "string",
414
- "default": "'Action'"
429
+ "default": "''"
415
430
  },
416
431
  {
417
432
  "name": "iconSide",
@@ -444,7 +459,7 @@
444
459
  },
445
460
  {
446
461
  "name": "void-alert",
447
- "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.",
462
+ "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.",
448
463
  "source": {
449
464
  "module": "@voidable/ui",
450
465
  "symbol": "VoidAlert"
@@ -597,7 +612,7 @@
597
612
  },
598
613
  {
599
614
  "name": "void-badge",
600
- "description": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.",
615
+ "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.",
601
616
  "source": {
602
617
  "module": "@voidable/ui",
603
618
  "symbol": "VoidBadge"
@@ -657,7 +672,7 @@
657
672
  },
658
673
  {
659
674
  "name": "void-banner",
660
- "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.",
675
+ "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.",
661
676
  "source": {
662
677
  "module": "@voidable/ui",
663
678
  "symbol": "VoidBanner"
@@ -744,7 +759,7 @@
744
759
  },
745
760
  {
746
761
  "name": "void-bar-chart",
747
- "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.",
762
+ "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.",
748
763
  "source": {
749
764
  "module": "@voidable/ui",
750
765
  "symbol": "VoidBarChart"
@@ -779,13 +794,22 @@
779
794
  },
780
795
  {
781
796
  "name": "aria-label",
782
- "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.",
797
+ "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.",
783
798
  "default": "''",
784
799
  "value": {
785
800
  "kind": "plain",
786
801
  "type": "string"
787
802
  }
788
803
  },
804
+ {
805
+ "name": "show-table",
806
+ "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.",
807
+ "default": "false",
808
+ "value": {
809
+ "kind": "no-value",
810
+ "type": "boolean"
811
+ }
812
+ },
789
813
  {
790
814
  "name": "stagger",
791
815
  "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.",
@@ -794,6 +818,15 @@
794
818
  "kind": "plain",
795
819
  "type": "number | null"
796
820
  }
821
+ },
822
+ {
823
+ "name": "data",
824
+ "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.",
825
+ "default": "{ series: [] }",
826
+ "value": {
827
+ "kind": "plain",
828
+ "type": "BarChartData"
829
+ }
797
830
  }
798
831
  ],
799
832
  "js": {
@@ -818,10 +851,16 @@
818
851
  },
819
852
  {
820
853
  "name": "ariaLabel",
821
- "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.",
854
+ "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.",
822
855
  "type": "string",
823
856
  "default": "''"
824
857
  },
858
+ {
859
+ "name": "showTable",
860
+ "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.",
861
+ "type": "boolean",
862
+ "default": "false"
863
+ },
825
864
  {
826
865
  "name": "stagger",
827
866
  "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.",
@@ -830,8 +869,9 @@
830
869
  },
831
870
  {
832
871
  "name": "data",
833
- "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.",
834
- "type": "BarChartData"
872
+ "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.",
873
+ "type": "BarChartData",
874
+ "default": "{ series: [] }"
835
875
  }
836
876
  ],
837
877
  "events": []
@@ -893,6 +933,15 @@
893
933
  "symbol": "VoidButton"
894
934
  },
895
935
  "attributes": [
936
+ {
937
+ "name": "keys",
938
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
939
+ "default": "null",
940
+ "value": {
941
+ "kind": "plain",
942
+ "type": "KeyOverrides | null"
943
+ }
944
+ },
896
945
  {
897
946
  "name": "variant",
898
947
  "description": "Visual weight. `outline` (default) is a bordered button, `filled` is the\nprimary action, and `ghost` draws no border or fill until hovered: use it\nfor row actions, toolbars and the quiet button beside a primary one.",
@@ -941,6 +990,12 @@
941
990
  ],
942
991
  "js": {
943
992
  "properties": [
993
+ {
994
+ "name": "keys",
995
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
996
+ "type": "KeyOverrides | null",
997
+ "default": "null"
998
+ },
944
999
  {
945
1000
  "name": "variant",
946
1001
  "description": "Visual weight. `outline` (default) is a bordered button, `filled` is the\nprimary action, and `ghost` draws no border or fill until hovered: use it\nfor row actions, toolbars and the quiet button beside a primary one.",
@@ -988,6 +1043,15 @@
988
1043
  "symbol": "VoidCalendar"
989
1044
  },
990
1045
  "attributes": [
1046
+ {
1047
+ "name": "keys",
1048
+ "description": "Key bindings for this element's actions, as JSON (`{\"nextWeek\":[\"ArrowDown\",\"j\"]}`); `[]` switches an action off. See the keyboard guide.",
1049
+ "default": "null",
1050
+ "value": {
1051
+ "kind": "plain",
1052
+ "type": "KeyOverrides | null"
1053
+ }
1054
+ },
991
1055
  {
992
1056
  "name": "value",
993
1057
  "description": "Selected date as an ISO `YYYY-MM-DD` string. Empty means no selection. It is what the form submits\nand the reset target; picking a day updates it and fires `void-change`.",
@@ -1035,8 +1099,8 @@
1035
1099
  },
1036
1100
  {
1037
1101
  "name": "locale",
1038
- "description": "BCP 47 language tag for month and weekday names and the long date announced for each day, such as\n`de-DE`. Defaults to `en-US`.",
1039
- "default": "'en-US'",
1102
+ "description": "BCP 47 language tag for month and weekday names, the numbers and the long date announced for each day, such\nas `de-DE`. Without it the calendar follows the closest `lang` (the page's included), and `en-US` where there\nis none. Month and day names are always for the Gregorian calendar.",
1103
+ "default": "''",
1040
1104
  "value": {
1041
1105
  "kind": "plain",
1042
1106
  "type": "string"
@@ -1044,11 +1108,11 @@
1044
1108
  },
1045
1109
  {
1046
1110
  "name": "first-day",
1047
- "description": "Day the week starts on, as a number from 0 (Sunday, the default) to 6 (Saturday). Use 1 for Monday.",
1048
- "default": "0",
1111
+ "description": "Day the week starts on, as a number from 0 (Sunday) to 6 (Saturday). Use 1 for Monday. Without it the week\nstarts on the day the locale's week information gives (`Intl.Locale`), and on Sunday where the browser\ndoes not provide it.",
1112
+ "default": "null",
1049
1113
  "value": {
1050
1114
  "kind": "plain",
1051
- "type": "number"
1115
+ "type": "number | null"
1052
1116
  }
1053
1117
  },
1054
1118
  {
@@ -1072,6 +1136,12 @@
1072
1136
  ],
1073
1137
  "js": {
1074
1138
  "properties": [
1139
+ {
1140
+ "name": "keys",
1141
+ "description": "Key bindings for this element's actions, as JSON (`{\"nextWeek\":[\"ArrowDown\",\"j\"]}`); `[]` switches an action off. See the keyboard guide.",
1142
+ "type": "KeyOverrides | null",
1143
+ "default": "null"
1144
+ },
1075
1145
  {
1076
1146
  "name": "value",
1077
1147
  "description": "Selected date as an ISO `YYYY-MM-DD` string. Empty means no selection. It is what the form submits\nand the reset target; picking a day updates it and fires `void-change`.",
@@ -1104,15 +1174,15 @@
1104
1174
  },
1105
1175
  {
1106
1176
  "name": "locale",
1107
- "description": "BCP 47 language tag for month and weekday names and the long date announced for each day, such as\n`de-DE`. Defaults to `en-US`.",
1177
+ "description": "BCP 47 language tag for month and weekday names, the numbers and the long date announced for each day, such\nas `de-DE`. Without it the calendar follows the closest `lang` (the page's included), and `en-US` where there\nis none. Month and day names are always for the Gregorian calendar.",
1108
1178
  "type": "string",
1109
- "default": "'en-US'"
1179
+ "default": "''"
1110
1180
  },
1111
1181
  {
1112
1182
  "name": "firstDay",
1113
- "description": "Day the week starts on, as a number from 0 (Sunday, the default) to 6 (Saturday). Use 1 for Monday.",
1114
- "type": "number",
1115
- "default": "0"
1183
+ "description": "Day the week starts on, as a number from 0 (Sunday) to 6 (Saturday). Use 1 for Monday. Without it the week\nstarts on the day the locale's week information gives (`Intl.Locale`), and on Sunday where the browser\ndoes not provide it.",
1184
+ "type": "number | null",
1185
+ "default": "null"
1116
1186
  },
1117
1187
  {
1118
1188
  "name": "required",
@@ -1241,6 +1311,15 @@
1241
1311
  "symbol": "VoidCarousel"
1242
1312
  },
1243
1313
  "attributes": [
1314
+ {
1315
+ "name": "keys",
1316
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
1317
+ "default": "null",
1318
+ "value": {
1319
+ "kind": "plain",
1320
+ "type": "KeyOverrides | null"
1321
+ }
1322
+ },
1244
1323
  {
1245
1324
  "name": "index",
1246
1325
  "description": "Zero-based index of the slide being shown. Set it to jump to a slide; the arrows, indicators and\narrow keys update it and fire `void-change`.",
@@ -1298,6 +1377,12 @@
1298
1377
  ],
1299
1378
  "js": {
1300
1379
  "properties": [
1380
+ {
1381
+ "name": "keys",
1382
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
1383
+ "type": "KeyOverrides | null",
1384
+ "default": "null"
1385
+ },
1301
1386
  {
1302
1387
  "name": "index",
1303
1388
  "description": "Zero-based index of the slide being shown. Set it to jump to a slide; the arrows, indicators and\narrow keys update it and fire `void-change`.",
@@ -1368,7 +1453,7 @@
1368
1453
  "attributes": [
1369
1454
  {
1370
1455
  "name": "active",
1371
- "description": "Set by <void-carousel> on the slide being shown.",
1456
+ "description": "Set by the carousel on the slide being shown.",
1372
1457
  "value": {
1373
1458
  "kind": "no-value",
1374
1459
  "type": "boolean"
@@ -1387,9 +1472,26 @@
1387
1472
  "module": "@voidable/ui",
1388
1473
  "symbol": "VoidCarouselNext"
1389
1474
  },
1390
- "attributes": [],
1475
+ "attributes": [
1476
+ {
1477
+ "name": "keys",
1478
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
1479
+ "default": "null",
1480
+ "value": {
1481
+ "kind": "plain",
1482
+ "type": "KeyOverrides | null"
1483
+ }
1484
+ }
1485
+ ],
1391
1486
  "js": {
1392
- "properties": [],
1487
+ "properties": [
1488
+ {
1489
+ "name": "keys",
1490
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
1491
+ "type": "KeyOverrides | null",
1492
+ "default": "null"
1493
+ }
1494
+ ],
1393
1495
  "events": []
1394
1496
  }
1395
1497
  },
@@ -1400,9 +1502,26 @@
1400
1502
  "module": "@voidable/ui",
1401
1503
  "symbol": "VoidCarouselPrevious"
1402
1504
  },
1403
- "attributes": [],
1505
+ "attributes": [
1506
+ {
1507
+ "name": "keys",
1508
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
1509
+ "default": "null",
1510
+ "value": {
1511
+ "kind": "plain",
1512
+ "type": "KeyOverrides | null"
1513
+ }
1514
+ }
1515
+ ],
1404
1516
  "js": {
1405
- "properties": [],
1517
+ "properties": [
1518
+ {
1519
+ "name": "keys",
1520
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
1521
+ "type": "KeyOverrides | null",
1522
+ "default": "null"
1523
+ }
1524
+ ],
1406
1525
  "events": []
1407
1526
  }
1408
1527
  },
@@ -1414,6 +1533,15 @@
1414
1533
  "symbol": "VoidCheckbox"
1415
1534
  },
1416
1535
  "attributes": [
1536
+ {
1537
+ "name": "keys",
1538
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Space\"]}`); `[]` switches an action off. See the keyboard guide.",
1539
+ "default": "null",
1540
+ "value": {
1541
+ "kind": "plain",
1542
+ "type": "KeyOverrides | null"
1543
+ }
1544
+ },
1417
1545
  {
1418
1546
  "name": "checked",
1419
1547
  "description": "Whether the box is checked. Reflected to the attribute as the user toggles it or a script sets it;\nthe form's reset target stays the state it started with.",
@@ -1498,6 +1626,12 @@
1498
1626
  ],
1499
1627
  "js": {
1500
1628
  "properties": [
1629
+ {
1630
+ "name": "keys",
1631
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Space\"]}`); `[]` switches an action off. See the keyboard guide.",
1632
+ "type": "KeyOverrides | null",
1633
+ "default": "null"
1634
+ },
1501
1635
  {
1502
1636
  "name": "checked",
1503
1637
  "description": "Whether the box is checked. Reflected to the attribute as the user toggles it or a script sets it;\nthe form's reset target stays the state it started with.",
@@ -1682,6 +1816,15 @@
1682
1816
  "symbol": "VoidCollapsible"
1683
1817
  },
1684
1818
  "attributes": [
1819
+ {
1820
+ "name": "keys",
1821
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
1822
+ "default": "null",
1823
+ "value": {
1824
+ "kind": "plain",
1825
+ "type": "KeyOverrides | null"
1826
+ }
1827
+ },
1685
1828
  {
1686
1829
  "name": "open",
1687
1830
  "description": "Whether the content is shown. Add the attribute to start open; it follows the user's toggling.",
@@ -1703,6 +1846,12 @@
1703
1846
  ],
1704
1847
  "js": {
1705
1848
  "properties": [
1849
+ {
1850
+ "name": "keys",
1851
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
1852
+ "type": "KeyOverrides | null",
1853
+ "default": "null"
1854
+ },
1706
1855
  {
1707
1856
  "name": "open",
1708
1857
  "description": "Whether the content is shown. Add the attribute to start open; it follows the user's toggling.",
@@ -1911,6 +2060,15 @@
1911
2060
  "symbol": "VoidCombobox"
1912
2061
  },
1913
2062
  "attributes": [
2063
+ {
2064
+ "name": "keys",
2065
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
2066
+ "default": "null",
2067
+ "value": {
2068
+ "kind": "plain",
2069
+ "type": "KeyOverrides | null"
2070
+ }
2071
+ },
1914
2072
  {
1915
2073
  "name": "value",
1916
2074
  "description": "`value` of the chosen `void-option`. Reflected to the attribute as the choice changes. Written in markup\nit is the initial choice (without it, an option marked `selected` is), which a form reset restores.",
@@ -1922,8 +2080,8 @@
1922
2080
  },
1923
2081
  {
1924
2082
  "name": "placeholder",
1925
- "description": "Hint shown in the search field while it is empty. Defaults to `Search...`. It is also the field's\naccessible name when no `void-field` label names it.",
1926
- "default": "'Search...'",
2083
+ "description": "Hint shown in the search field while it is empty. Defaults to the `combobox.placeholder` message (English: `Search...`). It is also the field's\naccessible name when no `void-field` label names it.",
2084
+ "default": "''",
1927
2085
  "value": {
1928
2086
  "kind": "plain",
1929
2087
  "type": "string"
@@ -1986,6 +2144,12 @@
1986
2144
  ],
1987
2145
  "js": {
1988
2146
  "properties": [
2147
+ {
2148
+ "name": "keys",
2149
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
2150
+ "type": "KeyOverrides | null",
2151
+ "default": "null"
2152
+ },
1989
2153
  {
1990
2154
  "name": "value",
1991
2155
  "description": "`value` of the chosen `void-option`. Reflected to the attribute as the choice changes. Written in markup\nit is the initial choice (without it, an option marked `selected` is), which a form reset restores.",
@@ -1994,9 +2158,9 @@
1994
2158
  },
1995
2159
  {
1996
2160
  "name": "placeholder",
1997
- "description": "Hint shown in the search field while it is empty. Defaults to `Search...`. It is also the field's\naccessible name when no `void-field` label names it.",
2161
+ "description": "Hint shown in the search field while it is empty. Defaults to the `combobox.placeholder` message (English: `Search...`). It is also the field's\naccessible name when no `void-field` label names it.",
1998
2162
  "type": "string",
1999
- "default": "'Search...'"
2163
+ "default": "''"
2000
2164
  },
2001
2165
  {
2002
2166
  "name": "disabled",
@@ -2079,6 +2243,15 @@
2079
2243
  "symbol": "VoidComposeInput"
2080
2244
  },
2081
2245
  "attributes": [
2246
+ {
2247
+ "name": "keys",
2248
+ "description": "Key bindings for this element's actions, as JSON (`{\"send\":[\"Control+Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
2249
+ "default": "null",
2250
+ "value": {
2251
+ "kind": "plain",
2252
+ "type": "KeyOverrides | null"
2253
+ }
2254
+ },
2082
2255
  {
2083
2256
  "name": "value",
2084
2257
  "description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
@@ -2090,8 +2263,8 @@
2090
2263
  },
2091
2264
  {
2092
2265
  "name": "placeholder",
2093
- "description": "Hint shown while the box is empty. Defaults to `Type a message...`.",
2094
- "default": "'Type a message...'",
2266
+ "description": "Hint shown while the box is empty. Defaults to the `composeInput.placeholder` message (English: `Type a message...`).",
2267
+ "default": "''",
2095
2268
  "value": {
2096
2269
  "kind": "plain",
2097
2270
  "type": "string"
@@ -2118,6 +2291,12 @@
2118
2291
  ],
2119
2292
  "js": {
2120
2293
  "properties": [
2294
+ {
2295
+ "name": "keys",
2296
+ "description": "Key bindings for this element's actions, as JSON (`{\"send\":[\"Control+Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
2297
+ "type": "KeyOverrides | null",
2298
+ "default": "null"
2299
+ },
2121
2300
  {
2122
2301
  "name": "value",
2123
2302
  "description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
@@ -2126,9 +2305,9 @@
2126
2305
  },
2127
2306
  {
2128
2307
  "name": "placeholder",
2129
- "description": "Hint shown while the box is empty. Defaults to `Type a message...`.",
2308
+ "description": "Hint shown while the box is empty. Defaults to the `composeInput.placeholder` message (English: `Type a message...`).",
2130
2309
  "type": "string",
2131
- "default": "'Type a message...'"
2310
+ "default": "''"
2132
2311
  },
2133
2312
  {
2134
2313
  "name": "disabled",
@@ -2157,12 +2336,21 @@
2157
2336
  },
2158
2337
  {
2159
2338
  "name": "void-date-picker",
2160
- "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.",
2339
+ "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.",
2161
2340
  "source": {
2162
2341
  "module": "@voidable/ui",
2163
2342
  "symbol": "VoidDatePicker"
2164
2343
  },
2165
2344
  "attributes": [
2345
+ {
2346
+ "name": "keys",
2347
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
2348
+ "default": "null",
2349
+ "value": {
2350
+ "kind": "plain",
2351
+ "type": "KeyOverrides | null"
2352
+ }
2353
+ },
2166
2354
  {
2167
2355
  "name": "value",
2168
2356
  "description": "Selected date as an ISO `YYYY-MM-DD` string, whatever `format` shows. It is what the form submits\nand the reset target.",
@@ -2210,8 +2398,8 @@
2210
2398
  },
2211
2399
  {
2212
2400
  "name": "locale",
2213
- "description": "BCP 47 language tag for the calendar's month and weekday names, such as `de-DE`. Defaults to\n`en-US`. It does not change `format`.",
2214
- "default": "'en-US'",
2401
+ "description": "BCP 47 language tag for the calendar's month and weekday names and numbers, such as `de-DE`. Without it the\ncalendar follows the closest `lang`, and `en-US` where there is none. It does not change `format`.",
2402
+ "default": "''",
2215
2403
  "value": {
2216
2404
  "kind": "plain",
2217
2405
  "type": "string"
@@ -2219,11 +2407,11 @@
2219
2407
  },
2220
2408
  {
2221
2409
  "name": "first-day",
2222
- "description": "Day the calendar week starts on, as a number from 0 (Sunday, the default) to 6 (Saturday).",
2223
- "default": "0",
2410
+ "description": "Day the calendar week starts on, as a number from 0 (Sunday) to 6 (Saturday). Without it, the locale's first day of the week, else Sunday.",
2411
+ "default": "null",
2224
2412
  "value": {
2225
2413
  "kind": "plain",
2226
- "type": "number"
2414
+ "type": "number | null"
2227
2415
  }
2228
2416
  },
2229
2417
  {
@@ -2237,8 +2425,8 @@
2237
2425
  },
2238
2426
  {
2239
2427
  "name": "placeholder",
2240
- "description": "Hint shown in the field while no date is chosen. Defaults to `Select date`.",
2241
- "default": "'Select date'",
2428
+ "description": "Hint shown in the field while no date is chosen. Defaults to the `datePicker.placeholder` message (English: `Select date`).",
2429
+ "default": "''",
2242
2430
  "value": {
2243
2431
  "kind": "plain",
2244
2432
  "type": "string"
@@ -2246,7 +2434,7 @@
2246
2434
  },
2247
2435
  {
2248
2436
  "name": "format",
2249
- "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`.",
2437
+ "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`.",
2250
2438
  "default": "'MM/DD/YYYY'",
2251
2439
  "value": {
2252
2440
  "kind": "plain",
@@ -2262,6 +2450,15 @@
2262
2450
  "type": "'default' | 'error' | 'warning' | 'caution' | 'success' | 'info' | 'notice' | 'highlight'"
2263
2451
  }
2264
2452
  },
2453
+ {
2454
+ "name": "error",
2455
+ "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.",
2456
+ "default": "''",
2457
+ "value": {
2458
+ "kind": "plain",
2459
+ "type": "string"
2460
+ }
2461
+ },
2265
2462
  {
2266
2463
  "name": "required",
2267
2464
  "description": "The control must have a value before its form can be submitted. An empty control is invalid\n(`valueMissing`) and the browser reports it, as for a native field.",
@@ -2283,6 +2480,12 @@
2283
2480
  ],
2284
2481
  "js": {
2285
2482
  "properties": [
2483
+ {
2484
+ "name": "keys",
2485
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
2486
+ "type": "KeyOverrides | null",
2487
+ "default": "null"
2488
+ },
2286
2489
  {
2287
2490
  "name": "value",
2288
2491
  "description": "Selected date as an ISO `YYYY-MM-DD` string, whatever `format` shows. It is what the form submits\nand the reset target.",
@@ -2315,15 +2518,15 @@
2315
2518
  },
2316
2519
  {
2317
2520
  "name": "locale",
2318
- "description": "BCP 47 language tag for the calendar's month and weekday names, such as `de-DE`. Defaults to\n`en-US`. It does not change `format`.",
2521
+ "description": "BCP 47 language tag for the calendar's month and weekday names and numbers, such as `de-DE`. Without it the\ncalendar follows the closest `lang`, and `en-US` where there is none. It does not change `format`.",
2319
2522
  "type": "string",
2320
- "default": "'en-US'"
2523
+ "default": "''"
2321
2524
  },
2322
2525
  {
2323
2526
  "name": "firstDay",
2324
- "description": "Day the calendar week starts on, as a number from 0 (Sunday, the default) to 6 (Saturday).",
2325
- "type": "number",
2326
- "default": "0"
2527
+ "description": "Day the calendar week starts on, as a number from 0 (Sunday) to 6 (Saturday). Without it, the locale's first day of the week, else Sunday.",
2528
+ "type": "number | null",
2529
+ "default": "null"
2327
2530
  },
2328
2531
  {
2329
2532
  "name": "open",
@@ -2333,13 +2536,13 @@
2333
2536
  },
2334
2537
  {
2335
2538
  "name": "placeholder",
2336
- "description": "Hint shown in the field while no date is chosen. Defaults to `Select date`.",
2539
+ "description": "Hint shown in the field while no date is chosen. Defaults to the `datePicker.placeholder` message (English: `Select date`).",
2337
2540
  "type": "string",
2338
- "default": "'Select date'"
2541
+ "default": "''"
2339
2542
  },
2340
2543
  {
2341
2544
  "name": "format",
2342
- "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`.",
2545
+ "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`.",
2343
2546
  "type": "string",
2344
2547
  "default": "'MM/DD/YYYY'"
2345
2548
  },
@@ -2349,6 +2552,12 @@
2349
2552
  "type": "'default' | 'error' | 'warning' | 'caution' | 'success' | 'info' | 'notice' | 'highlight'",
2350
2553
  "default": "'default'"
2351
2554
  },
2555
+ {
2556
+ "name": "error",
2557
+ "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.",
2558
+ "type": "string",
2559
+ "default": "''"
2560
+ },
2352
2561
  {
2353
2562
  "name": "required",
2354
2563
  "description": "The control must have a value before its form can be submitted. An empty control is invalid\n(`valueMissing`) and the browser reports it, as for a native field.",
@@ -2363,6 +2572,10 @@
2363
2572
  }
2364
2573
  ],
2365
2574
  "events": [
2575
+ {
2576
+ "name": "void-change",
2577
+ "type": "CustomEvent<{ value: string; date: Date | null }>"
2578
+ },
2366
2579
  {
2367
2580
  "name": "void-open",
2368
2581
  "description": "The calendar popup opened: `trigger` from the calendar button, `focus` from a click on the field, `keyboard` from a key.",
@@ -2372,10 +2585,6 @@
2372
2585
  "name": "void-close",
2373
2586
  "description": "The calendar popup is closing. Cancelable when the user caused it.",
2374
2587
  "type": "CustomEvent<{ reason: 'trigger' | 'select' | 'escape' | 'outside' | 'blur' | 'parent' | 'api' }>"
2375
- },
2376
- {
2377
- "name": "void-change",
2378
- "type": "CustomEvent<{ value: string; date: Date }>"
2379
2588
  }
2380
2589
  ]
2381
2590
  }
@@ -2405,6 +2614,15 @@
2405
2614
  "type": "'sm' | 'md' | 'lg'"
2406
2615
  }
2407
2616
  },
2617
+ {
2618
+ "name": "keys",
2619
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off, which leaves a modal with no keyboard exit. See the keyboard guide.",
2620
+ "default": "null",
2621
+ "value": {
2622
+ "kind": "plain",
2623
+ "type": "KeyOverrides | null"
2624
+ }
2625
+ },
2408
2626
  {
2409
2627
  "name": "open",
2410
2628
  "description": "Whether it is open. Set or remove the attribute (or property) to open and close it; the server may do the same through a morph.",
@@ -2432,6 +2650,12 @@
2432
2650
  "type": "'sm' | 'md' | 'lg'",
2433
2651
  "default": "'md'"
2434
2652
  },
2653
+ {
2654
+ "name": "keys",
2655
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off, which leaves a modal with no keyboard exit. See the keyboard guide.",
2656
+ "type": "KeyOverrides | null",
2657
+ "default": "null"
2658
+ },
2435
2659
  {
2436
2660
  "name": "open",
2437
2661
  "description": "Whether it is open. Set or remove the attribute (or property) to open and close it; the server may do the same through a morph.",
@@ -2542,7 +2766,7 @@
2542
2766
  },
2543
2767
  {
2544
2768
  "name": "void-donut-chart",
2545
- "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.",
2769
+ "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.",
2546
2770
  "source": {
2547
2771
  "module": "@voidable/ui",
2548
2772
  "symbol": "VoidDonutChart"
@@ -2604,12 +2828,30 @@
2604
2828
  },
2605
2829
  {
2606
2830
  "name": "aria-label",
2607
- "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.",
2831
+ "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.",
2608
2832
  "default": "''",
2609
2833
  "value": {
2610
2834
  "kind": "plain",
2611
2835
  "type": "string"
2612
2836
  }
2837
+ },
2838
+ {
2839
+ "name": "show-table",
2840
+ "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.",
2841
+ "default": "false",
2842
+ "value": {
2843
+ "kind": "no-value",
2844
+ "type": "boolean"
2845
+ }
2846
+ },
2847
+ {
2848
+ "name": "data",
2849
+ "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.",
2850
+ "default": "{ segments: [] }",
2851
+ "value": {
2852
+ "kind": "plain",
2853
+ "type": "DonutChartData"
2854
+ }
2613
2855
  }
2614
2856
  ],
2615
2857
  "js": {
@@ -2652,14 +2894,21 @@
2652
2894
  },
2653
2895
  {
2654
2896
  "name": "ariaLabel",
2655
- "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.",
2897
+ "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.",
2656
2898
  "type": "string",
2657
2899
  "default": "''"
2658
2900
  },
2901
+ {
2902
+ "name": "showTable",
2903
+ "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.",
2904
+ "type": "boolean",
2905
+ "default": "false"
2906
+ },
2659
2907
  {
2660
2908
  "name": "data",
2661
- "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.",
2662
- "type": "DonutChartData"
2909
+ "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.",
2910
+ "type": "DonutChartData",
2911
+ "default": "{ segments: [] }"
2663
2912
  }
2664
2913
  ],
2665
2914
  "events": []
@@ -2699,6 +2948,15 @@
2699
2948
  "type": "'sm' | 'md' | 'lg'"
2700
2949
  }
2701
2950
  },
2951
+ {
2952
+ "name": "keys",
2953
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off, which leaves a modal with no keyboard exit. See the keyboard guide.",
2954
+ "default": "null",
2955
+ "value": {
2956
+ "kind": "plain",
2957
+ "type": "KeyOverrides | null"
2958
+ }
2959
+ },
2702
2960
  {
2703
2961
  "name": "open",
2704
2962
  "description": "Whether it is open. Set or remove the attribute (or property) to open and close it; the server may do the same through a morph.",
@@ -2732,6 +2990,12 @@
2732
2990
  "type": "'sm' | 'md' | 'lg'",
2733
2991
  "default": "'md'"
2734
2992
  },
2993
+ {
2994
+ "name": "keys",
2995
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off, which leaves a modal with no keyboard exit. See the keyboard guide.",
2996
+ "type": "KeyOverrides | null",
2997
+ "default": "null"
2998
+ },
2735
2999
  {
2736
3000
  "name": "open",
2737
3001
  "description": "Whether it is open. Set or remove the attribute (or property) to open and close it; the server may do the same through a morph.",
@@ -2803,6 +3067,15 @@
2803
3067
  "symbol": "VoidDropdownMenu"
2804
3068
  },
2805
3069
  "attributes": [
3070
+ {
3071
+ "name": "keys",
3072
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[]}`); `[]` switches an action off. See the keyboard guide.",
3073
+ "default": "null",
3074
+ "value": {
3075
+ "kind": "plain",
3076
+ "type": "KeyOverrides | null"
3077
+ }
3078
+ },
2806
3079
  {
2807
3080
  "name": "open",
2808
3081
  "description": "Whether the menu is open. A click on the trigger toggles it; choosing an item, Escape, Tab or a press outside closes it.",
@@ -2833,6 +3106,12 @@
2833
3106
  ],
2834
3107
  "js": {
2835
3108
  "properties": [
3109
+ {
3110
+ "name": "keys",
3111
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[]}`); `[]` switches an action off. See the keyboard guide.",
3112
+ "type": "KeyOverrides | null",
3113
+ "default": "null"
3114
+ },
2836
3115
  {
2837
3116
  "name": "open",
2838
3117
  "description": "Whether the menu is open. A click on the trigger toggles it; choosing an item, Escape, Tab or a press outside closes it.",
@@ -2888,6 +3167,15 @@
2888
3167
  "symbol": "VoidDropdownMenuItem"
2889
3168
  },
2890
3169
  "attributes": [
3170
+ {
3171
+ "name": "keys",
3172
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
3173
+ "default": "null",
3174
+ "value": {
3175
+ "kind": "plain",
3176
+ "type": "KeyOverrides | null"
3177
+ }
3178
+ },
2891
3179
  {
2892
3180
  "name": "value",
2893
3181
  "description": "What the item stands for, passed as `detail.value` of `void-select` (empty when not set).",
@@ -2927,6 +3215,12 @@
2927
3215
  ],
2928
3216
  "js": {
2929
3217
  "properties": [
3218
+ {
3219
+ "name": "keys",
3220
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
3221
+ "type": "KeyOverrides | null",
3222
+ "default": "null"
3223
+ },
2930
3224
  {
2931
3225
  "name": "value",
2932
3226
  "description": "What the item stands for, passed as `detail.value` of `void-select` (empty when not set).",
@@ -2987,6 +3281,15 @@
2987
3281
  "symbol": "VoidEditable"
2988
3282
  },
2989
3283
  "attributes": [
3284
+ {
3285
+ "name": "keys",
3286
+ "description": "Key bindings for this element's actions, as JSON (`{\"cancel\":[]}`); `[]` switches an action off. See the keyboard guide.",
3287
+ "default": "null",
3288
+ "value": {
3289
+ "kind": "plain",
3290
+ "type": "KeyOverrides | null"
3291
+ }
3292
+ },
2990
3293
  {
2991
3294
  "name": "value",
2992
3295
  "description": "The committed text. Reflected to the attribute as it changes; the form's reset target stays the value it started with. Text still\nbeing edited is not part of it until committed.",
@@ -3016,8 +3319,8 @@
3016
3319
  },
3017
3320
  {
3018
3321
  "name": "placeholder",
3019
- "description": "Text shown while the value is empty and the field is not being edited. Defaults to `Click to edit`.",
3020
- "default": "'Click to edit'",
3322
+ "description": "Text shown while the value is empty and the field is not being edited. Defaults to the `editable.placeholder` message (English: `Click to edit`).",
3323
+ "default": "''",
3021
3324
  "value": {
3022
3325
  "kind": "plain",
3023
3326
  "type": "string"
@@ -3062,6 +3365,12 @@
3062
3365
  ],
3063
3366
  "js": {
3064
3367
  "properties": [
3368
+ {
3369
+ "name": "keys",
3370
+ "description": "Key bindings for this element's actions, as JSON (`{\"cancel\":[]}`); `[]` switches an action off. See the keyboard guide.",
3371
+ "type": "KeyOverrides | null",
3372
+ "default": "null"
3373
+ },
3065
3374
  {
3066
3375
  "name": "value",
3067
3376
  "description": "The committed text. Reflected to the attribute as it changes; the form's reset target stays the value it started with. Text still\nbeing edited is not part of it until committed.",
@@ -3082,9 +3391,9 @@
3082
3391
  },
3083
3392
  {
3084
3393
  "name": "placeholder",
3085
- "description": "Text shown while the value is empty and the field is not being edited. Defaults to `Click to edit`.",
3394
+ "description": "Text shown while the value is empty and the field is not being edited. Defaults to the `editable.placeholder` message (English: `Click to edit`).",
3086
3395
  "type": "string",
3087
- "default": "'Click to edit'"
3396
+ "default": "''"
3088
3397
  },
3089
3398
  {
3090
3399
  "name": "submitMode",
@@ -3137,8 +3446,8 @@
3137
3446
  "attributes": [
3138
3447
  {
3139
3448
  "name": "heading",
3140
- "description": "Headline of the built-in default. Defaults to `Something went wrong`. Ignored when the author writes parts.",
3141
- "default": "'Something went wrong'",
3449
+ "description": "Headline of the built-in default. Defaults to the `errorFallback.heading` message (English: `Something went wrong`). Ignored when the author writes parts.",
3450
+ "default": "''",
3142
3451
  "value": {
3143
3452
  "kind": "plain",
3144
3453
  "type": "string"
@@ -3164,8 +3473,8 @@
3164
3473
  },
3165
3474
  {
3166
3475
  "name": "retry-label",
3167
- "description": "Text of the built-in retry button. Defaults to `Try again`. Only used with `retryable`.",
3168
- "default": "'Try again'",
3476
+ "description": "Text of the built-in retry button. Defaults to the `errorFallback.retry` message (English: `Try again`). Only used with `retryable`.",
3477
+ "default": "''",
3169
3478
  "value": {
3170
3479
  "kind": "plain",
3171
3480
  "type": "string"
@@ -3185,9 +3494,9 @@
3185
3494
  "properties": [
3186
3495
  {
3187
3496
  "name": "heading",
3188
- "description": "Headline of the built-in default. Defaults to `Something went wrong`. Ignored when the author writes parts.",
3497
+ "description": "Headline of the built-in default. Defaults to the `errorFallback.heading` message (English: `Something went wrong`). Ignored when the author writes parts.",
3189
3498
  "type": "string",
3190
- "default": "'Something went wrong'"
3499
+ "default": "''"
3191
3500
  },
3192
3501
  {
3193
3502
  "name": "message",
@@ -3203,9 +3512,9 @@
3203
3512
  },
3204
3513
  {
3205
3514
  "name": "retryLabel",
3206
- "description": "Text of the built-in retry button. Defaults to `Try again`. Only used with `retryable`.",
3515
+ "description": "Text of the built-in retry button. Defaults to the `errorFallback.retry` message (English: `Try again`). Only used with `retryable`.",
3207
3516
  "type": "string",
3208
- "default": "'Try again'"
3517
+ "default": "''"
3209
3518
  },
3210
3519
  {
3211
3520
  "name": "hideIcon",
@@ -3333,9 +3642,18 @@
3333
3642
  "symbol": "VoidFileUpload"
3334
3643
  },
3335
3644
  "attributes": [
3645
+ {
3646
+ "name": "keys",
3647
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
3648
+ "default": "null",
3649
+ "value": {
3650
+ "kind": "plain",
3651
+ "type": "KeyOverrides | null"
3652
+ }
3653
+ },
3336
3654
  {
3337
3655
  "name": "accept",
3338
- "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.",
3656
+ "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.",
3339
3657
  "default": "''",
3340
3658
  "value": {
3341
3659
  "kind": "plain",
@@ -3362,7 +3680,7 @@
3362
3680
  },
3363
3681
  {
3364
3682
  "name": "max-size",
3365
- "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are dropped silently.",
3683
+ "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
3366
3684
  "default": "0",
3367
3685
  "value": {
3368
3686
  "kind": "plain",
@@ -3371,7 +3689,7 @@
3371
3689
  },
3372
3690
  {
3373
3691
  "name": "error",
3374
- "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.",
3692
+ "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.",
3375
3693
  "default": "''",
3376
3694
  "value": {
3377
3695
  "kind": "plain",
@@ -3399,9 +3717,15 @@
3399
3717
  ],
3400
3718
  "js": {
3401
3719
  "properties": [
3720
+ {
3721
+ "name": "keys",
3722
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
3723
+ "type": "KeyOverrides | null",
3724
+ "default": "null"
3725
+ },
3402
3726
  {
3403
3727
  "name": "accept",
3404
- "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.",
3728
+ "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.",
3405
3729
  "type": "string",
3406
3730
  "default": "''"
3407
3731
  },
@@ -3419,13 +3743,13 @@
3419
3743
  },
3420
3744
  {
3421
3745
  "name": "maxSize",
3422
- "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are dropped silently.",
3746
+ "description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
3423
3747
  "type": "number",
3424
3748
  "default": "0"
3425
3749
  },
3426
3750
  {
3427
3751
  "name": "error",
3428
- "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.",
3752
+ "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.",
3429
3753
  "type": "string",
3430
3754
  "default": "''"
3431
3755
  },
@@ -3444,7 +3768,12 @@
3444
3768
  ],
3445
3769
  "events": [
3446
3770
  {
3447
- "name": "void-change",
3771
+ "name": "void-reject",
3772
+ "description": "Files were refused: one entry per file with the reason. Does not bubble.",
3773
+ "type": "CustomEvent<{ rejected: { file: File; reason: 'type' | 'size' | 'count' }[] }>"
3774
+ },
3775
+ {
3776
+ "name": "void-change",
3448
3777
  "type": "CustomEvent<{ value: File[]; files: File[] }>"
3449
3778
  }
3450
3779
  ]
@@ -3604,12 +3933,39 @@
3604
3933
  },
3605
3934
  {
3606
3935
  "name": "aria-label",
3607
- "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.",
3936
+ "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.",
3608
3937
  "default": "''",
3609
3938
  "value": {
3610
3939
  "kind": "plain",
3611
3940
  "type": "string"
3612
3941
  }
3942
+ },
3943
+ {
3944
+ "name": "show-table",
3945
+ "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.",
3946
+ "default": "false",
3947
+ "value": {
3948
+ "kind": "no-value",
3949
+ "type": "boolean"
3950
+ }
3951
+ },
3952
+ {
3953
+ "name": "zones",
3954
+ "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.",
3955
+ "default": "[]",
3956
+ "value": {
3957
+ "kind": "plain",
3958
+ "type": "GaugeZone[]"
3959
+ }
3960
+ },
3961
+ {
3962
+ "name": "data",
3963
+ "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.",
3964
+ "default": "{}",
3965
+ "value": {
3966
+ "kind": "plain",
3967
+ "type": "GaugeData"
3968
+ }
3613
3969
  }
3614
3970
  ],
3615
3971
  "js": {
@@ -3712,20 +4068,27 @@
3712
4068
  },
3713
4069
  {
3714
4070
  "name": "ariaLabel",
3715
- "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.",
4071
+ "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.",
3716
4072
  "type": "string",
3717
4073
  "default": "''"
3718
4074
  },
4075
+ {
4076
+ "name": "showTable",
4077
+ "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.",
4078
+ "type": "boolean",
4079
+ "default": "false"
4080
+ },
3719
4081
  {
3720
4082
  "name": "zones",
3721
- "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.",
4083
+ "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.",
3722
4084
  "type": "GaugeZone[]",
3723
4085
  "default": "[]"
3724
4086
  },
3725
4087
  {
3726
4088
  "name": "data",
3727
- "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.",
3728
- "type": "GaugeData"
4089
+ "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.",
4090
+ "type": "GaugeData",
4091
+ "default": "{}"
3729
4092
  }
3730
4093
  ],
3731
4094
  "events": []
@@ -3733,12 +4096,21 @@
3733
4096
  },
3734
4097
  {
3735
4098
  "name": "void-hamburger",
3736
- "description": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.",
4099
+ "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).",
3737
4100
  "source": {
3738
4101
  "module": "@voidable/ui",
3739
4102
  "symbol": "VoidHamburger"
3740
4103
  },
3741
4104
  "attributes": [
4105
+ {
4106
+ "name": "keys",
4107
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
4108
+ "default": "null",
4109
+ "value": {
4110
+ "kind": "plain",
4111
+ "type": "KeyOverrides | null"
4112
+ }
4113
+ },
3742
4114
  {
3743
4115
  "name": "open",
3744
4116
  "description": "Whether the menu it controls is open: draws the lines as a close cross and sets `aria-expanded`. It\nflips on every click and Enter or Space, firing `void-open` or `void-close`; set it yourself when the\nmenu closes some other way.",
@@ -3760,6 +4132,12 @@
3760
4132
  ],
3761
4133
  "js": {
3762
4134
  "properties": [
4135
+ {
4136
+ "name": "keys",
4137
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
4138
+ "type": "KeyOverrides | null",
4139
+ "default": "null"
4140
+ },
3763
4141
  {
3764
4142
  "name": "open",
3765
4143
  "description": "Whether the menu it controls is open: draws the lines as a close cross and sets `aria-expanded`. It\nflips on every click and Enter or Space, firing `void-open` or `void-close`; set it yourself when the\nmenu closes some other way.",
@@ -3776,8 +4154,8 @@
3776
4154
  "events": [
3777
4155
  {
3778
4156
  "name": "void-open",
3779
- "description": "The user opened it (click, Enter or Space). Does not bubble.",
3780
- "type": "CustomEvent<{ reason: 'trigger' }>"
4157
+ "description": "The user opened it: `trigger` for a click, `keyboard` for Enter or Space. Does not bubble.",
4158
+ "type": "CustomEvent<{ reason: 'trigger' | 'keyboard' }>"
3781
4159
  },
3782
4160
  {
3783
4161
  "name": "void-close",
@@ -3795,6 +4173,15 @@
3795
4173
  "symbol": "VoidHoverCard"
3796
4174
  },
3797
4175
  "attributes": [
4176
+ {
4177
+ "name": "keys",
4178
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
4179
+ "default": "null",
4180
+ "value": {
4181
+ "kind": "plain",
4182
+ "type": "KeyOverrides | null"
4183
+ }
4184
+ },
3798
4185
  {
3799
4186
  "name": "open",
3800
4187
  "description": "Whether the card is shown. It opens and closes itself from hover, focus and Escape; set it to drive it from script.",
@@ -3843,6 +4230,12 @@
3843
4230
  ],
3844
4231
  "js": {
3845
4232
  "properties": [
4233
+ {
4234
+ "name": "keys",
4235
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
4236
+ "type": "KeyOverrides | null",
4237
+ "default": "null"
4238
+ },
3846
4239
  {
3847
4240
  "name": "open",
3848
4241
  "description": "Whether the card is shown. It opens and closes itself from hover, focus and Escape; set it to drive it from script.",
@@ -4280,7 +4673,7 @@
4280
4673
  },
4281
4674
  {
4282
4675
  "name": "void-line-chart",
4283
- "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.",
4676
+ "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.",
4284
4677
  "source": {
4285
4678
  "module": "@voidable/ui",
4286
4679
  "symbol": "VoidLineChart"
@@ -4324,12 +4717,30 @@
4324
4717
  },
4325
4718
  {
4326
4719
  "name": "aria-label",
4327
- "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.",
4720
+ "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.",
4328
4721
  "default": "''",
4329
4722
  "value": {
4330
4723
  "kind": "plain",
4331
4724
  "type": "string"
4332
4725
  }
4726
+ },
4727
+ {
4728
+ "name": "show-table",
4729
+ "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.",
4730
+ "default": "false",
4731
+ "value": {
4732
+ "kind": "no-value",
4733
+ "type": "boolean"
4734
+ }
4735
+ },
4736
+ {
4737
+ "name": "data",
4738
+ "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.",
4739
+ "default": "{ series: [] }",
4740
+ "value": {
4741
+ "kind": "plain",
4742
+ "type": "LineChartData"
4743
+ }
4333
4744
  }
4334
4745
  ],
4335
4746
  "js": {
@@ -4360,14 +4771,21 @@
4360
4771
  },
4361
4772
  {
4362
4773
  "name": "ariaLabel",
4363
- "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.",
4774
+ "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.",
4364
4775
  "type": "string",
4365
4776
  "default": "''"
4366
4777
  },
4778
+ {
4779
+ "name": "showTable",
4780
+ "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.",
4781
+ "type": "boolean",
4782
+ "default": "false"
4783
+ },
4367
4784
  {
4368
4785
  "name": "data",
4369
- "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.",
4370
- "type": "LineChartData"
4786
+ "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.",
4787
+ "type": "LineChartData",
4788
+ "default": "{ series: [] }"
4371
4789
  }
4372
4790
  ],
4373
4791
  "events": []
@@ -4482,6 +4900,15 @@
4482
4900
  "symbol": "VoidMenu"
4483
4901
  },
4484
4902
  "attributes": [
4903
+ {
4904
+ "name": "keys",
4905
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[]}`); `[]` switches an action off. See the keyboard guide.",
4906
+ "default": "null",
4907
+ "value": {
4908
+ "kind": "plain",
4909
+ "type": "KeyOverrides | null"
4910
+ }
4911
+ },
4485
4912
  {
4486
4913
  "name": "open",
4487
4914
  "description": "Whether the menu is shown. It starts hidden: add `open` to show it (the menu has no trigger of its own).\nEscape sets it back to false.",
@@ -4503,6 +4930,12 @@
4503
4930
  ],
4504
4931
  "js": {
4505
4932
  "properties": [
4933
+ {
4934
+ "name": "keys",
4935
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[]}`); `[]` switches an action off. See the keyboard guide.",
4936
+ "type": "KeyOverrides | null",
4937
+ "default": "null"
4938
+ },
4506
4939
  {
4507
4940
  "name": "open",
4508
4941
  "description": "Whether the menu is shown. It starts hidden: add `open` to show it (the menu has no trigger of its own).\nEscape sets it back to false.",
@@ -4579,6 +5012,15 @@
4579
5012
  "symbol": "VoidMenuItem"
4580
5013
  },
4581
5014
  "attributes": [
5015
+ {
5016
+ "name": "keys",
5017
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
5018
+ "default": "null",
5019
+ "value": {
5020
+ "kind": "plain",
5021
+ "type": "KeyOverrides | null"
5022
+ }
5023
+ },
4582
5024
  {
4583
5025
  "name": "value",
4584
5026
  "description": "What the item stands for, passed as `detail.value` of `void-select` (empty when not set). Use it instead of\nmatching on the item's text.",
@@ -4600,6 +5042,12 @@
4600
5042
  ],
4601
5043
  "js": {
4602
5044
  "properties": [
5045
+ {
5046
+ "name": "keys",
5047
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
5048
+ "type": "KeyOverrides | null",
5049
+ "default": "null"
5050
+ },
4603
5051
  {
4604
5052
  "name": "value",
4605
5053
  "description": "What the item stands for, passed as `detail.value` of `void-select` (empty when not set). Use it instead of\nmatching on the item's text.",
@@ -4657,10 +5105,19 @@
4657
5105
  "symbol": "VoidMultiselect"
4658
5106
  },
4659
5107
  "attributes": [
5108
+ {
5109
+ "name": "keys",
5110
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
5111
+ "default": "null",
5112
+ "value": {
5113
+ "kind": "plain",
5114
+ "type": "KeyOverrides | null"
5115
+ }
5116
+ },
4660
5117
  {
4661
5118
  "name": "placeholder",
4662
- "description": "Text shown in the trigger while nothing is selected. Defaults to `Select...`. It is also the\ntrigger's accessible name when no `void-field` label names it.",
4663
- "default": "'Select...'",
5119
+ "description": "Text shown in the trigger while nothing is selected. Defaults to the `multiselect.placeholder` message (English: `Select...`). It is also the\ntrigger's accessible name when no `void-field` label names it.",
5120
+ "default": "''",
4664
5121
  "value": {
4665
5122
  "kind": "plain",
4666
5123
  "type": "string"
@@ -4732,11 +5189,17 @@
4732
5189
  ],
4733
5190
  "js": {
4734
5191
  "properties": [
5192
+ {
5193
+ "name": "keys",
5194
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
5195
+ "type": "KeyOverrides | null",
5196
+ "default": "null"
5197
+ },
4735
5198
  {
4736
5199
  "name": "placeholder",
4737
- "description": "Text shown in the trigger while nothing is selected. Defaults to `Select...`. It is also the\ntrigger's accessible name when no `void-field` label names it.",
5200
+ "description": "Text shown in the trigger while nothing is selected. Defaults to the `multiselect.placeholder` message (English: `Select...`). It is also the\ntrigger's accessible name when no `void-field` label names it.",
4738
5201
  "type": "string",
4739
- "default": "'Select...'"
5202
+ "default": "''"
4740
5203
  },
4741
5204
  {
4742
5205
  "name": "disabled",
@@ -4811,7 +5274,7 @@
4811
5274
  },
4812
5275
  {
4813
5276
  "name": "void-nav-bar",
4814
- "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.",
5277
+ "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.",
4815
5278
  "source": {
4816
5279
  "module": "@voidable/ui",
4817
5280
  "symbol": "VoidNavBar"
@@ -4877,6 +5340,15 @@
4877
5340
  "symbol": "VoidNavMenu"
4878
5341
  },
4879
5342
  "attributes": [
5343
+ {
5344
+ "name": "keys",
5345
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[]}`); `[]` switches an action off. See the keyboard guide.",
5346
+ "default": "null",
5347
+ "value": {
5348
+ "kind": "plain",
5349
+ "type": "KeyOverrides | null"
5350
+ }
5351
+ },
4880
5352
  {
4881
5353
  "name": "orientation",
4882
5354
  "description": "`horizontal` (default) lays the items out in a row with Left and Right arrow keys; `vertical` stacks\nthem.",
@@ -4898,6 +5370,12 @@
4898
5370
  ],
4899
5371
  "js": {
4900
5372
  "properties": [
5373
+ {
5374
+ "name": "keys",
5375
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[]}`); `[]` switches an action off. See the keyboard guide.",
5376
+ "type": "KeyOverrides | null",
5377
+ "default": "null"
5378
+ },
4901
5379
  {
4902
5380
  "name": "orientation",
4903
5381
  "description": "`horizontal` (default) lays the items out in a row with Left and Right arrow keys; `vertical` stacks\nthem.",
@@ -5011,6 +5489,15 @@
5011
5489
  "symbol": "VoidNumberInput"
5012
5490
  },
5013
5491
  "attributes": [
5492
+ {
5493
+ "name": "keys",
5494
+ "description": "Key bindings for this element's actions, as JSON (`{\"increment\":[\"ArrowUp\",\"k\"]}`); `[]` switches an action off. See the keyboard guide.",
5495
+ "default": "null",
5496
+ "value": {
5497
+ "kind": "plain",
5498
+ "type": "KeyOverrides | null"
5499
+ }
5500
+ },
5014
5501
  {
5015
5502
  "name": "value",
5016
5503
  "description": "The number, or `null` while the field is empty (the default, and after the user clears it). Reflected to\nthe attribute as it changes (absent while empty); an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.",
@@ -5112,7 +5599,7 @@
5112
5599
  },
5113
5600
  {
5114
5601
  "name": "label",
5115
- "description": "Accessible name of the field when it is not inside a `void-field`. Defaults to `Number input`, so\nset it.",
5602
+ "description": "Accessible name of the field when it is not inside a `void-field`. Defaults to the `numberInput.label` message (English: `Number input`), so\nset it.",
5116
5603
  "default": "''",
5117
5604
  "value": {
5118
5605
  "kind": "plain",
@@ -5158,6 +5645,12 @@
5158
5645
  ],
5159
5646
  "js": {
5160
5647
  "properties": [
5648
+ {
5649
+ "name": "keys",
5650
+ "description": "Key bindings for this element's actions, as JSON (`{\"increment\":[\"ArrowUp\",\"k\"]}`); `[]` switches an action off. See the keyboard guide.",
5651
+ "type": "KeyOverrides | null",
5652
+ "default": "null"
5653
+ },
5161
5654
  {
5162
5655
  "name": "value",
5163
5656
  "description": "The number, or `null` while the field is empty (the default, and after the user clears it). Reflected to\nthe attribute as it changes (absent while empty); an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.",
@@ -5226,7 +5719,7 @@
5226
5719
  },
5227
5720
  {
5228
5721
  "name": "label",
5229
- "description": "Accessible name of the field when it is not inside a `void-field`. Defaults to `Number input`, so\nset it.",
5722
+ "description": "Accessible name of the field when it is not inside a `void-field`. Defaults to the `numberInput.label` message (English: `Number input`), so\nset it.",
5230
5723
  "type": "string",
5231
5724
  "default": "''"
5232
5725
  },
@@ -5526,6 +6019,15 @@
5526
6019
  "symbol": "VoidPinInput"
5527
6020
  },
5528
6021
  "attributes": [
6022
+ {
6023
+ "name": "keys",
6024
+ "description": "Key bindings for this element's actions, as JSON (`{\"previous\":[\"ArrowLeft\"]}`); `[]` switches an action off. See the keyboard guide.",
6025
+ "default": "null",
6026
+ "value": {
6027
+ "kind": "plain",
6028
+ "type": "KeyOverrides | null"
6029
+ }
6030
+ },
5529
6031
  {
5530
6032
  "name": "length",
5531
6033
  "description": "Number of cells, so the number of characters in the code. Defaults to 6.",
@@ -5628,6 +6130,12 @@
5628
6130
  ],
5629
6131
  "js": {
5630
6132
  "properties": [
6133
+ {
6134
+ "name": "keys",
6135
+ "description": "Key bindings for this element's actions, as JSON (`{\"previous\":[\"ArrowLeft\"]}`); `[]` switches an action off. See the keyboard guide.",
6136
+ "type": "KeyOverrides | null",
6137
+ "default": "null"
6138
+ },
5631
6139
  {
5632
6140
  "name": "length",
5633
6141
  "description": "Number of cells, so the number of characters in the code. Defaults to 6.",
@@ -5722,6 +6230,15 @@
5722
6230
  "symbol": "VoidPopover"
5723
6231
  },
5724
6232
  "attributes": [
6233
+ {
6234
+ "name": "keys",
6235
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
6236
+ "default": "null",
6237
+ "value": {
6238
+ "kind": "plain",
6239
+ "type": "KeyOverrides | null"
6240
+ }
6241
+ },
5725
6242
  {
5726
6243
  "name": "open",
5727
6244
  "description": "Whether the popover is open.",
@@ -5761,6 +6278,12 @@
5761
6278
  ],
5762
6279
  "js": {
5763
6280
  "properties": [
6281
+ {
6282
+ "name": "keys",
6283
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
6284
+ "type": "KeyOverrides | null",
6285
+ "default": "null"
6286
+ },
5764
6287
  {
5765
6288
  "name": "open",
5766
6289
  "description": "Whether the popover is open.",
@@ -5916,6 +6439,15 @@
5916
6439
  "symbol": "VoidRadio"
5917
6440
  },
5918
6441
  "attributes": [
6442
+ {
6443
+ "name": "keys",
6444
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
6445
+ "default": "null",
6446
+ "value": {
6447
+ "kind": "plain",
6448
+ "type": "KeyOverrides | null"
6449
+ }
6450
+ },
5919
6451
  {
5920
6452
  "name": "checked",
5921
6453
  "description": "Whether this radio is the selected one. Checking one radio unchecks the others with the same `name`.",
@@ -5991,6 +6523,12 @@
5991
6523
  ],
5992
6524
  "js": {
5993
6525
  "properties": [
6526
+ {
6527
+ "name": "keys",
6528
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
6529
+ "type": "KeyOverrides | null",
6530
+ "default": "null"
6531
+ },
5994
6532
  {
5995
6533
  "name": "checked",
5996
6534
  "description": "Whether this radio is the selected one. Checking one radio unchecks the others with the same `name`.",
@@ -6214,6 +6752,15 @@
6214
6752
  "symbol": "VoidSegmentedControl"
6215
6753
  },
6216
6754
  "attributes": [
6755
+ {
6756
+ "name": "keys",
6757
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
6758
+ "default": "null",
6759
+ "value": {
6760
+ "kind": "plain",
6761
+ "type": "KeyOverrides | null"
6762
+ }
6763
+ },
6217
6764
  {
6218
6765
  "name": "value",
6219
6766
  "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. Reflected to the attribute as it changes; the form's reset target stays the value it started with.",
@@ -6271,6 +6818,12 @@
6271
6818
  ],
6272
6819
  "js": {
6273
6820
  "properties": [
6821
+ {
6822
+ "name": "keys",
6823
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
6824
+ "type": "KeyOverrides | null",
6825
+ "default": "null"
6826
+ },
6274
6827
  {
6275
6828
  "name": "value",
6276
6829
  "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. Reflected to the attribute as it changes; the form's reset target stays the value it started with.",
@@ -6324,6 +6877,15 @@
6324
6877
  "symbol": "VoidSegmentedControlItem"
6325
6878
  },
6326
6879
  "attributes": [
6880
+ {
6881
+ "name": "keys",
6882
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Space\"]}`); `[]` switches an action off. See the keyboard guide.",
6883
+ "default": "null",
6884
+ "value": {
6885
+ "kind": "plain",
6886
+ "type": "KeyOverrides | null"
6887
+ }
6888
+ },
6327
6889
  {
6328
6890
  "name": "value",
6329
6891
  "description": "What the parent reports and submits when this segment is selected. Must be unique within the\ncontrol.",
@@ -6345,6 +6907,12 @@
6345
6907
  ],
6346
6908
  "js": {
6347
6909
  "properties": [
6910
+ {
6911
+ "name": "keys",
6912
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Space\"]}`); `[]` switches an action off. See the keyboard guide.",
6913
+ "type": "KeyOverrides | null",
6914
+ "default": "null"
6915
+ },
6348
6916
  {
6349
6917
  "name": "value",
6350
6918
  "description": "What the parent reports and submits when this segment is selected. Must be unique within the\ncontrol.",
@@ -6715,8 +7283,8 @@
6715
7283
  },
6716
7284
  {
6717
7285
  "name": "label",
6718
- "description": "Text announced to screen readers while loading, and the spinner's accessible name. Defaults to\n`Loading`; say what is loading (`Loading orders`).",
6719
- "default": "'Loading'",
7286
+ "description": "Text announced to screen readers while loading, and the spinner's accessible name. Defaults to the `spinner.label` message (English:\n`Loading`); say what is loading (`Loading orders`).",
7287
+ "default": "''",
6720
7288
  "value": {
6721
7289
  "kind": "plain",
6722
7290
  "type": "string"
@@ -6733,9 +7301,9 @@
6733
7301
  },
6734
7302
  {
6735
7303
  "name": "label",
6736
- "description": "Text announced to screen readers while loading, and the spinner's accessible name. Defaults to\n`Loading`; say what is loading (`Loading orders`).",
7304
+ "description": "Text announced to screen readers while loading, and the spinner's accessible name. Defaults to the `spinner.label` message (English:\n`Loading`); say what is loading (`Loading orders`).",
6737
7305
  "type": "string",
6738
- "default": "'Loading'"
7306
+ "default": "''"
6739
7307
  }
6740
7308
  ],
6741
7309
  "events": []
@@ -6743,7 +7311,7 @@
6743
7311
  },
6744
7312
  {
6745
7313
  "name": "void-stat",
6746
- "description": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.",
7314
+ "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.",
6747
7315
  "source": {
6748
7316
  "module": "@voidable/ui",
6749
7317
  "symbol": "VoidStat"
@@ -6944,6 +7512,15 @@
6944
7512
  "symbol": "VoidSwitch"
6945
7513
  },
6946
7514
  "attributes": [
7515
+ {
7516
+ "name": "keys",
7517
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
7518
+ "default": "null",
7519
+ "value": {
7520
+ "kind": "plain",
7521
+ "type": "KeyOverrides | null"
7522
+ }
7523
+ },
6947
7524
  {
6948
7525
  "name": "checked",
6949
7526
  "description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
@@ -7010,6 +7587,12 @@
7010
7587
  ],
7011
7588
  "js": {
7012
7589
  "properties": [
7590
+ {
7591
+ "name": "keys",
7592
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
7593
+ "type": "KeyOverrides | null",
7594
+ "default": "null"
7595
+ },
7013
7596
  {
7014
7597
  "name": "checked",
7015
7598
  "description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
@@ -7063,7 +7646,7 @@
7063
7646
  },
7064
7647
  {
7065
7648
  "name": "void-table",
7066
- "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.",
7649
+ "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.\n\n**Sorting.** `data-sort` on a header cell (`data-sort=\"number\"` or `\"date\"`; text by default) makes the column\nsortable: the component wraps the header's content in a `<button>`, writes `aria-sort` and, on activation,\ncycles ascending, descending, none. A cell's `data-sort-value` is the value compared (ISO dates, raw numbers).\nText uses `Intl.Collator` for the closest `lang` with numeric collation; empty cells sort last in both\ndirections. One column at a time. `sort` is the column's `data-key` (else its index) and `sort-direction` its direction.\n\n**Filtering.** `filter` hides (with `hidden`) the body rows that do not contain every word, ignoring case and accents,\nin all columns or in the `data-key`s of `filter-columns`. An author-written `<void-table-filter>` holding a search\ninput is wired to it (typing is debounced). A visually hidden live region says \"N of M rows\" and a\n`<void-table-empty>` part shows while nothing matches.\n\n**Selection.** `selectable` (or `selectable=\"single\"`) wires the checkboxes the author wrote in the rows (a\n`void-checkbox` or a native one, in the `data-stack=\"select\"` column) and in the header (select all, which acts\non the rows shown). Rows are identified by `data-value` (else their position). `value` is the selected row\nvalues as a JSON array, submitted with the form when `name` is set. `<void-table-selection>` is shown while\nanything is selected and `<void-table-select-all>` offers \"all N rows\" across server pages (`total-rows`,\n`all-selected`).\n\n**Server mode.** `manual` leaves ordering, visibility and selection markup to the server: the table only\nupdates header state and fires the events.\n\nShortcuts are opt-in: the `selectAll` key action has no default key, and `keys='{\"selectAll\":[\"Control+a\",\"Meta+a\"]}'` lets Ctrl or Cmd plus A inside the body select every shown row.",
7067
7650
  "source": {
7068
7651
  "module": "@voidable/ui",
7069
7652
  "symbol": "VoidTable"
@@ -7167,6 +7750,114 @@
7167
7750
  "kind": "plain",
7168
7751
  "type": "string | null"
7169
7752
  }
7753
+ },
7754
+ {
7755
+ "name": "sort",
7756
+ "description": "The key (`data-key` of the header cell, else its position) of the column the rows are sorted by.",
7757
+ "default": "null",
7758
+ "value": {
7759
+ "kind": "plain",
7760
+ "type": "string | null"
7761
+ }
7762
+ },
7763
+ {
7764
+ "name": "sort-direction",
7765
+ "description": "Direction of the sort. A `sort` without it is ascending.",
7766
+ "default": "null",
7767
+ "value": {
7768
+ "kind": "plain",
7769
+ "type": "string | null"
7770
+ }
7771
+ },
7772
+ {
7773
+ "name": "filter",
7774
+ "description": "Hides the body rows that do not contain every whitespace-separated word, ignoring case and accents.",
7775
+ "default": "null",
7776
+ "value": {
7777
+ "kind": "plain",
7778
+ "type": "string | null"
7779
+ }
7780
+ },
7781
+ {
7782
+ "name": "filter-columns",
7783
+ "description": "The `data-key`s (or positions), separated by spaces or commas, of the columns `filter` looks at. Default: every column.",
7784
+ "default": "null",
7785
+ "value": {
7786
+ "kind": "plain",
7787
+ "type": "string | null"
7788
+ }
7789
+ },
7790
+ {
7791
+ "name": "selectable",
7792
+ "description": "Wires the row checkboxes. Present without a value: any number of rows; `single`: one row at a time.",
7793
+ "default": "null",
7794
+ "value": {
7795
+ "kind": "plain",
7796
+ "type": "string | null"
7797
+ }
7798
+ },
7799
+ {
7800
+ "name": "manual",
7801
+ "description": "The server renders order, visibility, `aria-sort` and selection; the table only fires its events and updates header state.",
7802
+ "default": "false",
7803
+ "value": {
7804
+ "kind": "no-value",
7805
+ "type": "boolean"
7806
+ }
7807
+ },
7808
+ {
7809
+ "name": "total-rows",
7810
+ "description": "How many rows there are in all, across the server's pages. Enables `<void-table-select-all>`.",
7811
+ "default": "null",
7812
+ "value": {
7813
+ "kind": "plain",
7814
+ "type": "number | null"
7815
+ }
7816
+ },
7817
+ {
7818
+ "name": "all-selected",
7819
+ "description": "Every row across the server's pages is selected (the user activated the select-all part). The server applies the action to the full set.",
7820
+ "default": "false",
7821
+ "value": {
7822
+ "kind": "no-value",
7823
+ "type": "boolean"
7824
+ }
7825
+ },
7826
+ {
7827
+ "name": "keys",
7828
+ "description": "Key actions (JSON): `{\"selectAll\":[\"Control+a\",\"Meta+a\"]}` turns on select-all by keyboard, which has no default key.",
7829
+ "default": "null",
7830
+ "value": {
7831
+ "kind": "plain",
7832
+ "type": "KeyOverrides | null"
7833
+ }
7834
+ },
7835
+ {
7836
+ "name": "value",
7837
+ "description": "The values of the selected rows, as a list; the `value` attribute is the same list as a JSON array\n(`value='[\"a\",\"b\"]'`), kept in step as the selection changes. Setting it selects those rows (it does not fire `void-change`).\nValues that match no row are dropped when the rows are known.",
7838
+ "default": "[]",
7839
+ "value": {
7840
+ "kind": "plain",
7841
+ "type": "string[]"
7842
+ }
7843
+ },
7844
+ {
7845
+ "name": "required",
7846
+ "description": "The control must have a value before its form can be submitted. An empty control is invalid\n(`valueMissing`) and the browser reports it, as for a native field.",
7847
+ "default": "false",
7848
+ "value": {
7849
+ "kind": "no-value",
7850
+ "type": "boolean"
7851
+ }
7852
+ },
7853
+ {
7854
+ "name": "name",
7855
+ "description": "Key the control's value is submitted under in the form's `FormData`. Without a name the control\nsubmits nothing.",
7856
+ "default": "''",
7857
+ "value": {
7858
+ "kind": "plain",
7859
+ "type": "string"
7860
+ }
7170
7861
  }
7171
7862
  ],
7172
7863
  "js": {
@@ -7236,8 +7927,132 @@
7236
7927
  "description": "Accessible name of the scroll region (default: the table's caption, then `aria-label`).",
7237
7928
  "type": "string | null",
7238
7929
  "default": "null"
7930
+ },
7931
+ {
7932
+ "name": "sort",
7933
+ "description": "The key (`data-key` of the header cell, else its position) of the column the rows are sorted by.",
7934
+ "type": "string | null",
7935
+ "default": "null"
7936
+ },
7937
+ {
7938
+ "name": "sortDirection",
7939
+ "description": "Direction of the sort. A `sort` without it is ascending.",
7940
+ "type": "string | null",
7941
+ "default": "null"
7942
+ },
7943
+ {
7944
+ "name": "filter",
7945
+ "description": "Hides the body rows that do not contain every whitespace-separated word, ignoring case and accents.",
7946
+ "type": "string | null",
7947
+ "default": "null"
7948
+ },
7949
+ {
7950
+ "name": "filterColumns",
7951
+ "description": "The `data-key`s (or positions), separated by spaces or commas, of the columns `filter` looks at. Default: every column.",
7952
+ "type": "string | null",
7953
+ "default": "null"
7954
+ },
7955
+ {
7956
+ "name": "selectable",
7957
+ "description": "Wires the row checkboxes. Present without a value: any number of rows; `single`: one row at a time.",
7958
+ "type": "string | null",
7959
+ "default": "null"
7960
+ },
7961
+ {
7962
+ "name": "manual",
7963
+ "description": "The server renders order, visibility, `aria-sort` and selection; the table only fires its events and updates header state.",
7964
+ "type": "boolean",
7965
+ "default": "false"
7966
+ },
7967
+ {
7968
+ "name": "totalRows",
7969
+ "description": "How many rows there are in all, across the server's pages. Enables `<void-table-select-all>`.",
7970
+ "type": "number | null",
7971
+ "default": "null"
7972
+ },
7973
+ {
7974
+ "name": "allSelected",
7975
+ "description": "Every row across the server's pages is selected (the user activated the select-all part). The server applies the action to the full set.",
7976
+ "type": "boolean",
7977
+ "default": "false"
7978
+ },
7979
+ {
7980
+ "name": "keys",
7981
+ "description": "Key actions (JSON): `{\"selectAll\":[\"Control+a\",\"Meta+a\"]}` turns on select-all by keyboard, which has no default key.",
7982
+ "type": "KeyOverrides | null",
7983
+ "default": "null"
7984
+ },
7985
+ {
7986
+ "name": "value",
7987
+ "description": "The values of the selected rows, as a list; the `value` attribute is the same list as a JSON array\n(`value='[\"a\",\"b\"]'`), kept in step as the selection changes. Setting it selects those rows (it does not fire `void-change`).\nValues that match no row are dropped when the rows are known.",
7988
+ "type": "string[]",
7989
+ "default": "[]"
7990
+ },
7991
+ {
7992
+ "name": "required",
7993
+ "description": "The control must have a value before its form can be submitted. An empty control is invalid\n(`valueMissing`) and the browser reports it, as for a native field.",
7994
+ "type": "boolean",
7995
+ "default": "false"
7996
+ },
7997
+ {
7998
+ "name": "name",
7999
+ "description": "Key the control's value is submitted under in the form's `FormData`. Without a name the control\nsubmits nothing.",
8000
+ "type": "string",
8001
+ "default": "''"
7239
8002
  }
7240
8003
  ],
8004
+ "events": [
8005
+ {
8006
+ "name": "void-change",
8007
+ "description": "The user changed the selection.",
8008
+ "type": "CustomEvent<{ value: string[], all: boolean }>"
8009
+ },
8010
+ {
8011
+ "name": "void-sort",
8012
+ "description": "A user activated a sortable header; cancelable.",
8013
+ "type": "CustomEvent<{ column: string, direction: 'ascending' | 'descending' | 'none' }>"
8014
+ },
8015
+ {
8016
+ "name": "void-filter",
8017
+ "description": "The user changed the filter.",
8018
+ "type": "CustomEvent<{ filter: string, shown: number, total: number }>"
8019
+ }
8020
+ ]
8021
+ }
8022
+ },
8023
+ {
8024
+ "name": "void-table-empty",
8025
+ "description": "Shown (the component removes `hidden`) while the filter matches no row. Write it with `hidden`. A CSS-only part of <void-table>.",
8026
+ "attributes": [],
8027
+ "js": {
8028
+ "properties": [],
8029
+ "events": []
8030
+ }
8031
+ },
8032
+ {
8033
+ "name": "void-table-filter",
8034
+ "description": "Holds the native search input (or a void-input) that filters the rows; typing is debounced. Place it anywhere inside the void-table. A CSS-only part of <void-table>.",
8035
+ "attributes": [],
8036
+ "js": {
8037
+ "properties": [],
8038
+ "events": []
8039
+ }
8040
+ },
8041
+ {
8042
+ "name": "void-table-select-all",
8043
+ "description": "With `total-rows` greater than the rows present, shown when select-all is checked; a button inside it (\"Select all 1,250 rows\") sets `all-selected` and fires void-change with `all: true`. Write it with `hidden`. A CSS-only part of <void-table>.",
8044
+ "attributes": [],
8045
+ "js": {
8046
+ "properties": [],
8047
+ "events": []
8048
+ }
8049
+ },
8050
+ {
8051
+ "name": "void-table-selection",
8052
+ "description": "Shown while any row is selected; holds the bulk actions. An element with `data-count` inside it receives the number of selected rows. Write it with `hidden`. A CSS-only part of <void-table>.",
8053
+ "attributes": [],
8054
+ "js": {
8055
+ "properties": [],
7241
8056
  "events": []
7242
8057
  }
7243
8058
  },
@@ -7249,6 +8064,15 @@
7249
8064
  "symbol": "VoidTabs"
7250
8065
  },
7251
8066
  "attributes": [
8067
+ {
8068
+ "name": "keys",
8069
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\",\"l\"]}`); `[]` switches an action off. See the keyboard guide.",
8070
+ "default": "null",
8071
+ "value": {
8072
+ "kind": "plain",
8073
+ "type": "KeyOverrides | null"
8074
+ }
8075
+ },
7252
8076
  {
7253
8077
  "name": "value",
7254
8078
  "description": "The `value` of the selected tab. As an attribute it is the initial tab; selecting a tab updates it (it\nreflects) and fires `void-change`.",
@@ -7279,6 +8103,12 @@
7279
8103
  ],
7280
8104
  "js": {
7281
8105
  "properties": [
8106
+ {
8107
+ "name": "keys",
8108
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\",\"l\"]}`); `[]` switches an action off. See the keyboard guide.",
8109
+ "type": "KeyOverrides | null",
8110
+ "default": "null"
8111
+ },
7282
8112
  {
7283
8113
  "name": "value",
7284
8114
  "description": "The `value` of the selected tab. As an attribute it is the initial tab; selecting a tab updates it (it\nreflects) and fires `void-change`.",
@@ -7449,6 +8279,15 @@
7449
8279
  "symbol": "VoidTagsInput"
7450
8280
  },
7451
8281
  "attributes": [
8282
+ {
8283
+ "name": "keys",
8284
+ "description": "Key bindings for this element's actions, as JSON (`{\"add\":[\"Enter\",\";\"]}`); `[]` switches an action off. See the keyboard guide.",
8285
+ "default": "null",
8286
+ "value": {
8287
+ "kind": "plain",
8288
+ "type": "KeyOverrides | null"
8289
+ }
8290
+ },
7452
8291
  {
7453
8292
  "name": "value",
7454
8293
  "description": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute, which follows the tags as they change.",
@@ -7487,8 +8326,8 @@
7487
8326
  },
7488
8327
  {
7489
8328
  "name": "placeholder",
7490
- "description": "Hint in the entry field. Defaults to `Add tag...`.",
7491
- "default": "'Add tag...'",
8329
+ "description": "Hint in the entry field. Defaults to the `tagsInput.placeholder` message (English: `Add tag...`).",
8330
+ "default": "''",
7492
8331
  "value": {
7493
8332
  "kind": "plain",
7494
8333
  "type": "string"
@@ -7551,6 +8390,12 @@
7551
8390
  ],
7552
8391
  "js": {
7553
8392
  "properties": [
8393
+ {
8394
+ "name": "keys",
8395
+ "description": "Key bindings for this element's actions, as JSON (`{\"add\":[\"Enter\",\";\"]}`); `[]` switches an action off. See the keyboard guide.",
8396
+ "type": "KeyOverrides | null",
8397
+ "default": "null"
8398
+ },
7554
8399
  {
7555
8400
  "name": "value",
7556
8401
  "description": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute, which follows the tags as they change.",
@@ -7577,9 +8422,9 @@
7577
8422
  },
7578
8423
  {
7579
8424
  "name": "placeholder",
7580
- "description": "Hint in the entry field. Defaults to `Add tag...`.",
8425
+ "description": "Hint in the entry field. Defaults to the `tagsInput.placeholder` message (English: `Add tag...`).",
7581
8426
  "type": "string",
7582
- "default": "'Add tag...'"
8427
+ "default": "''"
7583
8428
  },
7584
8429
  {
7585
8430
  "name": "size",
@@ -8033,6 +8878,15 @@
8033
8878
  "symbol": "VoidToggle"
8034
8879
  },
8035
8880
  "attributes": [
8881
+ {
8882
+ "name": "keys",
8883
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
8884
+ "default": "null",
8885
+ "value": {
8886
+ "kind": "plain",
8887
+ "type": "KeyOverrides | null"
8888
+ }
8889
+ },
8036
8890
  {
8037
8891
  "name": "pressed",
8038
8892
  "description": "Whether the toggle is on. It flips on click, Enter or Space and fires `void-change` with\n`{ value, pressed }`. Exposed as `aria-pressed`.",
@@ -8090,6 +8944,12 @@
8090
8944
  ],
8091
8945
  "js": {
8092
8946
  "properties": [
8947
+ {
8948
+ "name": "keys",
8949
+ "description": "Key bindings for this element's actions, as JSON (`{\"activate\":[\"Enter\"]}`); `[]` switches an action off. See the keyboard guide.",
8950
+ "type": "KeyOverrides | null",
8951
+ "default": "null"
8952
+ },
8093
8953
  {
8094
8954
  "name": "pressed",
8095
8955
  "description": "Whether the toggle is on. It flips on click, Enter or Space and fires `void-change` with\n`{ value, pressed }`. Exposed as `aria-pressed`.",
@@ -8143,6 +9003,15 @@
8143
9003
  "symbol": "VoidToggleGroup"
8144
9004
  },
8145
9005
  "attributes": [
9006
+ {
9007
+ "name": "keys",
9008
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
9009
+ "default": "null",
9010
+ "value": {
9011
+ "kind": "plain",
9012
+ "type": "KeyOverrides | null"
9013
+ }
9014
+ },
8146
9015
  {
8147
9016
  "name": "value",
8148
9017
  "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. Reflected to the\nattribute as the pressed toggles change; the form's reset target stays the state it started with. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.",
@@ -8218,6 +9087,12 @@
8218
9087
  ],
8219
9088
  "js": {
8220
9089
  "properties": [
9090
+ {
9091
+ "name": "keys",
9092
+ "description": "Key bindings for this element's actions, as JSON (`{\"next\":[\"ArrowRight\"]}`); `[]` switches an action off. See the keyboard guide.",
9093
+ "type": "KeyOverrides | null",
9094
+ "default": "null"
9095
+ },
8221
9096
  {
8222
9097
  "name": "value",
8223
9098
  "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. Reflected to the\nattribute as the pressed toggles change; the form's reset target stays the state it started with. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.",
@@ -8283,6 +9158,15 @@
8283
9158
  "symbol": "VoidTooltip"
8284
9159
  },
8285
9160
  "attributes": [
9161
+ {
9162
+ "name": "keys",
9163
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
9164
+ "default": "null",
9165
+ "value": {
9166
+ "kind": "plain",
9167
+ "type": "KeyOverrides | null"
9168
+ }
9169
+ },
8286
9170
  {
8287
9171
  "name": "side",
8288
9172
  "description": "Side of the trigger the tooltip appears on; it flips to the opposite side when there is no room.",
@@ -8322,6 +9206,12 @@
8322
9206
  ],
8323
9207
  "js": {
8324
9208
  "properties": [
9209
+ {
9210
+ "name": "keys",
9211
+ "description": "Key bindings for this element's actions, as JSON (`{\"close\":[\"Escape\"]}`); `[]` switches an action off. See the keyboard guide.",
9212
+ "type": "KeyOverrides | null",
9213
+ "default": "null"
9214
+ },
8325
9215
  {
8326
9216
  "name": "side",
8327
9217
  "description": "Side of the trigger the tooltip appears on; it flips to the opposite side when there is no room.",