@fusion.dev/helix-headless 0.247.1 → 0.248.2

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 (186) hide show
  1. package/README.md +1 -1
  2. package/api.json +1 -1
  3. package/custom-elements.json +1 -1
  4. package/dist/accordion/item/accordion-item.d.ts +1 -1
  5. package/dist/accordion/root/accordion-root.d.ts +11 -2
  6. package/dist/announcement/root/announcement-root.d.ts +9 -8
  7. package/dist/app-header/root/app-header-root.d.ts +13 -9
  8. package/dist/area-chart/root/area-chart-root.d.ts +13 -5
  9. package/dist/avatar/group/avatar-group.d.ts +1 -1
  10. package/dist/avatar/root/avatar-root.d.ts +4 -1
  11. package/dist/badge/root/badge-root.d.ts +3 -7
  12. package/dist/bar-chart/root/bar-chart-root.d.ts +11 -3
  13. package/dist/blockquote/root/blockquote-root.d.ts +8 -5
  14. package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +1 -1
  15. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +10 -4
  16. package/dist/button/root/button-root.d.ts +8 -9
  17. package/dist/button-group/root/button-group-root.d.ts +8 -4
  18. package/dist/callout/root/callout-root.d.ts +6 -3
  19. package/dist/canvas/edge/canvas-edge.d.ts +1 -1
  20. package/dist/canvas/node/canvas-node.d.ts +1 -1
  21. package/dist/canvas/root/canvas-root.d.ts +9 -8
  22. package/dist/card/root/card-root.d.ts +5 -1
  23. package/dist/carousel/root/carousel-root.d.ts +12 -4
  24. package/dist/chat/composer/chat-composer.d.ts +1 -1
  25. package/dist/chat/message/chat-message.d.ts +1 -1
  26. package/dist/chat/root/chat-root.d.ts +16 -17
  27. package/dist/checkbox/root/checkbox-root.d.ts +7 -4
  28. package/dist/checkbox-group/root/checkbox-group-root.d.ts +13 -9
  29. package/dist/code/root/code-root.d.ts +7 -4
  30. package/dist/code-block/root/code-block-root.d.ts +15 -8
  31. package/dist/code-editor/root/code-editor-root.d.ts +18 -7
  32. package/dist/code-input/root/code-input-root.d.ts +11 -6
  33. package/dist/color-input/root/color-input-root.d.ts +8 -1
  34. package/dist/color-picker/root/color-picker-root.d.ts +7 -1
  35. package/dist/column-manager/root/column-manager-root.d.ts +13 -5
  36. package/dist/combobox/root/combobox-root.d.ts +7 -13
  37. package/dist/command/root/command-root.d.ts +14 -9
  38. package/dist/copy-button/root/copy-button-root.d.ts +9 -4
  39. package/dist/data-table/root/data-table-root.d.ts +19 -15
  40. package/dist/date-input/root/date-input-root.d.ts +9 -1
  41. package/dist/date-picker/root/date-picker-root.d.ts +12 -8
  42. package/dist/description-list/item/description-list-item.d.ts +1 -1
  43. package/dist/description-list/root/description-list-root.d.ts +7 -1
  44. package/dist/device-screen/root/device-screen-root.d.ts +14 -9
  45. package/dist/dialog/root/dialog-root.d.ts +7 -5
  46. package/dist/divider/root/divider-root.d.ts +7 -5
  47. package/dist/donut-chart/root/donut-chart-root.d.ts +9 -7
  48. package/dist/drawer/root/drawer-root.d.ts +9 -11
  49. package/dist/drilldown/item/drilldown-item.d.ts +1 -1
  50. package/dist/drilldown/root/drilldown-root.d.ts +12 -7
  51. package/dist/editor/root/editor-root.d.ts +12 -3
  52. package/dist/empty/root/empty-root.d.ts +7 -5
  53. package/dist/file-input/root/file-input-root.d.ts +6 -1
  54. package/dist/filter-input/chip/filter-chip.d.ts +1 -1
  55. package/dist/filter-input/field/filter-field.d.ts +1 -1
  56. package/dist/filter-input/menu/filter-menu.d.ts +1 -1
  57. package/dist/filter-input/operator/filter-operator.d.ts +1 -1
  58. package/dist/filter-input/root/filter-input-root.d.ts +21 -29
  59. package/dist/find/root/find-root.d.ts +10 -1
  60. package/dist/format-date/root/format-date-root.d.ts +10 -5
  61. package/dist/graph/root/graph-root.d.ts +11 -5
  62. package/dist/heatmap/root/heatmap-root.d.ts +11 -4
  63. package/dist/hover-card/root/hover-card-root.d.ts +9 -7
  64. package/dist/icon/root/icon-root.d.ts +8 -4
  65. package/dist/icon-button/root/icon-button-root.d.ts +5 -1
  66. package/dist/image/root/image-root.d.ts +5 -1
  67. package/dist/input/root/input-root.d.ts +10 -3
  68. package/dist/kbd/root/kbd-root.d.ts +8 -12
  69. package/dist/legend/root/legend-root.d.ts +11 -8
  70. package/dist/lightbox/item/lightbox-item.d.ts +1 -1
  71. package/dist/lightbox/root/lightbox-root.d.ts +16 -9
  72. package/dist/line-chart/root/line-chart-root.d.ts +13 -8
  73. package/dist/list/item/list-item.d.ts +1 -1
  74. package/dist/list/root/list-root.d.ts +17 -12
  75. package/dist/listbox/root/listbox-root.d.ts +11 -18
  76. package/dist/loader/root/loader-root.d.ts +13 -9
  77. package/dist/log/group/log-group.d.ts +1 -1
  78. package/dist/log/line/log-line.d.ts +1 -1
  79. package/dist/log/root/log-root.d.ts +12 -4
  80. package/dist/map/area/map-area.d.ts +1 -1
  81. package/dist/map/buildings/map-buildings.d.ts +1 -1
  82. package/dist/map/contours/map-contours.d.ts +1 -1
  83. package/dist/map/landcover/map-landcover.d.ts +1 -1
  84. package/dist/map/marker/map-marker.d.ts +1 -1
  85. package/dist/map/points/map-points.d.ts +1 -1
  86. package/dist/map/position/map-position.d.ts +1 -1
  87. package/dist/map/raster/map-raster.d.ts +1 -1
  88. package/dist/map/root/map-root.d.ts +12 -7
  89. package/dist/map/route/map-route.d.ts +1 -1
  90. package/dist/map/terrain/map-terrain.d.ts +1 -1
  91. package/dist/markdown/root/markdown-root.d.ts +13 -9
  92. package/dist/megamenu/root/megamenu-root.d.ts +7 -4
  93. package/dist/menu/item/menu-item.d.ts +1 -1
  94. package/dist/menu/root/menu-root.d.ts +15 -22
  95. package/dist/menu/section/menu-section.d.ts +1 -1
  96. package/dist/meter/root/meter-root.d.ts +15 -8
  97. package/dist/meter/segment/meter-segment.d.ts +1 -1
  98. package/dist/motion-toggle/root/motion-toggle-root.d.ts +6 -1
  99. package/dist/navigation/root/navigation-root.d.ts +10 -4
  100. package/dist/notifications/group/notification-group.d.ts +1 -1
  101. package/dist/notifications/notification/notification.d.ts +1 -1
  102. package/dist/notifications/root/notifications-root.d.ts +10 -9
  103. package/dist/number-input/root/number-input-root.d.ts +7 -2
  104. package/dist/object-inspector/root/object-inspector-root.d.ts +14 -6
  105. package/dist/option/group/option-group.d.ts +1 -1
  106. package/dist/option/root/option-root.d.ts +11 -6
  107. package/dist/option/separator/option-separator.d.ts +1 -1
  108. package/dist/outline/root/outline-root.d.ts +7 -4
  109. package/dist/pagination/root/pagination-root.d.ts +10 -7
  110. package/dist/pagination/size/pagination-size.d.ts +1 -1
  111. package/dist/pagination/summary/pagination-summary.d.ts +1 -1
  112. package/dist/pin-input/root/pin-input-root.d.ts +7 -1
  113. package/dist/popover/root/popover-root.d.ts +12 -9
  114. package/dist/progress/root/progress-root.d.ts +13 -8
  115. package/dist/qr-code/root/qr-code-root.d.ts +7 -3
  116. package/dist/quick-filters/filter/quick-filter.d.ts +1 -1
  117. package/dist/quick-filters/root/quick-filters-root.d.ts +11 -6
  118. package/dist/quote/root/quote-root.d.ts +6 -6
  119. package/dist/radio/group/radio-group.d.ts +1 -1
  120. package/dist/radio/root/radio-root.d.ts +7 -4
  121. package/dist/rating/root/rating-root.d.ts +11 -6
  122. package/dist/scatter-chart/root/scatter-chart-root.d.ts +14 -8
  123. package/dist/scroll-area/root/scroll-area-root.d.ts +4 -1
  124. package/dist/select/root/select-root.d.ts +9 -16
  125. package/dist/selection-bar/root/selection-bar-root.d.ts +12 -7
  126. package/dist/shortcut-overlay/root/shortcut-overlay-root.d.ts +10 -8
  127. package/dist/skeleton/root/skeleton-root.d.ts +9 -10
  128. package/dist/skip-link/root/skip-link-root.d.ts +3 -1
  129. package/dist/slider/root/slider-root.d.ts +14 -8
  130. package/dist/sparkline/root/sparkline-root.d.ts +9 -11
  131. package/dist/spatial-bar-chart/root/spatial-bar-chart-root.d.ts +7 -1
  132. package/dist/spatial-heatmap/root/spatial-heatmap-root.d.ts +8 -1
  133. package/dist/spatial-ribbon-chart/root/spatial-ribbon-chart-root.d.ts +7 -1
  134. package/dist/spatial-scatter-chart/root/spatial-scatter-chart-root.d.ts +8 -1
  135. package/dist/spatial-surface-chart/root/spatial-surface-chart-root.d.ts +8 -1
  136. package/dist/spatial-treemap/root/spatial-treemap-root.d.ts +7 -1
  137. package/dist/speed-dial/group/speed-dial-group.d.ts +1 -1
  138. package/dist/speed-dial/item/speed-dial-item.d.ts +1 -1
  139. package/dist/speed-dial/root/speed-dial-root.d.ts +13 -5
  140. package/dist/splitter/root/splitter-root.d.ts +17 -14
  141. package/dist/stat/group/stat-group.d.ts +1 -1
  142. package/dist/stat/root/stat-root.d.ts +25 -8
  143. package/dist/stat/root/stat-root.js +8 -2
  144. package/dist/steps/root/steps-root.d.ts +6 -4
  145. package/dist/steps/step/step.d.ts +1 -1
  146. package/dist/switch/root/switch-root.d.ts +7 -2
  147. package/dist/table/cell/table-cell.d.ts +1 -1
  148. package/dist/table/column/table-column.d.ts +1 -1
  149. package/dist/table/root/table-root.d.ts +14 -9
  150. package/dist/table/row/table-row.d.ts +1 -1
  151. package/dist/table-export/root/table-export-root.d.ts +11 -3
  152. package/dist/tabs/panel/tab-panel.d.ts +1 -1
  153. package/dist/tabs/root/tabs-root.d.ts +11 -3
  154. package/dist/tabs/tab/tab.d.ts +1 -1
  155. package/dist/tag/group/tag-group.d.ts +1 -1
  156. package/dist/tag/root/tag-root.d.ts +4 -4
  157. package/dist/terminal/root/terminal-root.d.ts +13 -6
  158. package/dist/textarea/root/textarea-root.d.ts +8 -1
  159. package/dist/theme-toggle/root/theme-toggle-root.d.ts +9 -4
  160. package/dist/time-input/root/time-input-root.d.ts +11 -5
  161. package/dist/time-picker/root/time-picker-root.d.ts +13 -10
  162. package/dist/timeline/group/timeline-group.d.ts +1 -1
  163. package/dist/timeline/item/timeline-item.d.ts +1 -1
  164. package/dist/timeline/root/timeline-root.d.ts +19 -11
  165. package/dist/toast/item/toast-item.d.ts +1 -1
  166. package/dist/toast/root/toast-root.d.ts +15 -15
  167. package/dist/toggle/group/toggle-group.d.ts +1 -1
  168. package/dist/toggle/root/toggle-root.d.ts +4 -1
  169. package/dist/toolbar/root/toolbar-root.d.ts +5 -1
  170. package/dist/tooltip/root/tooltip-root.d.ts +6 -6
  171. package/dist/tour/root/tour-root.d.ts +11 -4
  172. package/dist/tour/stop/tour-stop.d.ts +1 -1
  173. package/dist/tree/item/tree-item.d.ts +1 -1
  174. package/dist/tree/root/tree-root.d.ts +10 -3
  175. package/dist/trend/root/trend-root.d.ts +11 -6
  176. package/dist/video/root/video-root.d.ts +13 -10
  177. package/dist/video-playlist/item/video-playlist-item.d.ts +1 -1
  178. package/dist/video-playlist/menu/video-playlist-menu.d.ts +1 -1
  179. package/dist/video-playlist/root/video-playlist-root.d.ts +11 -6
  180. package/dist/view-panel/root/view-panel-root.d.ts +14 -8
  181. package/dist/virtual-list/root/virtual-list-root.d.ts +13 -8
  182. package/examples.json +1 -1
  183. package/lint.json +1 -1
  184. package/package.json +5 -5
  185. package/types/jsx.d.ts +266 -623
  186. package/types/vue.d.ts +267 -624
