@fusion.dev/helix-headless 0.247.1 → 0.248.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 (127) hide show
  1. package/api.json +1 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/accordion/root/accordion-root.d.ts +10 -1
  4. package/dist/announcement/root/announcement-root.d.ts +8 -7
  5. package/dist/app-header/root/app-header-root.d.ts +12 -8
  6. package/dist/area-chart/root/area-chart-root.d.ts +12 -4
  7. package/dist/avatar/root/avatar-root.d.ts +3 -0
  8. package/dist/badge/root/badge-root.d.ts +2 -6
  9. package/dist/bar-chart/root/bar-chart-root.d.ts +10 -2
  10. package/dist/blockquote/root/blockquote-root.d.ts +7 -4
  11. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +9 -3
  12. package/dist/button/root/button-root.d.ts +7 -8
  13. package/dist/button-group/root/button-group-root.d.ts +7 -3
  14. package/dist/callout/root/callout-root.d.ts +5 -2
  15. package/dist/canvas/root/canvas-root.d.ts +8 -7
  16. package/dist/card/root/card-root.d.ts +4 -0
  17. package/dist/carousel/root/carousel-root.d.ts +11 -3
  18. package/dist/chat/root/chat-root.d.ts +15 -16
  19. package/dist/checkbox/root/checkbox-root.d.ts +6 -3
  20. package/dist/checkbox-group/root/checkbox-group-root.d.ts +12 -8
  21. package/dist/code/root/code-root.d.ts +6 -3
  22. package/dist/code-block/root/code-block-root.d.ts +14 -7
  23. package/dist/code-editor/root/code-editor-root.d.ts +17 -6
  24. package/dist/code-input/root/code-input-root.d.ts +10 -5
  25. package/dist/color-input/root/color-input-root.d.ts +7 -0
  26. package/dist/color-picker/root/color-picker-root.d.ts +6 -0
  27. package/dist/column-manager/root/column-manager-root.d.ts +12 -4
  28. package/dist/combobox/root/combobox-root.d.ts +6 -12
  29. package/dist/command/root/command-root.d.ts +13 -8
  30. package/dist/copy-button/root/copy-button-root.d.ts +8 -3
  31. package/dist/data-table/root/data-table-root.d.ts +18 -14
  32. package/dist/date-input/root/date-input-root.d.ts +8 -0
  33. package/dist/date-picker/root/date-picker-root.d.ts +11 -7
  34. package/dist/description-list/root/description-list-root.d.ts +6 -0
  35. package/dist/device-screen/root/device-screen-root.d.ts +13 -8
  36. package/dist/dialog/root/dialog-root.d.ts +6 -4
  37. package/dist/divider/root/divider-root.d.ts +6 -4
  38. package/dist/donut-chart/root/donut-chart-root.d.ts +8 -6
  39. package/dist/drawer/root/drawer-root.d.ts +8 -10
  40. package/dist/drilldown/root/drilldown-root.d.ts +11 -6
  41. package/dist/editor/root/editor-root.d.ts +11 -2
  42. package/dist/empty/root/empty-root.d.ts +6 -4
  43. package/dist/file-input/root/file-input-root.d.ts +5 -0
  44. package/dist/filter-input/root/filter-input-root.d.ts +20 -28
  45. package/dist/find/root/find-root.d.ts +9 -0
  46. package/dist/format-date/root/format-date-root.d.ts +9 -4
  47. package/dist/graph/root/graph-root.d.ts +10 -4
  48. package/dist/heatmap/root/heatmap-root.d.ts +10 -3
  49. package/dist/hover-card/root/hover-card-root.d.ts +8 -6
  50. package/dist/icon/root/icon-root.d.ts +7 -3
  51. package/dist/icon-button/root/icon-button-root.d.ts +4 -0
  52. package/dist/image/root/image-root.d.ts +4 -0
  53. package/dist/input/root/input-root.d.ts +9 -2
  54. package/dist/kbd/root/kbd-root.d.ts +7 -11
  55. package/dist/legend/root/legend-root.d.ts +10 -7
  56. package/dist/lightbox/root/lightbox-root.d.ts +15 -8
  57. package/dist/line-chart/root/line-chart-root.d.ts +12 -7
  58. package/dist/list/root/list-root.d.ts +16 -11
  59. package/dist/listbox/root/listbox-root.d.ts +10 -17
  60. package/dist/loader/root/loader-root.d.ts +12 -8
  61. package/dist/log/root/log-root.d.ts +11 -3
  62. package/dist/map/root/map-root.d.ts +11 -6
  63. package/dist/markdown/root/markdown-root.d.ts +12 -8
  64. package/dist/megamenu/root/megamenu-root.d.ts +6 -3
  65. package/dist/menu/root/menu-root.d.ts +14 -21
  66. package/dist/meter/root/meter-root.d.ts +14 -7
  67. package/dist/motion-toggle/root/motion-toggle-root.d.ts +5 -0
  68. package/dist/navigation/root/navigation-root.d.ts +9 -3
  69. package/dist/notifications/root/notifications-root.d.ts +9 -8
  70. package/dist/number-input/root/number-input-root.d.ts +6 -1
  71. package/dist/object-inspector/root/object-inspector-root.d.ts +13 -5
  72. package/dist/option/root/option-root.d.ts +10 -5
  73. package/dist/outline/root/outline-root.d.ts +6 -3
  74. package/dist/pagination/root/pagination-root.d.ts +9 -6
  75. package/dist/pin-input/root/pin-input-root.d.ts +6 -0
  76. package/dist/popover/root/popover-root.d.ts +11 -8
  77. package/dist/progress/root/progress-root.d.ts +12 -7
  78. package/dist/qr-code/root/qr-code-root.d.ts +6 -2
  79. package/dist/quick-filters/root/quick-filters-root.d.ts +10 -5
  80. package/dist/quote/root/quote-root.d.ts +5 -5
  81. package/dist/radio/root/radio-root.d.ts +6 -3
  82. package/dist/rating/root/rating-root.d.ts +10 -5
  83. package/dist/scatter-chart/root/scatter-chart-root.d.ts +13 -7
  84. package/dist/scroll-area/root/scroll-area-root.d.ts +3 -0
  85. package/dist/select/root/select-root.d.ts +8 -15
  86. package/dist/selection-bar/root/selection-bar-root.d.ts +11 -6
  87. package/dist/shortcut-overlay/root/shortcut-overlay-root.d.ts +9 -7
  88. package/dist/skeleton/root/skeleton-root.d.ts +8 -9
  89. package/dist/skip-link/root/skip-link-root.d.ts +2 -0
  90. package/dist/slider/root/slider-root.d.ts +13 -7
  91. package/dist/sparkline/root/sparkline-root.d.ts +8 -10
  92. package/dist/spatial-bar-chart/root/spatial-bar-chart-root.d.ts +6 -0
  93. package/dist/spatial-heatmap/root/spatial-heatmap-root.d.ts +7 -0
  94. package/dist/spatial-ribbon-chart/root/spatial-ribbon-chart-root.d.ts +6 -0
  95. package/dist/spatial-scatter-chart/root/spatial-scatter-chart-root.d.ts +7 -0
  96. package/dist/spatial-surface-chart/root/spatial-surface-chart-root.d.ts +7 -0
  97. package/dist/spatial-treemap/root/spatial-treemap-root.d.ts +6 -0
  98. package/dist/speed-dial/root/speed-dial-root.d.ts +12 -4
  99. package/dist/splitter/root/splitter-root.d.ts +16 -13
  100. package/dist/stat/root/stat-root.d.ts +13 -7
  101. package/dist/steps/root/steps-root.d.ts +5 -3
  102. package/dist/switch/root/switch-root.d.ts +6 -1
  103. package/dist/table/root/table-root.d.ts +13 -8
  104. package/dist/table-export/root/table-export-root.d.ts +10 -2
  105. package/dist/tabs/root/tabs-root.d.ts +10 -2
  106. package/dist/tag/root/tag-root.d.ts +3 -3
  107. package/dist/terminal/root/terminal-root.d.ts +12 -5
  108. package/dist/textarea/root/textarea-root.d.ts +7 -0
  109. package/dist/theme-toggle/root/theme-toggle-root.d.ts +8 -3
  110. package/dist/time-input/root/time-input-root.d.ts +10 -4
  111. package/dist/time-picker/root/time-picker-root.d.ts +12 -9
  112. package/dist/timeline/root/timeline-root.d.ts +18 -10
  113. package/dist/toast/root/toast-root.d.ts +14 -14
  114. package/dist/toggle/root/toggle-root.d.ts +3 -0
  115. package/dist/toolbar/root/toolbar-root.d.ts +4 -0
  116. package/dist/tooltip/root/tooltip-root.d.ts +5 -5
  117. package/dist/tour/root/tour-root.d.ts +10 -3
  118. package/dist/tree/root/tree-root.d.ts +9 -2
  119. package/dist/trend/root/trend-root.d.ts +10 -5
  120. package/dist/video/root/video-root.d.ts +12 -9
  121. package/dist/video-playlist/root/video-playlist-root.d.ts +10 -5
  122. package/dist/view-panel/root/view-panel-root.d.ts +13 -7
  123. package/dist/virtual-list/root/virtual-list-root.d.ts +12 -7
  124. package/lint.json +1 -1
  125. package/package.json +5 -5
  126. package/types/jsx.d.ts +266 -623
  127. package/types/vue.d.ts +267 -624
