@fusion.dev/helix-headless 0.247.1 → 0.248.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/accordion/root/accordion-root.d.ts +10 -1
- package/dist/announcement/root/announcement-root.d.ts +8 -7
- package/dist/app-header/root/app-header-root.d.ts +12 -8
- package/dist/area-chart/root/area-chart-root.d.ts +12 -4
- package/dist/avatar/root/avatar-root.d.ts +3 -0
- package/dist/badge/root/badge-root.d.ts +2 -6
- package/dist/bar-chart/root/bar-chart-root.d.ts +10 -2
- package/dist/blockquote/root/blockquote-root.d.ts +7 -4
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +9 -3
- package/dist/button/root/button-root.d.ts +7 -8
- package/dist/button-group/root/button-group-root.d.ts +7 -3
- package/dist/callout/root/callout-root.d.ts +5 -2
- package/dist/canvas/root/canvas-root.d.ts +8 -7
- package/dist/card/root/card-root.d.ts +4 -0
- package/dist/carousel/root/carousel-root.d.ts +11 -3
- package/dist/chat/root/chat-root.d.ts +15 -16
- package/dist/checkbox/root/checkbox-root.d.ts +6 -3
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +12 -8
- package/dist/code/root/code-root.d.ts +6 -3
- package/dist/code-block/root/code-block-root.d.ts +14 -7
- package/dist/code-editor/root/code-editor-root.d.ts +17 -6
- package/dist/code-input/root/code-input-root.d.ts +10 -5
- package/dist/color-input/root/color-input-root.d.ts +7 -0
- package/dist/color-picker/root/color-picker-root.d.ts +6 -0
- package/dist/column-manager/root/column-manager-root.d.ts +12 -4
- package/dist/combobox/root/combobox-root.d.ts +6 -12
- package/dist/command/root/command-root.d.ts +13 -8
- package/dist/copy-button/root/copy-button-root.d.ts +8 -3
- package/dist/data-table/root/data-table-root.d.ts +18 -14
- package/dist/date-input/root/date-input-root.d.ts +8 -0
- package/dist/date-picker/root/date-picker-root.d.ts +11 -7
- package/dist/description-list/root/description-list-root.d.ts +6 -0
- package/dist/device-screen/root/device-screen-root.d.ts +13 -8
- package/dist/dialog/root/dialog-root.d.ts +6 -4
- package/dist/divider/root/divider-root.d.ts +6 -4
- package/dist/donut-chart/root/donut-chart-root.d.ts +8 -6
- package/dist/drawer/root/drawer-root.d.ts +8 -10
- package/dist/drilldown/root/drilldown-root.d.ts +11 -6
- package/dist/editor/root/editor-root.d.ts +11 -2
- package/dist/empty/root/empty-root.d.ts +6 -4
- package/dist/file-input/root/file-input-root.d.ts +5 -0
- package/dist/filter-input/root/filter-input-root.d.ts +20 -28
- package/dist/find/root/find-root.d.ts +9 -0
- package/dist/format-date/root/format-date-root.d.ts +9 -4
- package/dist/graph/root/graph-root.d.ts +10 -4
- package/dist/heatmap/root/heatmap-root.d.ts +10 -3
- package/dist/hover-card/root/hover-card-root.d.ts +8 -6
- package/dist/icon/root/icon-root.d.ts +7 -3
- package/dist/icon-button/root/icon-button-root.d.ts +4 -0
- package/dist/image/root/image-root.d.ts +4 -0
- package/dist/input/root/input-root.d.ts +9 -2
- package/dist/kbd/root/kbd-root.d.ts +7 -11
- package/dist/legend/root/legend-root.d.ts +10 -7
- package/dist/lightbox/root/lightbox-root.d.ts +15 -8
- package/dist/line-chart/root/line-chart-root.d.ts +12 -7
- package/dist/list/root/list-root.d.ts +16 -11
- package/dist/listbox/root/listbox-root.d.ts +10 -17
- package/dist/loader/root/loader-root.d.ts +12 -8
- package/dist/log/root/log-root.d.ts +11 -3
- package/dist/map/root/map-root.d.ts +11 -6
- package/dist/markdown/root/markdown-root.d.ts +12 -8
- package/dist/megamenu/root/megamenu-root.d.ts +6 -3
- package/dist/menu/root/menu-root.d.ts +14 -21
- package/dist/meter/root/meter-root.d.ts +14 -7
- package/dist/motion-toggle/root/motion-toggle-root.d.ts +5 -0
- package/dist/navigation/root/navigation-root.d.ts +9 -3
- package/dist/notifications/root/notifications-root.d.ts +9 -8
- package/dist/number-input/root/number-input-root.d.ts +6 -1
- package/dist/object-inspector/root/object-inspector-root.d.ts +13 -5
- package/dist/option/root/option-root.d.ts +10 -5
- package/dist/outline/root/outline-root.d.ts +6 -3
- package/dist/pagination/root/pagination-root.d.ts +9 -6
- package/dist/pin-input/root/pin-input-root.d.ts +6 -0
- package/dist/popover/root/popover-root.d.ts +11 -8
- package/dist/progress/root/progress-root.d.ts +12 -7
- package/dist/qr-code/root/qr-code-root.d.ts +6 -2
- package/dist/quick-filters/root/quick-filters-root.d.ts +10 -5
- package/dist/quote/root/quote-root.d.ts +5 -5
- package/dist/radio/root/radio-root.d.ts +6 -3
- package/dist/rating/root/rating-root.d.ts +10 -5
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +13 -7
- package/dist/scroll-area/root/scroll-area-root.d.ts +3 -0
- package/dist/select/root/select-root.d.ts +8 -15
- package/dist/selection-bar/root/selection-bar-root.d.ts +11 -6
- package/dist/shortcut-overlay/root/shortcut-overlay-root.d.ts +9 -7
- package/dist/skeleton/root/skeleton-root.d.ts +8 -9
- package/dist/skip-link/root/skip-link-root.d.ts +2 -0
- package/dist/slider/root/slider-root.d.ts +13 -7
- package/dist/sparkline/root/sparkline-root.d.ts +8 -10
- package/dist/spatial-bar-chart/root/spatial-bar-chart-root.d.ts +6 -0
- package/dist/spatial-heatmap/root/spatial-heatmap-root.d.ts +7 -0
- package/dist/spatial-ribbon-chart/root/spatial-ribbon-chart-root.d.ts +6 -0
- package/dist/spatial-scatter-chart/root/spatial-scatter-chart-root.d.ts +7 -0
- package/dist/spatial-surface-chart/root/spatial-surface-chart-root.d.ts +7 -0
- package/dist/spatial-treemap/root/spatial-treemap-root.d.ts +6 -0
- package/dist/speed-dial/root/speed-dial-root.d.ts +12 -4
- package/dist/splitter/root/splitter-root.d.ts +16 -13
- package/dist/stat/root/stat-root.d.ts +13 -7
- package/dist/steps/root/steps-root.d.ts +5 -3
- package/dist/switch/root/switch-root.d.ts +6 -1
- package/dist/table/root/table-root.d.ts +13 -8
- package/dist/table-export/root/table-export-root.d.ts +10 -2
- package/dist/tabs/root/tabs-root.d.ts +10 -2
- package/dist/tag/root/tag-root.d.ts +3 -3
- package/dist/terminal/root/terminal-root.d.ts +12 -5
- package/dist/textarea/root/textarea-root.d.ts +7 -0
- package/dist/theme-toggle/root/theme-toggle-root.d.ts +8 -3
- package/dist/time-input/root/time-input-root.d.ts +10 -4
- package/dist/time-picker/root/time-picker-root.d.ts +12 -9
- package/dist/timeline/root/timeline-root.d.ts +18 -10
- package/dist/toast/root/toast-root.d.ts +14 -14
- package/dist/toggle/root/toggle-root.d.ts +3 -0
- package/dist/toolbar/root/toolbar-root.d.ts +4 -0
- package/dist/tooltip/root/tooltip-root.d.ts +5 -5
- package/dist/tour/root/tour-root.d.ts +10 -3
- package/dist/tree/root/tree-root.d.ts +9 -2
- package/dist/trend/root/trend-root.d.ts +10 -5
- package/dist/video/root/video-root.d.ts +12 -9
- package/dist/video-playlist/root/video-playlist-root.d.ts +10 -5
- package/dist/view-panel/root/view-panel-root.d.ts +13 -7
- package/dist/virtual-list/root/virtual-list-root.d.ts +12 -7
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +266 -623
- package/types/vue.d.ts +267 -624
|
@@ -9,9 +9,9 @@ declare const HelixHeadlessFilterInput_base: (new (...args: any[]) => import("@f
|
|
|
9
9
|
* @description
|
|
10
10
|
* Tokens are your own elements, slotted in. A filter can be a facet with a
|
|
11
11
|
* prefix, a saved query, or a range, and these belong to your model, so the
|
|
12
|
-
* element does not render tokens from a list of strings.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* element does not render tokens from a list of strings. Combobox works the
|
|
13
|
+
* other way: its tokens show a selection it owns, drawn from the options it was
|
|
14
|
+
* given.
|
|
15
15
|
*
|
|
16
16
|
* `value` is the typed text. Every keystroke fires `input` with the text on the
|
|
17
17
|
* element, so a table can narrow as the user types. Backspace in an empty field
|
|
@@ -66,17 +66,8 @@ declare const HelixHeadlessFilterInput_base: (new (...args: any[]) => import("@f
|
|
|
66
66
|
* nothing draws it and the menu has no page for it, and the grammar still reads
|
|
67
67
|
* it.
|
|
68
68
|
*
|
|
69
|
-
* **The picker has an entry of its own.**
|
|
70
|
-
*
|
|
71
|
-
* leaves it out. A page that writes a `FilterMenu` imports both entries:
|
|
72
|
-
*
|
|
73
|
-
* ```js
|
|
74
|
-
* import '@fusion.dev/helix/filter-input'
|
|
75
|
-
* import '@fusion.dev/helix/filter-input/menu'
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* A picker written without the second is reported once the page has loaded,
|
|
79
|
-
* with the entry to add.
|
|
69
|
+
* **The picker has an entry of its own.** A picker written without it is
|
|
70
|
+
* reported once the page has loaded, with the entry to add.
|
|
80
71
|
*
|
|
81
72
|
* **Suggestions.** Slot options into `suggestions` and the field shows them,
|
|
82
73
|
* moves through them with the arrow keys, and presses one on Enter. The option
|
|
@@ -119,8 +110,7 @@ declare const HelixHeadlessFilterInput_base: (new (...args: any[]) => import("@f
|
|
|
119
110
|
* this library. `default-value` seeds the field.
|
|
120
111
|
* - `open` is the suggestions panel. Cancel `helix-before-open` or
|
|
121
112
|
* `helix-before-close` to control it, and use `default-open` to seed it.
|
|
122
|
-
* - Tokens are your elements in a slot and hold no state. A
|
|
123
|
-
* remove it from your markup after `helix-dismiss`. A `FilterChip` naming a
|
|
113
|
+
* - Tokens are your elements in a slot and hold no state. A `FilterChip` naming a
|
|
124
114
|
* declared field works differently, because the picker holds what is ticked
|
|
125
115
|
* and removing the chip alone would leave its value ticked in the hidden
|
|
126
116
|
* menu. Its dismissal is treated as the field being filtered by nothing, so
|
|
@@ -128,23 +118,25 @@ declare const HelixHeadlessFilterInput_base: (new (...args: any[]) => import("@f
|
|
|
128
118
|
* when the filter goes. Set `chips` and the field adds, updates, and removes
|
|
129
119
|
* those chips itself, from every `helix-facet`.
|
|
130
120
|
*
|
|
131
|
-
* **The suggestions you write are an import of their own.**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* ```js
|
|
136
|
-
* import '@fusion.dev/helix/filter-input'
|
|
137
|
-
* import '@fusion.dev/helix/option'
|
|
138
|
-
* ```
|
|
139
|
-
*
|
|
140
|
-
* In development, a field holding an option nobody registered says so once the
|
|
141
|
-
* page has loaded, with the line to add. The options `source` gives are drawn
|
|
142
|
-
* as this Option too, and need the same import.
|
|
121
|
+
* **The suggestions you write are an import of their own.** In development, a
|
|
122
|
+
* field holding an option nobody registered says so once the page has loaded,
|
|
123
|
+
* with the line to add. The options `source` gives are drawn as Option too, and
|
|
124
|
+
* need the Option import as well.
|
|
143
125
|
*
|
|
144
126
|
* @since 0.1.0
|
|
145
127
|
* @status stable
|
|
146
128
|
* @category forms
|
|
147
129
|
* @aliases SearchField, FacetInput, TokenInput
|
|
130
|
+
* @use Several filters that narrow a list or a table, each shown in the field as a token.
|
|
131
|
+
* @instead combobox - One value from a long list, found by typing.
|
|
132
|
+
* @instead input - A single line of text, such as a search term.
|
|
133
|
+
* @instead find - Words you find in content, moving among the matches.
|
|
134
|
+
* @anatomy label
|
|
135
|
+
* @anatomy chip
|
|
136
|
+
* @anatomy control
|
|
137
|
+
* @practice {suggesting} Import Option beside Filter Input for anything in `suggestions`. - A suggestion is an option, the Option family's, which the field does not register.
|
|
138
|
+
* @practice {picking} Import the Filter Input `menu` entry to write a `FilterMenu`. - `FilterMenu` draws its pages with Menu, which the family's own entry leaves out.
|
|
139
|
+
* @practice {dismissing} Remove a token in `tags` from your markup when it asks to go. - The field only sends the request, from the remove button or from Backspace.
|
|
148
140
|
* @documentation https://fusion.dev/helix/components/filter-input
|
|
149
141
|
*
|
|
150
142
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
@@ -53,6 +53,15 @@ declare const HelixHeadlessFind_base: (new (...args: any[]) => import("@fusion.d
|
|
|
53
53
|
* @since 0.220.0
|
|
54
54
|
* @status experimental
|
|
55
55
|
* @category navigation
|
|
56
|
+
* @use Words to find in a block of content, such as an article, a log, or a file of code.
|
|
57
|
+
* @instead command - Commands you find by typing, from anywhere on the page.
|
|
58
|
+
* @instead filter-input - Filters that narrow a list or a table.
|
|
59
|
+
* @anatomy field
|
|
60
|
+
* @anatomy count
|
|
61
|
+
* @anatomy previous
|
|
62
|
+
* @anatomy next
|
|
63
|
+
* @anatomy close
|
|
64
|
+
* @practice Copy the `::highlight(helix-find-match)` and `::highlight(helix-find-current)` rules into a shadow root of yours that holds text to search. - Text is painted from the tree it lives in.
|
|
56
65
|
* @documentation https://fusion.dev/helix/components/find
|
|
57
66
|
*
|
|
58
67
|
* @slot actions - Controls of your own in the bar's toolbar, between its options and the buttons that move between matches.
|
|
@@ -9,8 +9,8 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
9
9
|
*
|
|
10
10
|
* **`elapsed` shows compact relative time for a feed**, such as "42m", "3h", or
|
|
11
11
|
* "1d". After six days it shows a date. In en-US, `Intl.NumberFormat` narrow
|
|
12
|
-
* renders both `minute` and `month` as `m
|
|
13
|
-
*
|
|
12
|
+
* renders both `minute` and `month` as `m`. `elapsedTime` in `helix/core` does
|
|
13
|
+
* the measurement.
|
|
14
14
|
*
|
|
15
15
|
* **`relative` shows the same reading in words**, such as "3 hours ago" at
|
|
16
16
|
* `long`, "3 hr. ago" at `short` and "3h ago" at `narrow`, the styles
|
|
@@ -30,8 +30,7 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
30
30
|
* `frozen` draws the reading once and leaves it.
|
|
31
31
|
*
|
|
32
32
|
* **`fields` draws each field of a date as a part of its own**, such as
|
|
33
|
-
* `day`, `month` and `year
|
|
34
|
-
* or the weekday in capitals with `::part()`. The text between the fields is
|
|
33
|
+
* `day`, `month` and `year`. The text between the fields is
|
|
35
34
|
* the locale's own and has no part. An `elapsed` or `relative` reading is one
|
|
36
35
|
* phrase, with no parts inside it.
|
|
37
36
|
*
|
|
@@ -54,6 +53,12 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
54
53
|
* @status stable
|
|
55
54
|
* @category typography
|
|
56
55
|
* @aliases RelativeTime, Timestamp, TimeAgo
|
|
56
|
+
* @use A moment shown as text, such as when a post went up or how long ago it changed.
|
|
57
|
+
* @instead date-input - A date you type or pick in a form.
|
|
58
|
+
* @instead time-input - A time you type or pick in a form.
|
|
59
|
+
* @instead date-picker - A month calendar you choose dates on.
|
|
60
|
+
* @practice Set `elapsed` in a feed, and `relative` where a reading stands alone. - In en-US, a compact 3m can mean three minutes or three months.
|
|
61
|
+
* @practice Set `fields` to style one field of a date, such as the year in a lighter ink. - Without `fields`, the reading is one text with no parts inside it.
|
|
57
62
|
* @documentation https://fusion.dev/helix/components/format-date
|
|
58
63
|
*
|
|
59
64
|
* @csspart day - The day of the month, with `fields`.
|
|
@@ -51,18 +51,24 @@ declare const HelixHeadlessGraph_base: (new (...args: any[]) => import("@fusion.
|
|
|
51
51
|
* a toolbar and one tab stop too, the arrow keys moving between them by where
|
|
52
52
|
* they sit on screen.
|
|
53
53
|
*
|
|
54
|
-
* `nodes` and `links` are properties, never markup: a graph of ten thousand
|
|
55
|
-
* notes as ten thousand elements would cost what the renderer exists to save.
|
|
56
54
|
* The list draws only the rows in view.
|
|
57
55
|
*
|
|
58
56
|
* The list scrolls on this tier. It carries `data-scroller`, and `core` ships
|
|
59
|
-
* `[data-scroller] { overflow: auto }` into every shadow root.
|
|
60
|
-
* to set a block size on the list, or it grows to hold every row.
|
|
57
|
+
* `[data-scroller] { overflow: auto }` into every shadow root.
|
|
61
58
|
*
|
|
62
59
|
* @since 0.116.0
|
|
63
60
|
* @status stable
|
|
64
61
|
* @category media
|
|
65
62
|
* @aliases Knowledge graph, Network, Note graph, Second brain
|
|
63
|
+
* @use Notes and the links between them, such as a knowledge base, with a list of every note.
|
|
64
|
+
* @instead canvas - Cards and arrows that you place by hand.
|
|
65
|
+
* @instead tree - Items in a hierarchy, each inside one parent.
|
|
66
|
+
* @anatomy viewport
|
|
67
|
+
* @anatomy controls
|
|
68
|
+
* @anatomy search
|
|
69
|
+
* @anatomy list
|
|
70
|
+
* @practice Set `nodes` and `links` as properties, from a script. - A graph of ten thousand notes as ten thousand elements would cost what the renderer exists to save.
|
|
71
|
+
* @practice On the headless tier, give the `list` part a block size. - Without one, the list grows to hold every row.
|
|
66
72
|
* @documentation https://fusion.dev/helix/components/graph
|
|
67
73
|
*
|
|
68
74
|
* @slot - The renderer's box, which the drawing is made in.
|
|
@@ -7,9 +7,8 @@ declare const HelixHeadlessHeatmap_base: typeof HelixElement & (new (...args: an
|
|
|
7
7
|
* @summary A strip of cells, each colored by its reading, for uptime, contributions, or activity.
|
|
8
8
|
*
|
|
9
9
|
* @description
|
|
10
|
-
* A grid of cells, each colored by a tone.
|
|
11
|
-
*
|
|
12
|
-
* discrete levels, which a set of tones covers.
|
|
10
|
+
* A grid of cells, each colored by a tone. GitHub's contribution graph uses
|
|
11
|
+
* five discrete levels, which a set of tones covers.
|
|
13
12
|
*
|
|
14
13
|
* Color in a heatmap is per cell. In every other Helix chart, color is per
|
|
15
14
|
* series, so ninety differently colored cells would need ninety series.
|
|
@@ -97,6 +96,14 @@ declare const HelixHeadlessHeatmap_base: typeof HelixElement & (new (...args: an
|
|
|
97
96
|
* @status stable
|
|
98
97
|
* @category charts
|
|
99
98
|
* @aliases Contribution graph, Uptime strip, Calendar heatmap, Activity graph
|
|
99
|
+
* @use A reading for each day or hour in a strip, such as uptime or commits.
|
|
100
|
+
* @instead line-chart - A measure over time whose rise and fall you follow.
|
|
101
|
+
* @instead spatial-heatmap - Counts by day drawn as a relief, such as a year of commits.
|
|
102
|
+
* @anatomy cell
|
|
103
|
+
* @anatomy start?
|
|
104
|
+
* @anatomy summary?
|
|
105
|
+
* @anatomy end?
|
|
106
|
+
* @practice Set `rows` to 7 for a contribution graph, and to 1 for a status strip. - With seven rows, each column is a week, read top to bottom in days.
|
|
100
107
|
* @documentation https://fusion.dev/helix/components/heatmap
|
|
101
108
|
*
|
|
102
109
|
* @slot empty - Content shown in place of the cells when the table has no readings, such as a link to add the first. Falls back to `empty-text`.
|
|
@@ -20,13 +20,10 @@ declare const HelixHeadlessHoverCard_base: (new (...args: any[]) => import("@fus
|
|
|
20
20
|
* It closes on Escape and on a press elsewhere.
|
|
21
21
|
*
|
|
22
22
|
* **It adds to the link and never stands in for it.** The link still goes
|
|
23
|
-
* where it goes when pressed
|
|
24
|
-
* the link without opening the card. So put nothing in the card that a
|
|
25
|
-
* reader can only reach there.
|
|
23
|
+
* where it goes when pressed.
|
|
26
24
|
*
|
|
27
|
-
* **Opening moves no focus.** A reader who tabbed to the link stays on it
|
|
28
|
-
*
|
|
29
|
-
* page's order: place the element right after the link. The card is no
|
|
25
|
+
* **Opening moves no focus.** A reader who tabbed to the link stays on it.
|
|
26
|
+
* The card is no
|
|
30
27
|
* description of the link and names nothing on it, so a screen reader reads
|
|
31
28
|
* the link as it is and the card as content when it is reached.
|
|
32
29
|
*
|
|
@@ -38,6 +35,11 @@ declare const HelixHeadlessHoverCard_base: (new (...args: any[]) => import("@fus
|
|
|
38
35
|
* @status experimental
|
|
39
36
|
* @category overlays
|
|
40
37
|
* @aliases Preview card, Link preview, Profile card, Hover preview
|
|
38
|
+
* @use A preview of a person or a page that opens from a link while the pointer rests on it.
|
|
39
|
+
* @instead tooltip - A short text that names a control.
|
|
40
|
+
* @instead popover - Content that opens on a press, such as a short form.
|
|
41
|
+
* @practice Put nothing in the card that you can reach only there. - A touch screen has no hover, so it follows the link without opening the card.
|
|
42
|
+
* @practice Place the card right after the link that `for` names. - The next Tab from the link goes into the card, whose content follows the link in the page's order.
|
|
41
43
|
* @documentation https://fusion.dev/helix/components/hover-card
|
|
42
44
|
*
|
|
43
45
|
* @slot - The card's content, which may hold links and buttons.
|
|
@@ -20,9 +20,8 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
20
20
|
*
|
|
21
21
|
* **A name is looked up in a registry.** The family's entry registers the
|
|
22
22
|
* whole set, so any name in it draws, and `icon/all` registers the same set.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* names ships those and no others. `registerIconLibrary` resolves names under a prefix of your own,
|
|
23
|
+
* `registerIcons` adds glyphs to the registry by name. `registerIconLibrary`
|
|
24
|
+
* resolves names under a prefix of your own,
|
|
26
25
|
* such as `lucide:camera`, at once or later, and the element fires `load` when
|
|
27
26
|
* a glyph that came later is drawn. A glyph registered after the element
|
|
28
27
|
* rendered is drawn then.
|
|
@@ -56,6 +55,11 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
56
55
|
* @status stable
|
|
57
56
|
* @category media
|
|
58
57
|
* @aliases Glyph, Symbol
|
|
58
|
+
* @use A symbol from the Helix set, beside a label or alone in an icon button.
|
|
59
|
+
* @instead icon-button - A square button whose content is an icon.
|
|
60
|
+
* @instead badge - A count or a dot pinned to another element.
|
|
61
|
+
* @instead avatar - A person or an account, shown by their photo or their initials.
|
|
62
|
+
* @practice Import the element's own entry, `icon/root`, and register only the glyphs a page names. - That entry registers no glyph, so the page ships the glyphs it registers and no others.
|
|
59
63
|
* @documentation https://fusion.dev/helix/components/icon
|
|
60
64
|
*
|
|
61
65
|
* @event {Event} error - `name` matches no registered icon and no library answers it, or `src` is no SVG, so nothing is drawn.
|
|
@@ -23,6 +23,10 @@ import { HelixHeadlessButton } from '../../button/root/button-root.js';
|
|
|
23
23
|
* @status stable
|
|
24
24
|
* @category actions
|
|
25
25
|
* @aliases Icon button, Square button
|
|
26
|
+
* @use An action shown as an icon alone, such as Settings in a toolbar or Close on a panel.
|
|
27
|
+
* @instead button - An action named in words, such as Save changes.
|
|
28
|
+
* @instead copy-button - An icon that copies a value to the clipboard.
|
|
29
|
+
* @practice Set `raised` on a button that floats over the page, such as one over a map or a board. - A raised button takes the theme's floating edge and shadow, as a popover does.
|
|
26
30
|
* @documentation https://fusion.dev/helix/components/icon-button
|
|
27
31
|
*
|
|
28
32
|
* @slot - The icon.
|
|
@@ -31,6 +31,10 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
31
31
|
* @status stable
|
|
32
32
|
* @category media
|
|
33
33
|
* @aliases Picture, Img, Figure
|
|
34
|
+
* @use A photo or an illustration on the page, with a placeholder while it loads.
|
|
35
|
+
* @instead lightbox - Pictures opened large over the page, one at a time.
|
|
36
|
+
* @instead carousel - Several pictures that take turns in one place.
|
|
37
|
+
* @instead avatar - A person's photo, or their initials where there is no photo.
|
|
34
38
|
* @documentation https://fusion.dev/helix/components/image
|
|
35
39
|
*
|
|
36
40
|
* @slot fallback - Shown in place of the image if it fails to load, and read by screen readers then, such as "Photo unavailable".
|
|
@@ -21,8 +21,7 @@ declare const HelixHeadlessInput_base: (new (...args: any[]) => import("@fusion.
|
|
|
21
21
|
*
|
|
22
22
|
* Validity comes from the browser. `type` and `required` are set on the real
|
|
23
23
|
* input, and its `validity` is copied to the host. `validate` adds your own
|
|
24
|
-
* rule,
|
|
25
|
-
* Aria's TextField `validate` does. What it returns is the message the field
|
|
24
|
+
* rule, as React Aria's TextField `validate` does. What it returns is the message the field
|
|
26
25
|
* shows once the user has edited it, and the message a submit raises.
|
|
27
26
|
*
|
|
28
27
|
* **Keyboard.** The field's own keys are the platform's. Enter submits the
|
|
@@ -40,6 +39,14 @@ declare const HelixHeadlessInput_base: (new (...args: any[]) => import("@fusion.
|
|
|
40
39
|
* @status stable
|
|
41
40
|
* @category forms
|
|
42
41
|
* @aliases TextField, Field, TextInput
|
|
42
|
+
* @use A single line of text, such as a name, an email address, or a search term.
|
|
43
|
+
* @instead textarea - Text that runs to several lines, such as a description.
|
|
44
|
+
* @instead number-input - A number you type or nudge with step buttons.
|
|
45
|
+
* @instead combobox - A value from a list, found by typing.
|
|
46
|
+
* @anatomy label
|
|
47
|
+
* @anatomy field
|
|
48
|
+
* @anatomy hint?
|
|
49
|
+
* @practice Set `type` and `required` before you write `validate`. - The browser checks those first, and `validate` runs on each change only once it finds nothing wrong.
|
|
43
50
|
* @documentation https://fusion.dev/helix/components/input
|
|
44
51
|
*
|
|
45
52
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
@@ -6,17 +6,6 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
6
6
|
* @description
|
|
7
7
|
* Renders a `<kbd>` element.
|
|
8
8
|
*
|
|
9
|
-
* Each element holds one key, except when you use `keys`. For a sequence or a
|
|
10
|
-
* chord, write one element per key and put the separator between them as text,
|
|
11
|
-
* such as "then" or "plus".
|
|
12
|
-
*
|
|
13
|
-
* `keys` renders the right glyphs for the platform. Given `mod`, it renders
|
|
14
|
-
* `⌘K` on Apple devices and `Ctrl+K` everywhere else. A `⌘K` typed into a
|
|
15
|
-
* template is wrong for anyone on Windows.
|
|
16
|
-
*
|
|
17
|
-
* The element binds the shortcut only when `within` is set. By default it draws
|
|
18
|
-
* the key and listens for nothing.
|
|
19
|
-
*
|
|
20
9
|
* **`for` names the control the shortcut works**, and the key writes its chord
|
|
21
10
|
* onto that control's `aria-keyshortcuts`, in the platform's words (`Meta+K`
|
|
22
11
|
* on an Apple keyboard, `Control+K` elsewhere), so a screen reader announces
|
|
@@ -43,6 +32,13 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
43
32
|
* @status stable
|
|
44
33
|
* @category typography
|
|
45
34
|
* @aliases Key, Shortcut, Hotkey
|
|
35
|
+
* @use A key or a chord to press, written in a sentence, such as Ctrl+K to search.
|
|
36
|
+
* @use A shortcut that works the control it names, such as / to move to a search field.
|
|
37
|
+
* @instead code - A name from code inside a sentence.
|
|
38
|
+
* @instead shortcut-overlay - Every shortcut on a page, shown while a key is held.
|
|
39
|
+
* @practice {shortcut} Write a chord in `keys`, such as mod+k. - It draws ⌘K on Apple devices and Ctrl+K elsewhere, and a ⌘K typed into a template is wrong on Windows.
|
|
40
|
+
* @practice Write a sequence as one Kbd for each key, with the word between them as text, such as then. - Each element holds one key, except under `keys`.
|
|
41
|
+
* @practice Set `within` for the shortcut to work. - By default the key is drawn and listens for nothing.
|
|
46
42
|
* @documentation https://fusion.dev/helix/components/kbd
|
|
47
43
|
*
|
|
48
44
|
* @slot - The key's label, where `keys` is not set.
|
|
@@ -5,16 +5,13 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
7
|
* Renders a legend as a list, separate from any chart, so any chart can use
|
|
8
|
-
* one.
|
|
9
|
-
* from that table, so the two always match.
|
|
8
|
+
* one.
|
|
10
9
|
*
|
|
11
10
|
* `entries` sets how the table is read:
|
|
12
11
|
*
|
|
13
|
-
* - `series`: one entry per data column, named by the header row.
|
|
14
|
-
*
|
|
15
|
-
* - `
|
|
16
|
-
* the rows and which has no axis to name them on.
|
|
17
|
-
* - `measures`: drops the first data column. Use it for a scatter.
|
|
12
|
+
* - `series`: one entry per data column, named by the header row.
|
|
13
|
+
* - `categories`: one entry per body row.
|
|
14
|
+
* - `measures`: drops the first data column.
|
|
18
15
|
*
|
|
19
16
|
* The table is resolved on the client. There is no server pass.
|
|
20
17
|
*
|
|
@@ -34,6 +31,12 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
34
31
|
* @status stable
|
|
35
32
|
* @category charts
|
|
36
33
|
* @aliases Series Key
|
|
34
|
+
* @use The names and colors of a chart's series, under or beside the chart.
|
|
35
|
+
* @use Buttons that hide and show each series of the charts that read one table.
|
|
36
|
+
* @anatomy entry
|
|
37
|
+
* @anatomy name
|
|
38
|
+
* @practice Set `for` to the table the chart reads. - The legend takes its entries from that table, so the two always match.
|
|
39
|
+
* @practice Set `entries="categories"` for a donut chart, and `entries="measures"` for a scatter chart. - A donut's slices are the table's rows, and a scatter's first data column is measured across.
|
|
37
40
|
* @documentation https://fusion.dev/helix/components/legend
|
|
38
41
|
*
|
|
39
42
|
* @event {Event} change - Fired once a toggle has hidden or shown a series.
|
|
@@ -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,6 +72,15 @@ 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
|
|
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.
|
|
77
84
|
* @documentation https://fusion.dev/helix/components/lightbox
|
|
78
85
|
*
|
|
79
86
|
* @slot - The items, which are `<helix-headless-lightbox-item>` elements.
|
|
@@ -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,6 +70,17 @@ 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
|
|
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.
|
|
79
84
|
* @documentation https://fusion.dev/helix/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`.
|
|
@@ -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,6 +94,16 @@ import { type ListSelectionBehavior, type ListSelectionMode } from '../selection
|
|
|
99
94
|
* @status stable
|
|
100
95
|
* @category data
|
|
101
96
|
* @aliases Rows, Menu
|
|
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.
|
|
102
107
|
* @documentation https://fusion.dev/helix/components/list
|
|
103
108
|
*
|
|
104
109
|
* @slot - The rows.
|
|
@@ -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,6 +82,12 @@ 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.
|
|
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.
|
|
98
91
|
* @documentation https://fusion.dev/helix/components/listbox
|
|
99
92
|
*
|
|
100
93
|
* @slot - The options, and any groups of them.
|
|
@@ -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,6 +41,14 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
45
41
|
* @status stable
|
|
46
42
|
* @category feedback
|
|
47
43
|
* @aliases Spinner, Busy, Activity indicator
|
|
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.
|
|
48
52
|
* @documentation https://fusion.dev/helix/components/loader
|
|
49
53
|
*
|
|
50
54
|
* @slot - An icon or logo that stays still at the center. Empty by default.
|
|
@@ -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,6 +87,16 @@ 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
|
|
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.
|
|
92
100
|
* @documentation https://fusion.dev/helix/components/log
|
|
93
101
|
*
|
|
94
102
|
* @slot - The lines, as `Log.Line` and `Log.Group` elements.
|