@fusion.dev/helix-headless 0.104.1 → 0.106.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 (167) hide show
  1. package/custom-elements.json +10386 -3813
  2. package/dist/accordion/item/accordion-item.d.ts +17 -16
  3. package/dist/accordion/root/accordion-root.d.ts +13 -17
  4. package/dist/announcement/root/announcement-root.d.ts +24 -31
  5. package/dist/app-header/root/app-header-root.d.ts +14 -14
  6. package/dist/area-chart/root/area-chart-root.d.ts +29 -48
  7. package/dist/avatar/group/avatar-group.d.ts +6 -8
  8. package/dist/avatar/root/avatar-root.d.ts +11 -11
  9. package/dist/badge/root/badge-root.d.ts +14 -15
  10. package/dist/bar-chart/root/bar-chart-root.d.ts +40 -44
  11. package/dist/blockquote/root/blockquote-root.d.ts +5 -7
  12. package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +25 -33
  13. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +12 -11
  14. package/dist/button/root/button-root.d.ts +16 -17
  15. package/dist/button-group/root/button-group-root.d.ts +9 -10
  16. package/dist/callout/root/callout-root.d.ts +10 -15
  17. package/dist/canvas/edge/canvas-edge.d.ts +21 -21
  18. package/dist/canvas/node/canvas-node.d.ts +43 -45
  19. package/dist/canvas/root/canvas-root.d.ts +100 -99
  20. package/dist/card/root/card-root.d.ts +10 -12
  21. package/dist/carousel/root/carousel-root.d.ts +32 -33
  22. package/dist/chat/composer/chat-composer.d.ts +24 -26
  23. package/dist/chat/message/chat-message.d.ts +30 -33
  24. package/dist/chat/root/chat-root.d.ts +63 -80
  25. package/dist/checkbox/root/checkbox-root.d.ts +30 -32
  26. package/dist/checkbox-group/root/checkbox-group-root.d.ts +25 -25
  27. package/dist/code/root/code-root.d.ts +6 -10
  28. package/dist/code-block/root/code-block-root.d.ts +35 -48
  29. package/dist/color-input/root/color-input-root.d.ts +62 -56
  30. package/dist/color-input/root/color-input-root.js +3 -0
  31. package/dist/color-picker/root/color-picker-root.d.ts +61 -49
  32. package/dist/color-picker/root/color-picker-root.js +4 -0
  33. package/dist/combobox/root/combobox-root.d.ts +52 -53
  34. package/dist/command/root/command-root.d.ts +40 -40
  35. package/dist/command/root/command-root.js +1 -0
  36. package/dist/copy-button/root/copy-button-root.d.ts +24 -26
  37. package/dist/data-table/root/data-table-root.d.ts +106 -107
  38. package/dist/date-input/root/date-input-root.d.ts +54 -53
  39. package/dist/date-picker/root/date-picker-root.d.ts +25 -21
  40. package/dist/description-list/item/description-list-item.d.ts +7 -7
  41. package/dist/description-list/root/description-list-root.d.ts +10 -15
  42. package/dist/dialog/root/dialog-root.d.ts +22 -19
  43. package/dist/divider/root/divider-root.d.ts +12 -13
  44. package/dist/donut-chart/root/donut-chart-root.d.ts +19 -20
  45. package/dist/drawer/root/drawer-root.d.ts +19 -18
  46. package/dist/drilldown/item/drilldown-item.d.ts +28 -28
  47. package/dist/drilldown/root/drilldown-root.d.ts +22 -28
  48. package/dist/element-events.generated.js +19 -1
  49. package/dist/empty/root/empty-root.d.ts +16 -19
  50. package/dist/file-input/root/file-input-root.d.ts +32 -32
  51. package/dist/filter-input/chip/filter-chip.d.ts +36 -39
  52. package/dist/filter-input/field/filter-field.d.ts +25 -31
  53. package/dist/filter-input/menu/filter-menu.d.ts +50 -47
  54. package/dist/filter-input/operator/filter-operator.d.ts +15 -20
  55. package/dist/filter-input/root/filter-input-root.d.ts +80 -98
  56. package/dist/format-date/root/format-date-root.d.ts +19 -27
  57. package/dist/heatmap/root/heatmap-root.d.ts +40 -41
  58. package/dist/icon/root/icon-root.d.ts +21 -23
  59. package/dist/icon-button/root/icon-button-root.d.ts +12 -14
  60. package/dist/image/root/image-root.d.ts +30 -30
  61. package/dist/input/root/input-root.d.ts +36 -35
  62. package/dist/kbd/root/kbd-root.d.ts +13 -15
  63. package/dist/legend/root/legend-root.d.ts +18 -16
  64. package/dist/lightbox/item/lightbox-item.d.ts +13 -15
  65. package/dist/lightbox/root/lightbox-root.d.ts +40 -41
  66. package/dist/line-chart/root/line-chart-root.d.ts +20 -29
  67. package/dist/list/item/list-item.d.ts +17 -22
  68. package/dist/list/root/list-root.d.ts +6 -7
  69. package/dist/listbox/root/listbox-root.d.ts +42 -41
  70. package/dist/loader/root/loader-root.d.ts +16 -20
  71. package/dist/map/area/map-area.d.ts +48 -0
  72. package/dist/map/area/map-area.js +40 -0
  73. package/dist/map/buildings/map-buildings.d.ts +45 -0
  74. package/dist/map/buildings/map-buildings.js +37 -0
  75. package/dist/map/contours/map-contours.d.ts +61 -0
  76. package/dist/map/contours/map-contours.js +54 -0
  77. package/dist/map/index.d.ts +14 -0
  78. package/dist/map/index.js +10 -0
  79. package/dist/map/landcover/map-landcover.d.ts +47 -0
  80. package/dist/map/landcover/map-landcover.js +37 -0
  81. package/dist/map/marker/map-marker.d.ts +120 -0
  82. package/dist/map/marker/map-marker.js +109 -0
  83. package/dist/map/points/map-points.d.ts +139 -0
  84. package/dist/map/points/map-points.js +161 -0
  85. package/dist/map/position/map-position.d.ts +70 -0
  86. package/dist/map/position/map-position.js +89 -0
  87. package/dist/map/raster/map-raster.d.ts +84 -0
  88. package/dist/map/raster/map-raster.js +96 -0
  89. package/dist/map/root/map-root.d.ts +269 -52
  90. package/dist/map/root/map-root.js +473 -5
  91. package/dist/map/route/map-route.d.ts +73 -0
  92. package/dist/map/route/map-route.js +52 -0
  93. package/dist/map/terrain/map-terrain.d.ts +68 -0
  94. package/dist/map/terrain/map-terrain.js +58 -0
  95. package/dist/megamenu/root/megamenu-root.d.ts +27 -25
  96. package/dist/menu/item/menu-item.d.ts +30 -31
  97. package/dist/menu/root/menu-root.d.ts +25 -29
  98. package/dist/meter/root/meter-root.d.ts +22 -21
  99. package/dist/navigation/root/navigation-root.d.ts +13 -16
  100. package/dist/notifications/group/notification-group.d.ts +27 -28
  101. package/dist/notifications/notification/notification.d.ts +35 -42
  102. package/dist/notifications/root/notifications-root.d.ts +22 -24
  103. package/dist/number-input/root/number-input-root.d.ts +46 -50
  104. package/dist/object-inspector/root/object-inspector-root.d.ts +46 -58
  105. package/dist/option/group/option-group.d.ts +11 -11
  106. package/dist/option/root/option-root.d.ts +28 -33
  107. package/dist/outline/root/outline-root.d.ts +18 -17
  108. package/dist/pagination/root/pagination-root.d.ts +37 -39
  109. package/dist/pagination/size/pagination-size.d.ts +37 -43
  110. package/dist/pagination/summary/pagination-summary.d.ts +12 -14
  111. package/dist/pin-input/root/pin-input-root.d.ts +32 -38
  112. package/dist/popover/root/popover-root.d.ts +16 -21
  113. package/dist/progress/root/progress-root.d.ts +16 -14
  114. package/dist/qr-code/root/qr-code-root.d.ts +22 -25
  115. package/dist/quote/root/quote-root.d.ts +5 -6
  116. package/dist/radio/group/radio-group.d.ts +26 -28
  117. package/dist/radio/root/radio-root.d.ts +24 -28
  118. package/dist/rating/root/rating-root.d.ts +27 -30
  119. package/dist/scatter-chart/root/scatter-chart-root.d.ts +43 -55
  120. package/dist/scroll-area/root/scroll-area-root.d.ts +15 -21
  121. package/dist/select/root/select-root.d.ts +41 -44
  122. package/dist/skeleton/root/skeleton-root.d.ts +7 -8
  123. package/dist/skip-link/root/skip-link-root.d.ts +21 -28
  124. package/dist/slider/root/slider-root.d.ts +36 -39
  125. package/dist/sparkline/root/sparkline-root.d.ts +22 -28
  126. package/dist/speed-dial/item/speed-dial-item.d.ts +21 -21
  127. package/dist/speed-dial/root/speed-dial-root.d.ts +25 -27
  128. package/dist/splitter/root/splitter-root.d.ts +37 -41
  129. package/dist/stat/group/stat-group.d.ts +4 -4
  130. package/dist/stat/root/stat-root.d.ts +8 -9
  131. package/dist/steps/root/steps-root.d.ts +11 -14
  132. package/dist/steps/step/step.d.ts +22 -29
  133. package/dist/switch/root/switch-root.d.ts +20 -24
  134. package/dist/table/cell/table-cell.d.ts +18 -8
  135. package/dist/table/cell/table-cell.js +5 -1
  136. package/dist/table/column/table-column.d.ts +62 -55
  137. package/dist/table/root/table-root.d.ts +16 -17
  138. package/dist/table/row/table-row.d.ts +3 -3
  139. package/dist/tabs/panel/tab-panel.d.ts +3 -3
  140. package/dist/tabs/root/tabs-root.d.ts +19 -17
  141. package/dist/tabs/tab/tab.d.ts +6 -6
  142. package/dist/tag/root/tag-root.d.ts +11 -12
  143. package/dist/textarea/root/textarea-root.d.ts +29 -32
  144. package/dist/time-input/root/time-input-root.d.ts +70 -69
  145. package/dist/time-picker/root/time-picker-root.d.ts +58 -66
  146. package/dist/timeline/item/timeline-item.d.ts +18 -24
  147. package/dist/timeline/root/timeline-root.d.ts +13 -21
  148. package/dist/toast/item/toast-item.d.ts +21 -22
  149. package/dist/toast/root/toast-root.d.ts +18 -23
  150. package/dist/toggle/group/toggle-group.d.ts +23 -25
  151. package/dist/toggle/root/toggle-root.d.ts +8 -8
  152. package/dist/toolbar/root/toolbar-root.d.ts +7 -10
  153. package/dist/tooltip/root/tooltip-root.d.ts +41 -47
  154. package/dist/tour/root/tour-root.d.ts +24 -26
  155. package/dist/tour/stop/tour-stop.d.ts +39 -48
  156. package/dist/tree/item/tree-item.d.ts +23 -25
  157. package/dist/tree/root/tree-root.d.ts +13 -12
  158. package/dist/trend/root/trend-root.d.ts +18 -19
  159. package/dist/video/root/video-root.d.ts +108 -101
  160. package/dist/video-playlist/item/video-playlist-item.d.ts +23 -28
  161. package/dist/video-playlist/menu/video-playlist-menu.d.ts +17 -21
  162. package/dist/video-playlist/root/video-playlist-root.d.ts +21 -25
  163. package/dist/virtual-list/root/virtual-list-root.d.ts +27 -26
  164. package/package.json +5 -5
  165. package/types/jsx.d.ts +14011 -11983
  166. package/types/svelte.d.ts +10 -0
  167. package/types/vue.d.ts +2143 -1497
