@fusion.dev/helix-headless 0.247.1 → 0.248.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/accordion/item/accordion-item.d.ts +1 -1
- package/dist/accordion/root/accordion-root.d.ts +11 -2
- package/dist/announcement/root/announcement-root.d.ts +9 -8
- package/dist/app-header/root/app-header-root.d.ts +13 -9
- package/dist/area-chart/root/area-chart-root.d.ts +13 -5
- package/dist/avatar/group/avatar-group.d.ts +1 -1
- package/dist/avatar/root/avatar-root.d.ts +4 -1
- package/dist/badge/root/badge-root.d.ts +3 -7
- package/dist/bar-chart/root/bar-chart-root.d.ts +11 -3
- package/dist/blockquote/root/blockquote-root.d.ts +8 -5
- package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +10 -4
- package/dist/button/root/button-root.d.ts +8 -9
- package/dist/button-group/root/button-group-root.d.ts +8 -4
- package/dist/callout/root/callout-root.d.ts +6 -3
- package/dist/canvas/edge/canvas-edge.d.ts +1 -1
- package/dist/canvas/node/canvas-node.d.ts +1 -1
- package/dist/canvas/root/canvas-root.d.ts +9 -8
- package/dist/card/root/card-root.d.ts +5 -1
- package/dist/carousel/root/carousel-root.d.ts +12 -4
- package/dist/chat/composer/chat-composer.d.ts +1 -1
- package/dist/chat/message/chat-message.d.ts +1 -1
- package/dist/chat/root/chat-root.d.ts +16 -17
- package/dist/checkbox/root/checkbox-root.d.ts +7 -4
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +13 -9
- package/dist/code/root/code-root.d.ts +7 -4
- package/dist/code-block/root/code-block-root.d.ts +15 -8
- package/dist/code-editor/root/code-editor-root.d.ts +18 -7
- package/dist/code-input/root/code-input-root.d.ts +11 -6
- package/dist/color-input/root/color-input-root.d.ts +8 -1
- package/dist/color-picker/root/color-picker-root.d.ts +7 -1
- package/dist/column-manager/root/column-manager-root.d.ts +13 -5
- package/dist/combobox/root/combobox-root.d.ts +7 -13
- package/dist/command/root/command-root.d.ts +14 -9
- package/dist/copy-button/root/copy-button-root.d.ts +9 -4
- package/dist/data-table/root/data-table-root.d.ts +19 -15
- package/dist/date-input/root/date-input-root.d.ts +9 -1
- package/dist/date-picker/root/date-picker-root.d.ts +12 -8
- package/dist/description-list/item/description-list-item.d.ts +1 -1
- package/dist/description-list/root/description-list-root.d.ts +7 -1
- package/dist/device-screen/root/device-screen-root.d.ts +14 -9
- package/dist/dialog/root/dialog-root.d.ts +7 -5
- package/dist/divider/root/divider-root.d.ts +7 -5
- package/dist/donut-chart/root/donut-chart-root.d.ts +9 -7
- package/dist/drawer/root/drawer-root.d.ts +9 -11
- package/dist/drilldown/item/drilldown-item.d.ts +1 -1
- package/dist/drilldown/root/drilldown-root.d.ts +12 -7
- package/dist/editor/root/editor-root.d.ts +12 -3
- package/dist/empty/root/empty-root.d.ts +7 -5
- package/dist/file-input/root/file-input-root.d.ts +6 -1
- package/dist/filter-input/chip/filter-chip.d.ts +1 -1
- package/dist/filter-input/field/filter-field.d.ts +1 -1
- package/dist/filter-input/menu/filter-menu.d.ts +1 -1
- package/dist/filter-input/operator/filter-operator.d.ts +1 -1
- package/dist/filter-input/root/filter-input-root.d.ts +21 -29
- package/dist/find/root/find-root.d.ts +10 -1
- package/dist/format-date/root/format-date-root.d.ts +10 -5
- package/dist/graph/root/graph-root.d.ts +11 -5
- package/dist/heatmap/root/heatmap-root.d.ts +11 -4
- package/dist/hover-card/root/hover-card-root.d.ts +9 -7
- package/dist/icon/root/icon-root.d.ts +8 -4
- package/dist/icon-button/root/icon-button-root.d.ts +5 -1
- package/dist/image/root/image-root.d.ts +5 -1
- package/dist/input/root/input-root.d.ts +10 -3
- package/dist/kbd/root/kbd-root.d.ts +8 -12
- package/dist/legend/root/legend-root.d.ts +11 -8
- package/dist/lightbox/item/lightbox-item.d.ts +1 -1
- package/dist/lightbox/root/lightbox-root.d.ts +16 -9
- package/dist/line-chart/root/line-chart-root.d.ts +13 -8
- package/dist/list/item/list-item.d.ts +1 -1
- package/dist/list/root/list-root.d.ts +17 -12
- package/dist/listbox/root/listbox-root.d.ts +11 -18
- package/dist/loader/root/loader-root.d.ts +13 -9
- package/dist/log/group/log-group.d.ts +1 -1
- package/dist/log/line/log-line.d.ts +1 -1
- package/dist/log/root/log-root.d.ts +12 -4
- package/dist/map/area/map-area.d.ts +1 -1
- package/dist/map/buildings/map-buildings.d.ts +1 -1
- package/dist/map/contours/map-contours.d.ts +1 -1
- package/dist/map/landcover/map-landcover.d.ts +1 -1
- package/dist/map/marker/map-marker.d.ts +1 -1
- package/dist/map/points/map-points.d.ts +1 -1
- package/dist/map/position/map-position.d.ts +1 -1
- package/dist/map/raster/map-raster.d.ts +1 -1
- package/dist/map/root/map-root.d.ts +12 -7
- package/dist/map/route/map-route.d.ts +1 -1
- package/dist/map/terrain/map-terrain.d.ts +1 -1
- package/dist/markdown/root/markdown-root.d.ts +13 -9
- package/dist/megamenu/root/megamenu-root.d.ts +7 -4
- package/dist/menu/item/menu-item.d.ts +1 -1
- package/dist/menu/root/menu-root.d.ts +15 -22
- package/dist/menu/section/menu-section.d.ts +1 -1
- package/dist/meter/root/meter-root.d.ts +15 -8
- package/dist/meter/segment/meter-segment.d.ts +1 -1
- package/dist/motion-toggle/root/motion-toggle-root.d.ts +6 -1
- package/dist/navigation/root/navigation-root.d.ts +10 -4
- package/dist/notifications/group/notification-group.d.ts +1 -1
- package/dist/notifications/notification/notification.d.ts +1 -1
- package/dist/notifications/root/notifications-root.d.ts +10 -9
- package/dist/number-input/root/number-input-root.d.ts +7 -2
- package/dist/object-inspector/root/object-inspector-root.d.ts +14 -6
- package/dist/option/group/option-group.d.ts +1 -1
- package/dist/option/root/option-root.d.ts +11 -6
- package/dist/option/separator/option-separator.d.ts +1 -1
- package/dist/outline/root/outline-root.d.ts +7 -4
- package/dist/pagination/root/pagination-root.d.ts +10 -7
- package/dist/pagination/size/pagination-size.d.ts +1 -1
- package/dist/pagination/summary/pagination-summary.d.ts +1 -1
- package/dist/pin-input/root/pin-input-root.d.ts +7 -1
- package/dist/popover/root/popover-root.d.ts +12 -9
- package/dist/progress/root/progress-root.d.ts +13 -8
- package/dist/qr-code/root/qr-code-root.d.ts +7 -3
- package/dist/quick-filters/filter/quick-filter.d.ts +1 -1
- package/dist/quick-filters/root/quick-filters-root.d.ts +11 -6
- package/dist/quote/root/quote-root.d.ts +6 -6
- package/dist/radio/group/radio-group.d.ts +1 -1
- package/dist/radio/root/radio-root.d.ts +7 -4
- package/dist/rating/root/rating-root.d.ts +11 -6
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +14 -8
- package/dist/scroll-area/root/scroll-area-root.d.ts +4 -1
- package/dist/select/root/select-root.d.ts +9 -16
- package/dist/selection-bar/root/selection-bar-root.d.ts +12 -7
- package/dist/shortcut-overlay/root/shortcut-overlay-root.d.ts +10 -8
- package/dist/skeleton/root/skeleton-root.d.ts +9 -10
- package/dist/skip-link/root/skip-link-root.d.ts +3 -1
- package/dist/slider/root/slider-root.d.ts +14 -8
- package/dist/sparkline/root/sparkline-root.d.ts +9 -11
- package/dist/spatial-bar-chart/root/spatial-bar-chart-root.d.ts +7 -1
- package/dist/spatial-heatmap/root/spatial-heatmap-root.d.ts +8 -1
- package/dist/spatial-ribbon-chart/root/spatial-ribbon-chart-root.d.ts +7 -1
- package/dist/spatial-scatter-chart/root/spatial-scatter-chart-root.d.ts +8 -1
- package/dist/spatial-surface-chart/root/spatial-surface-chart-root.d.ts +8 -1
- package/dist/spatial-treemap/root/spatial-treemap-root.d.ts +7 -1
- package/dist/speed-dial/group/speed-dial-group.d.ts +1 -1
- package/dist/speed-dial/item/speed-dial-item.d.ts +1 -1
- package/dist/speed-dial/root/speed-dial-root.d.ts +13 -5
- package/dist/splitter/root/splitter-root.d.ts +17 -14
- package/dist/stat/group/stat-group.d.ts +1 -1
- package/dist/stat/root/stat-root.d.ts +25 -8
- package/dist/stat/root/stat-root.js +8 -2
- package/dist/steps/root/steps-root.d.ts +6 -4
- package/dist/steps/step/step.d.ts +1 -1
- package/dist/switch/root/switch-root.d.ts +7 -2
- package/dist/table/cell/table-cell.d.ts +1 -1
- package/dist/table/column/table-column.d.ts +1 -1
- package/dist/table/root/table-root.d.ts +14 -9
- package/dist/table/row/table-row.d.ts +1 -1
- package/dist/table-export/root/table-export-root.d.ts +11 -3
- package/dist/tabs/panel/tab-panel.d.ts +1 -1
- package/dist/tabs/root/tabs-root.d.ts +11 -3
- package/dist/tabs/tab/tab.d.ts +1 -1
- package/dist/tag/group/tag-group.d.ts +1 -1
- package/dist/tag/root/tag-root.d.ts +4 -4
- package/dist/terminal/root/terminal-root.d.ts +13 -6
- package/dist/textarea/root/textarea-root.d.ts +8 -1
- package/dist/theme-toggle/root/theme-toggle-root.d.ts +9 -4
- package/dist/time-input/root/time-input-root.d.ts +11 -5
- package/dist/time-picker/root/time-picker-root.d.ts +13 -10
- package/dist/timeline/group/timeline-group.d.ts +1 -1
- package/dist/timeline/item/timeline-item.d.ts +1 -1
- package/dist/timeline/root/timeline-root.d.ts +19 -11
- package/dist/toast/item/toast-item.d.ts +1 -1
- package/dist/toast/root/toast-root.d.ts +15 -15
- package/dist/toggle/group/toggle-group.d.ts +1 -1
- package/dist/toggle/root/toggle-root.d.ts +4 -1
- package/dist/toolbar/root/toolbar-root.d.ts +5 -1
- package/dist/tooltip/root/tooltip-root.d.ts +6 -6
- package/dist/tour/root/tour-root.d.ts +11 -4
- package/dist/tour/stop/tour-stop.d.ts +1 -1
- package/dist/tree/item/tree-item.d.ts +1 -1
- package/dist/tree/root/tree-root.d.ts +10 -3
- package/dist/trend/root/trend-root.d.ts +11 -6
- package/dist/video/root/video-root.d.ts +13 -10
- package/dist/video-playlist/item/video-playlist-item.d.ts +1 -1
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +1 -1
- package/dist/video-playlist/root/video-playlist-root.d.ts +11 -6
- package/dist/view-panel/root/view-panel-root.d.ts +14 -8
- package/dist/virtual-list/root/virtual-list-root.d.ts +13 -8
- package/examples.json +1 -1
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +266 -623
- package/types/vue.d.ts +267 -624
|
@@ -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.
|
|
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,7 +68,11 @@ 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.
|
|
73
|
-
* @
|
|
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`.
|
|
75
|
+
* @documentation https://fusion.dev/design/components/steps
|
|
74
76
|
*
|
|
75
77
|
* @slot - The steps.
|
|
76
78
|
*
|
|
@@ -34,7 +34,7 @@ import '../../button/index.js';
|
|
|
34
34
|
* @since 0.1.0
|
|
35
35
|
* @status stable
|
|
36
36
|
* @aliases Stage
|
|
37
|
-
* @documentation https://fusion.dev/
|
|
37
|
+
* @documentation https://fusion.dev/design/components/steps
|
|
38
38
|
*
|
|
39
39
|
* @slot - The step's name.
|
|
40
40
|
* @slot content - The stage's content. The headless tier always renders it, because it has no stylesheet to collapse it with. Your stylesheet decides whether it is collapsed.
|
|
@@ -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"
|
|
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,7 +34,12 @@ 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
|
-
* @
|
|
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.
|
|
42
|
+
* @documentation https://fusion.dev/design/components/switch
|
|
38
43
|
*
|
|
39
44
|
* @slot - The label that names what the switch turns on.
|
|
40
45
|
* @slot feedback - The message that says what is wrong, for content richer than a string. It shows while there is a message.
|
|
@@ -21,7 +21,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
21
21
|
* @since 0.1.0
|
|
22
22
|
* @status stable
|
|
23
23
|
* @aliases Cell, TableCell
|
|
24
|
-
* @documentation https://fusion.dev/
|
|
24
|
+
* @documentation https://fusion.dev/design/components/table
|
|
25
25
|
*
|
|
26
26
|
* @slot - The cell's content.
|
|
27
27
|
*
|
|
@@ -82,7 +82,7 @@ export { edgeOf } from '../edge.js';
|
|
|
82
82
|
* @since 0.1.0
|
|
83
83
|
* @status stable
|
|
84
84
|
* @aliases Column header, Th
|
|
85
|
-
* @documentation https://fusion.dev/
|
|
85
|
+
* @documentation https://fusion.dev/design/components/table
|
|
86
86
|
*
|
|
87
87
|
* @slot - The heading.
|
|
88
88
|
*
|
|
@@ -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.
|
|
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.
|
|
91
|
-
*
|
|
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
|
|
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,7 +154,16 @@ declare const HelixHeadlessTable_base: (new (...args: any[]) => import("@fusion.
|
|
|
158
154
|
* @status stable
|
|
159
155
|
* @category data
|
|
160
156
|
* @aliases DataTable, Grid table
|
|
161
|
-
* @
|
|
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.
|
|
166
|
+
* @documentation https://fusion.dev/design/components/table
|
|
162
167
|
*
|
|
163
168
|
* @slot - The table's rows.
|
|
164
169
|
* @slot columns - The columns, as `TableColumn` elements. The table moves each column here itself, so markup that runs in a browser leaves it out; a server-rendered page writes `slot="columns"` on each column so the headings sit in place before the table upgrades.
|
|
@@ -39,7 +39,7 @@ export type TableRowMove = 'dragging' | 'drop-after' | 'drop-before';
|
|
|
39
39
|
* @since 0.1.0
|
|
40
40
|
* @status stable
|
|
41
41
|
* @aliases Row, TableRow
|
|
42
|
-
* @documentation https://fusion.dev/
|
|
42
|
+
* @documentation https://fusion.dev/design/components/table
|
|
43
43
|
*
|
|
44
44
|
* @slot - The row's cells.
|
|
45
45
|
*
|
|
@@ -15,8 +15,7 @@ interface ExportChoices {
|
|
|
15
15
|
* @summary A panel that exports a Data Table's rows: which rows, which columns, which values, and the format.
|
|
16
16
|
*
|
|
17
17
|
* @description
|
|
18
|
-
* Set `for` to the id of a `DataTable
|
|
19
|
-
* a `Dialog` opened by an Export button.
|
|
18
|
+
* Set `for` to the id of a `DataTable`.
|
|
20
19
|
*
|
|
21
20
|
* ```html
|
|
22
21
|
* <helix-table-export for="invoices"></helix-table-export>
|
|
@@ -38,7 +37,16 @@ interface ExportChoices {
|
|
|
38
37
|
* @status experimental
|
|
39
38
|
* @category data
|
|
40
39
|
* @aliases Download, Export dialog
|
|
41
|
-
* @
|
|
40
|
+
* @use A file or a copy of a Data Table's rows, in the columns and format you pick.
|
|
41
|
+
* @instead copy-button - One string copied to the clipboard.
|
|
42
|
+
* @instead column-manager - The columns a table shows on the page.
|
|
43
|
+
* @anatomy rows
|
|
44
|
+
* @anatomy columns
|
|
45
|
+
* @anatomy values
|
|
46
|
+
* @anatomy format
|
|
47
|
+
* @anatomy actions
|
|
48
|
+
* @practice Put Table Export in a Popover or a Dialog opened by an Export button. - The panel is the content, and it draws no trigger of its own.
|
|
49
|
+
* @documentation https://fusion.dev/design/components/table-export
|
|
42
50
|
*
|
|
43
51
|
* @csspart actions - The row that holds Copy and Export.
|
|
44
52
|
* @csspart choice - One choice, a `Radio`.
|
|
@@ -33,7 +33,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
33
33
|
* @since 0.1.0
|
|
34
34
|
* @status stable
|
|
35
35
|
* @aliases TabPanel
|
|
36
|
-
* @documentation https://fusion.dev/
|
|
36
|
+
* @documentation https://fusion.dev/design/components/tabs
|
|
37
37
|
*
|
|
38
38
|
* @slot - The panel's content. Under `lazy`, a `<template>` holding it.
|
|
39
39
|
*
|
|
@@ -13,8 +13,7 @@ declare const HelixHeadlessTabs_base: (new (...args: any[]) => import("@fusion.d
|
|
|
13
13
|
* The tab list is a single tab stop, and the arrow keys move between tabs
|
|
14
14
|
* through `KeyboardNavigationController`, the same as in the radio and toggle
|
|
15
15
|
* groups. Selection follows focus, which suits a small set where showing a
|
|
16
|
-
* panel is cheap.
|
|
17
|
-
* move without selecting.
|
|
16
|
+
* panel is cheap.
|
|
18
17
|
*
|
|
19
18
|
* `orientation="vertical"` sets the tabs in a column beside the panels, and the
|
|
20
19
|
* tab list says `aria-orientation="vertical"`. The arrow keys of both axes move
|
|
@@ -73,7 +72,16 @@ declare const HelixHeadlessTabs_base: (new (...args: any[]) => import("@fusion.d
|
|
|
73
72
|
* @status stable
|
|
74
73
|
* @category navigation
|
|
75
74
|
* @aliases TabList, Segmented control
|
|
76
|
-
* @
|
|
75
|
+
* @use Panels of one page that you switch between, such as Overview and Activity.
|
|
76
|
+
* @instead toggle - A choice that changes how one view looks, such as list or grid.
|
|
77
|
+
* @instead accordion - Sections stacked on the page, opened one or more at a time.
|
|
78
|
+
* @instead navigation - Links to other pages, with the current one marked.
|
|
79
|
+
* @anatomy tab
|
|
80
|
+
* @anatomy indicator
|
|
81
|
+
* @anatomy panel
|
|
82
|
+
* @practice {manual} Set `manual` where showing a panel is expensive. - Under `manual`, the arrow keys move focus without selecting.
|
|
83
|
+
* @practice Put a control that adds a tab, such as a plus, beside the set. - The tab list then holds tabs alone.
|
|
84
|
+
* @documentation https://fusion.dev/design/components/tabs
|
|
77
85
|
*
|
|
78
86
|
* @slot - The tabs, as direct children of this element.
|
|
79
87
|
* @slot indicator - A mark of your own, drawn inside the `indicator` part, where `--indicator-x`, `--indicator-y`, `--indicator-inline-size` and `--indicator-block-size` reach it.
|
package/dist/tabs/tab/tab.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const HelixHeadlessTab_base: (new (...args: any[]) => import("@fusion.de
|
|
|
24
24
|
* @since 0.1.0
|
|
25
25
|
* @status stable
|
|
26
26
|
* @aliases Tab
|
|
27
|
-
* @documentation https://fusion.dev/
|
|
27
|
+
* @documentation https://fusion.dev/design/components/tabs
|
|
28
28
|
*
|
|
29
29
|
* @slot - The tab's label.
|
|
30
30
|
* @slot dismiss-icon - Replaces the glyph on the mark that closes a `dismissible` tab.
|
|
@@ -57,7 +57,7 @@ export type TagSelectionMode = SelectionMode;
|
|
|
57
57
|
* @since 0.1.0
|
|
58
58
|
* @status stable
|
|
59
59
|
* @aliases Tag list, Chip group, Token list
|
|
60
|
-
* @documentation https://fusion.dev/
|
|
60
|
+
* @documentation https://fusion.dev/design/components/tag
|
|
61
61
|
*
|
|
62
62
|
* @slot - The tags, in the order they are read.
|
|
63
63
|
* @slot empty - Shown in place of the tags while there are none, such as "No filters". Its fallback is `empty-text`.
|
|
@@ -9,9 +9,7 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
9
9
|
* from a badge: a badge shows a state that people cannot change, and a tag
|
|
10
10
|
* names something they can remove.
|
|
11
11
|
*
|
|
12
|
-
* The remove button sends `helix-dismiss`.
|
|
13
|
-
* because your code owns the list it is in, so remove it in your handler. A
|
|
14
|
-
* listener can cancel `helix-dismiss`, and `dismiss()` then returns `false`.
|
|
12
|
+
* The remove button sends `helix-dismiss`. A listener can cancel `helix-dismiss`, and `dismiss()` then returns `false`.
|
|
15
13
|
* When the handler removes a tag whose remove button has focus, focus moves to
|
|
16
14
|
* the next tag's remove button, or to the previous one's after the last tag.
|
|
17
15
|
*
|
|
@@ -42,7 +40,9 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
42
40
|
* @use A word that classifies content, such as a status or a topic.
|
|
43
41
|
* @instead badge - A count pinned to another element.
|
|
44
42
|
* @instead button - A word that performs an action.
|
|
45
|
-
* @
|
|
43
|
+
* @anatomy label
|
|
44
|
+
* @practice {group} Remove a dismissed tag in your listener. - The tag does not remove itself, because your code owns the list it is in.
|
|
45
|
+
* @documentation https://fusion.dev/design/components/tag
|
|
46
46
|
*
|
|
47
47
|
* @slot - The tag's label.
|
|
48
48
|
* @slot dismiss-icon - Replaces the glyph on the remove button.
|
|
@@ -118,9 +118,8 @@ export interface TerminalSink {
|
|
|
118
118
|
*
|
|
119
119
|
* The controls are a row in the header, and `controls` names which ones:
|
|
120
120
|
* `find`, `copy`, `clear`, and `fullscreen`. `find clear` by default. A control
|
|
121
|
-
* the renderer cannot answer is left out once it is connected.
|
|
122
|
-
*
|
|
123
|
-
* and shows a Restart button that sends `helix-terminal-restart`.
|
|
121
|
+
* the renderer cannot answer is left out once it is connected. The Restart
|
|
122
|
+
* button shown once the process exits sends `helix-terminal-restart`.
|
|
124
123
|
*
|
|
125
124
|
* **Keyboard.** Every key goes to the program, Tab, Shift+Tab, and Escape
|
|
126
125
|
* included, except these:
|
|
@@ -139,14 +138,22 @@ export interface TerminalSink {
|
|
|
139
138
|
* screen reader reads nothing in it by default. Set `screen-reader-mode` to
|
|
140
139
|
* have the renderer keep the grid as lines a screen reader can move through
|
|
141
140
|
* and announce new output as it arrives, which xterm.js calls screen reader
|
|
142
|
-
* mode.
|
|
143
|
-
* a setting your reader can turn on.
|
|
141
|
+
* mode.
|
|
144
142
|
*
|
|
145
143
|
* @since 0.209.0
|
|
146
144
|
* @status experimental
|
|
147
145
|
* @category media
|
|
148
146
|
* @aliases Terminal emulator, Shell, xterm
|
|
149
|
-
* @
|
|
147
|
+
* @use A shell session on the page, drawn by xterm.js or another terminal emulator.
|
|
148
|
+
* @instead log - Output that you only read, such as a build log.
|
|
149
|
+
* @instead code-block - A command or its output, fixed, to read and copy.
|
|
150
|
+
* @anatomy label
|
|
151
|
+
* @anatomy controls
|
|
152
|
+
* @anatomy viewport
|
|
153
|
+
* @practice Set `exit-code` when the process exits. - The frame says how it exited, stops sending input, and shows a Restart button.
|
|
154
|
+
* @practice Connect `screen-reader-mode` to a setting your reader can turn on. - It costs time on every write, so it is off by default.
|
|
155
|
+
* @practice {in-a-pane} Set `fill` for a terminal that fills a pane, such as one side of a Splitter, and give the pane a position, such as relative. - The frame covers its container.
|
|
156
|
+
* @documentation https://fusion.dev/design/components/terminal
|
|
150
157
|
*
|
|
151
158
|
* @slot - The element your renderer draws the terminal in.
|
|
152
159
|
* @slot actions - Controls of your own in the header, before the built-in ones, such as a button that splits the pane.
|
|
@@ -35,7 +35,14 @@ declare const HelixHeadlessTextarea_base: (new (...args: any[]) => import("@fusi
|
|
|
35
35
|
* @status stable
|
|
36
36
|
* @category forms
|
|
37
37
|
* @aliases Multiline, TextArea
|
|
38
|
-
* @
|
|
38
|
+
* @use Text that runs to several lines, such as a description or a comment.
|
|
39
|
+
* @instead input - A single line of text, such as a name.
|
|
40
|
+
* @instead code-input - A short piece of code, highlighted as you type.
|
|
41
|
+
* @instead editor - A document with headings, lists, and links.
|
|
42
|
+
* @anatomy label
|
|
43
|
+
* @anatomy field
|
|
44
|
+
* @anatomy hint?
|
|
45
|
+
* @documentation https://fusion.dev/design/components/textarea
|
|
39
46
|
*
|
|
40
47
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
41
48
|
* @slot end - After the text, for an icon or an action beside it.
|
|
@@ -14,9 +14,7 @@ import { type TemplateResult } from 'lit';
|
|
|
14
14
|
* Two of these on one page agree, and a page can set the mode in its markup,
|
|
15
15
|
* or from its own code with `setColorMode` from `@fusion.dev/helix-core`,
|
|
16
16
|
* which takes the same transitions. With no attribute the page follows the
|
|
17
|
-
* reader's system setting, and the button says which mode that is.
|
|
18
|
-
* reader's choice across visits, listen for `change` and write the mode into
|
|
19
|
-
* the page you serve next.
|
|
17
|
+
* reader's system setting, and the button says which mode that is.
|
|
20
18
|
*
|
|
21
19
|
* **The one Helix component that starts a view transition.** A view transition
|
|
22
20
|
* draws the whole document twice and runs between the two pictures, so a
|
|
@@ -35,7 +33,14 @@ import { type TemplateResult } from 'lit';
|
|
|
35
33
|
* @status experimental
|
|
36
34
|
* @category actions
|
|
37
35
|
* @aliases Dark mode toggle, Color mode switch, Light and dark switch, Theme switcher
|
|
38
|
-
* @
|
|
36
|
+
* @use A control in the page's header that switches the page between light and dark.
|
|
37
|
+
* @instead toggle - A choice among light, dark, and the system setting.
|
|
38
|
+
* @instead switch - A color mode setting among the other settings of a form.
|
|
39
|
+
* @instead motion-toggle - A press that pauses the motion on the page.
|
|
40
|
+
* @anatomy button
|
|
41
|
+
* @anatomy icon
|
|
42
|
+
* @practice Listen for the change event, and write the mode into the next page you serve. - The button sets the mode on the page in front of you, and the next page starts from its own markup.
|
|
43
|
+
* @documentation https://fusion.dev/design/components/theme-toggle
|
|
39
44
|
*
|
|
40
45
|
* @slot - The button's text, where it shows more than its icon. Defaults to nothing, the icon alone, named by `label`.
|
|
41
46
|
* @slot icon - Replaces the icon, which is the moon while the page is light and the sun while it is dark.
|
|
@@ -15,10 +15,7 @@ declare const HelixHeadlessTimeInput_base: (new (...args: any[]) => import("@fus
|
|
|
15
15
|
* You can type a time or pick one. The list offers times at a step, and the
|
|
16
16
|
* field lets you enter any time, such as `09:07`.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
* `seconds`, because that is what the form
|
|
20
|
-
* submits, what `min` and `max` compare against, and what sorts correctly as a
|
|
21
|
-
* string. While idle, the field shows the time in the user's locale format.
|
|
18
|
+
* While idle, the field shows the time in the user's locale format.
|
|
22
19
|
* Once the caret is in the field, it shows the value itself. You can type
|
|
23
20
|
* `14:30`, or a time as you write one, such as `2:30 PM`, `2.30pm`, or
|
|
24
21
|
* `14h30`, and the field reads it as you leave it, with AM and PM in the
|
|
@@ -65,7 +62,16 @@ declare const HelixHeadlessTimeInput_base: (new (...args: any[]) => import("@fus
|
|
|
65
62
|
* @status stable
|
|
66
63
|
* @category forms
|
|
67
64
|
* @aliases TimeField, InputTime
|
|
68
|
-
* @
|
|
65
|
+
* @use A time in a form, typed or picked from a panel that opens, such as a start time.
|
|
66
|
+
* @instead time-picker - A list of times you choose from on the page, such as booking slots.
|
|
67
|
+
* @instead date-input - A date in a form.
|
|
68
|
+
* @anatomy label
|
|
69
|
+
* @anatomy field
|
|
70
|
+
* @anatomy trigger
|
|
71
|
+
* @anatomy hint?
|
|
72
|
+
* @anatomy surface
|
|
73
|
+
* @practice Write `value`, `min`, and `max` as 24-hour `HH:mm`, or `HH:mm:ss` with `seconds`. - The form submits that shape, and it sorts correctly as a string.
|
|
74
|
+
* @documentation https://fusion.dev/design/components/time-input
|
|
69
75
|
*
|
|
70
76
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
71
77
|
* @slot end - Content after the time, before the trigger, such as a clear button.
|
|
@@ -18,18 +18,14 @@ declare const HelixHeadlessTimePicker_base: (new (...args: any[]) => import("@fu
|
|
|
18
18
|
* draws a button that chooses the current time, on the step and inside the
|
|
19
19
|
* bounds.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* way Date Input separates typing a date from picking one on the calendar.
|
|
21
|
+
* Use the list for the times your product offers, and Time Input for any
|
|
22
|
+
* time, the same way Date Input separates typing a date from picking one on
|
|
23
|
+
* the calendar.
|
|
25
24
|
*
|
|
26
|
-
*
|
|
27
|
-
* `seconds`. A form submits that shape,
|
|
28
|
-
* `min` and `max` compare against it, and it sorts as a string. Each row's text
|
|
29
|
-
* follows the person's own conventions, from `Intl`.
|
|
25
|
+
* Each row's text follows the person's own conventions, from `Intl`.
|
|
30
26
|
*
|
|
31
27
|
* The chosen row is marked in the served markup. The listbox gets the answer as
|
|
32
|
-
* `.value`, and Lit SSR serializes no property binding, so without more the
|
|
28
|
+
* `.value`, and Lit SSR serializes no property binding, so without more the
|
|
33
29
|
* served rows would carry no mark until the listbox upgrades and runs `place`.
|
|
34
30
|
* Each option also gets `selected`, an attribute binding that does serialize,
|
|
35
31
|
* and `place` then writes the same answer from the same value. This is the same
|
|
@@ -65,7 +61,14 @@ declare const HelixHeadlessTimePicker_base: (new (...args: any[]) => import("@fu
|
|
|
65
61
|
* @status stable
|
|
66
62
|
* @category forms
|
|
67
63
|
* @aliases Time, TimeList
|
|
68
|
-
* @
|
|
64
|
+
* @use A time chosen on the page from a list of times, such as a booking slot.
|
|
65
|
+
* @instead time-input - A time in a form field, typed or picked from a panel that opens.
|
|
66
|
+
* @instead date-picker - A date on a month calendar.
|
|
67
|
+
* @anatomy list
|
|
68
|
+
* @anatomy option
|
|
69
|
+
* @practice Write `value`, `min`, and `max` as 24-hour `HH:mm`, or `HH:mm:ss` with `seconds`. - The form submits that shape, and it sorts correctly as a string.
|
|
70
|
+
* @practice Keep `step` at 15 minutes or more where the list spans a day. - At 15 minutes a day is 96 rows, which people can scroll or type into, and at 1 minute it is 1,440.
|
|
71
|
+
* @documentation https://fusion.dev/design/components/time-picker
|
|
69
72
|
*
|
|
70
73
|
* @slot empty - What the list shows when no time falls between `min` and `max`, for content richer than `empty-text`.
|
|
71
74
|
* @slot hint - Help under the times, for content richer than the `hint` text.
|
|
@@ -17,7 +17,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
17
17
|
* @since 0.1.0
|
|
18
18
|
* @status stable
|
|
19
19
|
* @aliases Day, Date group
|
|
20
|
-
* @documentation https://fusion.dev/
|
|
20
|
+
* @documentation https://fusion.dev/design/components/timeline
|
|
21
21
|
*
|
|
22
22
|
* @slot - The entries.
|
|
23
23
|
* @slot heading - The heading, when it is more than text. Falls back to `label`.
|
|
@@ -36,7 +36,7 @@ type TimelineTone = 'danger' | 'info' | 'neutral' | 'primary' | 'success' | 'war
|
|
|
36
36
|
* @status stable
|
|
37
37
|
* @category data
|
|
38
38
|
* @aliases Activity item, History entry, Event
|
|
39
|
-
* @documentation https://fusion.dev/
|
|
39
|
+
* @documentation https://fusion.dev/design/components/timeline
|
|
40
40
|
*
|
|
41
41
|
* @slot - What happened.
|
|
42
42
|
* @slot marker - The mark on the line. Defaults to a dot, which is the slot's fallback
|
|
@@ -16,27 +16,35 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
16
16
|
* The host has `role="list"`, because the entries are your elements in the
|
|
17
17
|
* light DOM. `Steps` does the same.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* entries are a list of their own named by the heading.
|
|
19
|
+
* A `Timeline.Group` is an entry of the timeline, and its entries are a list
|
|
20
|
+
* of their own named by its heading.
|
|
22
21
|
*
|
|
23
22
|
* **The reading order is the order you write the entries in**, in every layout
|
|
24
23
|
* the styled tier draws: down the page, either side of a line down the middle,
|
|
25
24
|
* or across the page. Inside each entry the time is read before what happened.
|
|
26
|
-
*
|
|
27
|
-
* and the layout only moves where they are drawn.
|
|
25
|
+
* The layout only moves where they are drawn.
|
|
28
26
|
*
|
|
29
|
-
* **
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* entry when they arrive.
|
|
27
|
+
* **While `loading` is set, the timeline is busy**, and an entry after the
|
|
28
|
+
* last says "Loading", the word every collection uses (`loading-text`, or
|
|
29
|
+
* your own content in the `loading` slot). Move focus to the first new entry
|
|
30
|
+
* when they arrive.
|
|
34
31
|
*
|
|
35
32
|
* @since 0.1.0
|
|
36
33
|
* @status stable
|
|
37
34
|
* @category data
|
|
38
35
|
* @aliases Activity feed, History, Changelog, Audit trail
|
|
39
|
-
* @
|
|
36
|
+
* @use Events in the order they happened, such as a deployment's history.
|
|
37
|
+
* @instead notifications - Events you mark read and come back to.
|
|
38
|
+
* @instead steps - The stages of a task still under way, such as a checkout.
|
|
39
|
+
* @instead log - Lines of output that arrive while you watch.
|
|
40
|
+
* @anatomy item
|
|
41
|
+
* @anatomy marker
|
|
42
|
+
* @anatomy time
|
|
43
|
+
* @anatomy content
|
|
44
|
+
* @practice Write the entries in the order the events happened, oldest or newest first. - The reading order is the order you write them in, in every layout.
|
|
45
|
+
* @practice {grouped} Group entries by date with `Timeline.Group`. - The group puts a heading such as Today over its entries.
|
|
46
|
+
* @practice Set `loading` while you fetch more entries, and put a button that asks for more after the timeline. - The timeline is busy, and an entry after the last says Loading.
|
|
47
|
+
* @documentation https://fusion.dev/design/components/timeline
|
|
40
48
|
*
|
|
41
49
|
* @slot - The entries, and any groups of them.
|
|
42
50
|
* @slot loading - Content for the entry after the last while `loading` is set. Falls back to `loading-text`.
|
|
@@ -40,7 +40,7 @@ declare const HelixHeadlessToastItem_base: (new (...args: any[]) => import("@fus
|
|
|
40
40
|
*
|
|
41
41
|
* @since 0.1.0
|
|
42
42
|
* @status stable
|
|
43
|
-
* @documentation https://fusion.dev/
|
|
43
|
+
* @documentation https://fusion.dev/design/components/toast
|
|
44
44
|
*
|
|
45
45
|
* @slot - The message.
|
|
46
46
|
* @slot actions - Actions for the message, usually a button or a link.
|
|
@@ -31,20 +31,16 @@ import '../../button/index.js';
|
|
|
31
31
|
* and the DOM stay in sync. It hides on its own unless you set `open`, which
|
|
32
32
|
* makes the state yours.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* removes it once it has been dismissed and has finished leaving. Messages
|
|
37
|
-
* you render yourself stay yours, and the region never removes them. A touch
|
|
34
|
+
* The message `add()` appends is of the region's own tier, and is removed once
|
|
35
|
+
* it has finished leaving. A touch
|
|
38
36
|
* or a pen swipes a message away toward the edge the stack sits at, the end
|
|
39
37
|
* of the line unless `placement` puts it at the start, or toward the edge
|
|
40
38
|
* `swipe-direction` names.
|
|
41
39
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* which keys do. Keep a confirmation for an action that cannot be taken back or
|
|
47
|
-
* that reaches someone else, such as sending or paying.
|
|
40
|
+
* Command+Z (Control+Z elsewhere) undoes an `undoable()` action while its
|
|
41
|
+
* message shows, and a screen reader hears which keys do. Keep a confirmation
|
|
42
|
+
* for an action that cannot be taken back or that reaches someone else, such
|
|
43
|
+
* as sending or paying.
|
|
48
44
|
*
|
|
49
45
|
* **Every message's timer waits while a pointer or focus is in the stack**, as
|
|
50
46
|
* React Aria's and Radix's regions do, so a reader moving from one message to
|
|
@@ -55,12 +51,11 @@ import '../../button/index.js';
|
|
|
55
51
|
* opened after it, and above a modal `Dialog`, `Drawer` or `Lightbox` that
|
|
56
52
|
* opened while it showed. Position the `region` part, which is the box in the
|
|
57
53
|
* top layer. While a modal is open, the browser makes everything outside it
|
|
58
|
-
* inert, the stack included, so a
|
|
59
|
-
*
|
|
60
|
-
* moves off the modal's surface, above, below or beside it by its own inset,
|
|
54
|
+
* inert, the stack included, so a press on a message reaches nothing under it.
|
|
55
|
+
* The stack moves off the modal's surface, above, below or beside it by its own inset,
|
|
61
56
|
* and is hidden while the window has no room outside the surface. Where the
|
|
62
57
|
* browser has `ariaNotify`, a message that arrives then is announced through
|
|
63
|
-
* it.
|
|
58
|
+
* it.
|
|
64
59
|
*
|
|
65
60
|
* When a message with focus inside it is dismissed, focus moves to the next
|
|
66
61
|
* message, then the one before it, then back to where it was before it entered
|
|
@@ -87,7 +82,12 @@ import '../../button/index.js';
|
|
|
87
82
|
* @use A confirmation of something you just did, such as saving a change.
|
|
88
83
|
* @instead callout - A message that must stay until it is read.
|
|
89
84
|
* @instead announcement - News for the whole site.
|
|
90
|
-
* @
|
|
85
|
+
* @anatomy region
|
|
86
|
+
* @anatomy item
|
|
87
|
+
* @practice {undo} Do an action that can be undone, then call `undoable()`. - The message holds an Undo button and shows for 8 seconds, which replaces a confirmation dialog.
|
|
88
|
+
* @practice Call `add()` to show a message from a page with no framework state. - It appends a message and removes it once it is dismissed, and the messages you render stay yours.
|
|
89
|
+
* @practice Render a second region inside a modal dialog for a message with an action. - While a modal is open, a message outside it stays visible, and its actions cannot be pressed.
|
|
90
|
+
* @documentation https://fusion.dev/design/components/toast
|
|
91
91
|
*
|
|
92
92
|
* @slot - The messages.
|
|
93
93
|
*
|
|
@@ -48,7 +48,7 @@ declare const HelixHeadlessToggleGroup_base: (new (...args: any[]) => import("@f
|
|
|
48
48
|
* @since 0.1.0
|
|
49
49
|
* @status stable
|
|
50
50
|
* @aliases SegmentedControl, Segmented, Navigation, Switcher
|
|
51
|
-
* @documentation https://fusion.dev/
|
|
51
|
+
* @documentation https://fusion.dev/design/components/toggle
|
|
52
52
|
*
|
|
53
53
|
* @slot - The group's items.
|
|
54
54
|
* @slot end - Content after the track, on the same line, such as a count or a reset.
|
|
@@ -25,7 +25,10 @@ declare const HelixHeadlessToggle_base: (new (...args: any[]) => import("@fusion
|
|
|
25
25
|
* @use A compact choice of view or mode, such as list or grid, that shows at once.
|
|
26
26
|
* @instead radio - Options that each need a sentence.
|
|
27
27
|
* @instead switch - One setting, on or off.
|
|
28
|
-
* @
|
|
28
|
+
* @anatomy group
|
|
29
|
+
* @anatomy item
|
|
30
|
+
* @anatomy label
|
|
31
|
+
* @documentation https://fusion.dev/design/components/toggle
|
|
29
32
|
*
|
|
30
33
|
* @slot - The item's label.
|
|
31
34
|
* @slot end - Content after the label, such as a count or a shortcut.
|
|
@@ -78,7 +78,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
78
78
|
* @status stable
|
|
79
79
|
* @category layout
|
|
80
80
|
* @aliases Actions, Action bar
|
|
81
|
-
* @
|
|
81
|
+
* @use A row of controls that act on one thing, such as text formatting in an editor.
|
|
82
|
+
* @instead selection-bar - Actions on the rows selected in a Data Table, with how many are selected.
|
|
83
|
+
* @instead button-group - A few related buttons joined into one control, such as a split button.
|
|
84
|
+
* @instead menu - Commands that open from one trigger.
|
|
85
|
+
* @documentation https://fusion.dev/design/components/toolbar
|
|
82
86
|
*
|
|
83
87
|
* @slot - The toolbar's controls.
|
|
84
88
|
*
|
|
@@ -10,11 +10,8 @@ declare const HelixHeadlessTooltip_base: (new (...args: any[]) => import("@fusio
|
|
|
10
10
|
* does not clip it and no `z-index` is needed. `FloatingController` positions
|
|
11
11
|
* it and flips it to another side when the preferred side does not fit.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* then in your own markup, so it is in the server's HTML and in the
|
|
16
|
-
* accessibility tree at rest, in every browser, before anyone points at the
|
|
17
|
-
* trigger or focuses it:
|
|
13
|
+
* With the trigger's `aria-describedby` naming the tooltip, the description is
|
|
14
|
+
* in your own markup:
|
|
18
15
|
*
|
|
19
16
|
* ```html
|
|
20
17
|
* <helix-headless-button aria-describedby="save-tip" id="save">Save</helix-headless-button>
|
|
@@ -56,7 +53,10 @@ declare const HelixHeadlessTooltip_base: (new (...args: any[]) => import("@fusio
|
|
|
56
53
|
* @aliases Hint, Popup label
|
|
57
54
|
* @use A short text that names an icon-only control or adds a detail to it.
|
|
58
55
|
* @instead popover - Anything you click, type in, or select.
|
|
59
|
-
* @
|
|
56
|
+
* @anatomy surface
|
|
57
|
+
* @anatomy arrow?
|
|
58
|
+
* @practice {described} Place the tooltip beside its trigger, name the trigger in `for`, and name the tooltip in the trigger's aria-describedby. - The trigger is then described in the server's HTML and at rest, in every browser, before anyone points at it or focuses it.
|
|
59
|
+
* @documentation https://fusion.dev/design/components/tooltip
|
|
60
60
|
*
|
|
61
61
|
* @slot - The trigger, in the wrapping form. The tooltip describes it, as it
|
|
62
62
|
* describes the element `for` names.
|