@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
@@ -93,12 +93,12 @@ declare const HelixHeadlessCodeEditor_base: (new (...args: any[]) => import("@fu
93
93
  * @description
94
94
  * A pane for working on a file: a header with its name, its language and the
95
95
  * page's own actions, the code, the problems in it, and a status line that
96
- * says where the caret is. On its own the code is a `<textarea>` in the code
97
- * face. Connect an engine and it draws the code instead: `connectCodeEditor` from
98
- * `@fusion.dev/helix-code-editor` connects CodeMirror, with highlighting in your
99
- * theme's syntax colors, line numbers, folding, bracket matching and history.
100
- * The value, the form, validation and the events stay the editor's, so a page
101
- * reads and writes it the same either way.
96
+ * says where the caret is. Connect an engine and it draws the code:
97
+ * `connectCodeEditor` from `@fusion.dev/helix-code-editor` connects CodeMirror,
98
+ * with highlighting in your theme's syntax colors, line numbers, folding,
99
+ * bracket matching and history. The value, the form, validation and the events
100
+ * stay the editor's, so a page reads and writes it the same with an engine or
101
+ * without one.
102
102
  *
103
103
  * For a few lines in a form, such as a setting in JSON, use `Code Input`,
104
104
  * which needs no engine.
@@ -127,6 +127,17 @@ declare const HelixHeadlessCodeEditor_base: (new (...args: any[]) => import("@fu
127
127
  * @status experimental
128
128
  * @category editors
129
129
  * @aliases Code editor, CodeMirror, File editor, IDE, Monaco
130
+ * @use A file of code you edit, with its problems listed under it.
131
+ * @instead code-input - A short piece of code in a form, such as a JSON setting.
132
+ * @instead code-block - Code you read and copy, with no editing.
133
+ * @instead editor - A document of prose you write and format.
134
+ * @anatomy header
135
+ * @anatomy controls
136
+ * @anatomy body
137
+ * @anatomy diagnostics?
138
+ * @anatomy status
139
+ * @practice Connect CodeMirror for highlighting, line numbers, and folding. - On its own the code is a plain textarea in the code face.
140
+ * @practice {fill} Set `fill` for an editor that fills a pane, such as one side of a split view. - Without it, the editor is 24rem tall.
130
141
  * @documentation https://fusion.dev/helix/components/code-editor
131
142
  *
132
143
  * @slot actions - The page's own controls in the header, such as Run or Format, before the built-in ones.
@@ -17,11 +17,8 @@ import { HelixHeadlessTextarea } from '../../textarea/root/textarea-root.js';
17
17
  * - Lines keep their length and the field scrolls sideways, unless `wrap` is
18
18
  * `soft`.
19
19
  *
20
- * **The colors are the page's choice.** Helix ships no grammar, so a page
21
- * that wants color registers a highlighter once, the one Code Block uses:
22
- * `import '@fusion.dev/helix-sandbox/code-block'` registers Helix's own, or
23
- * `registerHighlighter` takes Shiki or Prism. Without one the code is drawn
24
- * plain, and `highlight` sets one for a single field.
20
+ * **The colors come from a highlighter.** `registerHighlighter` takes Shiki or
21
+ * Prism in place of Helix's own, and `highlight` sets one for a single field.
25
22
  *
26
23
  * For a whole file, with line numbers, folding, search and problems listed by
27
24
  * line, use `Code Editor`. Code Input is for a few dozen lines in a form: a
@@ -36,6 +33,14 @@ import { HelixHeadlessTextarea } from '../../textarea/root/textarea-root.js';
36
33
  * @status experimental
37
34
  * @category forms
38
35
  * @aliases Code field, Code textarea, JSON input, Syntax highlighted input
36
+ * @use A short piece of code in a form, such as a JSON payload or a query.
37
+ * @instead code-editor - A whole file of code, in an editor you connect.
38
+ * @instead code-block - Code you show for reading and copying.
39
+ * @instead textarea - Several lines of plain text, such as a description.
40
+ * @anatomy label
41
+ * @anatomy field
42
+ * @anatomy hint?
43
+ * @practice Import Code Block from Helix Sandbox once on the page. - Helix ships no grammar, and that import registers the highlighter that colors every Code Input.
39
44
  * @documentation https://fusion.dev/helix/components/code-input
40
45
  *
41
46
  * @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
@@ -42,6 +42,13 @@ declare const HelixHeadlessColorInput_base: (new (...args: any[]) => import("@fu
42
42
  * @status stable
43
43
  * @category forms
44
44
  * @aliases ColorField, ColourInput, InputColor
45
+ * @use A color in a form, typed in any syntax or picked from a panel that opens.
46
+ * @instead color-picker - A picker that stays open on the page, such as in a theme editor.
47
+ * @anatomy label
48
+ * @anatomy field
49
+ * @anatomy trigger
50
+ * @anatomy hint?
51
+ * @anatomy surface
45
52
  * @documentation https://fusion.dev/helix/components/color-input
46
53
  *
47
54
  * @slot end - Content at the trailing end, before the trigger.
@@ -47,6 +47,12 @@ declare const HelixHeadlessColorPicker_base: (new (...args: any[]) => import("@f
47
47
  * @status stable
48
48
  * @category forms
49
49
  * @aliases Color, ColorArea, Swatch picker
50
+ * @use A color chosen in a picker that stays on the page, such as in a theme editor.
51
+ * @instead color-input - A color in a form field that opens a picker when you press it.
52
+ * @anatomy grid
53
+ * @anatomy sample
54
+ * @anatomy channels
55
+ * @anatomy value
50
56
  * @documentation https://fusion.dev/helix/components/color-picker
51
57
  *
52
58
  * @slot eyedropper-icon - The icon on the eyedropper button, usually a dropper.
@@ -7,8 +7,7 @@ import '../../checkbox/index.js';
7
7
  *
8
8
  * @description
9
9
  * Set `for` to the id of a `DataTable`, and the list holds a row for each of
10
- * its columns with a `field`, in the order the table shows them. Put it in a
11
- * `Popover` opened by a Columns button, or in a `Drawer` on a phone.
10
+ * its columns with a `field`, in the order the table shows them.
12
11
  *
13
12
  * ```html
14
13
  * <helix-column-manager for="invoices"></helix-column-manager>
@@ -29,8 +28,7 @@ import '../../checkbox/index.js';
29
28
  *
30
29
  * **It writes the table's `view.columns` and nothing else.** Every change asks
31
30
  * the table with `requestView`, so the table fires `helix-before-view-change`,
32
- * which you can refuse, and `helix-view-change`. Store the view to keep a
33
- * reader's columns.
31
+ * which you can refuse, and `helix-view-change`.
34
32
  *
35
33
  * **Keyboard.** Each row's checkbox, grip and pin button are in the tab order.
36
34
  *
@@ -46,6 +44,16 @@ import '../../checkbox/index.js';
46
44
  * @status experimental
47
45
  * @category data
48
46
  * @aliases Column picker, Column chooser
47
+ * @use Which of a Data Table's columns show, in what order, and which stay pinned.
48
+ * @instead view-panel - A table's whole view on a phone, with the columns as one section.
49
+ * @instead quick-filters - A saved view of a table that you switch to in one press.
50
+ * @anatomy header
51
+ * @anatomy item
52
+ * @anatomy grip
53
+ * @anatomy checkbox
54
+ * @anatomy pin
55
+ * @practice Put Column Manager in a Popover opened by a Columns button, or in a Drawer on a phone. - The list is the panel's content, and it draws no trigger of its own.
56
+ * @practice Store the table's view to keep a reader's columns. - Every change goes to the table's view, and the list keeps nothing of its own.
49
57
  * @documentation https://fusion.dev/helix/components/column-manager
50
58
  *
51
59
  * @csspart checkbox - The `Checkbox` that shows or hides a column.
@@ -55,18 +55,6 @@ declare const HelixHeadlessCombobox_base: (new (...args: any[]) => import("@fusi
55
55
  * next choice starts from the whole list.
56
56
  *
57
57
  * With `creatable`, the combobox offers a create row and fires `helix-create`.
58
- * It does not add the option. The options are your light DOM, and your
59
- * framework would re-render over an element the combobox inserted, so add the
60
- * option in your event handler.
61
- *
62
- * **The options are an import of their own.** An option is the Option family's,
63
- * which the combobox does not register, so a page that writes one imports it
64
- * beside the combobox:
65
- *
66
- * ```js
67
- * import '@fusion.dev/helix/combobox'
68
- * import '@fusion.dev/helix/option'
69
- * ```
70
58
  *
71
59
  * In development, a combobox holding an option nobody registered says so once
72
60
  * the page has loaded, with the line to add.
@@ -78,6 +66,12 @@ declare const HelixHeadlessCombobox_base: (new (...args: any[]) => import("@fusi
78
66
  * @use One value from a long list, found by typing.
79
67
  * @instead select - A short list you scan.
80
68
  * @instead filter-input - Several values that narrow a list.
69
+ * @anatomy label
70
+ * @anatomy field
71
+ * @anatomy hint?
72
+ * @anatomy surface
73
+ * @practice Import Option beside Combobox. - An option belongs to the Option family, which Combobox does not register.
74
+ * @practice Add the option yourself when `creatable` sends its create event. - The options are your light DOM, and your framework would render over an option the combobox inserted.
81
75
  * @documentation https://fusion.dev/helix/components/combobox
82
76
  *
83
77
  * @slot - The options.
@@ -76,15 +76,10 @@ declare const HelixHeadlessCommand_base: (new (...args: any[]) => import("@fusio
76
76
  * Aria's `Autocomplete` is. The commands are a `listbox` of `option`s. How many commands typing left, the empty text and
77
77
  * the loading text are said in a polite live region.
78
78
  *
79
- * **The palette registers Option**, since it draws the controls on screen as
80
- * options itself with `controls`, so a page that writes commands imports the
81
- * palette alone. A tier of your own registers its own option, and in
82
- * development a palette holding one nobody registered says so.
79
+ * A tier of your own registers its own option, and in development a palette
80
+ * holding one nobody registered says so.
83
81
  *
84
- * **Set `controls` to find anything on screen.** Every labeled Helix control
85
- * puts itself on the page's list while it is connected, and the palette lists
86
- * the ones a reader can reach under its own commands once they type, with
87
- * each one's shortcut. Choosing one closes the palette and presses it, or
82
+ * Under `controls`, each control is listed with its shortcut. Choosing one closes the palette and presses it, or
88
83
  * moves focus into a field. `unlisted` on a control, or on a region around it,
89
84
  * leaves it out.
90
85
  *
@@ -92,6 +87,16 @@ declare const HelixHeadlessCommand_base: (new (...args: any[]) => import("@fusio
92
87
  * @status stable
93
88
  * @category navigation
94
89
  * @aliases Command palette, Quick open, Spotlight
90
+ * @use Commands you find by typing, opened from anywhere on the page with a shortcut.
91
+ * @instead menu - Commands that open from one trigger, such as a row's More button.
92
+ * @instead combobox - One value for a form, found by typing.
93
+ * @instead find - Words to find in the content on the page.
94
+ * @anatomy dialog-surface
95
+ * @anatomy listbox-search-field
96
+ * @anatomy listbox-items
97
+ * @anatomy footer?
98
+ * @practice Import Command alone for commands written as options. - The palette registers Option itself, since it draws the controls on screen as options.
99
+ * @practice {controls} Set `controls` to find any control on screen. - Every labeled Helix control puts itself on the page's list, and the palette lists the ones you can reach once you type.
95
100
  * @documentation https://fusion.dev/helix/components/command
96
101
  *
97
102
  * @slot - The commands, and any groups of them.
@@ -17,9 +17,8 @@ import '../../tooltip/index.js';
17
17
  * moment a copy shows `copied-label`, draws a cross, and sends
18
18
  * `helix-copy-error`.
19
19
  *
20
- * `from` copies from another element on the page: its text, an attribute
21
- * written `id[attribute]`, or a property written `id.property`, read at the
22
- * press. It takes the place of `value`.
20
+ * `from` writes an attribute as `id[attribute]` and a property as
21
+ * `id.property`.
23
22
  *
24
23
  * It replaces Button's render and its press, so it never submits a form or
25
24
  * sends a command: `type`, `command`, `commandfor` and the `form*` overrides
@@ -48,6 +47,12 @@ import '../../tooltip/index.js';
48
47
  * @status stable
49
48
  * @category actions
50
49
  * @aliases Copy, Copy to clipboard
50
+ * @use A value you copy with one press, such as an install command or an API key.
51
+ * @instead code-block - A block of code, which draws a copy button of its own.
52
+ * @instead icon-button - An icon that runs an action other than a copy.
53
+ * @anatomy button
54
+ * @anatomy mark
55
+ * @practice Set `from` to copy from another element on the page, in place of `value`. - It reads that element's text, an attribute, or a property at the press.
51
56
  * @documentation https://fusion.dev/helix/components/copy-button
52
57
  *
53
58
  * @slot - The icon shown before a copy. Defaults to a clipboard.
@@ -33,13 +33,9 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
33
33
  *
34
34
  * Sort and filter apply to the whole set, including the rows on other pages.
35
35
  *
36
- * **Write the first page as rows, so the served HTML carries the values.** The
37
- * table reads each cell from its column, and a server does not pass the column
38
- * children to this element, so on its own it serves the headings and no values.
39
- * Write the first page under the columns as `TableRow` and `TableCell`
40
- * elements, in the table's sort and page size and formatted as its columns draw
41
- * them. The table shows your rows until `rows` holds a row, then draws its own
42
- * in their place and leaves yours in the page, unshown. A development build
36
+ * **The served first page.** Write it in the table's sort and page size and
37
+ * formatted as its columns draw them. The table shows your rows until `rows`
38
+ * holds a row, then draws its own in their place and leaves yours in the page, unshown. A development build
43
39
  * warns when the two differ. In React, map the first page of the same array in
44
40
  * the same server component.
45
41
  *
@@ -62,10 +58,9 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
62
58
  * To act on a single row, such as opening it, put a link or a button in a cell.
63
59
  * `row-link` makes a press anywhere else on the row work that control.
64
60
  *
65
- * **A cell renders in the table's shadow root.** Tokens and custom properties
66
- * reach it, and so do the base layer's `data-link`, `data-link-underline`, and
67
- * `data-density`. A class from your stylesheet does not. Pass the rules as
68
- * `cellStyles`, or name an element with `part` and style it with `::part()`.
61
+ * The base layer's `data-link`, `data-link-underline`, and `data-density`
62
+ * reach a cell, as tokens and custom properties do. Name an element in a cell
63
+ * with `part` to style it with `::part()`.
69
64
  *
70
65
  * `helix-before-follow` hands a press on a link in a cell to your router:
71
66
  *
@@ -229,9 +224,7 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
229
224
  * stylesheet can read the table's own attributes and not its columns', so the
230
225
  * served rows are laid out at the widths the table draws.
231
226
  *
232
- * **The columns are an import of their own.** A column is the Table family's
233
- * `TableColumn`, which the data table does not register, so a page that writes
234
- * one imports the Table entry beside the data table:
227
+ * A page that writes columns imports both entries:
235
228
  *
236
229
  * ```js
237
230
  * import '@fusion.dev/helix/data-table'
@@ -245,6 +238,17 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
245
238
  * @status stable
246
239
  * @category data
247
240
  * @aliases Grid, Result table, Data grid
241
+ * @use Rows you pass as an array, sorted, filtered, and paged across the whole set.
242
+ * @instead table - A short table you write out by hand, one row of markup at a time.
243
+ * @instead list - Rows with one label each, and no columns to read across.
244
+ * @instead grid - A layout that places elements in rows and columns.
245
+ * @anatomy head
246
+ * @anatomy row
247
+ * @anatomy cell
248
+ * @anatomy pagination?
249
+ * @practice Import Table beside Data Table. - A column is the Table family's `TableColumn`, which Data Table does not register.
250
+ * @practice {serving-the-first-page} Write the first page as `TableRow` and `TableCell` elements under the columns. - A server does not pass the columns to the table, so on its own it serves the headings and no values.
251
+ * @practice Style what a cell draws with `cellStyles`. - A cell renders in the table's shadow root, where tokens reach it and a class from your stylesheet does not.
248
252
  * @documentation https://fusion.dev/helix/components/data-table
249
253
  *
250
254
  * @slot - The columns, as `TableColumn` elements, and the first page served as `TableRow` elements, which show until `rows` holds a row.
@@ -64,6 +64,14 @@ declare const HelixHeadlessDateInput_base: (new (...args: any[]) => import("@fus
64
64
  * @status stable
65
65
  * @category forms
66
66
  * @aliases DatePicker, DateField, InputDate
67
+ * @use A date in a form, typed or picked from a calendar that opens, such as a start date.
68
+ * @instead date-picker - A calendar that stays open on the page, such as on a booking page.
69
+ * @instead time-input - A time of day in a form.
70
+ * @anatomy label
71
+ * @anatomy field
72
+ * @anatomy trigger
73
+ * @anatomy hint?
74
+ * @anatomy surface
67
75
  * @documentation https://fusion.dev/helix/components/date-input
68
76
  *
69
77
  * @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
@@ -12,19 +12,12 @@ declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fu
12
12
  * - `PageUp` and `PageDown` move by month.
13
13
  * - `Home` and `End` move to the start and end of the week.
14
14
  *
15
- * **Dates are `YYYY-MM-DD` strings, and every calculation is in UTC**, because
16
- * a local-time `Date` shifts across a time zone or daylight-saving boundary.
17
- *
18
15
  * **The months are the ones `calendar` counts**: the Gregorian months for the
19
16
  * locale's own calendar where its months are the Gregorian months, as `th-TH`
20
17
  * writes 2569 for 2026, and `gregory` where they are not, as for `fa-IR`
21
18
  * with no `calendar`. Name a calendar with months of its own, such as
22
19
  * `persian`, and every view counts its days, months, and years from `Intl`.
23
20
  *
24
- * `month` sets which month the grid shows, separately from `value`, so paging
25
- * selects nothing and you can control the view. When unset, it follows the
26
- * first selected date, then the current month.
27
- *
28
21
  * `mode` sets how many dates are held. Unset holds one, `range` holds two and
29
22
  * marks the dates between them, and `multiple` toggles each date. All three
30
23
  * read and write the same comma-separated `value`. With a `mode`, the grid
@@ -56,6 +49,17 @@ declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fu
56
49
  * @status stable
57
50
  * @category forms
58
51
  * @aliases Calendar, Date grid, Month view
52
+ * @use A date or a range chosen on a calendar that stays open on the page.
53
+ * @instead date-input - A date in a form field, typed or picked from a calendar that opens.
54
+ * @instead time-picker - A time of day, chosen from a list.
55
+ * @instead heatmap - Activity drawn day by day, such as contributions.
56
+ * @anatomy previous
57
+ * @anatomy heading
58
+ * @anatomy next
59
+ * @anatomy weekday
60
+ * @anatomy day
61
+ * @practice Write `value`, `min`, and `max` as `YYYY-MM-DD` strings. - Every calculation is in UTC, since a local-time `Date` shifts across a time zone or daylight-saving boundary.
62
+ * @practice {controlled-month} Set `month` to choose the month on show apart from `value`. - Paging selects nothing, and an unset `month` follows the first chosen date, then the current month.
59
63
  * @documentation https://fusion.dev/helix/components/date-picker
60
64
  *
61
65
  * @slot footer - Content under the calendar, such as buttons for today or a common range.
@@ -24,6 +24,12 @@ import { type PropertyValues, type TemplateResult } from 'lit';
24
24
  * @status stable
25
25
  * @category data
26
26
  * @aliases Data list, Key-value list, Details, Properties
27
+ * @use One record's fields, each label beside its value, such as a details panel.
28
+ * @instead table - Several records compared field by field, in columns.
29
+ * @instead object-inspector - A nested value, such as an API response, that you open as a tree.
30
+ * @anatomy item
31
+ * @anatomy label
32
+ * @anatomy value
27
33
  * @documentation https://fusion.dev/helix/components/description-list
28
34
  *
29
35
  * @slot - The items.
@@ -14,11 +14,9 @@ import '../../tooltip/index.js';
14
14
  * or a `<canvas>` you draw decoded frames on. The frame gives the screen the
15
15
  * device's shape and stretches the element to fill it.
16
16
  *
17
- * Set `screen-width` and `screen-height` to the screen's size in the units
18
- * your device takes input in: points for the iOS Simulator, and pixels for an
19
- * Android device. Every point an event carries is in those units, beside the
20
- * `width` and `height` it is measured against. Without them, the frame reads
21
- * the stream's own size in pixels.
17
+ * Every point an event carries is measured against the `width` and `height`
18
+ * the event carries beside it. Without `screen-width` and `screen-height`, the
19
+ * frame reads the stream's own size in pixels.
22
20
  *
23
21
  * **Touches.** Listen in one of two ways, and not both, or the device moves
24
22
  * twice:
@@ -56,14 +54,21 @@ import '../../tooltip/index.js';
56
54
  *
57
55
  * Set `rotation` where your source sends frames in the device's natural
58
56
  * orientation while the device is turned: the frame turns the picture, and
59
- * turns every point back. Set `readonly` to show the screen and send nothing,
60
- * such as while an agent drives the device. The screen is then a picture, and
61
- * `showTap()` and `showSwipe()` mark where the agent touched it.
57
+ * turns every point back. Under `readonly`, the screen is a picture, and
58
+ * `showTap()` and `showSwipe()` mark where an agent touched it.
62
59
  *
63
60
  * @since 0.211.0
64
61
  * @status experimental
65
62
  * @category media
66
63
  * @aliases Simulator, Emulator, Device mirror, Remote screen
64
+ * @use A simulator or a phone's screen on the page, which you tap, swipe, and type into.
65
+ * @instead video - A recording that you play, pause, and seek.
66
+ * @instead terminal - A shell on a machine, driven by typing.
67
+ * @anatomy controls
68
+ * @anatomy bezel
69
+ * @anatomy screen
70
+ * @practice Set `screen-width` and `screen-height` to the screen's size in the units your device takes input in. - Every point an event carries is in those units: points for the iOS Simulator, and pixels for an Android device.
71
+ * @practice Set `readonly` while an agent drives the device. - The screen then shows the stream and sends nothing back.
67
72
  * @documentation https://fusion.dev/helix/components/device-screen
68
73
  *
69
74
  * @slot - The element that draws the stream: a `<video>`, an `<img>`, or a `<canvas>`.
@@ -36,10 +36,8 @@ declare const HelixHeadlessDialog_base: (new (...args: any[]) => import("@fusion
36
36
  *
37
37
  * Set `alert` for a dialog that interrupts to ask for an answer, such as a
38
38
  * confirmation before a deletion. It is an `alertdialog`, which a screen reader
39
- * announces with its description as it opens. Put the action that dismisses
40
- * first in the footer, with `autofocus`, so focus starts on the action that
41
- * destroys nothing. Set
42
- * `dismissible` to draw a close control, labeled by `dismiss-label`.
39
+ * announces with its description as it opens. Set `dismissible` to draw a
40
+ * close control, labeled by `dismiss-label`.
43
41
  *
44
42
  * **Keyboard.** Opening moves focus to the first control in the dialog.
45
43
  *
@@ -58,6 +56,10 @@ declare const HelixHeadlessDialog_base: (new (...args: any[]) => import("@fusion
58
56
  * @use A decision or a short task that blocks the page until it is done.
59
57
  * @instead drawer - Details or settings beside the page's content.
60
58
  * @instead popover - Content tied to one trigger, with the page still in use.
59
+ * @anatomy surface
60
+ * @anatomy header
61
+ * @anatomy footer
62
+ * @practice {alert} Under `alert`, put the action that dismisses first in the footer, and give it autofocus. - Focus then starts on the action that destroys nothing.
61
63
  * @documentation https://fusion.dev/helix/components/dialog
62
64
  *
63
65
  * @slot - The dialog's content.
@@ -12,10 +12,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
12
12
  * **The line is a separator**, as `<hr>` is, and as Radix Separator, React
13
13
  * Aria Separator, and Web Awesome's divider are. It is named by any content
14
14
  * set into it, so a screen reader says "Or, separator" where you wrote "Or" on
15
- * the line, and the words are read once, as that name. Set words into a
16
- * separator and no controls, which are hidden with them. Set `decorative` on
17
- * a rule that separates nothing, such as one under a heading or between the
18
- * facts of a byline, and it leaves the accessibility tree.
15
+ * the line, and the words are read once, as that name.
19
16
  *
20
17
  * Use `orientation="vertical"` between items on one line. A vertical divider
21
18
  * stretches to fit its flex parent and sets no height of its own.
@@ -31,6 +28,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
31
28
  * @status stable
32
29
  * @category layout
33
30
  * @aliases Separator, Rule
31
+ * @use A line between two groups of content, such as two sections of a settings page.
32
+ * @instead flex - Groups that space alone keeps apart, set with a gap.
33
+ * @instead card - Groups that each sit on a surface of their own.
34
+ * @practice Set words into the line, and no controls. - Controls are hidden with the words, which a screen reader hears once, as the separator's name.
35
+ * @practice Set `decorative` on a rule that separates nothing, such as one under a heading or between the facts of a byline. - It then leaves the accessibility tree.
34
36
  * @documentation https://fusion.dev/helix/components/divider
35
37
  *
36
38
  * @slot - Content set into the line, such as a word between two sections.
@@ -15,12 +15,6 @@ declare const HelixHeadlessDonutChart_base: typeof HelixElement & (new (...args:
15
15
  * @summary A chart that shows parts of a whole as a ring, read from a table.
16
16
  *
17
17
  * @description
18
- * A donut chart divides one whole into parts, so the component reads one
19
- * column.
20
- *
21
- * **The first column of numbers is the series, and each row is a slice.** Other
22
- * Helix charts take one column per series.
23
- *
24
18
  * **Negative values are skipped.** An arc cannot show a negative number, so
25
19
  * those rows are left out and the total is the sum of the remaining rows.
26
20
  *
@@ -62,6 +56,14 @@ declare const HelixHeadlessDonutChart_base: typeof HelixElement & (new (...args:
62
56
  * @status stable
63
57
  * @category charts
64
58
  * @aliases Pie Chart, Ring Chart, Share Chart
59
+ * @use Parts of one whole, such as sessions by source, with a total in the middle.
60
+ * @instead bar-chart - Many parts, or parts close in size that you compare.
61
+ * @instead area-chart - Parts of a whole as they change over time.
62
+ * @instead meter - One measurement against its full range, such as disk used.
63
+ * @anatomy segment
64
+ * @anatomy center
65
+ * @practice Set the ring's thickness with `hole`. - The stroke width and the ring's radius must agree, so no CSS hook sets it.
66
+ * @practice Point `for` at a table with one row per slice, its amount in the first column of numbers. - A donut divides one whole, so it reads one column where other Helix charts read one per series.
65
67
  * @documentation https://fusion.dev/helix/components/donut-chart
66
68
  *
67
69
  * @slot - Content in the middle of the ring, usually a total. It is read by screen readers, while the ring itself is hidden from them.
@@ -81,16 +81,9 @@ declare const HelixHeadlessDrawer_base: (new (...args: any[]) => import("@fusion
81
81
  * `drawer-root.ssr.spec.ts` checks that the panel has no hand-written `inert`
82
82
  * or `role`.
83
83
  *
84
- * Open the drawer declaratively with the platform's invoker attributes:
85
- *
86
- * ```html
87
- * <helix-headless-button commandfor="nav" command="--toggle">Menu</helix-headless-button>
88
- * <helix-headless-drawer id="nav">…</helix-headless-drawer>
89
- * ```
90
- *
91
- * From its first press, a button that opens the drawer this way says whether
92
- * the drawer is open: a Helix button through `expanded`, and any other
93
- * element with `aria-expanded`.
84
+ * From its first press, a button that opens the drawer through the invoker
85
+ * attributes says whether the drawer is open: a Helix button through
86
+ * `expanded`, and any other element with `aria-expanded`.
94
87
  *
95
88
  * @since 0.1.0
96
89
  * @status stable
@@ -99,6 +92,11 @@ declare const HelixHeadlessDrawer_base: (new (...args: any[]) => import("@fusion
99
92
  * @use Details, filters, or navigation that slide in from an edge, with the page still in view.
100
93
  * @instead dialog - A decision you answer before going on.
101
94
  * @instead drilldown - Pages you step into and back out of.
95
+ * @anatomy panel
96
+ * @anatomy header
97
+ * @anatomy dismiss?
98
+ * @anatomy content
99
+ * @practice {unsaved} Open the drawer from a button with `commandfor="<id>"` naming the drawer and `command="--show"`. - The platform's invoker attributes open it with no script.
102
100
  * @documentation https://fusion.dev/helix/components/drawer
103
101
  *
104
102
  * @slot - The drawer's content.
@@ -48,12 +48,9 @@ declare const HelixHeadlessDrilldown_base: (new (...args: any[]) => import("@fus
48
48
  * or by `fallbackLabel` where nothing names it, and by the page's title below
49
49
  * it.
50
50
  *
51
- * **`navigation` makes it a site's navigation.** The host is a `navigation`
52
- * landmark named by `label`, and unnamed without one. Each page is a list,
53
- * and each row is a list item holding a link or a button, as the APG's
54
- * disclosure navigation is built,
55
- * so a reader meets places to go in place of a menu of commands. The keys stay
56
- * the same. The back button and the title sit above
51
+ * Under `navigation`, the landmark is named by `label`, and unnamed without
52
+ * one. Each row is a list item holding a link or a button, as the APG's
53
+ * disclosure navigation is built. The keys stay the same. The back button and the title sit above
57
54
  * the menu. Disabled rows stay reachable with the arrow keys, and typing a
58
55
  * letter moves to the next row whose name starts with it.
59
56
  *
@@ -61,6 +58,14 @@ declare const HelixHeadlessDrilldown_base: (new (...args: any[]) => import("@fus
61
58
  * @status stable
62
59
  * @category navigation
63
60
  * @aliases Panel, Nested list, Drill-in
61
+ * @use Nested lists you step into one level at a time, such as settings on a narrow screen.
62
+ * @instead tree - A hierarchy whose branches open in place.
63
+ * @instead menu - Commands that open from a trigger and close when you are done.
64
+ * @instead listbox - A value you choose from a list.
65
+ * @anatomy page
66
+ * @anatomy item
67
+ * @anatomy mark
68
+ * @practice {navigation} Set `navigation` for a site's navigation. - The host is then a navigation landmark, and each page a list of places to go in place of a menu of commands.
64
69
  * @documentation https://fusion.dev/helix/components/drilldown
65
70
  *
66
71
  * @slot - The rows of the top page.
@@ -103,8 +103,7 @@ export interface EditorSink {
103
103
  * The document is the element you write inside the frame, so it stays in the
104
104
  * page: the browser's input methods, spellcheck, and right-to-left text work in
105
105
  * it as they do in any field. A server can send the document's HTML there, and
106
- * it reads before any script loads. Mark it `data-prose`, so the base layer
107
- * draws its headings, lists, and quotes before a renderer connects.
106
+ * it reads before any script loads.
108
107
  *
109
108
  * The toolbar's groups are named by `tools`, in this order: `history` (Undo
110
109
  * and Redo), `block` (a menu of Paragraph, three headings, and Code block),
@@ -151,6 +150,16 @@ export interface EditorSink {
151
150
  * @status experimental
152
151
  * @category editors
153
152
  * @aliases Rich text editor, WYSIWYG, Document editor, ProseMirror, Block editor
153
+ * @use A document you write and format, such as notes, a brief, or an article.
154
+ * @instead code-editor - A file of code, with its language and its problems.
155
+ * @instead textarea - Plain text with no formatting, such as a comment.
156
+ * @instead markdown - Markdown you show to read, such as a reply that streams in.
157
+ * @anatomy controls
158
+ * @anatomy tools
159
+ * @anatomy block
160
+ * @anatomy viewport
161
+ * @practice Write data-prose on the document element in the frame. - The base layer then draws its headings, lists, and quotes before a renderer connects.
162
+ * @practice {in-a-pane} Set `fill` for an editor that fills a pane. - The document then scrolls inside the frame, where otherwise the frame grows with it.
154
163
  * @documentation https://fusion.dev/helix/components/editor
155
164
  *
156
165
  * @slot - The element your renderer draws the document in.
@@ -28,10 +28,8 @@ import { type PropertyValues, type TemplateResult } from 'lit';
28
28
  * actions differently. Read in the browser, so a served view carries neither
29
29
  * until the script runs.
30
30
  *
31
- * **Or give the heading as words.** `heading` draws them in a `heading` part
32
- * that is a heading at `heading-level`, 3 where it is not set, so a page
33
- * rendering from data or on a server gets a heading a reader finds in the
34
- * outline without writing the element. A heading slotted in replaces it.
31
+ * `heading` draws its words in a `heading` part that is a heading at
32
+ * `heading-level`, 3 where it is not set. A heading slotted in replaces it.
35
33
  *
36
34
  * **Whatever is slotted into `heading` is read as a heading.** An element that
37
35
  * is no heading, such as a `<span>` or a `<p>`, is set inside the `heading`
@@ -46,6 +44,10 @@ import { type PropertyValues, type TemplateResult } from 'lit';
46
44
  * @aliases Placeholder, NoResults, Blank
47
45
  * @use A region with nothing in it, and the next step to take.
48
46
  * @instead skeleton - Content that has not arrived yet.
47
+ * @anatomy icon?
48
+ * @anatomy heading
49
+ * @anatomy actions?
50
+ * @practice {heading} Set `heading` for a view rendered from data or on a server. - It draws a heading at `heading-level` that you find in the outline, with no element of yours to write.
49
51
  * @documentation https://fusion.dev/helix/components/empty
50
52
  *
51
53
  * @slot - The message: why the region is empty, and what to do about it.
@@ -43,6 +43,11 @@ declare const HelixHeadlessFileInput_base: (new (...args: any[]) => import("@fus
43
43
  * @status stable
44
44
  * @category forms
45
45
  * @aliases FileUpload, FilePicker, Dropzone, InputFile
46
+ * @use Files you attach to a form, chosen from a picker or dropped on the field.
47
+ * @anatomy label
48
+ * @anatomy field
49
+ * @anatomy trigger
50
+ * @anatomy hint?
46
51
  * @documentation https://fusion.dev/helix/components/file-input
47
52
  *
48
53
  * @slot feedback - The message that says what is wrong with the chosen files.