@@ -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,7 +28,17 @@ export type MeterBand = 'fair' | 'good' | 'poor';
31
28
  * @status stable
32
29
  * @category feedback
33
30
  * @aliases Gauge, Level, Capacity
34
- * @documentation https://fusion.dev/helix/components/meter
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.
41
+ * @documentation https://fusion.dev/design/components/meter
35
42
  *
36
43
  * @slot - `Meter.Segment` elements, one for each share of the whole, drawn in the bar.
37
44
  * @slot label - A visible label. Its words name the meter in place of `label`.
@@ -24,7 +24,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
24
24
  * @since 0.1.0
25
25
  * @status experimental
26
26
  * @category feedback
27
- * @documentation https://fusion.dev/helix/components/meter
27
+ * @documentation https://fusion.dev/design/components/meter
28
28
  *
29
29
  * @slot - Nothing. A segment draws its share and has no content.
30
30
  *
@@ -33,7 +33,12 @@ 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
- * @documentation https://fusion.dev/helix/components/motion-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
41
+ * @documentation https://fusion.dev/design/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`.
39
44
  * @slot icon - Replaces the icon, which is pause while motion runs and play while it is paused.
@@ -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,7 +65,14 @@ import '../../menu/index.js';
66
65
  * @status stable
67
66
  * @category navigation
