@voidable/ui 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/base-entry.d.ts +1 -0
  2. package/dist/base.d.ts +8 -1
  3. package/dist/base.js +5 -1
  4. package/dist/chunks/base-BGrS4eIl.js +307 -0
  5. package/dist/chunks/data-BpiiNapL.js +95 -0
  6. package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
  7. package/dist/chunks/{modal-hivQ4YoU.js → modal-DWGkNdNG.js} +3 -3
  8. package/dist/chunks/{overlay-BywGMcDW.js → overlay-CH7L4N-h.js} +2 -2
  9. package/dist/chunks/{parts-CMQQop0D.js → parts-DI_3VpSy.js} +21 -17
  10. package/dist/chunks/{base-CMruMbxC.js → projection-oPe6ipjL.js} +105 -389
  11. package/dist/components/accordion.js +2 -2
  12. package/dist/components/action-input.d.ts +2 -2
  13. package/dist/components/action-input.js +56 -54
  14. package/dist/components/alert.d.ts +11 -0
  15. package/dist/components/alert.js +11 -4
  16. package/dist/components/avatar.js +13 -11
  17. package/dist/components/badge.d.ts +8 -2
  18. package/dist/components/badge.js +1 -4
  19. package/dist/components/banner.d.ts +9 -0
  20. package/dist/components/banner.js +11 -4
  21. package/dist/components/bar-chart.d.ts +21 -7
  22. package/dist/components/bar-chart.js +67 -43
  23. package/dist/components/breadcrumbs.js +2 -2
  24. package/dist/components/button.js +1 -1
  25. package/dist/components/calendar.d.ts +40 -2
  26. package/dist/components/calendar.js +170 -79
  27. package/dist/components/card.js +1 -1
  28. package/dist/components/carousel.js +20 -19
  29. package/dist/components/charts/data.d.ts +72 -0
  30. package/dist/components/checkbox-group.js +13 -12
  31. package/dist/components/checkbox.js +17 -16
  32. package/dist/components/collapsible.js +2 -2
  33. package/dist/components/color-picker.js +26 -24
  34. package/dist/components/combobox.js +17 -16
  35. package/dist/components/compose-input.js +13 -11
  36. package/dist/components/dialog.js +1 -1
  37. package/dist/components/divider.js +11 -9
  38. package/dist/components/donut-chart.d.ts +22 -6
  39. package/dist/components/donut-chart.js +96 -68
  40. package/dist/components/drawer.d.ts +2 -2
  41. package/dist/components/drawer.js +1 -1
  42. package/dist/components/dropdown-menu.js +4 -4
  43. package/dist/components/editable.js +13 -12
  44. package/dist/components/error-fallback.js +2 -2
  45. package/dist/components/field.js +10 -9
  46. package/dist/components/file-upload.d.ts +20 -5
  47. package/dist/components/file-upload.js +52 -20
  48. package/dist/components/gauge.d.ts +32 -8
  49. package/dist/components/gauge.js +209 -135
  50. package/dist/components/hamburger.d.ts +12 -1
  51. package/dist/components/hamburger.js +33 -20
  52. package/dist/components/hover-card.js +3 -3
  53. package/dist/components/indicator.js +14 -12
  54. package/dist/components/input.js +41 -39
  55. package/dist/components/line-chart.d.ts +22 -7
  56. package/dist/components/line-chart.js +80 -56
  57. package/dist/components/list.js +1 -1
  58. package/dist/components/menu.js +3 -3
  59. package/dist/components/multiselect.js +30 -29
  60. package/dist/components/nav-bar.d.ts +9 -0
  61. package/dist/components/nav-bar.js +16 -3
  62. package/dist/components/nav-menu.js +20 -19
  63. package/dist/components/number-input.js +17 -15
  64. package/dist/components/pagination.js +22 -20
  65. package/dist/components/panel.js +2 -2
  66. package/dist/components/pin-input.js +32 -30
  67. package/dist/components/popover.js +3 -3
  68. package/dist/components/progress.js +14 -12
  69. package/dist/components/radio-group.js +13 -11
  70. package/dist/components/radio.d.ts +25 -0
  71. package/dist/components/radio.js +78 -29
  72. package/dist/components/scroll-area.js +8 -7
  73. package/dist/components/segmented-control.js +21 -21
  74. package/dist/components/select.js +49 -47
  75. package/dist/components/sidebar.d.ts +2 -2
  76. package/dist/components/sidebar.js +2 -2
  77. package/dist/components/skeleton.js +1 -1
  78. package/dist/components/slider.js +16 -14
  79. package/dist/components/spinner.js +11 -9
  80. package/dist/components/stat.d.ts +13 -1
  81. package/dist/components/stat.js +29 -19
  82. package/dist/components/status-dot.js +1 -1
  83. package/dist/components/stepper.js +15 -13
  84. package/dist/components/switch.js +14 -12
  85. package/dist/components/table.d.ts +4 -0
  86. package/dist/components/table.js +42 -29
  87. package/dist/components/tabs.js +29 -29
  88. package/dist/components/tag.js +9 -8
  89. package/dist/components/tags-input.js +24 -22
  90. package/dist/components/textarea.js +34 -32
  91. package/dist/components/toast.d.ts +19 -2
  92. package/dist/components/toast.js +43 -10
  93. package/dist/components/toggle-group.js +16 -15
  94. package/dist/components/toggle.js +1 -1
  95. package/dist/components/tooltip.js +3 -3
  96. package/dist/components.json +15 -13
  97. package/dist/custom-elements.json +320 -88
  98. package/dist/dev/types.d.ts +3 -1
  99. package/dist/dev.js +85 -16
  100. package/dist/index.js +1 -1
  101. package/dist/keyboard.d.ts +10 -0
  102. package/dist/llms.txt +1 -1
  103. package/dist/parts.d.ts +5 -0
  104. package/dist/projection-api.d.ts +23 -0
  105. package/dist/projection.d.ts +8 -2
  106. package/dist/reference.md +84 -59
  107. package/dist/types/elements.d.ts +13 -13
  108. package/dist/types/react.d.ts +2 -2
  109. package/dist/types/solid.d.ts +2 -2
  110. package/dist/types/svelte.d.ts +2 -2
  111. package/dist/types/vue.d.ts +2 -2
  112. package/dist/vscode.html-custom-data.json +108 -28
  113. package/dist/web-types.json +189 -60
  114. package/package.json +1 -1
