@voidable/ui 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.d.ts +6 -0
- package/dist/base.js +2 -2
- package/dist/chunks/{base-BxmMM3B7.js → base-BGrS4eIl.js} +9 -0
- package/dist/chunks/data-BpiiNapL.js +95 -0
- package/dist/chunks/{modal-CgGp_fCs.js → modal-DWGkNdNG.js} +2 -2
- package/dist/chunks/{overlay-hLJ7IQHx.js → overlay-CH7L4N-h.js} +1 -1
- package/dist/chunks/{projection-SnR79EHI.js → projection-oPe6ipjL.js} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-input.js +2 -2
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.js +10 -3
- package/dist/components/avatar.js +2 -2
- package/dist/components/badge.d.ts +8 -2
- package/dist/components/badge.js +1 -4
- package/dist/components/banner.d.ts +9 -0
- package/dist/components/banner.js +10 -3
- package/dist/components/bar-chart.d.ts +21 -7
- package/dist/components/bar-chart.js +65 -43
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +40 -2
- package/dist/components/calendar.js +110 -21
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +3 -3
- package/dist/components/charts/data.d.ts +72 -0
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-picker.js +2 -2
- package/dist/components/combobox.js +3 -3
- package/dist/components/compose-input.js +2 -2
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +2 -2
- package/dist/components/donut-chart.d.ts +22 -6
- package/dist/components/donut-chart.js +95 -69
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/editable.js +2 -2
- package/dist/components/error-fallback.js +1 -1
- package/dist/components/field.js +2 -2
- package/dist/components/file-upload.d.ts +20 -5
- package/dist/components/file-upload.js +51 -21
- package/dist/components/gauge.d.ts +32 -8
- package/dist/components/gauge.js +202 -130
- package/dist/components/hamburger.d.ts +12 -1
- package/dist/components/hamburger.js +24 -13
- package/dist/components/hover-card.js +2 -2
- package/dist/components/indicator.js +2 -2
- package/dist/components/input.js +2 -2
- package/dist/components/line-chart.d.ts +22 -7
- package/dist/components/line-chart.js +76 -54
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/multiselect.js +3 -3
- package/dist/components/nav-bar.d.ts +9 -0
- package/dist/components/nav-bar.js +16 -3
- package/dist/components/nav-menu.js +1 -1
- package/dist/components/number-input.js +2 -2
- package/dist/components/pagination.js +2 -2
- package/dist/components/panel.js +1 -1
- package/dist/components/pin-input.js +2 -2
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-group.js +2 -2
- package/dist/components/radio.js +2 -2
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/segmented-control.js +1 -1
- package/dist/components/select.js +2 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +2 -2
- package/dist/components/spinner.js +2 -2
- package/dist/components/stat.d.ts +13 -1
- package/dist/components/stat.js +28 -20
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.d.ts +4 -0
- package/dist/components/table.js +42 -29
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag.js +2 -2
- package/dist/components/tags-input.js +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.js +2 -2
- package/dist/components.json +15 -13
- package/dist/custom-elements.json +272 -70
- package/dist/dev/types.d.ts +3 -1
- package/dist/dev.js +54 -9
- package/dist/index.js +1 -1
- package/dist/llms.txt +1 -1
- package/dist/reference.md +81 -56
- package/dist/types/elements.d.ts +13 -13
- package/dist/types/react.d.ts +2 -2
- package/dist/types/solid.d.ts +2 -2
- package/dist/types/svelte.d.ts +2 -2
- package/dist/types/vue.d.ts +2 -2
- package/dist/vscode.html-custom-data.json +95 -21
- package/dist/web-types.json +173 -44
- package/package.json +1 -1
package/dist/web-types.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"js-types-syntax": "typescript",
|
|
6
6
|
"description-markup": "markdown",
|
|
7
7
|
"contributions": {
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
"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.",
|
|
447
|
+
"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
448
|
"source": {
|
|
449
449
|
"module": "@voidable/ui",
|
|
450
450
|
"symbol": "VoidAlert"
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
},
|
|
598
598
|
{
|
|
599
599
|
"name": "void-badge",
|
|
600
|
-
"description": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.",
|
|
600
|
+
"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
601
|
"source": {
|
|
602
602
|
"module": "@voidable/ui",
|
|
603
603
|
"symbol": "VoidBadge"
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
"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.",
|
|
660
|
+
"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
661
|
"source": {
|
|
662
662
|
"module": "@voidable/ui",
|
|
663
663
|
"symbol": "VoidBanner"
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
},
|
|
745
745
|
{
|
|
746
746
|
"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 }`)
|
|
747
|
+
"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
748
|
"source": {
|
|
749
749
|
"module": "@voidable/ui",
|
|
750
750
|
"symbol": "VoidBarChart"
|
|
@@ -779,13 +779,22 @@
|
|
|
779
779
|
},
|
|
780
780
|
{
|
|
781
781
|
"name": "aria-label",
|
|
782
|
-
"description": "Accessible name of the chart, such as `Revenue by quarter
|
|
782
|
+
"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
783
|
"default": "''",
|
|
784
784
|
"value": {
|
|
785
785
|
"kind": "plain",
|
|
786
786
|
"type": "string"
|
|
787
787
|
}
|
|
788
788
|
},
|
|
789
|
+
{
|
|
790
|
+
"name": "show-table",
|
|
791
|
+
"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.",
|
|
792
|
+
"default": "false",
|
|
793
|
+
"value": {
|
|
794
|
+
"kind": "no-value",
|
|
795
|
+
"type": "boolean"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
789
798
|
{
|
|
790
799
|
"name": "stagger",
|
|
791
800
|
"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 +803,15 @@
|
|
|
794
803
|
"kind": "plain",
|
|
795
804
|
"type": "number | null"
|
|
796
805
|
}
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"name": "data",
|
|
809
|
+
"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.",
|
|
810
|
+
"default": "{ series: [] }",
|
|
811
|
+
"value": {
|
|
812
|
+
"kind": "plain",
|
|
813
|
+
"type": "BarChartData"
|
|
814
|
+
}
|
|
797
815
|
}
|
|
798
816
|
],
|
|
799
817
|
"js": {
|
|
@@ -818,10 +836,16 @@
|
|
|
818
836
|
},
|
|
819
837
|
{
|
|
820
838
|
"name": "ariaLabel",
|
|
821
|
-
"description": "Accessible name of the chart, such as `Revenue by quarter
|
|
839
|
+
"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
840
|
"type": "string",
|
|
823
841
|
"default": "''"
|
|
824
842
|
},
|
|
843
|
+
{
|
|
844
|
+
"name": "showTable",
|
|
845
|
+
"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.",
|
|
846
|
+
"type": "boolean",
|
|
847
|
+
"default": "false"
|
|
848
|
+
},
|
|
825
849
|
{
|
|
826
850
|
"name": "stagger",
|
|
827
851
|
"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 +854,9 @@
|
|
|
830
854
|
},
|
|
831
855
|
{
|
|
832
856
|
"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.
|
|
834
|
-
"type": "BarChartData"
|
|
857
|
+
"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.",
|
|
858
|
+
"type": "BarChartData",
|
|
859
|
+
"default": "{ series: [] }"
|
|
835
860
|
}
|
|
836
861
|
],
|
|
837
862
|
"events": []
|
|
@@ -1368,7 +1393,7 @@
|
|
|
1368
1393
|
"attributes": [
|
|
1369
1394
|
{
|
|
1370
1395
|
"name": "active",
|
|
1371
|
-
"description": "Set by
|
|
1396
|
+
"description": "Set by the carousel on the slide being shown.",
|
|
1372
1397
|
"value": {
|
|
1373
1398
|
"kind": "no-value",
|
|
1374
1399
|
"type": "boolean"
|
|
@@ -2157,7 +2182,7 @@
|
|
|
2157
2182
|
},
|
|
2158
2183
|
{
|
|
2159
2184
|
"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.",
|
|
2185
|
+
"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
2186
|
"source": {
|
|
2162
2187
|
"module": "@voidable/ui",
|
|
2163
2188
|
"symbol": "VoidDatePicker"
|
|
@@ -2246,7 +2271,7 @@
|
|
|
2246
2271
|
},
|
|
2247
2272
|
{
|
|
2248
2273
|
"name": "format",
|
|
2249
|
-
"description": "How the
|
|
2274
|
+
"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
2275
|
"default": "'MM/DD/YYYY'",
|
|
2251
2276
|
"value": {
|
|
2252
2277
|
"kind": "plain",
|
|
@@ -2262,6 +2287,15 @@
|
|
|
2262
2287
|
"type": "'default' | 'error' | 'warning' | 'caution' | 'success' | 'info' | 'notice' | 'highlight'"
|
|
2263
2288
|
}
|
|
2264
2289
|
},
|
|
2290
|
+
{
|
|
2291
|
+
"name": "error",
|
|
2292
|
+
"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.",
|
|
2293
|
+
"default": "''",
|
|
2294
|
+
"value": {
|
|
2295
|
+
"kind": "plain",
|
|
2296
|
+
"type": "string"
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2265
2299
|
{
|
|
2266
2300
|
"name": "required",
|
|
2267
2301
|
"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.",
|
|
@@ -2339,7 +2373,7 @@
|
|
|
2339
2373
|
},
|
|
2340
2374
|
{
|
|
2341
2375
|
"name": "format",
|
|
2342
|
-
"description": "How the
|
|
2376
|
+
"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
2377
|
"type": "string",
|
|
2344
2378
|
"default": "'MM/DD/YYYY'"
|
|
2345
2379
|
},
|
|
@@ -2349,6 +2383,12 @@
|
|
|
2349
2383
|
"type": "'default' | 'error' | 'warning' | 'caution' | 'success' | 'info' | 'notice' | 'highlight'",
|
|
2350
2384
|
"default": "'default'"
|
|
2351
2385
|
},
|
|
2386
|
+
{
|
|
2387
|
+
"name": "error",
|
|
2388
|
+
"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.",
|
|
2389
|
+
"type": "string",
|
|
2390
|
+
"default": "''"
|
|
2391
|
+
},
|
|
2352
2392
|
{
|
|
2353
2393
|
"name": "required",
|
|
2354
2394
|
"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 +2403,10 @@
|
|
|
2363
2403
|
}
|
|
2364
2404
|
],
|
|
2365
2405
|
"events": [
|
|
2406
|
+
{
|
|
2407
|
+
"name": "void-change",
|
|
2408
|
+
"type": "CustomEvent<{ value: string; date: Date | null }>"
|
|
2409
|
+
},
|
|
2366
2410
|
{
|
|
2367
2411
|
"name": "void-open",
|
|
2368
2412
|
"description": "The calendar popup opened: `trigger` from the calendar button, `focus` from a click on the field, `keyboard` from a key.",
|
|
@@ -2372,10 +2416,6 @@
|
|
|
2372
2416
|
"name": "void-close",
|
|
2373
2417
|
"description": "The calendar popup is closing. Cancelable when the user caused it.",
|
|
2374
2418
|
"type": "CustomEvent<{ reason: 'trigger' | 'select' | 'escape' | 'outside' | 'blur' | 'parent' | 'api' }>"
|
|
2375
|
-
},
|
|
2376
|
-
{
|
|
2377
|
-
"name": "void-change",
|
|
2378
|
-
"type": "CustomEvent<{ value: string; date: Date }>"
|
|
2379
2419
|
}
|
|
2380
2420
|
]
|
|
2381
2421
|
}
|
|
@@ -2542,7 +2582,7 @@
|
|
|
2542
2582
|
},
|
|
2543
2583
|
{
|
|
2544
2584
|
"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 }] }`)
|
|
2585
|
+
"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
2586
|
"source": {
|
|
2547
2587
|
"module": "@voidable/ui",
|
|
2548
2588
|
"symbol": "VoidDonutChart"
|
|
@@ -2604,12 +2644,30 @@
|
|
|
2604
2644
|
},
|
|
2605
2645
|
{
|
|
2606
2646
|
"name": "aria-label",
|
|
2607
|
-
"description": "Accessible name of the chart, such as `Traffic by source
|
|
2647
|
+
"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
2648
|
"default": "''",
|
|
2609
2649
|
"value": {
|
|
2610
2650
|
"kind": "plain",
|
|
2611
2651
|
"type": "string"
|
|
2612
2652
|
}
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
"name": "show-table",
|
|
2656
|
+
"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.",
|
|
2657
|
+
"default": "false",
|
|
2658
|
+
"value": {
|
|
2659
|
+
"kind": "no-value",
|
|
2660
|
+
"type": "boolean"
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"name": "data",
|
|
2665
|
+
"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.",
|
|
2666
|
+
"default": "{ segments: [] }",
|
|
2667
|
+
"value": {
|
|
2668
|
+
"kind": "plain",
|
|
2669
|
+
"type": "DonutChartData"
|
|
2670
|
+
}
|
|
2613
2671
|
}
|
|
2614
2672
|
],
|
|
2615
2673
|
"js": {
|
|
@@ -2652,14 +2710,21 @@
|
|
|
2652
2710
|
},
|
|
2653
2711
|
{
|
|
2654
2712
|
"name": "ariaLabel",
|
|
2655
|
-
"description": "Accessible name of the chart, such as `Traffic by source
|
|
2713
|
+
"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
2714
|
"type": "string",
|
|
2657
2715
|
"default": "''"
|
|
2658
2716
|
},
|
|
2717
|
+
{
|
|
2718
|
+
"name": "showTable",
|
|
2719
|
+
"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.",
|
|
2720
|
+
"type": "boolean",
|
|
2721
|
+
"default": "false"
|
|
2722
|
+
},
|
|
2659
2723
|
{
|
|
2660
2724
|
"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.
|
|
2662
|
-
"type": "DonutChartData"
|
|
2725
|
+
"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.",
|
|
2726
|
+
"type": "DonutChartData",
|
|
2727
|
+
"default": "{ segments: [] }"
|
|
2663
2728
|
}
|
|
2664
2729
|
],
|
|
2665
2730
|
"events": []
|
|
@@ -3335,7 +3400,7 @@
|
|
|
3335
3400
|
"attributes": [
|
|
3336
3401
|
{
|
|
3337
3402
|
"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
|
|
3403
|
+
"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
3404
|
"default": "''",
|
|
3340
3405
|
"value": {
|
|
3341
3406
|
"kind": "plain",
|
|
@@ -3362,7 +3427,7 @@
|
|
|
3362
3427
|
},
|
|
3363
3428
|
{
|
|
3364
3429
|
"name": "max-size",
|
|
3365
|
-
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are
|
|
3430
|
+
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
|
|
3366
3431
|
"default": "0",
|
|
3367
3432
|
"value": {
|
|
3368
3433
|
"kind": "plain",
|
|
@@ -3371,7 +3436,7 @@
|
|
|
3371
3436
|
},
|
|
3372
3437
|
{
|
|
3373
3438
|
"name": "error",
|
|
3374
|
-
"description": "
|
|
3439
|
+
"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
3440
|
"default": "''",
|
|
3376
3441
|
"value": {
|
|
3377
3442
|
"kind": "plain",
|
|
@@ -3401,7 +3466,7 @@
|
|
|
3401
3466
|
"properties": [
|
|
3402
3467
|
{
|
|
3403
3468
|
"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
|
|
3469
|
+
"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
3470
|
"type": "string",
|
|
3406
3471
|
"default": "''"
|
|
3407
3472
|
},
|
|
@@ -3419,13 +3484,13 @@
|
|
|
3419
3484
|
},
|
|
3420
3485
|
{
|
|
3421
3486
|
"name": "maxSize",
|
|
3422
|
-
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are
|
|
3487
|
+
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
|
|
3423
3488
|
"type": "number",
|
|
3424
3489
|
"default": "0"
|
|
3425
3490
|
},
|
|
3426
3491
|
{
|
|
3427
3492
|
"name": "error",
|
|
3428
|
-
"description": "
|
|
3493
|
+
"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
3494
|
"type": "string",
|
|
3430
3495
|
"default": "''"
|
|
3431
3496
|
},
|
|
@@ -3443,6 +3508,11 @@
|
|
|
3443
3508
|
}
|
|
3444
3509
|
],
|
|
3445
3510
|
"events": [
|
|
3511
|
+
{
|
|
3512
|
+
"name": "void-reject",
|
|
3513
|
+
"description": "Files were refused: one entry per file with the reason. Does not bubble.",
|
|
3514
|
+
"type": "CustomEvent<{ rejected: { file: File; reason: 'type' | 'size' | 'count' }[] }>"
|
|
3515
|
+
},
|
|
3446
3516
|
{
|
|
3447
3517
|
"name": "void-change",
|
|
3448
3518
|
"type": "CustomEvent<{ value: File[]; files: File[] }>"
|
|
@@ -3604,12 +3674,39 @@
|
|
|
3604
3674
|
},
|
|
3605
3675
|
{
|
|
3606
3676
|
"name": "aria-label",
|
|
3607
|
-
"description": "Accessible name of the gauge, such as `Disk usage
|
|
3677
|
+
"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
3678
|
"default": "''",
|
|
3609
3679
|
"value": {
|
|
3610
3680
|
"kind": "plain",
|
|
3611
3681
|
"type": "string"
|
|
3612
3682
|
}
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "show-table",
|
|
3686
|
+
"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.",
|
|
3687
|
+
"default": "false",
|
|
3688
|
+
"value": {
|
|
3689
|
+
"kind": "no-value",
|
|
3690
|
+
"type": "boolean"
|
|
3691
|
+
}
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
"name": "zones",
|
|
3695
|
+
"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.",
|
|
3696
|
+
"default": "[]",
|
|
3697
|
+
"value": {
|
|
3698
|
+
"kind": "plain",
|
|
3699
|
+
"type": "GaugeZone[]"
|
|
3700
|
+
}
|
|
3701
|
+
},
|
|
3702
|
+
{
|
|
3703
|
+
"name": "data",
|
|
3704
|
+
"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.",
|
|
3705
|
+
"default": "{}",
|
|
3706
|
+
"value": {
|
|
3707
|
+
"kind": "plain",
|
|
3708
|
+
"type": "GaugeData"
|
|
3709
|
+
}
|
|
3613
3710
|
}
|
|
3614
3711
|
],
|
|
3615
3712
|
"js": {
|
|
@@ -3712,20 +3809,27 @@
|
|
|
3712
3809
|
},
|
|
3713
3810
|
{
|
|
3714
3811
|
"name": "ariaLabel",
|
|
3715
|
-
"description": "Accessible name of the gauge, such as `Disk usage
|
|
3812
|
+
"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
3813
|
"type": "string",
|
|
3717
3814
|
"default": "''"
|
|
3718
3815
|
},
|
|
3816
|
+
{
|
|
3817
|
+
"name": "showTable",
|
|
3818
|
+
"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.",
|
|
3819
|
+
"type": "boolean",
|
|
3820
|
+
"default": "false"
|
|
3821
|
+
},
|
|
3719
3822
|
{
|
|
3720
3823
|
"name": "zones",
|
|
3721
|
-
"description": "Colour bands over the value range
|
|
3824
|
+
"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
3825
|
"type": "GaugeZone[]",
|
|
3723
3826
|
"default": "[]"
|
|
3724
3827
|
},
|
|
3725
3828
|
{
|
|
3726
3829
|
"name": "data",
|
|
3727
|
-
"description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading.
|
|
3728
|
-
"type": "GaugeData"
|
|
3830
|
+
"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.",
|
|
3831
|
+
"type": "GaugeData",
|
|
3832
|
+
"default": "{}"
|
|
3729
3833
|
}
|
|
3730
3834
|
],
|
|
3731
3835
|
"events": []
|
|
@@ -3733,7 +3837,7 @@
|
|
|
3733
3837
|
},
|
|
3734
3838
|
{
|
|
3735
3839
|
"name": "void-hamburger",
|
|
3736
|
-
"description": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.",
|
|
3840
|
+
"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
3841
|
"source": {
|
|
3738
3842
|
"module": "@voidable/ui",
|
|
3739
3843
|
"symbol": "VoidHamburger"
|
|
@@ -3776,8 +3880,8 @@
|
|
|
3776
3880
|
"events": [
|
|
3777
3881
|
{
|
|
3778
3882
|
"name": "void-open",
|
|
3779
|
-
"description": "The user opened it
|
|
3780
|
-
"type": "CustomEvent<{ reason: 'trigger' }>"
|
|
3883
|
+
"description": "The user opened it: `trigger` for a click, `keyboard` for Enter or Space. Does not bubble.",
|
|
3884
|
+
"type": "CustomEvent<{ reason: 'trigger' | 'keyboard' }>"
|
|
3781
3885
|
},
|
|
3782
3886
|
{
|
|
3783
3887
|
"name": "void-close",
|
|
@@ -4280,7 +4384,7 @@
|
|
|
4280
4384
|
},
|
|
4281
4385
|
{
|
|
4282
4386
|
"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 }`)
|
|
4387
|
+
"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
4388
|
"source": {
|
|
4285
4389
|
"module": "@voidable/ui",
|
|
4286
4390
|
"symbol": "VoidLineChart"
|
|
@@ -4324,12 +4428,30 @@
|
|
|
4324
4428
|
},
|
|
4325
4429
|
{
|
|
4326
4430
|
"name": "aria-label",
|
|
4327
|
-
"description": "Accessible name of the chart, such as `Visitors per day
|
|
4431
|
+
"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
4432
|
"default": "''",
|
|
4329
4433
|
"value": {
|
|
4330
4434
|
"kind": "plain",
|
|
4331
4435
|
"type": "string"
|
|
4332
4436
|
}
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"name": "show-table",
|
|
4440
|
+
"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.",
|
|
4441
|
+
"default": "false",
|
|
4442
|
+
"value": {
|
|
4443
|
+
"kind": "no-value",
|
|
4444
|
+
"type": "boolean"
|
|
4445
|
+
}
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"name": "data",
|
|
4449
|
+
"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.",
|
|
4450
|
+
"default": "{ series: [] }",
|
|
4451
|
+
"value": {
|
|
4452
|
+
"kind": "plain",
|
|
4453
|
+
"type": "LineChartData"
|
|
4454
|
+
}
|
|
4333
4455
|
}
|
|
4334
4456
|
],
|
|
4335
4457
|
"js": {
|
|
@@ -4360,14 +4482,21 @@
|
|
|
4360
4482
|
},
|
|
4361
4483
|
{
|
|
4362
4484
|
"name": "ariaLabel",
|
|
4363
|
-
"description": "Accessible name of the chart, such as `Visitors per day
|
|
4485
|
+
"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
4486
|
"type": "string",
|
|
4365
4487
|
"default": "''"
|
|
4366
4488
|
},
|
|
4489
|
+
{
|
|
4490
|
+
"name": "showTable",
|
|
4491
|
+
"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.",
|
|
4492
|
+
"type": "boolean",
|
|
4493
|
+
"default": "false"
|
|
4494
|
+
},
|
|
4367
4495
|
{
|
|
4368
4496
|
"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.
|
|
4370
|
-
"type": "LineChartData"
|
|
4497
|
+
"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.",
|
|
4498
|
+
"type": "LineChartData",
|
|
4499
|
+
"default": "{ series: [] }"
|
|
4371
4500
|
}
|
|
4372
4501
|
],
|
|
4373
4502
|
"events": []
|
|
@@ -4811,7 +4940,7 @@
|
|
|
4811
4940
|
},
|
|
4812
4941
|
{
|
|
4813
4942
|
"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.",
|
|
4943
|
+
"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
4944
|
"source": {
|
|
4816
4945
|
"module": "@voidable/ui",
|
|
4817
4946
|
"symbol": "VoidNavBar"
|
|
@@ -6743,7 +6872,7 @@
|
|
|
6743
6872
|
},
|
|
6744
6873
|
{
|
|
6745
6874
|
"name": "void-stat",
|
|
6746
|
-
"description": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.",
|
|
6875
|
+
"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
6876
|
"source": {
|
|
6748
6877
|
"module": "@voidable/ui",
|
|
6749
6878
|
"symbol": "VoidStat"
|
|
@@ -7063,7 +7192,7 @@
|
|
|
7063
7192
|
},
|
|
7064
7193
|
{
|
|
7065
7194
|
"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.",
|
|
7195
|
+
"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.",
|
|
7067
7196
|
"source": {
|
|
7068
7197
|
"module": "@voidable/ui",
|
|
7069
7198
|
"symbol": "VoidTable"
|