68
67
  * @aliases Nav, NavList, Tabs
69
- * @documentation https://fusion.dev/helix/components/navigation
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.
75
+ * @documentation https://fusion.dev/design/components/navigation
70
76
  *
71
77
  * @slot - The destinations, as your own links.
72
78
  * @slot indicator - A marker of your own, drawn inside the `indicator` part, where the current destination's place and size reach it.
@@ -25,7 +25,7 @@ declare const HelixHeadlessNotificationGroup_base: (new (...args: any[]) => impo
25
25
  * @status stable
26
26
  * @category feedback
27
27
  * @aliases NotificationSection, FeedGroup
28
- * @documentation https://fusion.dev/helix/components/notifications
28
+ * @documentation https://fusion.dev/design/components/notifications
29
29
  *
30
30
  * @slot - The notifications in this group.
31
31
  * @slot actions - Beside the count, for a link to the rest of them.
@@ -27,7 +27,7 @@ declare const HelixHeadlessNotification_base: (new (...args: any[]) => import("@
27
27
  * @status stable
28
28
  * @category feedback
29
29
  * @aliases Notification item, Inbox item
30
- * @documentation https://fusion.dev/helix/components/notifications
30
+ * @documentation https://fusion.dev/design/components/notifications
31
31
  *
32
32
  * @slot - What happened, in your own markup.
33
33
  * @slot actions - Actions the user can take, shown under the text. They are always visible,
@@ -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,7 +60,12 @@ 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.
67
- * @documentation https://fusion.dev/helix/components/notifications
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.
68
+ * @documentation https://fusion.dev/design/components/notifications
68
69
  *
69
70
  * @slot - The notifications.
70
71
  * @slot empty - Replaces the words of `empty-text` in the `empty` part, such as a picture and a line of your own. The live region still says `empty-text`.
@@ -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,7 +68,12 @@ 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
- * @documentation https://fusion.dev/helix/components/number-input
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.
76
+ * @documentation https://fusion.dev/design/components/number-input
72
77
  *
73
78
  * @slot decrement-icon - Replaces the icon on the step down button.
74
79
  * @slot end - Content after the number, such as a unit.
@@ -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,14 +89,23 @@ 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
100
- * @documentation https://fusion.dev/helix/components/object-inspector
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.
108
+ * @documentation https://fusion.dev/design/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.
103
111
  *
@@ -15,7 +15,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
15
15
  * @since 0.1.0
16
16
  * @status stable
17
17
  * @aliases OptGroup, Section
18
- * @documentation https://fusion.dev/helix/components/option
18
+ * @documentation https://fusion.dev/design/components/option
19
19
  *
20
20
  * @slot - The options in the group.
21
21
  * @slot label - The group's heading, for a heading that needs more than plain text.
@@ -27,17 +27,22 @@ 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
40
- * @documentation https://fusion.dev/helix/components/option
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.
45
+ * @documentation https://fusion.dev/design/components/option
41
46
  *
42
47
  * @slot - The option's label.
43
48
  * @slot description - A second line under the label, for content richer than the `description` text.
@@ -17,7 +17,7 @@ import { nothing, type PropertyValues } from 'lit';
17
17
  * @since 0.1.0
18
18
  * @status stable
19
19
  * @aliases Divider, ListBoxSeparator
20
- * @documentation https://fusion.dev/helix/components/option
20
+ * @documentation https://fusion.dev/design/components/option
21
21
  */
22
22
  export declare class HelixHeadlessOptionSeparator extends HelixElement {
23
23
  protected willUpdate(changed: PropertyValues): void;
@@ -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,7 +65,13 @@ import { type Branch } from '../levels.js';
68
65
  * @status stable
69
66
  * @category navigation
70
67
  * @aliases Table of contents, On this page, Outline
71
- * @documentation https://fusion.dev/helix/components/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.
74
+ * @documentation https://fusion.dev/design/components/outline
72
75
  *
73
76
  * @slot - The links, as anchors with fragment hrefs, or lists holding them.
74
77
  * @slot heading - A heading above the links, such as "On this page". It names the navigation.
@@ -17,23 +17,26 @@ 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
36
- * @documentation https://fusion.dev/helix/components/pagination
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.
39
+ * @documentation https://fusion.dev/design/components/pagination
37
40
  *
38
41
  * @slot first-icon - The glyph on the jump-to-first control, usually a double caret.
39
42
  * @slot last-icon - The glyph on the jump-to-last control, usually a double caret.
@@ -41,7 +41,7 @@ import '../../select/index.js';
41
41
  * @since 0.1.0
42
42
  * @status stable
43
43
  * @aliases Page size, Rows per page
44
- * @documentation https://fusion.dev/helix/components/pagination
44
+ * @documentation https://fusion.dev/design/components/pagination
45
45
  *
46
46
  * @event {Event} change - Fired after the size changes.
47
47
  * @event {HelixBeforeChangeEvent} helix-before-change - Fired before the size changes, and cancelable. Canceling it is the only way to stop a size change.
@@ -18,7 +18,7 @@ import { type TemplateResult } from 'lit';
18
18
  * @since 0.1.0
19
19
  * @status stable
20
20
  * @aliases Result count
21
- * @documentation https://fusion.dev/helix/components/pagination
21
+ * @documentation https://fusion.dev/design/components/pagination
22
22
  */
23
23
  export declare class HelixHeadlessPaginationSummary extends HelixElement {
24
24
  /**
@@ -63,7 +63,13 @@ 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
- * @documentation https://fusion.dev/helix/components/pin-input
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?
72
+ * @documentation https://fusion.dev/design/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.
69
75
  * @slot hint - Help under the control, for content richer than the `hint` text.
@@ -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,7 +80,12 @@ 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.
85
- * @documentation https://fusion.dev/helix/components/popover
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.
88
+ * @documentation https://fusion.dev/design/components/popover
86
89
  *
87
90
  * @slot - The contents of the panel.
88
91
  * @slot trigger - The element that opens 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,7 +32,15 @@ import { type PropertyValues, type TemplateResult } from 'lit';
35
32
  * @status stable
36
33
  * @category feedback
37
34
  * @aliases Progress bar, Loading bar
38
- * @documentation https://fusion.dev/helix/components/progress
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.
43
+ * @documentation https://fusion.dev/design/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.
41
46
  * @slot label - A visible label. Its words name the progress bar in place of `label`.
@@ -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,7 +44,12 @@ export type QrStyle = 'dots' | 'rounded' | 'square';
45
44
  * @status stable
46
45
  * @category media
47
46
  * @aliases QR, Barcode, Scan code
48
- * @documentation https://fusion.dev/helix/components/qr-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.
52
+ * @documentation https://fusion.dev/design/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.
51
55
  * @slot logo - A logo for the center. A code with a logo scans only at a high correction level.
@@ -20,7 +20,7 @@ import { type PartialView } from '../../data-table/view.js';
20
20
  * @status experimental
21
21
  * @category data
22
22
  * @aliases Preset, Saved filter, View tab
23
- * @documentation https://fusion.dev/helix/components/quick-filters
23
+ * @documentation https://fusion.dev/design/components/quick-filters
24
24
  *
25
25
  * @slot - The preset's name.
26
26
  */
@@ -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,7 +41,15 @@ interface Preset {
44
41
  * @status experimental
45
42
  * @category data
46
43
  * @aliases Saved views, Presets, View tabs
47
- * @documentation https://fusion.dev/helix/components/quick-filters
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.
52
+ * @documentation https://fusion.dev/design/components/quick-filters
48
53
  *
49
54
  * @slot - The presets, as `QuickFilter` elements.
50
55
  *
@@ -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,7 +23,10 @@ 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.
29
- * @documentation https://fusion.dev/helix/components/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
+ * @documentation https://fusion.dev/design/components/quote
30
30
  *
31
31
  * @slot - The quoted text.
32
32
  *
@@ -48,7 +48,7 @@ declare const HelixHeadlessRadioGroup_base: (new (...args: any[]) => import("@fu
48
48
  * @since 0.1.0
49
49
  * @status stable
50
50
  * @aliases RadioButtons, Choice group
51
- * @documentation https://fusion.dev/helix/components/radio
51
+ * @documentation https://fusion.dev/design/components/radio
52
52
  *
53
53
  * @slot - The radios.
54
54
  * @slot feedback - The error message, for content richer than a string. It shows while there is a message.
@@ -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,7 +24,11 @@ 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.
28
- * @documentation https://fusion.dev/helix/components/radio
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.
31
+ * @documentation https://fusion.dev/design/components/radio
29
32
  *
30
33
  * @slot - The radio's label.
31
34
  * @slot icon - An icon shown beside the label. With `chip`, the icon
@@ -6,15 +6,12 @@ declare const HelixHeadlessRating_base: (new (...args: any[]) => import("@fusion
6
6
  *
7
7
  * @description
8
8
  * Supports half marks, so the value is not always an integer and the press
9
- * targets are not the marks: five stars at a half step give ten places to
10
- * press. The pointer handling and `step` are built around half marks.
9
+ * targets are not the marks. The pointer handling and `step` are built around
10
+ * half marks.
11
11
  *
12
12
  * A partial mark is the full mark, clipped. The filled marks are drawn over the
13
13
  * empty marks and cut off partway, so any mark and any fraction work.
14
14
  *
15
- * A read-only rating displays a score, which is the most common use. It is
16
- * announced as a displayed value and does not look disabled.
17
- *
18
15
  * With `clearable`, pressing the chosen score again, or Backspace or Delete on
19
16
  * the marks, takes the rating back to unrated and sends `helix-clear`.
20
17
  *
@@ -37,7 +34,15 @@ declare const HelixHeadlessRating_base: (new (...args: any[]) => import("@fusion
37
34
  * @status stable
38
35
  * @category forms
39
36
  * @aliases Stars, Score, Review score
40
- * @documentation https://fusion.dev/helix/components/rating
37
+ * @use A score given or shown as a row of marks, such as stars on a review.
38
+ * @instead slider - A value picked from a long range by dragging.
39
+ * @instead meter - A measurement in a known range, such as storage used.
40
+ * @anatomy label
41
+ * @anatomy fill
42
+ * @anatomy track
43
+ * @practice {halves} Set `step` to `0.5` for half marks. - Five marks at a half step give ten places to press.
44
+ * @practice {review-summary} Set `readonly` to show a score. - A read-only rating is announced as a displayed value and does not look disabled.
45
+ * @documentation https://fusion.dev/design/components/rating
41
46
  *
42
47
  * @slot empty-mark - The shape of an unfilled mark, copied into every position of the track, such as an outlined star beside a filled `mark`. Without it, the track copies `mark`.
43
48
  * @slot feedback - The message that says what is wrong, for content richer than a string. It shows while there is a message.