@@ -27,9 +27,7 @@ declare const HelixHeadlessMap_base: (new (...args: any[]) => import("@fusion.de
27
27
  * and pressing it turns the map to face north.
28
28
  *
29
29
  * Add `pan` and `rotate` for buttons around the compass that move and turn the
30
- * map. Dragging is otherwise the only way a pointer moves the map, so add them
31
- * where the map has to be usable without dragging, as WCAG 2.2 asks at level
32
- * AA. The arrow keys pan the map and Shift with Left or Right turns it either
30
+ * map. The arrow keys pan the map and Shift with Left or Right turns it either
33
31
  * way. The buttons are a toolbar and one tab stop: on them, the arrow keys
34
32
  * move between the buttons by where they sit, and Shift with an arrow still
35
33
  * turns or tilts the map.
@@ -65,9 +63,8 @@ declare const HelixHeadlessMap_base: (new (...args: any[]) => import("@fusion.de
65
63
  * Markers, routes, areas, live positions, and points layers go inside the
66
64
  * frame as child elements.
67
65
  *
68
- * **Each element has an entry of its own.** A map draws the layers it is
69
- * given, so `map/root` registers the frame alone. A page imports each layer it
70
- * writes, such as a marker and a route:
66
+ * **Each element has an entry of its own**, such as the frame, a marker, and a
67
+ * route:
71
68
  *
72
69
  * ```js
73
70
  * import '@fusion.dev/helix/map/root'
@@ -83,6 +80,14 @@ declare const HelixHeadlessMap_base: (new (...args: any[]) => import("@fusion.de
83
80
  * @status stable
84
81
  * @category media
85
82
  * @aliases Map frame, Map container, Geo
83
+ * @use Places, routes, and areas on a map drawn by MapLibre, Leaflet, or your own renderer.
84
+ * @instead image - A picture of a map that you do not pan or zoom.
85
+ * @anatomy viewport
86
+ * @anatomy controls
87
+ * @anatomy attribution
88
+ * @practice Import the entry of each layer you write beside `map/root`, such as `map/marker`. - A map draws the layers it is given, so `map/root` registers the frame alone.
89
+ * @practice Add pan and rotate to `controls` where the map has to be usable without dragging. - Dragging is otherwise the only way a pointer moves the map, and WCAG 2.2 asks for another way at level AA.
90
+ * @practice {behind-content} Set `fill` to lay the map behind a page's own content, and give its container a position, such as relative. - The frame covers its container.
86
91
  * @documentation https://fusion.dev/helix/components/map
87
92
  *
88
93
  * @slot - The element your renderer draws the map in, and the map's markers, routes, areas, positions, and points layers.
@@ -7,11 +7,9 @@ import '../../code-block/index.js';
7
7
  * @summary Markdown drawn as a document, which streams in place as a reply arrives.
8
8
  *
9
9
  * @description
10
- * Set `text` to the Markdown, or to everything a reply has said so far, with
11
- * `streaming` while more is coming. Each time `text` grows, only what changed
12
- * is drawn: a block that has ended is never drawn again, a word arriving is
13
- * added to the line it ends, and a code block, a list, or a table fills in
14
- * where it stands. Text you can already read does not move.
10
+ * `text` is the Markdown. A block that has ended is never drawn again, a word
11
+ * arriving is added to the line it ends, and a code block, a list, or a table
12
+ * fills in where it stands. Text you can already read does not move.
15
13
  *
16
14
  * - A fence becomes a `Code Block`, with its language as its `label` and its
17
15
  * `language`, so a highlighter given to `registerHighlighter` colors it as it
@@ -31,9 +29,7 @@ import '../../code-block/index.js';
31
29
  *
32
30
  * **The document is drawn in the element's own children**, so the page's
33
31
  * `data-prose` styles reach it, a reader can select and find its text, and a
34
- * server can send it. Put `data-prose` on the element or on a container. On a
35
- * server, render `markdownToHtml(text)` inside the element: where what it was
36
- * sent is exactly what it would draw, it keeps it and draws nothing again.
32
+ * server can send it.
37
33
  *
38
34
  * What it reads is CommonMark with GitHub's tables, task lists,
39
35
  * strikethrough, autolinks, and alerts. A line of `===` or `---` under a
@@ -47,6 +43,14 @@ import '../../code-block/index.js';
47
43
  * @status experimental
48
44
  * @category typography
49
45
  * @aliases Markdown renderer, Streaming text, Rich text
46
+ * @use A reply that arrives as Markdown while you watch, such as an agent's answer.
47
+ * @use Markdown you already have, such as a README, drawn as a document.
48
+ * @instead text - A heading or a paragraph you write in your own markup.
49
+ * @instead editor - A document you write and edit in place.
50
+ * @instead chat - A conversation's turns in one scrolling transcript.
51
+ * @practice Set `text` to everything a reply has said so far, with `streaming` while more is coming. - Each time `text` grows, only what changed is drawn.
52
+ * @practice Put `data-prose` on the element or on a container. - The page's prose recipe then sets the document's type, spacing, lists, and tables.
53
+ * @practice On a server, render `markdownToHtml(text)` inside the element. - The element keeps markup that matches what it would draw, and draws nothing again.
50
54
  * @documentation https://fusion.dev/helix/components/markdown
51
55
  *
52
56
  * @slot - The drawn document. Written by the element; leave it empty, or fill it with `markdownToHtml(text)` on a server.
@@ -12,9 +12,8 @@ declare const HelixHeadlessMegamenu_base: (new (...args: any[]) => import("@fusi
12
12
  * disclosure, middle clicks, modified clicks, and the status bar keep working.
13
13
  * Use `Menu` for a row of commands.
14
14
  *
15
- * It renders no links. A router renders its own anchors and cannot render them
16
- * inside this shadow root, so the panel is a slot for the lists and headings
17
- * you write.
15
+ * It renders no links. The panel is a slot for the lists and headings you
16
+ * write.
18
17
  *
19
18
  * It opens on hover by default, and a press always opens it too. `open-on` sets
20
19
  * which. Hover is the default because in a navigation bar people expect to move
@@ -73,6 +72,10 @@ declare const HelixHeadlessMegamenu_base: (new (...args: any[]) => import("@fusi
73
72
  * @use A section of a site's main navigation that opens a panel of links.
74
73
  * @instead popover - Content other than navigation.
75
74
  * @instead navigation - Links that fit in one row.
75
+ * @anatomy trigger
76
+ * @anatomy surface
77
+ * @practice Write the panel's links and headings yourself, in its default slot. - A router renders its own anchors and cannot render them inside the megamenu's shadow root.
78
+ * @practice {preview} Mark the panel's columns, headings, and links with their data-megamenu attributes. - `helix.css` lays out the panel through them, and without them the panel holds your markup as you styled it.
76
79
  * @documentation https://fusion.dev/helix/components/megamenu
77
80
  *
78
81
  * @slot - The panel's contents, such as your own lists of links and their headings.
@@ -36,17 +36,12 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
36
36
  * sets this on items as a property, never as an attribute. An attribute written
37
37
  * onto your element after it upgrades causes a hydration mismatch.
38
38
  *
39
- * Group rows under a heading with `Menu.Section`, which is a `group` named by
40
- * its heading. Between runs of rows, a `<helix-divider>` is a separator a
41
- * screen reader announces.
42
- *
43
- * **A row goes directly in the menu, in a `Menu.Section`, or in another row's
44
- * `submenu` slot.** The menu reads rows in those places only. A row inside an
45
- * element of your own, such as a `<div>` or a component's host element, is
46
- * skipped by the arrow keys, and a drilled page hides that element with the
47
- * rest of the top page, so the row's submenu shows none of its rows. A
48
- * development build warns about it as `wrapped-row`. In a framework, render a
49
- * component's rows without a wrapper element, such as with a fragment.
39
+ * A row inside an element of your own, such as a `<div>` or a component's
40
+ * host element, is skipped by the arrow keys, and a drilled page hides that
41
+ * element with the rest of the top page, so the row's submenu shows none of
42
+ * its rows. A development build warns about it as `wrapped-row`. In a
43
+ * framework, render a component's rows without a wrapper element, such as
44
+ * with a fragment.
50
45
  *
51
46
  * Keys: Enter, Space or Down Arrow on the trigger opens the menu on its first
52
47
  * row, and Up Arrow on its last. In the menu, Up and Down Arrow move between
@@ -90,16 +85,8 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
90
85
  * opens it from the keyboard, and the trigger is described by
91
86
  * `long-press-label`, which says so.
92
87
  *
93
- * **A filter field** is a separate import, `@fusion.dev/helix/menu/filter`, so
94
- * a menu that never filters carries none of its code:
95
- *
96
- * ```js
97
- * import '@fusion.dev/helix/menu'
98
- * import '@fusion.dev/helix/menu/filter'
99
- * ```
100
- *
101
- * With it imported and `filterable` set, the menu opens with focus in a field
102
- * above its rows, and typing narrows the rows of the page the keys move in,
88
+ * With the filter imported and `filterable` set, the menu opens with focus in
89
+ * a field above its rows, and typing narrows the rows of the page the keys move in,
103
90
  * as React Aria's `Autocomplete` around a `Menu` does. A row is kept where its
104
91
  * words hold the filter, in any case, or where `filterMatch` says so. Each
105
92
  * page starts unfiltered, and the filter is cleared as the menu closes. Where
@@ -121,6 +108,12 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
121
108
  * @use Commands that act at once, such as Rename, Duplicate, and Delete.
122
109
  * @instead select - A value a form submits.
123
110
  * @instead command - Commands you find by typing, from anywhere on the page.
111
+ * @anatomy trigger
112
+ * @anatomy surface
113
+ * @anatomy item
114
+ * @practice Put each row directly in the menu, in a `Menu.Section`, or in another row's `submenu` slot. - The menu reads rows in those places only.
115
+ * @practice {sections} Group rows under a heading with `Menu.Section`, and divide runs of rows with Divider. - A section is a group named by its heading, and a divider is a separator a screen reader announces.
116
+ * @practice Import `@fusion.dev/helix/menu/filter` beside Menu to set `filterable`. - The filter field is a separate import, so a menu that never filters carries none of its code.
124
117
  * @documentation https://fusion.dev/helix/components/menu
125
118
  *
126
119
  * @slot - The items.
@@ -6,17 +6,14 @@ export type MeterBand = 'fair' | 'good' | 'poor';
6
6
  * @summary A measurement in a known range, with optional bands that mark it good, fair, or poor.
7
7
  *
8
8
  * @description
9
- * A meter shows a level within a range, or how the level divides: write
10
- * `Meter.Segment` inside it for each part of the whole, and the meter measures
11
- * their sum. Use `Progress` to show how far along a
9
+ * A meter shows a level within a range, or how the level divides. Use
10
+ * `Progress` to show how far along a
12
11
  * task is. A progress bar starts empty and ends full, and full is always the
13
12
  * good end. For a meter, which end is good depends on what is measured. There
14
13
  * is no `indeterminate`, because a meter always has a value.
15
14
  *
16
- * **Set `low`, `high`, and `optimum`**, as defined in the HTML specification.
17
- * `low` and `high` divide the range into a low band, a middle band, and a high
18
- * band. `optimum` sets the preferred band. The band next to it is fair, and the
19
- * band two away is poor.
15
+ * The bands follow the HTML specification: the band next to the preferred one
16
+ * is fair, and the band two away is poor.
20
17
  *
21
18
  * The band is a custom state on the meter, `good`, `fair` or `poor`, beside
22
19
  * `over` and `under` for a value past an end, so a page styles the meter
@@ -31,6 +28,16 @@ export type MeterBand = 'fair' | 'good' | 'poor';
31
28
  * @status stable
32
29
  * @category feedback
33
30
  * @aliases Gauge, Level, Capacity
31
+ * @use A measurement in a known range, such as disk used or a battery level.
32
+ * @use Shares of a whole in one bar, such as storage by file type.
33
+ * @instead progress - How far along a task is, such as an upload.
34
+ * @instead voice-level - The live level of a microphone or a voice.
35
+ * @instead donut-chart - Parts of one whole drawn from a table, such as sessions by source.
36
+ * @anatomy track
37
+ * @anatomy indicator
38
+ * @anatomy value?
39
+ * @practice Write a `Meter.Segment` for each share of the whole. - The meter measures their sum.
40
+ * @practice Set `low`, `high`, and `optimum` to mark bands of the range. - `low` and `high` divide the range into a low, a middle, and a high band, and `optimum` sets the preferred one.
34
41
  * @documentation https://fusion.dev/helix/components/meter
35
42
  *
36
43
  * @slot - `Meter.Segment` elements, one for each share of the whole, drawn in the bar.
@@ -33,6 +33,11 @@ import { type TemplateResult } from 'lit';
33
33
  * @status experimental
34
34
  * @category actions
35
35
  * @aliases Pause button, Pause animations, Stop motion, Motion control, Animation toggle
36
+ * @use A page with motion that starts by itself, such as a carousel that turns or an aura.
37
+ * @instead theme-toggle - A press that switches the page between light and dark.
38
+ * @instead video - One video, which has a pause button of its own.
39
+ * @anatomy button
40
+ * @anatomy icon
36
41
  * @documentation https://fusion.dev/helix/components/motion-toggle
37
42
  *
38
43
  * @slot - The button's text, where it shows more than its icon. Defaults to nothing, the icon alone, named by `label`.
@@ -14,9 +14,8 @@ import '../../menu/index.js';
14
14
  * A router renders its own anchors and cannot render them inside the
15
15
  * component's shadow root.
16
16
  *
17
- * The component moves a marker to the current item. It finds the current item
18
- * by reading `aria-current`, so the attribute that screen readers announce also
19
- * places the marker. Any value but `false` counts, so a sidebar of sections on
17
+ * The component moves a marker to the current item. Any `aria-current` value
18
+ * but `false` counts, so a sidebar of sections on
20
19
  * one page can mark the section in view with `aria-current="location"`. Where
21
20
  * several are marked, `page` wins.
22
21
  *
@@ -66,6 +65,13 @@ import '../../menu/index.js';
66
65
  * @status stable
67
66
  * @category navigation
68
67
  * @aliases Nav, NavList, Tabs
68
+ * @use Links to the sections of a site or an app, with the current page marked.
69
+ * @instead tabs - Panels on one page that a row of tabs switches between.
70
+ * @instead megamenu - A section of a site's navigation that opens a panel of links.
71
+ * @instead app-header - The banner at the top of the page that holds the navigation.
72
+ * @anatomy nav
73
+ * @anatomy indicator
74
+ * @practice Mark the current link with `aria-current`. - The marker reads it, so the attribute a screen reader announces also places the marker.
69
75
  * @documentation https://fusion.dev/helix/components/navigation
70
76
  *
71
77
  * @slot - The destinations, as your own links.
@@ -27,9 +27,7 @@ declare const HelixHeadlessNotifications_base: (new (...args: any[]) => import("
27
27
  * takes focus itself and is read by its label. `ArrowDown` and `ArrowUp` move to the next and the
28
28
  * previous row, `Home` and `End` to the first and the last, and `PageDown` and
29
29
  * `PageUp` move a row on or back from anywhere inside one, as in the APG feed
30
- * pattern. The controls inside a row stay in the `Tab` order. Set `total` when
31
- * the feed holds one page of a longer list, and each row says its place in the
32
- * whole of it.
30
+ * pattern. The controls inside a row stay in the `Tab` order.
33
31
  *
34
32
  * **Keyboard.**
35
33
  *
@@ -44,13 +42,11 @@ declare const HelixHeadlessNotifications_base: (new (...args: any[]) => import("
44
42
  *
45
43
  * **A notification that arrives says so.** Unread rows added above the rows
46
44
  * there were are counted in the live region,
47
- * "1 new notification", in `arrived-label`. Rows that arrive while `loading`
48
- * is set say nothing, so set it while a page is on its way.
45
+ * "1 new notification", in `arrived-label`.
49
46
  *
50
47
  * **`load-more` adds a button after the list** that sends `helix-load-more`,
51
- * for a feed that holds one page of a longer list. Append the next page, set
52
- * `loading` while it is on its way, and take `load-more` off once there is
53
- * nothing more. While the feed is loading the button stays, so focus stays on
48
+ * for a feed that holds one page of a longer list. Append the next page in
49
+ * your listener. While the feed is loading the button stays, so focus stays on
54
50
  * it, and it is `aria-disabled` and sends nothing.
55
51
  *
56
52
  * **`error-text` says a page could not be fetched**, such as "Could not load
@@ -64,6 +60,11 @@ declare const HelixHeadlessNotifications_base: (new (...args: any[]) => import("
64
60
  * @aliases Notification feed, Inbox, Activity
65
61
  * @use A record of events you can return to and mark read.
66
62
  * @instead toast - A message that leaves on its own.
63
+ * @anatomy header
64
+ * @anatomy mark-all?
65
+ * @anatomy notification
66
+ * @practice Set `loading` while the next page is on its way, and take `load-more` off once there is none. - Rows that arrive while `loading` is set are not announced as new.
67
+ * @practice Set `total` when the feed holds one page of a longer list. - Each row then says its place in the whole list.
67
68
  * @documentation https://fusion.dev/helix/components/notifications
68
69
  *
69
70
  * @slot - The notifications.
@@ -25,7 +25,7 @@ declare const HelixHeadlessNumberInput_base: (new (...args: any[]) => import("@f
25
25
  * `format-options` shows the number with `Intl.NumberFormat` in `locale`, as a
26
26
  * currency, a percent or a unit, while the field is not being edited. Focus
27
27
  * shows the number itself, and a typed `$1,200` or `25%` is read back with the
28
- * same options. The value stays the plain number: `1200`, or `0.25` for 25%.
28
+ * same options.
29
29
  * The locale's group separators are read in every field, so `1,234` is a
30
30
  * number in `en-US`.
31
31
  *
@@ -68,6 +68,11 @@ declare const HelixHeadlessNumberInput_base: (new (...args: any[]) => import("@f
68
68
  * @use A number you type or nudge with step buttons, such as a quantity.
69
69
  * @instead slider - A value picked from a range by eye.
70
70
  * @instead steps - Progress through stages.
71
+ * @anatomy label
72
+ * @anatomy decrement
73
+ * @anatomy control
74
+ * @anatomy increment
75
+ * @practice Set `value` as a plain number, such as `0.25` for 25%, whatever `format-options` shows. - The format is only what the field shows while it is not being edited, and the form receives the plain number.
71
76
  * @documentation https://fusion.dev/helix/components/number-input
72
77
  *
73
78
  * @slot decrement-icon - Replaces the icon on the step down button.
@@ -29,9 +29,8 @@ export type ObjectInspectorRenderer = (value: unknown, entry: ObjectInspectorEnt
29
29
  * or a raw record, as a read-only tree with each entry's type visible.
30
30
  *
31
31
  * Pass the object to `value`, or name a `<script type="application/json">` by
32
- * id with `for`, the same source `VirtualList` and the charts read. JSON text
33
- * works with server rendering and with React hydration, which skips object
34
- * properties. `value` wins when both are set.
32
+ * id with `for`, the same source `VirtualList` and the charts read. `value`
33
+ * wins when both are set.
35
34
  *
36
35
  * **Keyboard.** The tree is one tab stop, and focus moves from row to row.
37
36
  *
@@ -90,13 +89,22 @@ export type ObjectInspectorRenderer = (value: unknown, entry: ObjectInspectorEnt
90
89
  * key. Filtering and copying still read the value itself.
91
90
  *
92
91
  * `windowed` draws only the rows in view, for values with thousands of entries.
93
- * The box needs a height for windowing to work. The styled tier sets one, and
94
- * in the headless tier you set it yourself.
95
92
  *
96
93
  * @since 0.1.0
97
94
  * @status stable
98
95
  * @category data
99
96
  * @aliases JSON viewer, Object viewer, Inspector, Data explorer
97
+ * @use A structured value, such as an API response, read as a tree you open and copy from.
98
+ * @instead code-block - A value shown as formatted text, such as JSON in the docs.
99
+ * @instead tree - A hierarchy you navigate, such as the files of a project.
100
+ * @instead description-list - One level of labels and their values.
101
+ * @anatomy header?
102
+ * @anatomy copy
103
+ * @anatomy toggle
104
+ * @anatomy key
105
+ * @anatomy count
106
+ * @practice Name a JSON script with `for` on a page a server renders or React hydrates. - JSON text works with server rendering and with React hydration, which skips object properties.
107
+ * @practice {windowed} Give a `windowed` inspector a height on the headless tier. - Windowing works only in a box with a height, and the styled tier sets one.
100
108
  * @documentation https://fusion.dev/helix/components/object-inspector
101
109
  *
102
110
  * @slot empty - Shown in the tree while it has no entries to show. Defaults to `empty-text`, or `no-matches-label` while a filter matched none.
@@ -27,16 +27,21 @@ export { isOption, optionsAmong } from '../among.js';
27
27
  * option's description. A name you give with `aria-label` or
28
28
  * `aria-labelledby` wins over both.
29
29
  *
30
- * **An image goes in `media`, above the label**, for an option drawn as a
31
- * tile, such as a photo or a product in a listbox with `layout="grid"`. The
32
- * row is still the option: choosing, the arrow keys and the highlight work as
33
- * they do on a row with no image, and the label stays its name, so give the
34
- * image an empty `alt`.
30
+ * An option can be drawn as a tile, such as a photo or a product in a listbox
31
+ * with `layout="grid"`. Choosing, the arrow keys and the highlight work as
32
+ * they do on a row with no image.
35
33
  *
36
34
  * @since 0.1.0
37
35
  * @status stable
38
36
  * @category forms
39
37
  * @aliases Item
38
+ * @use A choice you write inside a Select, a Listbox, or a Combobox.
39
+ * @instead radio - One choice from a group of radios on the page.
40
+ * @instead toggle - One option in a group of toggles, such as list or grid.
41
+ * @instead menu - A command that runs when you choose it.
42
+ * @anatomy item
43
+ * @anatomy label
44
+ * @practice Put a tile's image in `media`, with empty alternative text. - The row stays the option, and its label stays its name.
40
45
  * @documentation https://fusion.dev/helix/components/option
41
46
  *
42
47
  * @slot - The option's label.
@@ -20,9 +20,6 @@ import { type Branch } from '../levels.js';
20
20
  *
21
21
  * A heading slotted into `heading` names the navigation, in place of `label`.
22
22
  *
23
- * In a contents rail with a scrollbar of its own, `follow` keeps the link of
24
- * the section in view showing as the reader scrolls the page.
25
- *
26
23
  * **Keyboard.** The links are your anchors, in the tab order as you wrote
27
24
  * them, so the outline adds no keys of its own: Tab moves through the links
28
25
  * and Enter follows one. Following a link moves focus to its section, so the
@@ -68,6 +65,12 @@ import { type Branch } from '../levels.js';
68
65
  * @status stable
69
66
  * @category navigation
70
67
  * @aliases Table of contents, On this page, Outline
68
+ * @use Links to the headings of a long page, such as a guide, with the section in view marked.
69
+ * @instead navigation - Links to the pages of a site.
70
+ * @anatomy nav
71
+ * @anatomy indicator
72
+ * @practice Set `data-level` on each link to its heading's level, `2` through `6`. - The outline does not read heading levels from the document, because the headings are not always in it.
73
+ * @practice Set `follow` on an outline with a scrollbar of its own. - It keeps the link of the section in view showing as you scroll the page.
71
74
  * @documentation https://fusion.dev/helix/components/outline
72
75
  *
73
76
  * @slot - The links, as anchors with fragment hrefs, or lists holding them.
@@ -17,22 +17,25 @@ import { type CSSResultGroup, type PropertyValues, type TemplateResult } from 'l
17
17
  * A gap appears only where it hides more than one page. A gap is a control: it
18
18
  * goes to the middle of the pages it hides, so any page is a few presses away.
19
19
  *
20
- * Set `href` to render every page as an `<a>`, with `{page}` replaced by the
21
- * page number. The links can be crawled, a middle click opens a tab, and the
22
- * address bar holds the state. Without `href` the pages are buttons, for a
20
+ * Without `href` the pages are buttons, for a
23
21
  * table that pages in place. Either way, a click dispatches
24
22
  * `helix-before-navigate` first. Call `preventDefault()` to stop both the
25
23
  * navigation and the page change, for example to hand navigation to a router.
26
24
  * `helix-navigate` follows once the page has moved. There is no `change`,
27
25
  * because moving to another page selects nothing.
28
26
  *
29
- * `Pagination.Summary` and `Pagination.Size` are separate elements that you
30
- * place beside this one, so you choose where they go and in what order.
31
- *
32
27
  * @since 0.1.0
33
28
  * @status stable
34
29
  * @category navigation
35
30
  * @aliases Pager, Page nav
31
+ * @use Results split into numbered pages, such as a search with hundreds of matches.
32
+ * @instead virtual-list - A long list you scroll through without pages.
33
+ * @instead data-table - Rows of a table, which has paging of its own.
34
+ * @anatomy previous
35
+ * @anatomy page
36
+ * @anatomy next
37
+ * @practice {links} Set `href` to render every page as a link, with `{page}` replaced by the page number. - The links can be crawled, a middle click opens a tab, and the address bar holds the state.
38
+ * @practice {footer} Place `Pagination.Summary` and `Pagination.Size` beside the pagination. - They are separate elements, so you choose where they go and in what order.
36
39
  * @documentation https://fusion.dev/helix/components/pagination
37
40
  *
38
41
  * @slot first-icon - The glyph on the jump-to-first control, usually a double caret.
@@ -63,6 +63,12 @@ declare const HelixHeadlessPinInput_base: (new (...args: any[]) => import("@fusi
63
63
  * @status stable
64
64
  * @category forms
65
65
  * @aliases PinField, OTP, One-time code, Verification code, InputPin
66
+ * @use A short code typed one character to a box, such as a verification code.
67
+ * @instead input - A password, or any text of no fixed length.
68
+ * @instead number-input - A number, such as a quantity.
69
+ * @anatomy label
70
+ * @anatomy cell
71
+ * @anatomy hint?
66
72
  * @documentation https://fusion.dev/helix/components/pin-input
67
73
  *
68
74
  * @slot feedback - The message that says what is wrong, for content richer than a string. It shows while there is a message.
@@ -21,10 +21,9 @@ declare const HelixHeadlessPopover_base: (new (...args: any[]) => import("@fusio
21
21
  * `z-index`, and an ancestor with `overflow: hidden`, `transform`, `filter`, or
22
22
  * `contain` does not clip or move it.
23
23
  *
24
- * It opens on click and from a command. `command="--show"` and the related
25
- * commands work as they do on `Dialog` and `Drawer`, so a button anywhere on
26
- * the page can open the popover with no script. From its first press, a
27
- * button that opens it this way says whether the popover is open: a Helix
24
+ * It opens on click and from a command, such as `command="--show"`. From its
25
+ * first press, a button that opens it with a command says whether the popover
26
+ * is open: a Helix
28
27
  * button through `expanded`, and any other element with `aria-expanded`.
29
28
  *
30
29
  * **Opening moves focus into the panel**, to the first control in it, or to the
@@ -33,10 +32,9 @@ declare const HelixHeadlessPopover_base: (new (...args: any[]) => import("@fusio
33
32
  * out of the trigger and the panel to somewhere else on the page.
34
33
  *
35
34
  * `modal` keeps `Tab` inside the panel while it is open and says so with
36
- * `aria-modal`, for a panel that has to be answered before the page goes on.
37
- * The rest of the page is hidden from screen readers with `aria-hidden` while
38
- * it is open, so the virtual cursor stays in the panel too, and the page does
39
- * not scroll behind it. Without it the popover does not trap focus.
35
+ * `aria-modal`. The rest of the page is hidden from screen readers with
36
+ * `aria-hidden` while it is open, so the virtual cursor stays in the panel too,
37
+ * and the page does not scroll behind it.
40
38
  *
41
39
  * A press outside closes the panel and leaves focus where the press put it.
42
40
  * Where it put focus nowhere, as a press on text or on the page's background
@@ -82,6 +80,11 @@ declare const HelixHeadlessPopover_base: (new (...args: any[]) => import("@fusio
82
80
  * @instead tooltip - A short text that names its trigger.
83
81
  * @instead menu - A list of commands.
84
82
  * @instead megamenu - A site's navigation sections.
83
+ * @anatomy trigger
84
+ * @anatomy surface
85
+ * @anatomy content
86
+ * @practice {commanded} Open the popover from a button anywhere on the page with `commandfor="<id>"` and `command="--toggle"`. - The invoker attributes need no script, and work as they do on Dialog and Drawer.
87
+ * @practice Set `modal` for a panel that has to be answered before the page goes on. - Without it, the popover does not trap focus.
85
88
  * @documentation https://fusion.dev/helix/components/popover
86
89
  *
87
90
  * @slot - The contents of the panel.
@@ -4,14 +4,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
4
4
  * @summary A bar or ring that shows how far along a task is.
5
5
  *
6
6
  * @description
7
- * Determinate by default. Set `indeterminate` for a task whose total is not
8
- * known yet. Use `Loader` for a short wait or one with no place of its own on
9
- * the page.
7
+ * Determinate by default. Use `Loader` for a short wait or one with no place of
8
+ * its own on the page.
10
9
  *
11
- * The indeterminate bar runs a segment across the track and does not fill, so
12
- * it shows that work is happening without claiming a proportion.
13
- * `aria-valuenow` is omitted in that state, which is the platform's signal for
14
- * the same thing.
10
+ * An indeterminate bar omits `aria-valuenow`, which is the platform's signal
11
+ * that the total is not known.
15
12
  *
16
13
  * The fill is a fraction of the track, written as a custom property.
17
14
  *
@@ -35,6 +32,14 @@ import { type PropertyValues, type TemplateResult } from 'lit';
35
32
  * @status stable
36
33
  * @category feedback
37
34
  * @aliases Progress bar, Loading bar
35
+ * @use How far along a task is, such as an upload or an install.
36
+ * @instead meter - A measurement in a known range, such as disk used.
37
+ * @instead loader - A short wait, or one with no place of its own on the page.
38
+ * @instead scroll-progress - How far you have scrolled through a page or a box.
39
+ * @anatomy track
40
+ * @anatomy indicator
41
+ * @anatomy value?
42
+ * @practice Set `indeterminate` while the total is not known yet. - The bar then runs a segment across the track and claims no proportion.
38
43
  * @documentation https://fusion.dev/helix/components/progress
39
44
  *
40
45
  * @slot - Words drawn on the bar, or in the middle of a ring, such as the reading. Said as the reading where `value-text` is not set.
@@ -32,8 +32,7 @@ export type QrStyle = 'dots' | 'rounded' | 'square';
32
32
  *
33
33
  * A higher level holds fewer characters, so a value that fits at `M` can be too
34
34
  * long once a logo raises the level to `H`. A value too long for the level
35
- * draws no code: the element fires `error`, carries `:state(overflow)`, and
36
- * shows what is in the `fallback` slot, such as the link written out.
35
+ * fires `error` and carries `:state(overflow)`.
37
36
  *
38
37
  * `toSvg()`, `toPng()` and `download()` give the drawn code as a file of its
39
38
  * own, in the colors it is drawn in, with a slotted image or SVG logo where
@@ -45,6 +44,11 @@ export type QrStyle = 'dots' | 'rounded' | 'square';
45
44
  * @status stable
46
45
  * @category media
47
46
  * @aliases QR, Barcode, Scan code
47
+ * @use A link or a short code that you scan with a phone, such as a sign-in link on a screen.
48
+ * @instead copy-button - Text that you paste on the device you are using.
49
+ * @anatomy finders
50
+ * @anatomy modules
51
+ * @practice Write the value out in the `fallback` slot, such as the link as text. - A value too long for the correction level draws no code, and the slot shows in its place.
48
52
  * @documentation https://fusion.dev/helix/components/qr-code
49
53
  *
50
54
  * @slot fallback - Shown in place of the code when the value is too long for it, such as the link as text.
@@ -26,16 +26,13 @@ interface Preset {
26
26
  * </helix-quick-filters>
27
27
  * ```
28
28
  *
29
- * Each button shows how many rows the preset would show, counted from the
30
- * rows the table holds. A table in `server` mode holds one page, so give each
31
- * preset its `count`.
29
+ * Each button shows how many rows the preset would show.
32
30
  *
33
31
  * **Save view.** The last button saves the table's whole view. It fires
34
32
  * `helix-before-view-save` with the view and a name, which you can cancel to
35
33
  * keep the view in your own store, and then `helix-view-save`. With
36
34
  * `view-key`, the view is also kept in this browser's storage under that key
37
- * and drawn after your presets, and a saved preset can be removed. Without
38
- * it, nothing is kept: keep the view from the event.
35
+ * and drawn after your presets, and a saved preset can be removed.
39
36
  *
40
37
  * The buttons are one tab stop, and the arrow keys, Home, and End move among
41
38
  * them, as in a toolbar.
@@ -44,6 +41,14 @@ interface Preset {
44
41
  * @status experimental
45
42
  * @category data
46
43
  * @aliases Saved views, Presets, View tabs
44
+ * @use Saved views of a Data Table, each one press away, with how many rows each shows.
45
+ * @instead tabs - Panels of different content, one shown at a time.
46
+ * @instead filter-input - Filters you type and combine yourself.
47
+ * @anatomy preset
48
+ * @anatomy count
49
+ * @anatomy save
50
+ * @practice Give each preset its `count` for a table in server mode. - A count comes from the rows the table holds, and a table in server mode holds one page.
51
+ * @practice Set `view-key`, or keep a saved view from the save event yourself. - Without a key, Save view keeps nothing.
47
52
  * @documentation https://fusion.dev/helix/components/quick-filters
48
53
  *
49
54
  * @slot - The presets, as `QuickFilter` elements.
@@ -6,11 +6,8 @@ import { type CSSResultGroup, type PropertyValues, type TemplateResult } from 'l
6
6
  * @description
7
7
  * Renders a real `<q>`, so the browser supplies the quotation marks. It inserts
8
8
  * the correct marks for the document's language and nests them correctly when
9
- * one quotation sits inside another. Do not type quotation marks into the
10
- * content: one that starts or ends with a typed mark warns once, with the
11
- * runtime kind `typed-marks`. A quotation in a language other than the page's takes `lang` on the
12
- * element, and its marks follow it: `lang="de"` sets „…“ and `lang="fr"` «…»
13
- * inside an English page.
9
+ * one quotation sits inside another. A quotation that starts or ends with a
10
+ * typed mark warns once, with the runtime kind `typed-marks`.
14
11
  *
15
12
  * **`no-marks` leaves the marks off**, for a quotation whose marks the page
16
13
  * draws itself, such as marks set in an accent color. The quotation still counts toward nesting, so a quote
@@ -26,6 +23,9 @@ import { type CSSResultGroup, type PropertyValues, type TemplateResult } from 'l
26
23
  * @aliases Q, InlineQuote
27
24
  * @use A quotation inside a sentence.
28
25
  * @instead blockquote - A passage set apart, including a pull quote.
26
+ * @anatomy quote
27
+ * @practice Leave quotation marks out of the text. - The browser draws the marks for the language, so a typed one shows twice.
28
+ * @practice {languages} Write the language on a quotation in another language, such as `lang="fr"`. - Its marks follow it, so `lang="fr"` sets «…» inside an English page.
29
29
  * @documentation https://fusion.dev/helix/components/quote
30
30
  *
31
31
  * @slot - The quoted text.
@@ -10,9 +10,8 @@ declare const HelixHeadlessRadio_base: (new (...args: any[]) => import("@fusion.
10
10
  * it. The group is the form control, so each radio only exposes its role and
11
11
  * dispatches an event when it is chosen.
12
12
  *
13
- * The radio has no label of its own. Its content names it, and the label, the
14
- * hint, and the message of the set belong to the group. It is the only control
15
- * in the family that takes nothing from `MixinField`.
13
+ * The radio is the only control in the family that takes nothing from
14
+ * `MixinField`.
16
15
  *
17
16
  * When a radio is chosen, it dispatches an event, the group determines whether
18
17
  * the choice stands, and the group writes `selected` back. The group is the one
@@ -25,6 +24,10 @@ declare const HelixHeadlessRadio_base: (new (...args: any[]) => import("@fusion.
25
24
  * @use One choice from up to five options, each with a label or a sentence of its own.
26
25
  * @instead toggle - A compact choice of view or mode.
27
26
  * @instead select - More options than fit on the page.
27
+ * @anatomy group
28
+ * @anatomy box
29
+ * @anatomy label
30
+ * @practice Set the label, the hint, and the message on the `Radio.Group`. - They belong to the set, and a radio has no label of its own: its content names it.
28
31
  * @documentation https://fusion.dev/helix/components/radio
29
32
  *
30
33
  * @slot - The radio's label.