@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
|
@@ -20,15 +20,13 @@ declare const HelixHeadlessLightbox_base: (new (...args: any[]) => import("@fusi
|
|
|
20
20
|
* item with no `value` by its place, counted from 1, as in `Steps`, so a set
|
|
21
21
|
* written without values moves and `helix-activate` says `1`, `2` and so on.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* of one item has nothing to step to, so it draws no previous, next or counter.
|
|
27
|
-
* it, compose the chrome yourself in the `header` and `footer` slots, with
|
|
28
|
-
* buttons that send `--previous`, `--next` and `--close`.
|
|
23
|
+
* The viewer's own controls, drawn with `controls`, are named by
|
|
24
|
+
* `previous-label`, `next-label` and `dismiss-label`, and you can replace their
|
|
25
|
+
* glyphs in the `previous-icon`, `next-icon` and `dismiss-icon` slots. A set
|
|
26
|
+
* of one item has nothing to step to, so it draws no previous, next or counter.
|
|
29
27
|
*
|
|
30
|
-
* **
|
|
31
|
-
*
|
|
28
|
+
* **Under `max-zoom`, a reader zooms into the shown item.** Two fingers
|
|
29
|
+
* pinch it, and so does a trackpad pinch or the wheel with Ctrl
|
|
32
30
|
* held, about the point under the pointer. A double click or a double tap
|
|
33
31
|
* zooms all the way in about the point pressed and back out, and once zoomed
|
|
34
32
|
* one pointer drags it about and the wheel moves it. `+` and `-` zoom in and out from the keyboard, and `0` puts it back.
|
|
@@ -74,7 +72,16 @@ declare const HelixHeadlessLightbox_base: (new (...args: any[]) => import("@fusi
|
|
|
74
72
|
* @status stable
|
|
75
73
|
* @category media
|
|
76
74
|
* @aliases Photo viewer, Image viewer, Gallery overlay
|
|
77
|
-
* @
|
|
75
|
+
* @use Pictures from a gallery opened large over the page, one at a time.
|
|
76
|
+
* @instead image - A picture that stays in its place on the page.
|
|
77
|
+
* @instead carousel - Slides that take turns in one place on the page.
|
|
78
|
+
* @instead dialog - A task or a decision over the page.
|
|
79
|
+
* @anatomy header
|
|
80
|
+
* @anatomy item
|
|
81
|
+
* @anatomy description
|
|
82
|
+
* @practice {preview} Set `controls`, or compose the chrome in the `header` and `footer` slots with buttons that send `--previous`, `--next`, and `--close`. - Without either, the viewer has no control a pointer presses to move or to close.
|
|
83
|
+
* @practice Set `max-zoom`, such as 3, where a reader needs the detail of a picture. - Without it, the shown item stays at its own size.
|
|
84
|
+
* @documentation https://fusion.dev/design/components/lightbox
|
|
78
85
|
*
|
|
79
86
|
* @slot - The items, which are `<helix-headless-lightbox-item>` elements.
|
|
80
87
|
* @slot dismiss-icon - Replaces the glyph inside the close control.
|
|
@@ -8,11 +8,6 @@ declare const HelixHeadlessLineChart_base: typeof HelixElement & (new (...args:
|
|
|
8
8
|
* @description
|
|
9
9
|
* A line chart shows the shape of each series: where the readings went.
|
|
10
10
|
*
|
|
11
|
-
* The scale covers the range of the data. Including zero in the range of a
|
|
12
|
-
* series that moves between 980 and 1020 would flatten the line into a rule
|
|
13
|
-
* across the top of the box. `BarChart` always starts at zero, because a bar's
|
|
14
|
-
* length is its value. Set `zero` when the distance from zero is the point.
|
|
15
|
-
*
|
|
16
11
|
* Every series shares one scale, as in the bar chart.
|
|
17
12
|
*
|
|
18
13
|
* `dashed` names the series drawn as a dashed line, such as a forecast or a
|
|
@@ -49,8 +44,7 @@ declare const HelixHeadlessLineChart_base: typeof HelixElement & (new (...args:
|
|
|
49
44
|
*
|
|
50
45
|
* **`data` takes the readings as data** where the page has no table to point
|
|
51
46
|
* `for` at, in a table's shape: the column headings, then one row per reading
|
|
52
|
-
* with its label first.
|
|
53
|
-
* show one, since it reads before any script runs.
|
|
47
|
+
* with its label first.
|
|
54
48
|
*
|
|
55
49
|
* **A chart with nothing to draw says so.** A table with no readings shows
|
|
56
50
|
* `empty-text`, "No readings", in the plot, and `loading` shows `loading-text`
|
|
@@ -76,7 +70,18 @@ declare const HelixHeadlessLineChart_base: typeof HelixElement & (new (...args:
|
|
|
76
70
|
* @status stable
|
|
77
71
|
* @category charts
|
|
78
72
|
* @aliases Time Series, Trend Chart, Multi-line Chart
|
|
79
|
-
* @
|
|
73
|
+
* @use Series over time, such as sessions a month, read against a scale.
|
|
74
|
+
* @instead area-chart - Parts that add up to a total over time.
|
|
75
|
+
* @instead sparkline - The shape of a series beside its number, with no axes.
|
|
76
|
+
* @instead scatter-chart - Two measures against each other, with one point per row.
|
|
77
|
+
* @anatomy axis
|
|
78
|
+
* @anatomy gridline
|
|
79
|
+
* @anatomy line
|
|
80
|
+
* @anatomy terminus
|
|
81
|
+
* @anatomy labels
|
|
82
|
+
* @practice Set `zero` where the distance from zero is the point. - The scale covers the range of the data, since zero would flatten a series that moves between 980 and 1020.
|
|
83
|
+
* @practice Point `for` at a table on the page, and set `data` only where there is none. - A table reads before any script runs.
|
|
84
|
+
* @documentation https://fusion.dev/design/components/line-chart
|
|
80
85
|
*
|
|
81
86
|
* @slot empty - Content shown in place of the drawing when the table has no readings, such as a link to add the first. Falls back to `empty-text`.
|
|
82
87
|
* @slot error - Content shown after `error-text` while it is set and there are no readings, such as a button that tries again.
|
|
@@ -45,7 +45,7 @@ export type ListItemMove = 'dragging' | 'drop-after' | 'drop-before';
|
|
|
45
45
|
* @since 0.1.0
|
|
46
46
|
* @status stable
|
|
47
47
|
* @aliases Entry
|
|
48
|
-
* @documentation https://fusion.dev/
|
|
48
|
+
* @documentation https://fusion.dev/design/components/list
|
|
49
49
|
*
|
|
50
50
|
* @slot - The label.
|
|
51
51
|
* @slot description - Secondary text under the label.
|
|
@@ -42,11 +42,8 @@ import { type ListSelectionBehavior, type ListSelectionMode } from '../selection
|
|
|
42
42
|
* A press with Shift selects every row from the last one pressed, and a press
|
|
43
43
|
* with Control or Command adds or takes out one row under `replace`.
|
|
44
44
|
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* grid rows, which hold controls as a list box option cannot. Give a control
|
|
48
|
-
* in `end` `tabindex="-1"` to leave it to the arrow keys and out of the tab
|
|
49
|
-
* order.
|
|
45
|
+
* Give a control in `end` of an interactive list `tabindex="-1"` to leave it
|
|
46
|
+
* to the arrow keys and out of the tab order.
|
|
50
47
|
*
|
|
51
48
|
* **`reorderable` lets you move rows.** Each row gets a grip after its `end`
|
|
52
49
|
* slot, named by `move-label`. Drag a grip to move its row, and the list
|
|
@@ -55,8 +52,7 @@ import { type ListSelectionBehavior, type ListSelectionMode } from '../selection
|
|
|
55
52
|
* it. A click on another row drops it there, and Escape puts it back. The list
|
|
56
53
|
* says each step in its `live` region. A drop sends `helix-before-reorder`,
|
|
57
54
|
* which you can refuse, and then `helix-reorder`, whose `keys` hold every
|
|
58
|
-
* row's value in the new order.
|
|
59
|
-
* element of yours, so your framework keeps the order it rendered.
|
|
55
|
+
* row's value in the new order.
|
|
60
56
|
*
|
|
61
57
|
* | Key, on a held row's grip | What it does |
|
|
62
58
|
* |---|---|
|
|
@@ -86,10 +82,9 @@ import { type ListSelectionBehavior, type ListSelectionMode } from '../selection
|
|
|
86
82
|
*
|
|
87
83
|
* **Loading more.** `load-more` sends `helix-load-more` once the end of the
|
|
88
84
|
* list comes within a screen of view, in the box that scrolls it or the page,
|
|
89
|
-
* once for each number of rows: add rows and it can send it again. While
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* list asks for nothing while `loading` is set.
|
|
85
|
+
* once for each number of rows: add rows and it can send it again. While
|
|
86
|
+
* `loading` is set, the list is busy, and a row after the last says "Loading"
|
|
87
|
+
* (`loading-text`, or your own content in the `loading` slot).
|
|
93
88
|
*
|
|
94
89
|
* An interactive list with no name is reported once in a development build,
|
|
95
90
|
* since a screen reader announces it as a grid and nothing more. Name it with
|
|
@@ -99,7 +94,17 @@ import { type ListSelectionBehavior, type ListSelectionMode } from '../selection
|
|
|
99
94
|
* @status stable
|
|
100
95
|
* @category data
|
|
101
96
|
* @aliases Rows, Menu
|
|
102
|
-
* @
|
|
97
|
+
* @use Rows with a label each, such as recent files or the members of a team.
|
|
98
|
+
* @instead menu - Commands that open from a trigger and run when you choose them.
|
|
99
|
+
* @instead listbox - Options you choose from as a form's value.
|
|
100
|
+
* @instead data-table - Rows with several fields you compare in columns.
|
|
101
|
+
* @anatomy item
|
|
102
|
+
* @anatomy start?
|
|
103
|
+
* @anatomy description?
|
|
104
|
+
* @practice Leave `selection-mode` unset for a list you read, and set it for one you choose from or act on. - The rows of an interactive list are grid rows, which hold controls as a list box option cannot.
|
|
105
|
+
* @practice {reordering} In a `reorderable` list, put your rows in the order a reorder reports. - The list moves no element of yours, so your framework keeps the order it rendered.
|
|
106
|
+
* @practice Set `loading` while you fetch the rows `load-more` asks for. - The list asks for nothing more until `loading` clears.
|
|
107
|
+
* @documentation https://fusion.dev/design/components/list
|
|
103
108
|
*
|
|
104
109
|
* @slot - The rows.
|
|
105
110
|
* @slot empty - Content for the row shown while the list has no rows and none are loading. Falls back to `empty-text`.
|
|
@@ -56,9 +56,8 @@ declare const HelixHeadlessListbox_base: (new (...args: any[]) => import("@fusio
|
|
|
56
56
|
* left, such as "3 results", from `result-label` and `results-label`. A filter
|
|
57
57
|
* that leaves none says `no-results-text`.
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* imported, `reorderable` lets a reader move options:
|
|
59
|
+
* With `@fusion.dev/helix/listbox/reorder` imported, `reorderable` lets a
|
|
60
|
+
* reader move options:
|
|
62
61
|
*
|
|
63
62
|
* - Alt with Up or Down moves the highlighted option a place, and Alt with
|
|
64
63
|
* Home or End moves it to either end, as the APG's rearrangeable listbox
|
|
@@ -66,9 +65,7 @@ declare const HelixHeadlessListbox_base: (new (...args: any[]) => import("@fusio
|
|
|
66
65
|
* - A pointer drags an option, with a drop indicator, and the list scrolls near
|
|
67
66
|
* an edge. A press that does not travel still chooses the option.
|
|
68
67
|
* - A drop sends `helix-before-reorder`, which you can refuse, and then
|
|
69
|
-
* `helix-reorder
|
|
70
|
-
* move the options**, or set `items` in the new order: the list moves no
|
|
71
|
-
* element of yours.
|
|
68
|
+
* `helix-reorder`.
|
|
72
69
|
* - The list says each move in its `live` region. The words are the
|
|
73
70
|
* `moved-label`, `canceled-label`, `dropped-label`, and `picked-up-label`
|
|
74
71
|
* attributes, which the import reads.
|
|
@@ -76,18 +73,8 @@ declare const HelixHeadlessListbox_base: (new (...args: any[]) => import("@fusio
|
|
|
76
73
|
* filter narrows the list, under `layout="grid"`, or while the list is
|
|
77
74
|
* disabled.
|
|
78
75
|
*
|
|
79
|
-
* **The options are an import of their own.** An option you write is the Option
|
|
80
|
-
* family's, which the list does not register, so a page that writes one imports
|
|
81
|
-
* it beside the list:
|
|
82
|
-
*
|
|
83
|
-
* ```js
|
|
84
|
-
* import '@fusion.dev/helix/listbox'
|
|
85
|
-
* import '@fusion.dev/helix/option'
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
76
|
* In development, a list holding an option nobody registered says so once the
|
|
89
|
-
* page has loaded, with the line to add.
|
|
90
|
-
* Option too, and need the same import.
|
|
77
|
+
* page has loaded, with the line to add.
|
|
91
78
|
*
|
|
92
79
|
* @since 0.1.0
|
|
93
80
|
* @status stable
|
|
@@ -95,7 +82,13 @@ declare const HelixHeadlessListbox_base: (new (...args: any[]) => import("@fusio
|
|
|
95
82
|
* @aliases Options, Select list
|
|
96
83
|
* @use A list of options that stays open on the page.
|
|
97
84
|
* @instead select - A list that opens only when you need it.
|
|
98
|
-
* @
|
|
85
|
+
* @anatomy label
|
|
86
|
+
* @anatomy items
|
|
87
|
+
* @anatomy hint?
|
|
88
|
+
* @practice Import Option beside Listbox, for options you write and for `items` alike. - An option belongs to the Option family, which Listbox does not register.
|
|
89
|
+
* @practice Import `@fusion.dev/helix/listbox/reorder` to set `reorderable`. - Moving options is a separate import, so a list that never moves options carries none of its code.
|
|
90
|
+
* @practice Move the options yourself after a reorder, or set `items` in the new order. - The list moves no element of yours, and the reorder event holds every value in the new order.
|
|
91
|
+
* @documentation https://fusion.dev/design/components/listbox
|
|
99
92
|
*
|
|
100
93
|
* @slot - The options, and any groups of them.
|
|
101
94
|
* @slot empty - What the list shows when it has no options to show, for content richer than `empty-text`.
|
|
@@ -24,15 +24,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
24
24
|
* a `role` attribute on the host would be missing from React server-rendered
|
|
25
25
|
* markup.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* loaders in one region hold it busy until the last one leaves. A region drawn
|
|
31
|
-
* after the loader is marked when it arrives.
|
|
27
|
+
* The loader sets `aria-busy="true"` on the region `for` names for as long as
|
|
28
|
+
* the loader is on the page. Two loaders in one region hold it busy until the
|
|
29
|
+
* last one leaves. A region drawn after the loader is marked when it arrives.
|
|
32
30
|
*
|
|
33
|
-
*
|
|
34
|
-
* hidden, and silent, for that many milliseconds, and appears only if the work
|
|
35
|
-
* is still going. While it waits it carries `:state(waiting)`.
|
|
31
|
+
* While `delay` holds the loader back, it carries `:state(waiting)`.
|
|
36
32
|
*
|
|
37
33
|
* **The loader can stand in for what it wraps.** Put the content in the
|
|
38
34
|
* `content` slot, such as a button or a card, and set `idle` while no work is
|
|
@@ -45,7 +41,15 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
45
41
|
* @status stable
|
|
46
42
|
* @category feedback
|
|
47
43
|
* @aliases Spinner, Busy, Activity indicator
|
|
48
|
-
* @
|
|
44
|
+
* @use Work of unknown length, such as a request in flight, with no layout to hold.
|
|
45
|
+
* @instead progress - Work whose share done is known, such as an upload.
|
|
46
|
+
* @instead skeleton - Content that is loading, where its layout is known.
|
|
47
|
+
* @instead shimmer-text - Work you name in words, such as an agent reading files.
|
|
48
|
+
* @anatomy track
|
|
49
|
+
* @anatomy indicator
|
|
50
|
+
* @practice Set `delay` so a quick load does not flash a loader. - The loader stays hidden and silent for that many milliseconds, and appears only if the work is still going.
|
|
51
|
+
* @practice Set `for` to the region being loaded. - A screen reader waits for a busy region to fill before reading it.
|
|
52
|
+
* @documentation https://fusion.dev/design/components/loader
|
|
49
53
|
*
|
|
50
54
|
* @slot - An icon or logo that stays still at the center. Empty by default.
|
|
51
55
|
* @slot content - What the loader stands in for while the work runs, such as a button. It keeps its size, hidden and inert, until `idle` is set.
|
|
@@ -21,7 +21,7 @@ declare const HelixHeadlessLogGroup_base: (new (...args: any[]) => import("@fusi
|
|
|
21
21
|
*
|
|
22
22
|
* @since 0.200.0
|
|
23
23
|
* @status experimental
|
|
24
|
-
* @documentation https://fusion.dev/
|
|
24
|
+
* @documentation https://fusion.dev/design/components/log
|
|
25
25
|
*
|
|
26
26
|
* @slot - The lines of the step, and any groups inside it.
|
|
27
27
|
* @slot heading - The heading, where it holds more than text. Defaults to `heading`.
|
|
@@ -19,7 +19,7 @@ export type LogTimes = 'absolute' | 'relative';
|
|
|
19
19
|
*
|
|
20
20
|
* @since 0.200.0
|
|
21
21
|
* @status experimental
|
|
22
|
-
* @documentation https://fusion.dev/
|
|
22
|
+
* @documentation https://fusion.dev/design/components/log
|
|
23
23
|
*
|
|
24
24
|
* @slot - The text of the line.
|
|
25
25
|
*
|
|
@@ -73,9 +73,7 @@ declare const HelixHeadlessLog_base: (new (...args: any[]) => import("@fusion.de
|
|
|
73
73
|
* arrive, since reading a build aloud line by line helps nobody. A separate
|
|
74
74
|
* status region says each line at `error` once it arrives, each step once it
|
|
75
75
|
* finishes or fails, and the end of the run once `done` is set or `source`
|
|
76
|
-
* ends.
|
|
77
|
-
* where something around the log speaks for it, as a chat turn does for an
|
|
78
|
-
* agent's work.
|
|
76
|
+
* ends.
|
|
79
77
|
*
|
|
80
78
|
* The log scrolls on this tier. It carries `data-scroller`, so following the
|
|
81
79
|
* newest line and drawing a window work with no stylesheet. Give the log a
|
|
@@ -89,7 +87,17 @@ declare const HelixHeadlessLog_base: (new (...args: any[]) => import("@fusion.de
|
|
|
89
87
|
* @status experimental
|
|
90
88
|
* @category feedback
|
|
91
89
|
* @aliases Console, Terminal output, Build log, Deploy log, Log viewer, Output
|
|
92
|
-
* @
|
|
90
|
+
* @use Output that arrives while you watch, such as a build, a deployment, or a CI run.
|
|
91
|
+
* @instead terminal - A shell you type commands into.
|
|
92
|
+
* @instead chat - A conversation between people, or with an agent.
|
|
93
|
+
* @instead code-block - Code or output that is finished, shown with a copy button.
|
|
94
|
+
* @anatomy line
|
|
95
|
+
* @anatomy number?
|
|
96
|
+
* @anatomy group
|
|
97
|
+
* @anatomy status
|
|
98
|
+
* @practice Set `done` once the output you pass to `write()` is complete. - The status region then says that the run has ended.
|
|
99
|
+
* @practice Set `quiet` where something around the log speaks for it, as a chat turn does for an agent's work. - The status region would say each error and each finished step a second time.
|
|
100
|
+
* @documentation https://fusion.dev/design/components/log
|
|
93
101
|
*
|
|
94
102
|
* @slot - The lines, as `Log.Line` and `Log.Group` elements.
|
|
95
103
|
* @slot resume - The control that returns to the newest line, shown while the reader is scrolled away. Defaults to a button named by `resume-label`.
|
|
@@ -18,7 +18,7 @@ import { type MapPoint } from '../route/map-route.js';
|
|
|
18
18
|
* @status stable
|
|
19
19
|
* @category media
|
|
20
20
|
* @aliases Map region, Polygon, Zone
|
|
21
|
-
* @documentation https://fusion.dev/
|
|
21
|
+
* @documentation https://fusion.dev/design/components/map
|
|
22
22
|
*
|
|
23
23
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The area's points, name, or color changed. Used by `connectMap`; pages do not need to listen for it.
|
|
24
24
|
*/
|
|
@@ -15,7 +15,7 @@ import { nothing, type PropertyValues } from 'lit';
|
|
|
15
15
|
* @status stable
|
|
16
16
|
* @category media
|
|
17
17
|
* @aliases 3D buildings, Extrusion
|
|
18
|
-
* @documentation https://fusion.dev/
|
|
18
|
+
* @documentation https://fusion.dev/design/components/map
|
|
19
19
|
*
|
|
20
20
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The layer's name or color changed. Used by `connectMap`; pages do not need to listen for it.
|
|
21
21
|
*/
|
|
@@ -21,7 +21,7 @@ import type { MapTerrainEncoding } from '../terrain/map-terrain.js';
|
|
|
21
21
|
* @status stable
|
|
22
22
|
* @category media
|
|
23
23
|
* @aliases Contours, Topographic lines, Elevation lines, Isolines
|
|
24
|
-
* @documentation https://fusion.dev/
|
|
24
|
+
* @documentation https://fusion.dev/design/components/map
|
|
25
25
|
*
|
|
26
26
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The tiles, the unit, or the layer's name or color changed. Used by `connectMap`; pages do not need to listen for it.
|
|
27
27
|
*/
|
|
@@ -17,7 +17,7 @@ import { nothing, type PropertyValues } from 'lit';
|
|
|
17
17
|
* @status stable
|
|
18
18
|
* @category media
|
|
19
19
|
* @aliases Land cover, Land use, Vegetation, Ground cover
|
|
20
|
-
* @documentation https://fusion.dev/
|
|
20
|
+
* @documentation https://fusion.dev/design/components/map
|
|
21
21
|
*
|
|
22
22
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The layer's name or color changed. Used by `connectMap`; pages do not need to listen for it.
|
|
23
23
|
*/
|
|
@@ -19,7 +19,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
19
19
|
* @status stable
|
|
20
20
|
* @category media
|
|
21
21
|
* @aliases Map pin, Place, Point of interest
|
|
22
|
-
* @documentation https://fusion.dev/
|
|
22
|
+
* @documentation https://fusion.dev/design/components/map
|
|
23
23
|
*
|
|
24
24
|
* @slot icon - A letter, number, or icon shown in the point, such as a stop's order. Screen readers read the marker's label only.
|
|
25
25
|
*
|
|
@@ -59,7 +59,7 @@ export interface MapPointsCollection {
|
|
|
59
59
|
* @status stable
|
|
60
60
|
* @category media
|
|
61
61
|
* @aliases Data layer, GeoJSON layer, Point layer
|
|
62
|
-
* @documentation https://fusion.dev/
|
|
62
|
+
* @documentation https://fusion.dev/design/components/map
|
|
63
63
|
*
|
|
64
64
|
* @event {HelixActivateEvent} helix-activate - A point in view was pressed. The value is its id, or its name if it has no id.
|
|
65
65
|
* @event {HelixMapClusterEvent} helix-map-cluster - A count in view was pressed from the keyboard. `connectMap` zooms in to it.
|
|
@@ -17,7 +17,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
17
17
|
* @status stable
|
|
18
18
|
* @category media
|
|
19
19
|
* @aliases Current location, Live position, Tracker, You are here
|
|
20
|
-
* @documentation https://fusion.dev/
|
|
20
|
+
* @documentation https://fusion.dev/design/components/map
|
|
21
21
|
*
|
|
22
22
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - It moved, turned, or its accuracy changed. Used by `connectMap`; pages do not need to listen for it.
|
|
23
23
|
*
|
|
@@ -26,7 +26,7 @@ import { nothing, type PropertyValues } from 'lit';
|
|
|
26
26
|
* @status stable
|
|
27
27
|
* @category media
|
|
28
28
|
* @aliases Weather radar, Tile overlay, Raster layer
|
|
29
|
-
* @documentation https://fusion.dev/
|
|
29
|
+
* @documentation https://fusion.dev/design/components/map
|
|
30
30
|
*
|
|
31
31
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The tiles, the frame shown, the opacity, or where the tiles are drawn changed. Used by `connectMap`; pages do not need to listen for it.
|
|
32
32
|
*/
|
|
@@ -27,9 +27,7 @@ declare const HelixHeadlessMap_base: (new (...args: any[]) => import("@fusion.de
|
|
|
27
27
|
* and pressing it turns the map to face north.
|
|
28
28
|
*
|
|
29
29
|
* Add `pan` and `rotate` for buttons around the compass that move and turn the
|
|
30
|
-
* map.
|
|
31
|
-
* where the map has to be usable without dragging, as WCAG 2.2 asks at level
|
|
32
|
-
* AA. The arrow keys pan the map and Shift with Left or Right turns it either
|
|
30
|
+
* map. The arrow keys pan the map and Shift with Left or Right turns it either
|
|
33
31
|
* way. The buttons are a toolbar and one tab stop: on them, the arrow keys
|
|
34
32
|
* move between the buttons by where they sit, and Shift with an arrow still
|
|
35
33
|
* turns or tilts the map.
|
|
@@ -65,9 +63,8 @@ declare const HelixHeadlessMap_base: (new (...args: any[]) => import("@fusion.de
|
|
|
65
63
|
* Markers, routes, areas, live positions, and points layers go inside the
|
|
66
64
|
* frame as child elements.
|
|
67
65
|
*
|
|
68
|
-
* **Each element has an entry of its own
|
|
69
|
-
*
|
|
70
|
-
* writes, such as a marker and a route:
|
|
66
|
+
* **Each element has an entry of its own**, such as the frame, a marker, and a
|
|
67
|
+
* route:
|
|
71
68
|
*
|
|
72
69
|
* ```js
|
|
73
70
|
* import '@fusion.dev/helix/map/root'
|
|
@@ -83,7 +80,15 @@ declare const HelixHeadlessMap_base: (new (...args: any[]) => import("@fusion.de
|
|
|
83
80
|
* @status stable
|
|
84
81
|
* @category media
|
|
85
82
|
* @aliases Map frame, Map container, Geo
|
|
86
|
-
* @
|
|
83
|
+
* @use Places, routes, and areas on a map drawn by MapLibre, Leaflet, or your own renderer.
|
|
84
|
+
* @instead image - A picture of a map that you do not pan or zoom.
|
|
85
|
+
* @anatomy viewport
|
|
86
|
+
* @anatomy controls
|
|
87
|
+
* @anatomy attribution
|
|
88
|
+
* @practice Import the entry of each layer you write beside `map/root`, such as `map/marker`. - A map draws the layers it is given, so `map/root` registers the frame alone.
|
|
89
|
+
* @practice Add pan and rotate to `controls` where the map has to be usable without dragging. - Dragging is otherwise the only way a pointer moves the map, and WCAG 2.2 asks for another way at level AA.
|
|
90
|
+
* @practice {behind-content} Set `fill` to lay the map behind a page's own content, and give its container a position, such as relative. - The frame covers its container.
|
|
91
|
+
* @documentation https://fusion.dev/design/components/map
|
|
87
92
|
*
|
|
88
93
|
* @slot - The element your renderer draws the map in, and the map's markers, routes, areas, positions, and points layers.
|
|
89
94
|
* @slot attribution - The map credit, which most tile licenses require.
|
|
@@ -29,7 +29,7 @@ export declare const pointsConverter: {
|
|
|
29
29
|
* @status stable
|
|
30
30
|
* @category media
|
|
31
31
|
* @aliases Map line, Path, Polyline
|
|
32
|
-
* @documentation https://fusion.dev/
|
|
32
|
+
* @documentation https://fusion.dev/design/components/map
|
|
33
33
|
*
|
|
34
34
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The route's points, progress, name, or color changed. Used by `connectMap`; pages do not need to listen for it.
|
|
35
35
|
*/
|
|
@@ -23,7 +23,7 @@ export type MapTerrainEncoding = 'mapbox' | 'terrarium';
|
|
|
23
23
|
* @status stable
|
|
24
24
|
* @category media
|
|
25
25
|
* @aliases Terrain, Hillshade, Elevation, Relief
|
|
26
|
-
* @documentation https://fusion.dev/
|
|
26
|
+
* @documentation https://fusion.dev/design/components/map
|
|
27
27
|
*
|
|
28
28
|
* @event {HelixMapPartChangeEvent} helix-map-part-change - The tiles, how the ground is raised, or the layer's name or colors changed. Used by `connectMap`; pages do not need to listen for it.
|
|
29
29
|
*/
|
|
@@ -7,11 +7,9 @@ import '../../code-block/index.js';
|
|
|
7
7
|
* @summary Markdown drawn as a document, which streams in place as a reply arrives.
|
|
8
8
|
*
|
|
9
9
|
* @description
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* added to the line it ends, and a code block, a list, or a table fills in
|
|
14
|
-
* where it stands. Text you can already read does not move.
|
|
10
|
+
* `text` is the Markdown. A block that has ended is never drawn again, a word
|
|
11
|
+
* arriving is added to the line it ends, and a code block, a list, or a table
|
|
12
|
+
* fills in where it stands. Text you can already read does not move.
|
|
15
13
|
*
|
|
16
14
|
* - A fence becomes a `Code Block`, with its language as its `label` and its
|
|
17
15
|
* `language`, so a highlighter given to `registerHighlighter` colors it as it
|
|
@@ -31,9 +29,7 @@ import '../../code-block/index.js';
|
|
|
31
29
|
*
|
|
32
30
|
* **The document is drawn in the element's own children**, so the page's
|
|
33
31
|
* `data-prose` styles reach it, a reader can select and find its text, and a
|
|
34
|
-
* server can send it.
|
|
35
|
-
* server, render `markdownToHtml(text)` inside the element: where what it was
|
|
36
|
-
* sent is exactly what it would draw, it keeps it and draws nothing again.
|
|
32
|
+
* server can send it.
|
|
37
33
|
*
|
|
38
34
|
* What it reads is CommonMark with GitHub's tables, task lists,
|
|
39
35
|
* strikethrough, autolinks, and alerts. A line of `===` or `---` under a
|
|
@@ -47,7 +43,15 @@ import '../../code-block/index.js';
|
|
|
47
43
|
* @status experimental
|
|
48
44
|
* @category typography
|
|
49
45
|
* @aliases Markdown renderer, Streaming text, Rich text
|
|
50
|
-
* @
|
|
46
|
+
* @use A reply that arrives as Markdown while you watch, such as an agent's answer.
|
|
47
|
+
* @use Markdown you already have, such as a README, drawn as a document.
|
|
48
|
+
* @instead text - A heading or a paragraph you write in your own markup.
|
|
49
|
+
* @instead editor - A document you write and edit in place.
|
|
50
|
+
* @instead chat - A conversation's turns in one scrolling transcript.
|
|
51
|
+
* @practice Set `text` to everything a reply has said so far, with `streaming` while more is coming. - Each time `text` grows, only what changed is drawn.
|
|
52
|
+
* @practice Put `data-prose` on the element or on a container. - The page's prose recipe then sets the document's type, spacing, lists, and tables.
|
|
53
|
+
* @practice On a server, render `markdownToHtml(text)` inside the element. - The element keeps markup that matches what it would draw, and draws nothing again.
|
|
54
|
+
* @documentation https://fusion.dev/design/components/markdown
|
|
51
55
|
*
|
|
52
56
|
* @slot - The drawn document. Written by the element; leave it empty, or fill it with `markdownToHtml(text)` on a server.
|
|
53
57
|
*
|
|
@@ -12,9 +12,8 @@ declare const HelixHeadlessMegamenu_base: (new (...args: any[]) => import("@fusi
|
|
|
12
12
|
* disclosure, middle clicks, modified clicks, and the status bar keep working.
|
|
13
13
|
* Use `Menu` for a row of commands.
|
|
14
14
|
*
|
|
15
|
-
* It renders no links.
|
|
16
|
-
*
|
|
17
|
-
* you write.
|
|
15
|
+
* It renders no links. The panel is a slot for the lists and headings you
|
|
16
|
+
* write.
|
|
18
17
|
*
|
|
19
18
|
* It opens on hover by default, and a press always opens it too. `open-on` sets
|
|
20
19
|
* which. Hover is the default because in a navigation bar people expect to move
|
|
@@ -73,7 +72,11 @@ declare const HelixHeadlessMegamenu_base: (new (...args: any[]) => import("@fusi
|
|
|
73
72
|
* @use A section of a site's main navigation that opens a panel of links.
|
|
74
73
|
* @instead popover - Content other than navigation.
|
|
75
74
|
* @instead navigation - Links that fit in one row.
|
|
76
|
-
* @
|
|
75
|
+
* @anatomy trigger
|
|
76
|
+
* @anatomy surface
|
|
77
|
+
* @practice Write the panel's links and headings yourself, in its default slot. - A router renders its own anchors and cannot render them inside the megamenu's shadow root.
|
|
78
|
+
* @practice {preview} Mark the panel's columns, headings, and links with their data-megamenu attributes. - `helix.css` lays out the panel through them, and without them the panel holds your markup as you styled it.
|
|
79
|
+
* @documentation https://fusion.dev/design/components/megamenu
|
|
77
80
|
*
|
|
78
81
|
* @slot - The panel's contents, such as your own lists of links and their headings.
|
|
79
82
|
* @slot indicator - A mark for the open trigger, shown while the panel is open, such as a bar or an arrow pointing at the panel.
|
|
@@ -56,7 +56,7 @@ import '../../kbd/index.js';
|
|
|
56
56
|
* @since 0.1.0
|
|
57
57
|
* @status stable
|
|
58
58
|
* @aliases Menu option, Menu row
|
|
59
|
-
* @documentation https://fusion.dev/
|
|
59
|
+
* @documentation https://fusion.dev/design/components/menu
|
|
60
60
|
*
|
|
61
61
|
* @slot - The label.
|
|
62
62
|
* @slot check - Replaces the check mark of a checked row, such as with your own icon.
|
|
@@ -36,17 +36,12 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
|
|
|
36
36
|
* sets this on items as a property, never as an attribute. An attribute written
|
|
37
37
|
* onto your element after it upgrades causes a hydration mismatch.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* element of your own, such as a `<div>` or a component's host element, is
|
|
46
|
-
* skipped by the arrow keys, and a drilled page hides that element with the
|
|
47
|
-
* rest of the top page, so the row's submenu shows none of its rows. A
|
|
48
|
-
* development build warns about it as `wrapped-row`. In a framework, render a
|
|
49
|
-
* component's rows without a wrapper element, such as with a fragment.
|
|
39
|
+
* A row inside an element of your own, such as a `<div>` or a component's
|
|
40
|
+
* host element, is skipped by the arrow keys, and a drilled page hides that
|
|
41
|
+
* element with the rest of the top page, so the row's submenu shows none of
|
|
42
|
+
* its rows. A development build warns about it as `wrapped-row`. In a
|
|
43
|
+
* framework, render a component's rows without a wrapper element, such as
|
|
44
|
+
* with a fragment.
|
|
50
45
|
*
|
|
51
46
|
* Keys: Enter, Space or Down Arrow on the trigger opens the menu on its first
|
|
52
47
|
* row, and Up Arrow on its last. In the menu, Up and Down Arrow move between
|
|
@@ -90,16 +85,8 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
|
|
|
90
85
|
* opens it from the keyboard, and the trigger is described by
|
|
91
86
|
* `long-press-label`, which says so.
|
|
92
87
|
*
|
|
93
|
-
*
|
|
94
|
-
* a
|
|
95
|
-
*
|
|
96
|
-
* ```js
|
|
97
|
-
* import '@fusion.dev/helix/menu'
|
|
98
|
-
* import '@fusion.dev/helix/menu/filter'
|
|
99
|
-
* ```
|
|
100
|
-
*
|
|
101
|
-
* With it imported and `filterable` set, the menu opens with focus in a field
|
|
102
|
-
* above its rows, and typing narrows the rows of the page the keys move in,
|
|
88
|
+
* With the filter imported and `filterable` set, the menu opens with focus in
|
|
89
|
+
* a field above its rows, and typing narrows the rows of the page the keys move in,
|
|
103
90
|
* as React Aria's `Autocomplete` around a `Menu` does. A row is kept where its
|
|
104
91
|
* words hold the filter, in any case, or where `filterMatch` says so. Each
|
|
105
92
|
* page starts unfiltered, and the filter is cleared as the menu closes. Where
|
|
@@ -121,7 +108,13 @@ declare const HelixHeadlessMenu_base: (new (...args: any[]) => import("@fusion.d
|
|
|
121
108
|
* @use Commands that act at once, such as Rename, Duplicate, and Delete.
|
|
122
109
|
* @instead select - A value a form submits.
|
|
123
110
|
* @instead command - Commands you find by typing, from anywhere on the page.
|
|
124
|
-
* @
|
|
111
|
+
* @anatomy trigger
|
|
112
|
+
* @anatomy surface
|
|
113
|
+
* @anatomy item
|
|
114
|
+
* @practice Put each row directly in the menu, in a `Menu.Section`, or in another row's `submenu` slot. - The menu reads rows in those places only.
|
|
115
|
+
* @practice {sections} Group rows under a heading with `Menu.Section`, and divide runs of rows with Divider. - A section is a group named by its heading, and a divider is a separator a screen reader announces.
|
|
116
|
+
* @practice Import `@fusion.dev/helix/menu/filter` beside Menu to set `filterable`. - The filter field is a separate import, so a menu that never filters carries none of its code.
|
|
117
|
+
* @documentation https://fusion.dev/design/components/menu
|
|
125
118
|
*
|
|
126
119
|
* @slot - The items.
|
|
127
120
|
* @slot empty - What the menu shows when it has no items, for content richer than `empty-text`.
|
|
@@ -16,7 +16,7 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
16
16
|
* @since 0.1.0
|
|
17
17
|
* @status stable
|
|
18
18
|
* @aliases Menu group, Menu heading
|
|
19
|
-
* @documentation https://fusion.dev/
|
|
19
|
+
* @documentation https://fusion.dev/design/components/menu
|
|
20
20
|
*
|
|
21
21
|
* @slot - The rows.
|
|
22
22
|
* @slot heading - The heading, for content richer than `label`.
|