@@ -5,35 +5,33 @@ declare const HelixHeadlessToastItem_base: (new (...args: any[]) => import("@fus
5
5
  * @summary One message in the toast region.
6
6
  *
7
7
  * @description
8
- * An element rather than a slot, because it carries a timeout, a tone, a
9
- * dismiss control and a lifetime that pauses: behavior, state and API.
8
+ * Each message is an element because it has a timeout, a tone, a dismiss
9
+ * control, and a lifetime that pauses.
10
10
  *
11
- * **The timer is the item's own.** Held by the region, one message arriving
12
- * would restart another's, so a stack of three would go from three seconds each
13
- * to nine for the last.
11
+ * **Each item runs its own timer.** A timer held by the region would restart
12
+ * with each new message, and the last of three messages would stay for nine
13
+ * seconds.
14
14
  *
15
- * **A message is the opposite of the page it is over.** Inverted by default, so
16
- * a thing arriving in a corner is told apart from the page before it is read,
17
- * and by a flip of `color-scheme` rather than by spending a color that means
18
- * something.
15
+ * **Messages are inverted by default.** The item flips `color-scheme`, so a new
16
+ * message stands out from the page without using a color that carries meaning.
19
17
  *
20
18
  * @since 0.1.0
21
19
  * @status stable
22
20
  * @documentation https://fusion.dev/helix/components/toast
23
21
  *
24
22
  * @slot - The message.
25
- * @slot actions - What to do about it, usually a button or a link.
23
+ * @slot actions - Actions for the message, usually a button or a link.
26
24
  * @slot dismiss-icon - Replaces the glyph inside the dismiss control.
27
- * @slot icon - Replaces the tone mark. Matches `Callout`, which is why the
28
- * dismiss control's own glyph is `dismiss-icon` rather than this: two slots
29
- * cannot share a name, assignment goes to whichever comes first in the tree,
30
- * and the tone mark is the one a consumer reaches for.
25
+ * @slot icon - Replaces the tone mark. The name matches `Callout`. The dismiss
26
+ * control's glyph uses `dismiss-icon`, because two slots cannot share a name:
27
+ * content goes to whichever slot comes first in the tree, and the tone mark is
28
+ * the one you are more likely to replace.
31
29
  *
32
- * @event {HelixDismissEvent} helix-dismiss - Fired when it asks to go, whether by the control or by its timer. Cancelable: refusing it takes the decision and nothing moves.
30
+ * @event {HelixDismissEvent} helix-dismiss - Fired when the message is dismissed, by the control or by its timer, and cancelable. Canceling it keeps the message.
33
31
  *
34
- * @csspart actions - The region holding what to do about it.
32
+ * @csspart actions - The region that holds the actions.
35
33
  * @csspart content - The message.
36
- * @csspart dismiss - The control that asks to close.
34
+ * @csspart dismiss - The control that dismisses the message.
37
35
  * @csspart dismiss-mark - The glyph on the dismiss control, where none is slotted.
38
36
  * @csspart icon - The tone mark, where the message has one.
39
37
  * @csspart icon-mark - The tone glyph, where none is slotted.
@@ -44,7 +42,8 @@ declare const HelixHeadlessToastItem_base: (new (...args: any[]) => import("@fus
44
42
  */
45
43
  export declare class HelixHeadlessToastItem extends HelixHeadlessToastItem_base {
46
44
  /**
47
- * How long it stays, in milliseconds. Absent means until it is dismissed.
45
+ * How long the message stays, in milliseconds. When it is not set, the
46
+ * message stays until it is dismissed.
48
47
  *
49
48
  * Read once when the item is first rendered. Changing it afterwards does not
50
49
  * restart a message the reader is already partway through.
@@ -71,7 +70,7 @@ export declare class HelixHeadlessToastItem extends HelixHeadlessToastItem_base
71
70
  private remaining;
72
71
  private timer;
73
72
  /**
74
- * What kind of message it is, which picks the mark and its name.
73
+ * The kind of message, which sets its mark and the mark's accessible name.
75
74
  *
76
75
  * A subset of the tone axis: a toast reports a status and never a brand role.
77
76
  */
@@ -79,7 +78,7 @@ export declare class HelixHeadlessToastItem extends HelixHeadlessToastItem_base
79
78
  /** Whether it is showing, whoever said so, and `undefined` until somebody has. */
80
79
  private openState;
81
80
  /**
82
- * Asks to be taken away, and reports whether the request stood.
81
+ * Dismisses the message, and returns whether the dismissal went ahead.
83
82
  *
84
83
  * Announced before anything happens, so `preventDefault()` is a refusal and
85
84
  * the message stays. The event still carries the label, because a consumer
@@ -87,9 +86,9 @@ export declare class HelixHeadlessToastItem extends HelixHeadlessToastItem_base
87
86
  * true whether or not the item hid itself first.
88
87
  */
89
88
  dismiss(): boolean;
90
- /** Stops the clock, leaving whatever is left of it. */
89
+ /** Pauses the dismiss timer and keeps the time that is left. */
91
90
  pause(): void;
92
- /** Starts it again from where it stopped. */
91
+ /** Restarts the dismiss timer from where it paused. */
93
92
  resume(): void;
94
93
  /**
95
94
  * How many reasons there are to hold the clock, rather than whether there is
@@ -1,32 +1,27 @@
1
1
  import { HelixElement } from '@fusion.dev/helix-core';
2
2
  import { type PropertyValues, type TemplateResult } from 'lit';
3
3
  /**
4
- * @summary The region messages arrive in, and the only thing that announces them.
4
+ * @summary The region that holds toast messages, and the only element that announces them.
5
5
  *
6
6
  * @description
7
- * **The region is why this is one family rather than two.** A live region has
8
- * to be in the document *before* a message is put into it: assistive technology
9
- * subscribes to the region, and a region that arrives already holding its
10
- * message is frequently not announced at all. So the container is a part of the
11
- * family and not an arranger of complete things, which is the same reasoning
12
- * that puts `Radio.Group` inside its own family.
7
+ * The region and its items are one family because a live region must be in the
8
+ * document before a message is added to it. Assistive technology often does not
9
+ * announce a region that arrives already holding its message. `Radio.Group` is
10
+ * part of its family for the same reason.
13
11
  *
14
- * **Polite, never assertive.** `role="alert"` interrupts whatever a reader is
15
- * being told, and almost nothing that arrives in a corner of the screen has
16
- * earned that. Something that genuinely cannot wait is a `Dialog`, which stops
17
- * the page for everyone rather than only for the people who cannot see it.
12
+ * **The region is polite, never assertive.** `role="alert"` interrupts whatever
13
+ * a screen reader is reading. For something that cannot wait, use a `Dialog`,
14
+ * which stops the page for every user.
18
15
  *
19
- * **It never creates or destroys anything.** The consumer renders items and
20
- * removes them; asking to go is a cancelable `helix-dismiss` from the item. An
21
- * item that has gone hides itself and stays in the tree, so a consumer whose
22
- * state still lists it does not have their framework fighting a node this
23
- * component took away. It hides without waiting to be told, unless the consumer
24
- * declared `open` and said the state is theirs.
25
- * There is no `toast.show()`, because an imperative queue inside a component is
26
- * a second copy of the application's state that nothing can render from: an app
27
- * that wants a `toast()` function writes a thin one over the state it already
28
- * has, and keeps the ability to render the same messages on the server, in a
29
- * test, or twice.
16
+ * **The region never creates or removes items.** You render items and remove
17
+ * them. An item requests closing with a cancelable `helix-dismiss` event. A
18
+ * dismissed item hides itself and stays in the DOM, so your framework's state
19
+ * and the DOM stay in sync. It hides on its own unless you set `open`, which
20
+ * makes the state yours.
21
+ *
22
+ * There is no `toast.show()`. For a `toast()` function, write a small one over
23
+ * your app's state, which also lets you render the same messages on the server,
24
+ * in a test, or more than once.
30
25
  *
31
26
  * @since 0.1.0
32
27
  * @status stable
@@ -36,7 +31,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
36
31
  *
37
32
  * @slot - The messages.
38
33
  *
39
- * @event {HelixDismissEvent} helix-dismiss - A message asking to go, by its control or by its timer, dispatched by the message and heard here because the stack is what a consumer holds. Cancelable: refusing it takes the decision and the message stays.
34
+ * @event {HelixDismissEvent} helix-dismiss - A message is being dismissed, by its control or by its timer. The message sends it, and you can listen for it on the region. Cancelable: canceling it keeps the message.
40
35
  *
41
36
  * @csspart region - The stack the messages are in.
42
37
  */
@@ -5,15 +5,14 @@ declare const HelixHeadlessToggleGroup_base: (new (...args: any[]) => import("@f
5
5
  * @summary A row of options with the selection marked by a moving indicator.
6
6
  *
7
7
  * @description
8
- * The indicator is one element that travels, not a background that appears on
9
- * whichever item is current. A fill that swaps is two things changing at once
10
- * and reads as a flicker; one that moves is a single object the eye follows,
11
- * and it says where the selection came from as well as where it went.
8
+ * The indicator is one element that moves to the selected item. A single moving
9
+ * object is easier to follow than a fill that swaps, and it shows where the
10
+ * selection came from.
12
11
  *
13
- * Its box is measured from the selected item and written onto the indicator as
14
- * custom properties, labels being different lengths. Measurement is client-side
15
- * by necessity, so the server renders the indicator hidden and it fades in once
16
- * it has somewhere to be, which is the harmless direction.
12
+ * Its size and position are measured from the selected item and written to the
13
+ * indicator as custom properties, because labels have different lengths.
14
+ * Measurement happens on the client, so the server renders the indicator hidden
15
+ * and it fades in once measured.
17
16
  *
18
17
  * @since 0.1.0
19
18
  * @status stable
@@ -21,26 +20,25 @@ declare const HelixHeadlessToggleGroup_base: (new (...args: any[]) => import("@f
21
20
  * @documentation https://fusion.dev/helix/components/toggle
22
21
  *
23
22
  * @slot - The group's items.
24
- * @slot end - Whatever sits after the track on its own line, such as a count or a reset.
25
- * @slot start - Whatever sits before the track on its own line, such as an icon or a caption.
23
+ * @slot end - Content after the track, on the same line, such as a count or a reset.
24
+ * @slot start - Content before the track, on the same line, such as an icon or a caption.
26
25
  *
27
- * @event {Event} change - Announced once the value has moved.
28
- * @event {HelixBeforeChangeEvent} helix-before-change - Fired before the answer moves, and cancelable. The only way to refuse one.
29
- * @event {HelixSelectEvent} helix-select - Fired when an item is chosen. Dispatched by the item and listened for here. Cancelable: refusing it takes the decision and nothing moves.
30
- * @event {Event} input - Announced once the value has moved.
26
+ * @event {Event} change - Fired after the value changes.
27
+ * @event {HelixBeforeChangeEvent} helix-before-change - Fired before the choice changes. Cancelable: call `preventDefault()` to keep the current choice. It is the only way to block a change.
28
+ * @event {HelixSelectEvent} helix-select - Fired when an item is chosen. The item sends it, and you listen for it on the group. Cancelable: call `preventDefault()` to keep the current choice.
29
+ * @event {Event} input - Fired after the value changes.
31
30
  *
32
- * @csspart feedback - What is wrong with it.
33
- * @csspart hint - Help under the row, while nothing is wrong.
31
+ * @csspart feedback - The error message under the row.
32
+ * @csspart hint - The help text under the row, shown while there is no error.
34
33
  * @csspart indicator - The moving marker behind the selected item.
35
- * @csspart label - The question, over the row.
36
- * @csspart row - The line the track sits on, with whatever flanks it.
37
- * @csspart track - The bar the items sit in. The rule after an inline label,
38
- * separating it from the items, is drawn on the bar, which is
39
- * `::part(track)::before` from a consumer's sheet: this tier ships no CSS, so a
40
- * box it renders for one to paint is an empty child costing whatever the
41
- * consumer's own layout charges for a child. `ListItem` measured that.
34
+ * @csspart label - The label above the row.
35
+ * @csspart row - The line that holds the track and the content on either side of it.
36
+ * @csspart track - The bar the items sit in. Draw the line between an inline
37
+ * label and the items with `::part(track)::before` in your stylesheet. This tier
38
+ * ships no CSS, so it renders no separate element for the line, which would add
39
+ * an empty child to your layout.
42
40
  *
43
- * @cssstate invalid - While there is feedback to show: the platform's verdict, or the consumer's `feedback`.
41
+ * @cssstate invalid - The group has an error to show, from the browser's validation or from your `feedback`.
44
42
  */
45
43
  export declare class HelixHeadlessToggleGroup extends HelixHeadlessToggleGroup_base {
46
44
  /**
@@ -110,7 +108,7 @@ export declare class HelixHeadlessToggleGroup extends HelixHeadlessToggleGroup_b
110
108
  */
111
109
  private validate;
112
110
  /**
113
- * Where the group's label sits, `start` putting it on the track's line.
111
+ * Where the group's label sits. `start` puts it on the track's line.
114
112
  *
115
113
  * Absent is above, which is what a field looks like and what almost every
116
114
  * group wants. `start` is for a row of controls that are labeled rather than
@@ -5,11 +5,11 @@ declare const HelixHeadlessToggle_base: (new (...args: any[]) => import("@fusion
5
5
  * @summary One option in a toggle group.
6
6
  *
7
7
  * @description
8
- * Renders a `<button role="radio">`. This is a form control and nothing else.
8
+ * Renders a `<button role="radio">` for use as a form control.
9
9
  *
10
- * Navigation is not this. It is links marked with `aria-current` and styled by
11
- * the `data-navigation-item` recipe in the base layer, which carries the same look
12
- * without radio semantics announcing destinations as choices.
10
+ * Do not use it for navigation. For navigation, use links marked with
11
+ * `aria-current` and styled by the `data-navigation-item` recipe in the base
12
+ * layer. The recipe has the same look, and links are not announced as choices.
13
13
  *
14
14
  * @since 0.1.0
15
15
  * @status stable
@@ -19,15 +19,15 @@ declare const HelixHeadlessToggle_base: (new (...args: any[]) => import("@fusion
19
19
  *
20
20
  * @slot - The item's label.
21
21
  *
22
- * @event {HelixSelectEvent} helix-select - Fired when the item is chosen. Cancelable: refusing it takes the decision and nothing moves.
22
+ * @event {HelixSelectEvent} helix-select - Fired when the item is chosen. Cancelable: call `preventDefault()` to keep the current choice.
23
23
  *
24
24
  * @csspart item - The radio button.
25
25
  *
26
- * @cssstate selected - While it is on.
26
+ * @cssstate selected - The item is chosen.
27
27
  */
28
28
  export declare class HelixHeadlessToggle extends HelixHeadlessToggle_base {
29
29
  /**
30
- * Whether the markup declared this one chosen, which is what a reset returns to.
30
+ * Whether the markup declares the item chosen. A form reset returns to it.
31
31
  *
32
32
  * `<option selected>` reflects to `defaultSelected` and `option.selected` is
33
33
  * live state that does not reflect, and those are two different facts. This
@@ -56,7 +56,7 @@ export declare class HelixHeadlessToggle extends HelixHeadlessToggle_base {
56
56
  get defaultSelected(): boolean;
57
57
  set defaultSelected(next: boolean);
58
58
  /**
59
- * Whether this item holds the group's tab stop while nothing is chosen.
59
+ * Whether the item holds the group's tab stop while nothing is chosen.
60
60
  *
61
61
  * The stop normally rides on the selection, and an unanswered group has no
62
62
  * selection, so without this the keyboard cannot reach it. Written by the
@@ -4,15 +4,12 @@ import { type PropertyValues, type TemplateResult } from 'lit';
4
4
  * @summary A group of controls that share one tab stop.
5
5
  *
6
6
  * @description
7
- * Separate from a button group, and the difference is what it holds: a group is
8
- * homogeneous, a toolbar is not. A toolbar mixes buttons, toggles, and menus,
9
- * which is why it is its own component rather than a variant of something.
7
+ * A toolbar holds a mix of controls, such as buttons, toggles, and menus. A
8
+ * button group holds one kind, so the two are separate components.
10
9
  *
11
- * The whole toolbar is one tab stop and the arrows move between controls, so a
12
- * page with three toolbars costs three presses of Tab to get past rather than
13
- * thirty. Controls are found by asking the browser what is focusable rather
14
- * than by matching tag names, so a toolbar works with anything put in it,
15
- * including a consumer's own elements.
10
+ * The toolbar is one tab stop, and the arrow keys move between its controls, so
11
+ * three toolbars take three presses of Tab to pass. Any element the browser can
12
+ * focus counts as a control, including your own elements.
16
13
  *
17
14
  * @since 0.1.0
18
15
  * @status stable
@@ -26,11 +23,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
26
23
  */
27
24
  export declare class HelixHeadlessToolbar extends HelixElement {
28
25
  /**
29
- * Accessible name for the toolbar.
26
+ * The toolbar's name, read by screen readers.
30
27
  */
31
28
  label: string;
32
29
  /**
33
- * Which way the arrow keys move.
30
+ * The direction the arrow keys move focus in.
34
31
  */
35
32
  orientation?: 'horizontal' | 'vertical';
36
33
  private watcher;
@@ -2,40 +2,32 @@ import { HelixElement, type Placement } from '@fusion.dev/helix-core';
2
2
  import { type PropertyValues, type TemplateResult } from 'lit';
3
3
  declare const HelixHeadlessTooltip_base: (new (...args: any[]) => import("@fusion.dev/helix-core").MixinControllerOpenInterface) & typeof HelixElement;
4
4
  /**
5
- * @summary A short description that appears beside what it describes.
5
+ * @summary A short text that appears next to an element on hover and focus.
6
6
  *
7
7
  * @description
8
- * The trigger is slotted and stays the consumer's own element. The bubble is
9
- * rendered here, in the top layer through the popover API, so it clears any
10
- * ancestor with `overflow: hidden` without a `z-index` anywhere. Position comes
11
- * from `FloatingController`, which flips to another side when the preferred one
12
- * does not fit.
8
+ * The trigger is slotted and stays your own element. The bubble renders in the
9
+ * top layer through the popover API, so an ancestor with `overflow: hidden`
10
+ * does not clip it and no `z-index` is needed. `FloatingController` positions
11
+ * it and flips it to another side when the preferred side does not fit.
13
12
  *
14
- * **Two forms, and they are not equivalent for a screen reader.** Wrapping is
15
- * the convenience form and is right where the bubble decorates a control that
16
- * already says what it is: nothing here can describe a slotted trigger, an
17
- * IDREF being unable to cross a shadow boundary.
13
+ * Wrapping the trigger is the convenient form. Use it where the trigger already
14
+ * has an accessible name, because the tooltip cannot describe a slotted
15
+ * trigger: an IDREF cannot cross a shadow boundary.
18
16
  *
19
- * `for` is the form that works. The tooltip sits *beside* the trigger in the
20
- * consumer's own tree and names it by id, so an IDREF between them is legal in
21
- * the ordinary way:
17
+ * To add a description, place the tooltip beside the trigger and name the
18
+ * trigger with `for`:
22
19
  *
23
20
  * ```html
24
21
  * <helix-headless-button id="save" aria-describedby="save-tip">Save</helix-headless-button>
25
22
  * <helix-headless-tooltip id="save-tip" for="save" content="Save your work"></helix-headless-tooltip>
26
23
  * ```
27
24
  *
28
- * The reference points at *this host*, not at the bubble in its shadow root:
29
- * the description is computed from the flat tree, which descends into shadow
30
- * content on its own.
25
+ * Write the `aria-describedby` yourself, pointing at the tooltip host. Setting
26
+ * it at runtime causes a hydration mismatch that React does not fix. With
27
+ * `for`, the tooltip warns once on first open if the attribute is missing.
31
28
  *
32
- * **The consumer writes that `aria-describedby`, and nothing here writes it for
33
- * them.** Setting it at runtime is a hydration mismatch React will not patch
34
- * up. `for` audits itself on first open and warns once where it is missing.
35
- *
36
- * It shows on hover and on focus, and hides on leave, on blur, on Escape, and
37
- * once the trigger has been activated: the hint is spent when the control has
38
- * been used.
29
+ * The tooltip shows on hover and on focus. It hides on pointer leave, on blur,
30
+ * on Escape, and when the trigger is activated.
39
31
  *
40
32
  * @since 0.1.0
41
33
  * @status stable
@@ -43,24 +35,24 @@ declare const HelixHeadlessTooltip_base: (new (...args: any[]) => import("@fusio
43
35
  * @aliases Hint, Popup label
44
36
  * @documentation https://fusion.dev/helix/components/tooltip
45
37
  *
46
- * @slot - The trigger.
47
- * @slot content - The bubble's content, when `content` is not enough. Anything
48
- * slotted here replaces the property, which is this slot's fallback.
38
+ * @slot - The trigger: the element the tooltip describes.
39
+ * @slot content - Rich content for the bubble. It replaces the `content`
40
+ * property.
49
41
  *
50
- * @event {HelixBeforeCloseEvent} helix-before-close - Fired before it hides, and cancelable.
51
- * @event {HelixBeforeOpenEvent} helix-before-open - Fired before the bubble shows, and cancelable.
52
- * @event {Event} toggle - Says the state moved, carrying `newState` and `oldState`.
42
+ * @event {HelixBeforeCloseEvent} helix-before-close - The bubble is about to hide. Cancelable: cancel it to keep it shown.
43
+ * @event {HelixBeforeOpenEvent} helix-before-open - The bubble is about to show. Cancelable: cancel it to keep it hidden.
44
+ * @event {Event} toggle - The bubble opened or closed. The event carries `newState` and `oldState`.
53
45
  *
54
- * @csspart arrow - The point, resting against the trigger.
55
- * @csspart arrow-bottom - The point while the bubble is below its trigger, so on the bubble's top edge, beside `arrow`.
56
- * @csspart arrow-left - The point while the bubble is left of its trigger, so on the bubble's right edge, beside `arrow`.
57
- * @csspart arrow-right - The point while the bubble is right of its trigger, so on the bubble's left edge, beside `arrow`.
58
- * @csspart arrow-top - The point while the bubble is above its trigger, so on the bubble's bottom edge, beside `arrow`.
46
+ * @csspart arrow - The arrow that points at the trigger.
47
+ * @csspart arrow-bottom - Added to `arrow` while the bubble is below its trigger, with the arrow on the bubble's top edge.
48
+ * @csspart arrow-left - Added to `arrow` while the bubble is left of its trigger, with the arrow on the bubble's right edge.
49
+ * @csspart arrow-right - Added to `arrow` while the bubble is right of its trigger, with the arrow on the bubble's left edge.
50
+ * @csspart arrow-top - Added to `arrow` while the bubble is above its trigger, with the arrow on the bubble's bottom edge.
59
51
  * @csspart tooltip - The bubble.
60
- * @csspart tooltip-bottom - The bubble while it is below its trigger, beside `tooltip`.
61
- * @csspart tooltip-left - The bubble while it is left of its trigger, beside `tooltip`.
62
- * @csspart tooltip-right - The bubble while it is right of its trigger, beside `tooltip`.
63
- * @csspart tooltip-top - The bubble while it is above its trigger, beside `tooltip`.
52
+ * @csspart tooltip-bottom - Added to `tooltip` while the bubble is below its trigger.
53
+ * @csspart tooltip-left - Added to `tooltip` while the bubble is left of its trigger.
54
+ * @csspart tooltip-right - Added to `tooltip` while the bubble is right of its trigger.
55
+ * @csspart tooltip-top - Added to `tooltip` while the bubble is above its trigger.
64
56
  *
65
57
  * @cssstate open - While the tooltip shows.
66
58
  * @cssstate placed-bottom - While the bubble sits below its trigger.
@@ -90,11 +82,12 @@ export declare class HelixHeadlessTooltip extends HelixHeadlessTooltip_base {
90
82
  */
91
83
  delayOut: number;
92
84
  /**
93
- * Whether the tooltip never shows.
85
+ * Stops the tooltip from showing.
94
86
  */
95
87
  disabled: boolean;
96
88
  /**
97
- * The id of the element this describes, in this tooltip's own tree.
89
+ * The id of the element the tooltip describes, in the same document or shadow
90
+ * root as the tooltip.
98
91
  *
99
92
  * Set it and the tooltip stops wrapping: it renders no trigger, listens on
100
93
  * the element it names, and points its bubble there. Leave it unset and the
@@ -114,7 +107,7 @@ export declare class HelixHeadlessTooltip extends HelixHeadlessTooltip_base {
114
107
  */
115
108
  for: string;
116
109
  /**
117
- * Space between the trigger and the point of the bubble, in pixels.
110
+ * The space between the trigger and the tip of the bubble, in pixels.
118
111
  *
119
112
  * **Measured from the point, which is what the arrow being back changed.**
120
113
  * The arrow is drawn half outside the bubble, so a gap measured to the
@@ -126,7 +119,8 @@ export declare class HelixHeadlessTooltip extends HelixHeadlessTooltip_base {
126
119
  */
127
120
  offset: number;
128
121
  /**
129
- * Whether the bubble survives the trigger being used.
122
+ * Keeps the bubble open when the trigger is used, such as a copy button whose
123
+ * tooltip changes to "Copied".
130
124
  *
131
125
  * **Activation takes a tooltip down, because a hint about what a control will
132
126
  * do is spent once the control has done it.** That is right for a gear that
@@ -143,13 +137,13 @@ export declare class HelixHeadlessTooltip extends HelixHeadlessTooltip_base {
143
137
  */
144
138
  persist: boolean;
145
139
  /**
146
- * Preferred side.
140
+ * The side to show the bubble on.
147
141
  *
148
142
  * It moves if that side does not fit.
149
143
  */
150
144
  placement: Placement;
151
145
  /**
152
- * The id of a box to keep the bubble inside, instead of the viewport.
146
+ * The id of a box to keep the bubble inside. Defaults to the viewport.
153
147
  *
154
148
  * Resolved the way `for` is, so an id in the same tree, which is what lets a
155
149
  * component name a box in its own shadow root. A chart does: its bubble is
@@ -190,7 +184,7 @@ export declare class HelixHeadlessTooltip extends HelixHeadlessTooltip_base {
190
184
  */
191
185
  private get trigger();
192
186
  /**
193
- * Places the bubble again, for an anchor that moved without the page moving.
187
+ * Positions the bubble again, for a trigger that moved while the page did not.
194
188
  *
195
189
  * Public because a chart needs it. Its mark walks from reading to reading
196
190
  * while the page holds still, and `autoUpdate` watches scrolling, resizing
@@ -245,10 +239,10 @@ export declare class HelixHeadlessTooltip extends HelixHeadlessTooltip_base {
245
239
  * a framework does, would leave the trigger describing nothing.
246
240
  */
247
241
  private readonly handleContentChange;
248
- /** Shows the bubble, unless there is nothing to show. */
242
+ /** Shows the bubble, if it has content. */
249
243
  show(): void;
250
244
  /**
251
- * Closes the bubble, and cancels a show that had not happened yet.
245
+ * Hides the bubble, and cancels a pending show.
252
246
  *
253
247
  * The timer matters as much as the state: a pointer that arrives and leaves
254
248
  * inside the delay left one queued, and the tooltip appeared over whatever
@@ -2,22 +2,20 @@ import { HelixElement } from '@fusion.dev/helix-core';
2
2
  import { type PropertyValues, type TemplateResult } from 'lit';
3
3
  import type { HelixHeadlessTourStop } from '../stop/tour-stop.js';
4
4
  /**
5
- * @summary A guided run through an interface, one stop at a time.
5
+ * @summary A guided tour of an interface, one stop at a time.
6
6
  *
7
7
  * @description
8
- * The root owns the order and nothing else. Which stop is current, what Next
9
- * and Back mean, when the run is finished; the stops own where they point, and
10
- * the consumer owns every word.
8
+ * The root holds the order of the stops: which stop is current, what Next and
9
+ * Back do, and when the tour is finished. Each stop holds its target, and you
10
+ * write all the text.
11
11
  *
12
- * **The spotlight is a shadow, not a hole.** The scrim is a box the size of the
13
- * current target with an enormous spread on its `box-shadow`, so the darkness
14
- * is what the shadow paints. A `clip-path` on a full-screen scrim needs the
15
- * viewport in the same coordinate space as the cut, which stops being true the
16
- * moment anything between them is transformed.
12
+ * **The spotlight is a shadow.** The scrim is a box the size of the current
13
+ * target with a very large `box-shadow` spread, and the shadow paints the
14
+ * darkness. A `clip-path` on a full-screen scrim breaks as soon as an element
15
+ * between the scrim and the viewport is transformed.
17
16
  *
18
- * **It measures, and the target is an element elsewhere on the page whose
19
- * position nothing can know statically.** Nothing is measured on the server and
20
- * nothing needs to be: a tour starts when a reader asks for it.
17
+ * The root measures the target's position in the browser. Nothing is measured
18
+ * on the server, because a tour starts only on request.
21
19
  *
22
20
  * @since 0.1.0
23
21
  * @status stable
@@ -25,23 +23,23 @@ import type { HelixHeadlessTourStop } from '../stop/tour-stop.js';
25
23
  * @aliases Coachmark, Product tour, Walkthrough, Onboarding
26
24
  * @documentation https://fusion.dev/helix/components/tour
27
25
  *
28
- * @slot - The stops, in the order they should be visited.
26
+ * @slot - The stops, in the order they are shown.
29
27
  *
30
- * @event {HelixBeforeActivateEvent} helix-before-activate - Fired before the current stop moves, carrying the new index. Cancelable: refusing it takes the decision and nothing moves.
31
- * @event {HelixBeforeCloseEvent} helix-before-close - Fired before the reader leaves early. Cancelable: refusing it takes the decision and nothing moves.
28
+ * @event {HelixBeforeActivateEvent} helix-before-activate - Fired before the current stop changes, with the new index. Cancelable: call `preventDefault()` to stay on the current stop.
29
+ * @event {HelixBeforeCloseEvent} helix-before-close - Fired before the user ends the tour early. Cancelable: call `preventDefault()` to keep the tour open.
32
30
  * @event {HelixCompleteEvent} helix-complete - Fired when the last stop is
33
31
  * finished.
34
- * @event {HelixTourAskEvent} helix-tour-ask - A stop's own controls asking the tour to move, dispatched by the stop and heard here because the tour is what moves.
32
+ * @event {HelixTourAskEvent} helix-tour-ask - Fired when a stop's control is pressed to move the tour. The stop sends it, and the tour handles it.
35
33
  *
36
- * @csspart spotlight - The box over the current target, which paints the scrim.
34
+ * @csspart spotlight - The box over the current target. It also draws the dimmed area around the target.
37
35
  */
38
36
  export declare class HelixHeadlessTour extends HelixElement {
39
37
  /**
40
- * Label for the control that goes back, handed to every stop.
38
+ * Label for the control that goes back, passed to every stop.
41
39
  */
42
40
  backLabel: string;
43
41
  /**
44
- * Stop to start on, where nothing declared one.
42
+ * The stop to start on, when nothing else sets one.
45
43
  */
46
44
  defaultIndex: number;
47
45
  /**
@@ -51,7 +49,7 @@ export declare class HelixHeadlessTour extends HelixElement {
51
49
  /** The stop being shown, whoever set it, and `undefined` until somebody has. */
52
50
  private indexState;
53
51
  /**
54
- * Which stop the reader is on.
52
+ * The index of the stop being shown.
55
53
  *
56
54
  * **Moved through `requestChange`, never by assignment from `move`.** That
57
55
  * announces first and applies only if nobody refused, and refusing is how a
@@ -65,7 +63,7 @@ export declare class HelixHeadlessTour extends HelixElement {
65
63
  get index(): number;
66
64
  set index(next: number);
67
65
  /**
68
- * Accessible name for the run, such as "Getting started".
66
+ * The tour's name, read by screen readers, such as "Getting started".
69
67
  */
70
68
  label: string;
71
69
  /**
@@ -81,7 +79,7 @@ export declare class HelixHeadlessTour extends HelixElement {
81
79
  */
82
80
  skipLabel: string;
83
81
  /**
84
- * Space left around the target when it is lit, in pixels.
82
+ * The space around the target inside the spotlight, in pixels.
85
83
  */
86
84
  spotlightPadding: number;
87
85
  private assigned;
@@ -98,16 +96,16 @@ export declare class HelixHeadlessTour extends HelixElement {
98
96
  private sizer;
99
97
  /** What `sizer` is watching, so a render that changed nothing re-observes nothing. */
100
98
  private sized;
101
- /** The stops, in the order they were written. */
99
+ /** The stops, in source order. */
102
100
  get stops(): HelixHeadlessTourStop[];
103
101
  /** How many stops there are. */
104
102
  get length(): number;
105
- /** Goes on, and finishes the run on the last stop. */
103
+ /** Goes to the next stop, and finishes the tour on the last stop. */
106
104
  next(): void;
107
- /** Goes back, and does nothing on the first stop. */
105
+ /** Goes to the previous stop. It does nothing on the first stop. */
108
106
  back(): void;
109
107
  /**
110
- * Leaves the run early, which is a close rather than a completion.
108
+ * Ends the tour early, as a close. `helix-complete` is not fired.
111
109
  *
112
110
  * Announced before it is applied, and cancelable because of it: writing
113
111
  * `open` first and dispatching after leaves a consumer calling