@@ -55,7 +55,7 @@ declare module 'vue' {
55
55
  'void-combobox': VoidVueElement<'void-combobox', { 'onVoidChange'?: (event: VoidElementEvents['void-combobox']['void-change']) => void; 'onVoidOpen'?: (event: VoidElementEvents['void-combobox']['void-open']) => void; 'onVoidClose'?: (event: VoidElementEvents['void-combobox']['void-close']) => void }>;
56
56
  'void-combobox-content': VoidVueElement<'void-combobox-content', {}>;
57
57
  'void-compose-input': VoidVueElement<'void-compose-input', { 'onVoidInput'?: (event: VoidElementEvents['void-compose-input']['void-input']) => void; 'onVoidSubmit'?: (event: VoidElementEvents['void-compose-input']['void-submit']) => void }>;
58
- 'void-date-picker': VoidVueElement<'void-date-picker', { 'onVoidOpen'?: (event: VoidElementEvents['void-date-picker']['void-open']) => void; 'onVoidClose'?: (event: VoidElementEvents['void-date-picker']['void-close']) => void; 'onVoidChange'?: (event: VoidElementEvents['void-date-picker']['void-change']) => void }>;
58
+ 'void-date-picker': VoidVueElement<'void-date-picker', { 'onVoidChange'?: (event: VoidElementEvents['void-date-picker']['void-change']) => void; 'onVoidOpen'?: (event: VoidElementEvents['void-date-picker']['void-open']) => void; 'onVoidClose'?: (event: VoidElementEvents['void-date-picker']['void-close']) => void }>;
59
59
  'void-dialog': VoidVueElement<'void-dialog', { 'onVoidOpen'?: (event: VoidElementEvents['void-dialog']['void-open']) => void; 'onVoidClose'?: (event: VoidElementEvents['void-dialog']['void-close']) => void }>;
60
60
  'void-dialog-actions': VoidVueElement<'void-dialog-actions', {}>;
61
61
  'void-dialog-body': VoidVueElement<'void-dialog-body', {}>;
@@ -79,7 +79,7 @@ declare module 'vue' {
79
79
  'void-error-fallback-description': VoidVueElement<'void-error-fallback-description', {}>;
80
80
  'void-error-fallback-title': VoidVueElement<'void-error-fallback-title', {}>;
81
81
  'void-field': VoidVueElement<'void-field', {}>;
82
- 'void-file-upload': VoidVueElement<'void-file-upload', { 'onVoidChange'?: (event: VoidElementEvents['void-file-upload']['void-change']) => void }>;
82
+ 'void-file-upload': VoidVueElement<'void-file-upload', { 'onVoidReject'?: (event: VoidElementEvents['void-file-upload']['void-reject']) => void; 'onVoidChange'?: (event: VoidElementEvents['void-file-upload']['void-change']) => void }>;
83
83
  'void-gauge': VoidVueElement<'void-gauge', {}>;
84
84
  'void-hamburger': VoidVueElement<'void-hamburger', { 'onVoidOpen'?: (event: VoidElementEvents['void-hamburger']['void-open']) => void; 'onVoidClose'?: (event: VoidElementEvents['void-hamburger']['void-close']) => void }>;
85
85
  'void-hover-card': VoidVueElement<'void-hover-card', { 'onVoidOpen'?: (event: VoidElementEvents['void-hover-card']['void-open']) => void; 'onVoidClose'?: (event: VoidElementEvents['void-hover-card']['void-close']) => void }>;
@@ -334,14 +334,14 @@
334
334
  "name": "icon-side",
335
335
  "description": {
336
336
  "kind": "markdown",
337
- "value": "Which side of the field the button sits on: `right` (default) or `left`.\n\nType: `'left' | 'right'`\n\nDefault: `'right'`\n\nReflected to the attribute."
337
+ "value": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.\n\nType: `'start' | 'end'`\n\nDefault: `'end'`\n\nReflected to the attribute."
338
338
  },
339
339
  "values": [
340
340
  {
341
- "name": "left"
341
+ "name": "start"
342
342
  },
343
343
  {
344
- "name": "right"
344
+ "name": "end"
345
345
  }
346
346
  ]
347
347
  },
@@ -379,7 +379,7 @@
379
379
  "name": "void-alert",
380
380
  "description": {
381
381
  "kind": "markdown",
382
- "value": "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.\n\nEvents: `void-close`"
382
+ "value": "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.\n\nEvents: `void-close`"
383
383
  },
384
384
  "attributes": [
385
385
  {
@@ -508,7 +508,7 @@
508
508
  "name": "void-badge",
509
509
  "description": {
510
510
  "kind": "markdown",
511
- "value": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance."
511
+ "value": "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."
512
512
  },
513
513
  "attributes": [
514
514
  {
@@ -583,7 +583,7 @@
583
583
  "name": "void-banner",
584
584
  "description": {
585
585
  "kind": "markdown",
586
- "value": "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.\n\nEvents: `void-close`"
586
+ "value": "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.\n\nEvents: `void-close`"
587
587
  },
588
588
  "attributes": [
589
589
  {
@@ -672,7 +672,7 @@
672
672
  "name": "void-bar-chart",
673
673
  "description": {
674
674
  "kind": "markdown",
675
- "value": "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."
675
+ "value": "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."
676
676
  },
677
677
  "attributes": [
678
678
  {
@@ -712,15 +712,30 @@
712
712
  "name": "aria-label",
713
713
  "description": {
714
714
  "kind": "markdown",
715
- "value": "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.\n\nType: `string`\n\nDefault: `''`"
715
+ "value": "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.\n\nType: `string`\n\nDefault: `''`"
716
716
  }
717
717
  },
718
+ {
719
+ "name": "show-table",
720
+ "description": {
721
+ "kind": "markdown",
722
+ "value": "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.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
723
+ },
724
+ "valueSet": "v"
725
+ },
718
726
  {
719
727
  "name": "stagger",
720
728
  "description": {
721
729
  "kind": "markdown",
722
730
  "value": "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.\n\nType: `number | null`\n\nDefault: `null`"
723
731
  }
732
+ },
733
+ {
734
+ "name": "data",
735
+ "description": {
736
+ "kind": "markdown",
737
+ "value": "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.\n\nType: `BarChartData`\n\nDefault: `{ series: [] }`"
738
+ }
724
739
  }
725
740
  ]
726
741
  },
@@ -1140,7 +1155,7 @@
1140
1155
  "name": "active",
1141
1156
  "description": {
1142
1157
  "kind": "markdown",
1143
- "value": "Set by <void-carousel> on the slide being shown.\n\nType: `boolean`"
1158
+ "value": "Set by the carousel on the slide being shown.\n\nType: `boolean`"
1144
1159
  },
1145
1160
  "valueSet": "v"
1146
1161
  }
@@ -1610,7 +1625,7 @@
1610
1625
  "name": "void-date-picker",
1611
1626
  "description": {
1612
1627
  "kind": "markdown",
1613
- "value": "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\nEvents: `void-open`, `void-close`, `void-change`"
1628
+ "value": "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.\n\nEvents: `void-change`, `void-open`, `void-close`"
1614
1629
  },
1615
1630
  "attributes": [
1616
1631
  {
@@ -1693,7 +1708,7 @@
1693
1708
  "name": "format",
1694
1709
  "description": {
1695
1710
  "kind": "markdown",
1696
- "value": "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`.\n\nType: `string`\n\nDefault: `'MM/DD/YYYY'`"
1711
+ "value": "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`.\n\nType: `string`\n\nDefault: `'MM/DD/YYYY'`"
1697
1712
  }
1698
1713
  },
1699
1714
  {
@@ -1729,6 +1744,13 @@
1729
1744
  }
1730
1745
  ]
1731
1746
  },
1747
+ {
1748
+ "name": "error",
1749
+ "description": {
1750
+ "kind": "markdown",
1751
+ "value": "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.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
1752
+ }
1753
+ },
1732
1754
  {
1733
1755
  "name": "required",
1734
1756
  "description": {
@@ -1863,7 +1885,7 @@
1863
1885
  "name": "void-donut-chart",
1864
1886
  "description": {
1865
1887
  "kind": "markdown",
1866
- "value": "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."
1888
+ "value": "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."
1867
1889
  },
1868
1890
  "attributes": [
1869
1891
  {
@@ -1925,7 +1947,22 @@
1925
1947
  "name": "aria-label",
1926
1948
  "description": {
1927
1949
  "kind": "markdown",
1928
- "value": "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.\n\nType: `string`\n\nDefault: `''`"
1950
+ "value": "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.\n\nType: `string`\n\nDefault: `''`"
1951
+ }
1952
+ },
1953
+ {
1954
+ "name": "show-table",
1955
+ "description": {
1956
+ "kind": "markdown",
1957
+ "value": "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.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
1958
+ },
1959
+ "valueSet": "v"
1960
+ },
1961
+ {
1962
+ "name": "data",
1963
+ "description": {
1964
+ "kind": "markdown",
1965
+ "value": "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.\n\nType: `DonutChartData`\n\nDefault: `{ segments: [] }`"
1929
1966
  }
1930
1967
  }
1931
1968
  ]
@@ -1948,7 +1985,7 @@
1948
1985
  "name": "side",
1949
1986
  "description": {
1950
1987
  "kind": "markdown",
1951
- "value": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.\n\nType: `'left' | 'right' | 'top' | 'bottom'`\n\nDefault: `'right'`\n\nReflected to the attribute."
1988
+ "value": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).\n\nType: `'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'`\n\nDefault: `'right'`\n\nReflected to the attribute."
1952
1989
  },
1953
1990
  "values": [
1954
1991
  {
@@ -1957,6 +1994,12 @@
1957
1994
  {
1958
1995
  "name": "right"
1959
1996
  },
1997
+ {
1998
+ "name": "start"
1999
+ },
2000
+ {
2001
+ "name": "end"
2002
+ },
1960
2003
  {
1961
2004
  "name": "top"
1962
2005
  },
@@ -2355,14 +2398,14 @@
2355
2398
  "name": "void-file-upload",
2356
2399
  "description": {
2357
2400
  "kind": "markdown",
2358
- "value": "Drag-and-drop file picker for document uploads, image attachment flows, and import wizards.\n\nEvents: `void-change`"
2401
+ "value": "Drag-and-drop file picker for document uploads, image attachment flows, and import wizards.\n\nEvents: `void-reject`, `void-change`"
2359
2402
  },
2360
2403
  "attributes": [
2361
2404
  {
2362
2405
  "name": "accept",
2363
2406
  "description": {
2364
2407
  "kind": "markdown",
2365
- "value": "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.\n\nType: `string`\n\nDefault: `''`"
2408
+ "value": "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.\n\nType: `string`\n\nDefault: `''`"
2366
2409
  }
2367
2410
  },
2368
2411
  {
@@ -2385,14 +2428,14 @@
2385
2428
  "name": "max-size",
2386
2429
  "description": {
2387
2430
  "kind": "markdown",
2388
- "value": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are dropped silently.\n\nType: `number`\n\nDefault: `0`"
2431
+ "value": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.\n\nType: `number`\n\nDefault: `0`"
2389
2432
  }
2390
2433
  },
2391
2434
  {
2392
2435
  "name": "error",
2393
2436
  "description": {
2394
2437
  "kind": "markdown",
2395
- "value": "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.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
2438
+ "value": "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.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
2396
2439
  }
2397
2440
  },
2398
2441
  {
@@ -2569,7 +2612,29 @@
2569
2612
  "name": "aria-label",
2570
2613
  "description": {
2571
2614
  "kind": "markdown",
2572
- "value": "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.\n\nType: `string`\n\nDefault: `''`"
2615
+ "value": "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.\n\nType: `string`\n\nDefault: `''`"
2616
+ }
2617
+ },
2618
+ {
2619
+ "name": "show-table",
2620
+ "description": {
2621
+ "kind": "markdown",
2622
+ "value": "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.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
2623
+ },
2624
+ "valueSet": "v"
2625
+ },
2626
+ {
2627
+ "name": "zones",
2628
+ "description": {
2629
+ "kind": "markdown",
2630
+ "value": "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.\n\nType: `GaugeZone[]`\n\nDefault: `[]`"
2631
+ }
2632
+ },
2633
+ {
2634
+ "name": "data",
2635
+ "description": {
2636
+ "kind": "markdown",
2637
+ "value": "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.\n\nType: `GaugeData`\n\nDefault: `{}`"
2573
2638
  }
2574
2639
  }
2575
2640
  ]
@@ -2578,7 +2643,7 @@
2578
2643
  "name": "void-hamburger",
2579
2644
  "description": {
2580
2645
  "kind": "markdown",
2581
- "value": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.\n\nEvents: `void-open`, `void-close`"
2646
+ "value": "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).\n\nEvents: `void-open`, `void-close`"
2582
2647
  },
2583
2648
  "attributes": [
2584
2649
  {
@@ -3060,7 +3125,7 @@
3060
3125
  "name": "void-line-chart",
3061
3126
  "description": {
3062
3127
  "kind": "markdown",
3063
- "value": "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."
3128
+ "value": "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."
3064
3129
  },
3065
3130
  "attributes": [
3066
3131
  {
@@ -3115,7 +3180,22 @@
3115
3180
  "name": "aria-label",
3116
3181
  "description": {
3117
3182
  "kind": "markdown",
3118
- "value": "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.\n\nType: `string`\n\nDefault: `''`"
3183
+ "value": "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.\n\nType: `string`\n\nDefault: `''`"
3184
+ }
3185
+ },
3186
+ {
3187
+ "name": "show-table",
3188
+ "description": {
3189
+ "kind": "markdown",
3190
+ "value": "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.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
3191
+ },
3192
+ "valueSet": "v"
3193
+ },
3194
+ {
3195
+ "name": "data",
3196
+ "description": {
3197
+ "kind": "markdown",
3198
+ "value": "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.\n\nType: `LineChartData`\n\nDefault: `{ series: [] }`"
3119
3199
  }
3120
3200
  }
3121
3201
  ]
@@ -3376,7 +3456,7 @@
3376
3456
  "name": "void-nav-bar",
3377
3457
  "description": {
3378
3458
  "kind": "markdown",
3379
- "value": "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."
3459
+ "value": "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."
3380
3460
  },
3381
3461
  "attributes": [
3382
3462
  {
@@ -4522,14 +4602,14 @@
4522
4602
  "name": "side",
4523
4603
  "description": {
4524
4604
  "kind": "markdown",
4525
- "value": "Which edge of the page the sidebar sits on: `left` (default) or `right`.\n\nType: `'left' | 'right'`\n\nDefault: `'left'`\n\nReflected to the attribute."
4605
+ "value": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.\n\nType: `'start' | 'end'`\n\nDefault: `'start'`\n\nReflected to the attribute."
4526
4606
  },
4527
4607
  "values": [
4528
4608
  {
4529
- "name": "left"
4609
+ "name": "start"
4530
4610
  },
4531
4611
  {
4532
- "name": "right"
4612
+ "name": "end"
4533
4613
  }
4534
4614
  ]
4535
4615
  }
@@ -4685,7 +4765,7 @@
4685
4765
  "name": "void-stat",
4686
4766
  "description": {
4687
4767
  "kind": "markdown",
4688
- "value": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend."
4768
+ "value": "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."
4689
4769
  },
4690
4770
  "attributes": [
4691
4771
  {
@@ -4960,7 +5040,7 @@
4960
5040
  "name": "void-table",
4961
5041
  "description": {
4962
5042
  "kind": "markdown",
4963
- "value": "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."
5043
+ "value": "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."
4964
5044
  },
4965
5045
  "attributes": [
4966
5046
  {