@fusion.dev/helix-headless 0.247.0 → 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
@@ -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,6 +34,14 @@ declare const HelixHeadlessRating_base: (new (...args: any[]) => import("@fusion
37
34
  * @status stable
38
35
  * @category forms
39
36
  * @aliases Stars, Score, Review score
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.
40
45
  * @documentation https://fusion.dev/helix/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`.
@@ -29,11 +29,9 @@ declare const HelixHeadlessScatterChart_base: typeof HelixElement & (new (...arg
29
29
  * @summary A chart that shows whether two measures move together, with one point per row.
30
30
  *
31
31
  * @description
32
- * A scatter chart shows how two measures relate. The table's first numeric
33
- * column is measured across, every other numeric column is measured up, and
34
- * each row is one point. A table of countries with an income column and a life
35
- * expectancy column draws one point for each country. Each additional numeric
36
- * column is another series, in its own color.
32
+ * A scatter chart shows how two measures relate. A table of countries with an
33
+ * income column and a life expectancy column draws one point for each country.
34
+ * Each additional numeric column is another series, in its own color.
37
35
  *
38
36
  * Both axes are labeled, because both positions are values. The ticks sit at
39
37
  * round numbers, and the range extends to them.
@@ -79,8 +77,7 @@ declare const HelixHeadlessScatterChart_base: typeof HelixElement & (new (...arg
79
77
  *
80
78
  * **`data` takes the readings as data** where the page has no table to point
81
79
  * `for` at, in a table's shape: the column headings, then one row per reading
82
- * with its label first. A table is still the better source where the page can
83
- * show one, since it reads before any script runs.
80
+ * with its label first.
84
81
  *
85
82
  * **A chart with nothing to draw says so.** A table with no readings shows
86
83
  * `empty-text`, "No readings", in the plot, and `loading` shows `loading-text`
@@ -106,6 +103,15 @@ declare const HelixHeadlessScatterChart_base: typeof HelixElement & (new (...arg
106
103
  * @status stable
107
104
  * @category charts
108
105
  * @aliases Scatter Plot, XY Chart, Correlation Chart, Dot Plot
106
+ * @use Two measures against each other, one point per row, such as page weight and load time.
107
+ * @instead line-chart - One measure over time.
108
+ * @instead spatial-scatter-chart - Three measures for each row, such as age, spend, and visits.
109
+ * @anatomy y-axis
110
+ * @anatomy points
111
+ * @anatomy x-axis
112
+ * @anatomy x-name
113
+ * @practice Put the measure read across in the first numeric column of the table `for` names. - That column is measured across, every other numeric column is measured up, and each row is one point.
114
+ * @practice Point `for` at a table on the page, and set `data` only where there is none. - A table reads before any script runs.
109
115
  * @documentation https://fusion.dev/helix/components/scatter-chart
110
116
  *
111
117
  * @slot empty - Content shown in place of the drawing when the table has no readings, such as a link to add the first. Falls back to `empty-text`.
@@ -53,6 +53,9 @@ declare const EDGES: readonly ['block-start', 'block-end', 'inline-start', 'inli
53
53
  * @status stable
54
54
  * @category layout
55
55
  * @aliases Scroller, Overflow, Scroll container
56
+ * @use A box of fixed height whose content scrolls, such as release notes in a panel.
57
+ * @instead virtual-list - Thousands of rows, of which only those in view are drawn.
58
+ * @instead log - Output that arrives while you watch, with the newest line kept in view.
56
59
  * @documentation https://fusion.dev/helix/components/scroll-area
57
60
  *
58
61
  * @slot - The content that scrolls.
@@ -13,12 +13,7 @@ declare const HelixHeadlessSelect_base: (new (...args: any[]) => import("@fusion
13
13
  * place for focus to return to when the list closes.
14
14
  *
15
15
  * Your options stay in your light DOM and are slotted through into the listbox,
16
- * so the listbox looks through slots to find them. Write them as `Option`,
17
- * group them in `Option.Group`, and divide them with `Option.Separator`.
18
- * Importing the Option entry registers all three. For a list too long to draw
19
- * whole, set `items` instead: the list draws only the options in sight, as
20
- * Listbox's `items` does, and the trigger, its keys and the form read the
21
- * whole set.
16
+ * so the listbox looks through slots to find them.
22
17
  *
23
18
  * `Select` owns the value, passes it down to the listbox, and takes changes
24
19
  * back, so the value lives in one place. With `multiple`, the value is the
@@ -59,15 +54,6 @@ declare const HelixHeadlessSelect_base: (new (...args: any[]) => import("@fusion
59
54
  * Set `autocomplete` to let a browser's autofill choose, as a native `<select>`
60
55
  * with the same attribute would.
61
56
  *
62
- * **The options are an import of their own.** An option is the Option family's,
63
- * which the select does not register, so a page that writes one imports it
64
- * beside the select:
65
- *
66
- * ```js
67
- * import '@fusion.dev/helix/select'
68
- * import '@fusion.dev/helix/option'
69
- * ```
70
- *
71
57
  * In development, a select holding an option nobody registered says so once the
72
58
  * page has loaded, with the line to add.
73
59
  *
@@ -79,6 +65,13 @@ declare const HelixHeadlessSelect_base: (new (...args: any[]) => import("@fusion
79
65
  * @instead combobox - A list long enough that you type to find the value.
80
66
  * @instead radio - Up to five options you should see without opening anything.
81
67
  * @instead menu - An action that runs when you choose it.
68
+ * @anatomy label
69
+ * @anatomy trigger
70
+ * @anatomy indicator
71
+ * @anatomy surface
72
+ * @practice Import Option beside Select. - An option belongs to the Option family, which Select does not register.
73
+ * @practice Group options with `Option.Group`, and divide them with `Option.Separator`. - The Option import registers all three.
74
+ * @practice Set `items` for a list too long to draw whole. - The list draws only the options in sight, and the trigger, its keys, and the form still read the whole set.
82
75
  * @documentation https://fusion.dev/helix/components/select
83
76
  *
84
77
  * @slot - The options, and any groups of them.
@@ -5,9 +5,8 @@ import { TableBinding, type ToolTable } from '../../data-table/binding.js';
5
5
  * @summary A bar that says how many of a Data Table's rows are selected, with what you can do to them and a way to clear them.
6
6
  *
7
7
  * @description
8
- * Put it in a `DataTable`'s `selection` slot, and it takes the toolbar's
9
- * place while rows are selected. Slot your actions into it, such as Archive
10
- * and Export, and Clear unselects every row.
8
+ * Slot your actions into the bar, such as Archive and Export, and Clear
9
+ * unselects every row.
11
10
  *
12
11
  * ```html
13
12
  * <helix-data-table selectable row-key="id">
@@ -17,14 +16,20 @@ import { TableBinding, type ToolTable } from '../../data-table/binding.js';
17
16
  * </helix-data-table>
18
17
  * ```
19
18
  *
20
- * Written inside the table, it finds the table. Written anywhere else, set
21
- * `for` to the table's id. Clear asks the table with `helix-before-select`,
22
- * as a reader's own choice does.
19
+ * Clear asks the table with `helix-before-select`, as a reader's own choice
20
+ * does.
23
21
  *
24
22
  * @since 0.238.0
25
23
  * @status experimental
26
24
  * @category data
27
25
  * @aliases Bulk actions, Action bar
26
+ * @use Actions on the rows selected in a Data Table, with how many are selected.
27
+ * @instead toolbar - Controls that stay in place whatever is selected.
28
+ * @anatomy count
29
+ * @anatomy actions
30
+ * @anatomy clear
31
+ * @practice Put Selection Bar in the Data Table's selection slot. - It then takes the toolbar's place while rows are selected.
32
+ * @practice Set `for` to the table's id where the bar is written outside the table. - Written inside the table, it finds the table.
28
33
  * @documentation https://fusion.dev/helix/components/selection-bar
29
34
  *
30
35
  * @slot - What you can do to the selected rows, such as buttons.
@@ -21,13 +21,8 @@ type HoldKey = 'alt' | 'ctrl' | 'mod' | 'shift';
21
21
  *
22
22
  * Press `?` outside a text field, or call `showSheet()`, to open the sheet: a
23
23
  * dialog listing every shortcut on the page by name, which is how a keyboard
24
- * or screen reader user gets the same list. Set `sheet-keys` to another chord,
25
- * or to nothing to leave `?` to the page.
26
- *
27
- * Many apps, GitHub and Gmail among them, already give `?` to their own help,
28
- * so a page that answers `?` itself opens both on one press. Such a page sets
29
- * `sheet-keys` to another chord, or to nothing and calls `showSheet()` from
30
- * its own handler.
24
+ * or screen reader user gets the same list. `sheet-keys` set to nothing leaves
25
+ * `?` to the page, which can call `showSheet()` from its own handler.
31
26
  *
32
27
  * The badges are a picture of what the controls already expose, so they are
33
28
  * hidden from assistive technology.
@@ -36,6 +31,13 @@ type HoldKey = 'alt' | 'ctrl' | 'mod' | 'shift';
36
31
  * @status experimental
37
32
  * @category navigation
38
33
  * @aliases Keyboard shortcuts, Shortcut hints, Key tips, Cheat sheet
34
+ * @use A page with many keyboard shortcuts, each shown on its control while you hold a key.
35
+ * @instead kbd - One key or chord written inside a sentence.
36
+ * @instead command - Commands you find by typing.
37
+ * @anatomy badge
38
+ * @anatomy badge-keys
39
+ * @anatomy badge-name
40
+ * @practice Set `sheet-keys` to another chord where your page answers `?` with its own help. - Many apps, GitHub and Gmail among them, give `?` to their own help, and one press then opens both.
39
41
  * @documentation https://fusion.dev/helix/components/shortcut-overlay
40
42
  *
41
43
  * @csspart badge - One control's badge.
@@ -15,17 +15,13 @@ import { type PropertyValues, type TemplateResult } from 'lit';
15
15
  * There is no `shape` property. Whether a placeholder is a line, a block, or a
16
16
  * circle is presentation, which belongs to the styled tier.
17
17
  *
18
- * **Put the real content inside and set `loading`, and the skeleton takes its
19
- * size.** While `loading` is set the content is inert, the host is
20
- * `aria-busy`, and the styled tier hides the content and paints the
21
- * placeholder over its box, so nothing moves when the content arrives. Take
22
- * `loading` off and the content is shown as it is. An empty skeleton is a
18
+ * While `loading` is set the content is inert, the host is `aria-busy`, and
19
+ * the styled tier hides the content and paints the placeholder over its box.
20
+ * Take `loading` off and the content is shown as it is. An empty skeleton is a
23
21
  * placeholder of its own size, as before.
24
22
  *
25
- * **Draw your own placeholder in the `placeholder` slot** where the content is
26
- * not there until it loads, such as a card that is drawn from data: a circle
27
- * and three lines, laid out as the card will be. While `loading` is set the
28
- * placeholder shows and the content is hidden. Once it is off the placeholder
23
+ * While `loading` is set, a placeholder in the `placeholder` slot shows and the
24
+ * content is hidden. Once it is off the placeholder
29
25
  * is hidden and the content shows. The placeholder is hidden from screen
30
26
  * readers. A server cannot see the children, so it serves both, and the
31
27
  * content is hidden once the page has its children.
@@ -37,6 +33,9 @@ import { type PropertyValues, type TemplateResult } from 'lit';
37
33
  * @use The shape of content that is loading, where its layout is known.
38
34
  * @instead loader - Work of unknown length with no layout to hold.
39
35
  * @instead empty - A region that loaded and holds nothing.
36
+ * @anatomy skeleton
37
+ * @practice {loading} Put the real content inside the skeleton and set `loading`. - The skeleton takes the content's size, so nothing moves when the content arrives.
38
+ * @practice {revealing} Draw your own placeholder in the `placeholder` slot for content that is not there until it loads. - The placeholder shows while `loading` is set, laid out as the content will be, such as a circle and three lines for a profile.
40
39
  * @documentation https://fusion.dev/helix/components/skeleton
41
40
  *
42
41
  * @slot - The content the skeleton stands in for, which sizes it. Optional.
@@ -28,6 +28,8 @@ import { type TemplateResult } from 'lit';
28
28
  * @status stable
29
29
  * @category navigation
30
30
  * @aliases Skip navigation, Skip to content
31
+ * @use A page with a header or a navigation before its main content.
32
+ * @practice {custom-target} Put it first inside the body, and give the content region the id its `href` names. - A press moves focus past the header to that region.
31
33
  * @documentation https://fusion.dev/helix/components/skip-link
32
34
  *
33
35
  * @slot - The link's text. Defaults to `label`.
@@ -9,14 +9,10 @@ declare const HelixHeadlessSlider_base: (new (...args: any[]) => import("@fusion
9
9
  * End, the page keys, and the touch target come from the platform. A native
10
10
  * range has a hit area larger than its thumb, sized for a finger.
11
11
  *
12
- * The value is a string, like every other form control's, and
13
- * `MixinControllerValue` holds text. Use `valueAsNumber` for arithmetic.
14
- *
15
12
  * Marks are drawn by the component. The ticks of a `<datalist>` cannot be
16
- * styled, and Firefox does not render them for a range. Marks are decoration.
17
- * `step` sets where the value can land, and the input enforces it whether or
18
- * not marks are drawn. `markers` is a count, so a slider from zero to a hundred
19
- * does not draw a hundred and one marks by accident.
13
+ * styled, and Firefox does not render them for a range. `markers` is a count,
14
+ * so a slider from zero to a hundred does not draw a hundred and one marks by
15
+ * accident.
20
16
  *
21
17
  * A range with two thumbs is two inputs stacked on one track, because there is
22
18
  * no native two-thumb range. Each thumb keeps its own value, and a named range
@@ -69,6 +65,16 @@ declare const HelixHeadlessSlider_base: (new (...args: any[]) => import("@fusion
69
65
  * @status stable
70
66
  * @category forms
71
67
  * @aliases Range, Range input
68
+ * @use A value picked from a range by eye, such as a volume.
69
+ * @instead number-input - An exact number you type, such as a quantity.
70
+ * @instead rating - A score of a few steps, such as stars on a review.
71
+ * @instead carousel - Slides you move between, one at a time.
72
+ * @anatomy label
73
+ * @anatomy control
74
+ * @anatomy output?
75
+ * @anatomy hint?
76
+ * @practice Read `valueAsNumber` for arithmetic. - The value is a string, like every other form control's.
77
+ * @practice {markers} Set `step` for where the value can land, and `markers` for the marks drawn. - Marks are decoration, and the input holds to `step` whether or not marks are drawn.
72
78
  * @documentation https://fusion.dev/helix/components/slider
73
79
  *
74
80
  * @slot feedback - The message that says what is wrong, for content richer than a string. It shows while there is a message.
@@ -4,13 +4,9 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
4
4
  * @summary A small chart with no axes that shows the shape of a series beside its number.
5
5
  *
6
6
  * @description
7
- * Takes its numbers from the `values` attribute. The other charts read a table,
8
- * but a table behind a small trend line would be read aloud row by row. Set
9
- * `values` to the data and `label` to the one sentence a screen reader
10
- * announces.
11
- *
12
- * Use `for` when a sparkline has a real table behind it. `for` wins when both
13
- * are set.
7
+ * Takes its numbers from the `values` attribute, where the other charts read a
8
+ * table. Set `label` to the one sentence a screen reader announces. `for` wins
9
+ * when it and `values` are both set.
14
10
  *
15
11
  * Without a `label` the sparkline is decorative and `aria-hidden`, for example
16
12
  * beside a stat that already says "Sessions, 1,102". With a `label` it is
@@ -39,9 +35,6 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
39
35
  * readings arrive, as on every chart. The `empty` and `loading` slots take
40
36
  * markup in place of either.
41
37
  *
42
- * Place it beside a `Stat`, because a change beside a figure is a second fact,
43
- * as `Stat`'s own spec says. `Trend` is composed the same way.
44
- *
45
38
  * The component writes the properties listed below, and the stylesheet that
46
39
  * draws the sparkline reads them. Do not set them yourself. They carry numbers
47
40
  * the component computes and CSS cannot, so a stylesheet can draw the sparkline
@@ -62,6 +55,11 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
62
55
  * @status stable
63
56
  * @category charts
64
57
  * @aliases Micro Chart, Trend Line, Inline Chart
58
+ * @use The shape of a series beside its number, such as in a stat or a table row.
59
+ * @instead line-chart - A series you read against a scale, with axes and labels.
60
+ * @instead trend - Which way one measurement moved, and whether that is good.
61
+ * @practice Set `values` to the numbers, and use `for` only where a real table stands behind the sparkline. - A table behind a small trend line would be read aloud row by row.
62
+ * @practice Place the sparkline beside a `Stat`. - A change beside a figure is a second fact, and `Trend` is placed the same way.
65
63
  * @documentation https://fusion.dev/helix/components/sparkline
66
64
  *
67
65
  * @slot empty - Content shown in place of the line when there are no readings. Falls back to `empty-text`.
@@ -66,6 +66,12 @@ declare const HelixHeadlessSpatialBarChart_base: typeof HelixElement & (new (...
66
66
  * @status experimental
67
67
  * @category charts
68
68
  * @aliases 3D bar chart, 3D column chart, Isometric bar chart, Isometric column chart, Bar chart in 3D
69
+ * @use Values over two sets of categories, such as signups by region and quarter.
70
+ * @instead bar-chart - Values over one set of categories, read against a scale.
71
+ * @instead spatial-heatmap - A count for each day over weeks, such as commits.
72
+ * @anatomy grid
73
+ * @anatomy bar
74
+ * @anatomy tick
69
75
  * @documentation https://fusion.dev/helix/components/spatial-bar-chart
70
76
  *
71
77
  * @slot - The renderer's box, which the 3D drawing is made in.
@@ -91,6 +91,13 @@ type DrawnCorners = {
91
91
  * @status experimental
92
92
  * @category charts
93
93
  * @aliases Isometric heatmap, Isometric chart, 3D heatmap, Relief chart, Isometric contribution graph
94
+ * @use Counts for each day over weeks, drawn as a relief, such as a year of commits.
95
+ * @instead heatmap - A strip of readings you scan, such as uptime.
96
+ * @instead spatial-bar-chart - Values over two sets of categories, such as signups by region and quarter.
97
+ * @anatomy cell
98
+ * @anatomy base
99
+ * @anatomy start?
100
+ * @anatomy end?
94
101
  * @documentation https://fusion.dev/helix/components/spatial-heatmap
95
102
  *
96
103
  * @slot renderer - The renderer's box, which a 3D drawing is made in, over the chart's own.
@@ -60,6 +60,12 @@ declare const HelixHeadlessSpatialRibbonChart_base: typeof HelixElement & (new (
60
60
  * @status experimental
61
61
  * @category charts
62
62
  * @aliases 3D ribbon chart, 3D line chart, Ribbon chart, Waterfall plot, Line chart in 3D
63
+ * @use Several series over one set of places that would tangle as lines, such as latency by region.
64
+ * @instead line-chart - Series over time that you read against one scale.
65
+ * @instead spatial-surface-chart - A measure that varies over two others, such as load by day and hour.
66
+ * @anatomy grid
67
+ * @anatomy ribbon
68
+ * @anatomy tick
63
69
  * @documentation https://fusion.dev/helix/components/spatial-ribbon-chart
64
70
  *
65
71
  * @slot - The renderer's box, which the 3D drawing is made in.
@@ -57,6 +57,13 @@ declare const HelixHeadlessSpatialScatterChart_base: typeof HelixElement & (new
57
57
  * @status experimental
58
58
  * @category charts
59
59
  * @aliases 3D scatter chart, 3D scatter plot, Point cloud, Three-dimensional scatter
60
+ * @use Three measures for each row, such as customers by age, spend, and visits.
61
+ * @instead scatter-chart - Two measures for each row, such as page weight and load time.
62
+ * @instead spatial-surface-chart - A measure that varies over a grid of two others.
63
+ * @anatomy grid
64
+ * @anatomy point
65
+ * @anatomy tick
66
+ * @anatomy axis-name
60
67
  * @documentation https://fusion.dev/helix/components/spatial-scatter-chart
61
68
  *
62
69
  * @slot - The renderer's box, which the 3D drawing is made in.
@@ -59,6 +59,13 @@ declare const HelixHeadlessSpatialSurfaceChart_base: typeof HelixElement & (new
59
59
  * @status experimental
60
60
  * @category charts
61
61
  * @aliases 3D surface chart, 3D surface plot, Surface chart, Height map, Terrain chart
62
+ * @use A measure that varies over two others, such as requests by day and hour.
63
+ * @instead heatmap - A reading for each day or hour, colored in a strip.
64
+ * @instead spatial-ribbon-chart - A few separate series over one set of places.
65
+ * @instead spatial-scatter-chart - Rows that each have three measures of their own.
66
+ * @anatomy grid
67
+ * @anatomy face
68
+ * @anatomy tick
62
69
  * @documentation https://fusion.dev/helix/components/spatial-surface-chart
63
70
  *
64
71
  * @slot - The renderer's box, which the 3D drawing is made in.
@@ -61,6 +61,12 @@ declare const HelixHeadlessSpatialTreemap_base: typeof HelixElement & (new (...a
61
61
  * @status experimental
62
62
  * @category charts
63
63
  * @aliases 3D treemap, Isometric treemap, Treemap in 3D, City map chart
64
+ * @use Items sized by one measure and raised by a second, such as services by requests and latency.
65
+ * @instead donut-chart - Parts of one whole, with a handful of parts.
66
+ * @instead spatial-bar-chart - Values over two sets of categories.
67
+ * @anatomy grid
68
+ * @anatomy block
69
+ * @anatomy tick
64
70
  * @documentation https://fusion.dev/helix/components/spatial-treemap
65
71
  *
66
72
  * @slot - The renderer's box, which the 3D drawing is made in.
@@ -43,10 +43,9 @@ declare const HelixHeadlessSpeedDial_base: (new (...args: any[]) => import("@fus
43
43
  * them apart as Menu's sections do: each is a `group` of the menu, and the
44
44
  * arrow keys walk through every group's actions in order.
45
45
  *
46
- * **A trigger with its own action.** With `open-on="long-press"`, a press on
47
- * the trigger is the trigger's own, such as composing a message, and holding it
48
- * for half a second opens the dial, as React Aria's menu trigger does with
49
- * `trigger="longPress"`. Alt+Down or Alt+Up opens it from the keyboard, and
46
+ * **A trigger with its own action.** A long press opens the dial as React
47
+ * Aria's menu trigger does with `trigger="longPress"`. Alt+Down or Alt+Up
48
+ * opens it from the keyboard, and
50
49
  * the trigger says so in its description, `long-press-label`, the drawn one
51
50
  * and a slotted one alike. A press that has opened the dial does not also do
52
51
  * the trigger's action.
@@ -62,6 +61,15 @@ declare const HelixHeadlessSpeedDial_base: (new (...args: any[]) => import("@fus
62
61
  * @status stable
63
62
  * @category actions
64
63
  * @aliases FAB, Floating action button, Action button, Quick actions
64
+ * @use A few main actions of a screen behind one floating button.
65
+ * @instead menu - Commands with submenus, or items you check.
66
+ * @instead icon-button - One main action on a floating button, such as Compose.
67
+ * @anatomy trigger
68
+ * @anatomy actions
69
+ * @anatomy item
70
+ * @anatomy icon
71
+ * @practice Import Icon beside Speed Dial where your trigger or your actions use one. - Speed Dial draws no icon of its own, so it does not register one.
72
+ * @practice Set `open-on="long-press"` for a trigger with an action of its own, such as composing a message. - A press then runs the trigger's action, and holding it for half a second opens the dial.
65
73
  * @documentation https://fusion.dev/helix/components/speed-dial
66
74
  *
67
75
  * @slot - The actions.
@@ -20,9 +20,6 @@ import { type PropertyValues, type TemplateResult } from 'lit';
20
20
  * the start pane and open it again. A drag in progress is tracked as a state, so both dividers a
21
21
  * corner moves stay lit for as long as they move.
22
22
  *
23
- * By default, `min` and `max` let the divider reach either edge, so you can
24
- * drag a pane fully closed. Set them to limit the range.
25
- *
26
23
  * A pane can be collapsed, which is a separate state from a divider at the
27
24
  * edge. `collapsed` names the shut pane, `start` or `end`, and the pane opens
28
25
  * back to the position where the collapsing gesture began. A drag records that position
@@ -39,17 +36,14 @@ import { type PropertyValues, type TemplateResult } from 'lit';
39
36
  * with nothing measured, so the divider is where it belongs from the first
40
37
  * paint, and the start pane keeps that size as the splitter's own size changes.
41
38
  *
42
- * Set `primary` to the pane that keeps its size when the splitter's own size
43
- * changes, such as a sidebar beside a window being resized. The other pane
44
- * takes all of the change, as Web Awesome's split panel does. Without it,
45
- * both panes keep their share.
39
+ * Without `primary`, both panes keep their share when the splitter's own size
40
+ * changes.
46
41
  *
47
- * **Three or more panes along one axis are splitters nested on that axis**, a
48
- * splitter in the `end` pane of another for three columns. The nested one
49
- * keeps the pane on its far side the size it was while the outer divider
50
- * moves, so a divider resizes only the two panes beside it, as Zag's splitter
51
- * does with any number of panels. Where the whole row is resized, every pane
52
- * keeps its share, unless `primary` says otherwise.
42
+ * **Three or more panes along one axis are splitters nested on that axis.**
43
+ * The nested one keeps the pane on its far side the size it was while the
44
+ * outer divider moves, as Zag's splitter does with any number of panels. Where
45
+ * the whole row is resized, every pane keeps its share, unless `primary` says
46
+ * otherwise.
53
47
  *
54
48
  * **Keyboard.** The divider is one tab stop.
55
49
  *
@@ -65,6 +59,15 @@ import { type PropertyValues, type TemplateResult } from 'lit';
65
59
  * @status stable
66
60
  * @category layout
67
61
  * @aliases SplitPane, Resizable, SplitView
62
+ * @use Two panes, such as files and an editor, whose share of the space you set by dragging.
63
+ * @instead grid - Columns whose widths the page sets.
64
+ * @instead drawer - A panel that slides in over the page from an edge.
65
+ * @anatomy start
66
+ * @anatomy separator
67
+ * @anatomy end
68
+ * @practice Set `primary` to a sidebar's pane. - That pane keeps its size when the splitter's own size changes, and the other pane takes all of the change.
69
+ * @practice {bounds} Set `min` and `end-min` to the least each pane needs. - By default the divider reaches either edge, so you can drag a pane fully closed.
70
+ * @practice {nested} For three columns, nest a splitter in the `end` pane of another. - A divider then resizes only the two panes beside it.
68
71
  * @documentation https://fusion.dev/helix/components/splitter
69
72
  *
70
73
  * @slot end - The pane after the divider.
@@ -16,8 +16,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
16
16
  * dashboard hears "Revenue, group" and then the figure, its unit and its
17
17
  * trend as one reading, rather than a run of loose words. The role and the name
18
18
  * are set through `ElementInternals` once the label is known, which writes no
19
- * attribute; a stat with no label has no role. Put a `Trend` in the `trend`
20
- * slot to have it read inside the group, after the figure it qualifies.
19
+ * attribute; a stat with no label has no role.
21
20
  *
22
21
  * **Or give the figure as a number.** `value` is written with
23
22
  * `Intl.NumberFormat`, in `locale` and with `format-options`, so
@@ -31,13 +30,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
31
30
  * the stat with those breaks, and the slot is hidden while it is. A figure
32
31
  * holding an element is shown as it is.
33
32
  *
34
- * **A new `value` counts to the new number** from the one before, so a figure
35
- * that a dashboard refreshes reads as having moved. A screen reader reads only
36
- * the new number. The stat times the count from `--stat-count-duration` and
33
+ * **A new `value` counts to the new number.** A screen reader reads only the
34
+ * new number. The stat times the count from `--stat-count-duration` and
37
35
  * `--stat-count-easing`, which the styled tier sets from the duration and
38
36
  * easing tokens. Here neither is set, so the figure changes at once until you
39
- * set them, and under reduced motion it always does. A slotted figure changes
40
- * at once.
37
+ * set them, and under reduced motion it always does.
41
38
  *
42
39
  * **Each slot is a part of the same name**, and `value` for the figure, so a
43
40
  * page reaches the label, the unit and the trend from outside. A slot draws no
@@ -50,6 +47,15 @@ import { type PropertyValues, type TemplateResult } from 'lit';
50
47
  * @status stable
51
48
  * @category data
52
49
  * @aliases Metric, KPI
50
+ * @use One measurement with a label, such as active users on a dashboard.
51
+ * @instead badge - A count pinned to another element.
52
+ * @instead meter - A measurement shown against a known range.
53
+ * @instead sliding-number - A figure whose digits roll to each new value.
54
+ * @anatomy label
55
+ * @anatomy value
56
+ * @anatomy group?
57
+ * @practice {trend} Put a Trend in the `trend` slot. - It is read inside the stat's group, after the figure it qualifies.
58
+ * @practice {counting} Set `value` for a figure a dashboard refreshes. - A new `value` counts from the one before, so the figure reads as having moved, and a slotted figure changes at once.
53
59
  * @documentation https://fusion.dev/helix/components/stat
54
60
  *
55
61
  * @slot - The value.
@@ -16,9 +16,7 @@ declare const HelixHeadlessSteps_base: (new (...args: any[]) => import("@fusion.
16
16
  *
17
17
  * `active` names a step by its `value`. A step with no `value` is named by its
18
18
  * place, counted from 1, so a sequence written without values moves as one
19
- * written with them, and `helix-activate` says `1`, `2` and so on. Give every
20
- * step a value or none, because a value of `2` and the second place are one
21
- * name.
19
+ * written with them, and `helix-activate` says `1`, `2` and so on.
22
20
  *
23
21
  * `linear` keeps a reader from passing a stage they have not finished, as Ark
24
22
  * UI's linear steps do: a stage ahead is out of reach, and its button disabled,
@@ -70,6 +68,10 @@ declare const HelixHeadlessSteps_base: (new (...args: any[]) => import("@fusion.
70
68
  * @use Progress through a fixed sequence of stages, such as a checkout.
71
69
  * @instead tabs - Sections you visit in any order.
72
70
  * @instead number-input - A number you type, such as a quantity.
71
+ * @anatomy step
72
+ * @anatomy progress?
73
+ * @practice Give every step a `value`, or none. - A step with no value is named by its place, so a value of 2 and the second place are one name.
74
+ * @practice Set `--button-background-color` to change the hover color of a step's name. - The name is a Button, and Steps has no `--steps-hover-color`.
73
75
  * @documentation https://fusion.dev/helix/components/steps
74
76
  *
75
77
  * @slot - The steps.
@@ -7,7 +7,7 @@ declare const HelixHeadlessSwitch_base: (new (...args: any[]) => import("@fusion
7
7
  * @description
8
8
  * A switch turns something on or off right away, and a checkbox is an answer
9
9
  * the form submits later. A screen reader announces `role="switch"` as "on" or
10
- * "off", and people expect the change to take effect immediately. A switch is
10
+ * "off". A switch is
11
11
  * as common outside a form as inside one.
12
12
  *
13
13
  * It renders a real `<input type="checkbox">` with `role="switch"`, the pairing
@@ -34,6 +34,11 @@ declare const HelixHeadlessSwitch_base: (new (...args: any[]) => import("@fusion
34
34
  * @aliases Toggle switch, On/off
35
35
  * @use One setting that takes effect the moment it changes.
36
36
  * @instead checkbox - A choice you review before submitting a form.
37
+ * @anatomy track
38
+ * @anatomy thumb
39
+ * @anatomy label
40
+ * @anatomy hint?
41
+ * @practice Apply the setting the moment the switch changes, with no Save button after it. - People expect a switch to take effect at once.
37
42
  * @documentation https://fusion.dev/helix/components/switch
38
43
  *
39
44
  * @slot - The label that names what the switch turns on.
@@ -79,26 +79,22 @@ declare const HelixHeadlessTable_base: (new (...args: any[]) => import("@fusion.
79
79
  * under a heading named by `row-grips-label`.
80
80
  *
81
81
  * 1. Each row is known by its `value`, or by its place among the rows where it
82
- * has none, as for selecting. Give rows a `value` when they move, so a key
83
- * stays with its row.
82
+ * has none, as for selecting.
84
83
  * 2. A grip is a button named by `move-row-label` ("Move {row}") with the
85
84
  * words of the row's first cell. Drag it to move its row, and the page
86
85
  * scrolls near an edge. Or press it with Space, Enter, or a click to pick
87
86
  * the row up, move it with Up, Down, Home, and End, and press it again to
88
87
  * drop it. A click on another row drops it there, and Escape puts it back.
89
88
  * 3. `helix-before-reorder` asks first, and `helix-reorder` follows with
90
- * `keys`, every row's key in the new order. **You move the rows**: the
91
- * table moves no element of yours, and focus goes back to the moved row's
92
- * grip once you have.
89
+ * `keys`, every row's key in the new order. Focus goes back to the moved
90
+ * row's grip once you have moved it.
93
91
  * 4. Each step is said in the table's live region, in words you can change:
94
92
  * `picked-up-label`, `moved-label`, `dropped-label`, and `canceled-label`.
95
93
  * The grips do nothing while a sort is set.
96
94
  *
97
95
  * **A grid.** `grid` makes the table one tab stop that the arrow keys move
98
96
  * through cell by cell, the headings included, as React Aria's table is. The
99
- * table is then a `grid` and each value a `gridcell`, and the table gives
100
- * every cell a `tabindex` so focus can rest on it: set `grid` only where the
101
- * cells may carry one.
97
+ * table is then a `grid` and each value a `gridcell`.
102
98
  *
103
99
  * | Key | What it does |
104
100
  * |---|---|
@@ -158,6 +154,15 @@ declare const HelixHeadlessTable_base: (new (...args: any[]) => import("@fusion.
158
154
  * @status stable
159
155
  * @category data
160
156
  * @aliases DataTable, Grid table
157
+ * @use A short table you write out by hand, with each row in the markup.
158
+ * @instead data-table - Rows you pass as an array, with filtering and paging.
159
+ * @instead description-list - One record's fields, each label beside its value.
160
+ * @anatomy column
161
+ * @anatomy row
162
+ * @anatomy cell
163
+ * @practice {reordering} Give each row a `value` in a `reorderable` table. - A row without one is known by its place, so its key changes as it moves.
164
+ * @practice Put your rows in the order a reorder reports. - The table moves no element of yours.
165
+ * @practice Set `grid` only where each cell may take focus. - A grid table gives every cell a `tabindex`, so focus can rest on it.
161
166
  * @documentation https://fusion.dev/helix/components/table
162
167
  *
163
168
  * @slot - The table's rows.