@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
|
@@ -11,10 +11,9 @@ declare const HelixHeadlessCheckboxGroup_base: (new (...args: any[]) => import("
|
|
|
11
11
|
* names it. Without a name, screen readers announce the checkboxes as separate
|
|
12
12
|
* controls.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the
|
|
17
|
-
* `name` that you write once, and one place to read and write the whole set.
|
|
14
|
+
* Checkboxes are already form-associated, and a native group is several inputs
|
|
15
|
+
* that share a name. The group adds the grouping and one place to read and
|
|
16
|
+
* write the whole set.
|
|
18
17
|
*
|
|
19
18
|
* `value` is the checked values, separated by commas, in the order the
|
|
20
19
|
* checkboxes are written, read from the boxes themselves. Setting it checks
|
|
@@ -30,10 +29,6 @@ declare const HelixHeadlessCheckboxGroup_base: (new (...args: any[]) => import("
|
|
|
30
29
|
* another kind inside the group, such as an "Other" text field, sends its own
|
|
31
30
|
* `input` and `change` past the group.
|
|
32
31
|
*
|
|
33
|
-
* **The group shows the message you set in `feedback`.** It is form-associated
|
|
34
|
-
* only for validity and never calls `setFormValue`, so the browser does not
|
|
35
|
-
* generate a message for it.
|
|
36
|
-
*
|
|
37
32
|
* **Keyboard.** Each box is its own tab stop, as a set of native checkboxes
|
|
38
33
|
* is, and Space checks the focused one. The select-all box comes first.
|
|
39
34
|
*
|
|
@@ -41,7 +36,16 @@ declare const HelixHeadlessCheckboxGroup_base: (new (...args: any[]) => import("
|
|
|
41
36
|
* @status stable
|
|
42
37
|
* @category forms
|
|
43
38
|
* @aliases Checkbox list, Multi-select
|
|
44
|
-
* @
|
|
39
|
+
* @use Several choices from one set, such as the places you receive updates.
|
|
40
|
+
* @instead checkbox - One choice that stands on its own, such as accepting the terms.
|
|
41
|
+
* @instead radio - One choice from a set of up to five options.
|
|
42
|
+
* @instead listbox - A list too long to show as boxes, from which you choose several.
|
|
43
|
+
* @anatomy label
|
|
44
|
+
* @anatomy items
|
|
45
|
+
* @anatomy hint?
|
|
46
|
+
* @practice Write `name` once, on the group. - Each checkbox submits its own value under that name, and the group adds no value of its own.
|
|
47
|
+
* @practice Set `feedback` for a message about the whole set. - The group never sets a form value, so the browser writes no message for it.
|
|
48
|
+
* @documentation https://fusion.dev/design/components/checkbox-group
|
|
45
49
|
*
|
|
46
50
|
* @slot - The checkboxes, and anything laid out around them.
|
|
47
51
|
* @slot feedback - The message that says what is wrong, for content richer than a string. It shows while there is a message.
|
|
@@ -8,10 +8,8 @@ import { type TemplateResult } from 'lit';
|
|
|
8
8
|
* tools and document search. A styled span carries no such meaning, and a
|
|
9
9
|
* screen reader announces nothing about it.
|
|
10
10
|
*
|
|
11
|
-
* **Set `translate="no"` on the element to keep a page translator off the
|
|
12
|
-
* code.** A translator that rewrites prose would also rewrite an identifier.
|
|
13
11
|
* The slotted text takes its translation mode from the element, its parent in
|
|
14
|
-
* the page, and the element writes nothing onto itself, so
|
|
12
|
+
* the page, and the element writes nothing onto itself, so `translate` is
|
|
15
13
|
* yours to set. The `<code>` inside carries `translate="no"` for anything the
|
|
16
14
|
* element draws itself.
|
|
17
15
|
*
|
|
@@ -23,7 +21,12 @@ import { type TemplateResult } from 'lit';
|
|
|
23
21
|
* @status stable
|
|
24
22
|
* @category typography
|
|
25
23
|
* @aliases Inline code
|
|
26
|
-
* @
|
|
24
|
+
* @use A name from code inside a sentence, such as a property or a command.
|
|
25
|
+
* @instead code-block - Lines of code set apart from the prose, with a copy button.
|
|
26
|
+
* @instead kbd - A key or a chord you press.
|
|
27
|
+
* @instead code-input - Code you type into a form.
|
|
28
|
+
* @practice Set `translate="no"` on the element to keep a page translator off the code. - A translator that rewrites prose would also rewrite an identifier.
|
|
29
|
+
* @documentation https://fusion.dev/design/components/code
|
|
27
30
|
*
|
|
28
31
|
* @slot - The code.
|
|
29
32
|
*
|
|
@@ -21,9 +21,8 @@ import { HighlighterController } from '../highlighter.js';
|
|
|
21
21
|
* band behind each run, placed where the lines are laid out, so it follows a
|
|
22
22
|
* highlighter's markup and lines that wrap. `added-lines` and
|
|
23
23
|
* `removed-lines` mark lines the same way as inserted and deleted, as
|
|
24
|
-
* Expressive Code's `ins` and `del` do, in code that is not a diff.
|
|
25
|
-
*
|
|
26
|
-
* block what a marked line means. Set `wrap` to wrap long lines
|
|
24
|
+
* Expressive Code's `ins` and `del` do, in code that is not a diff. Set
|
|
25
|
+
* `wrap` to wrap long lines
|
|
27
26
|
* rather than scroll them; a gutter then numbers each line where it starts.
|
|
28
27
|
* Set `wrappable` for a button in the header that turns `wrap` on and off,
|
|
29
28
|
* pressed while the lines wrap.
|
|
@@ -38,10 +37,8 @@ import { HighlighterController } from '../highlighter.js';
|
|
|
38
37
|
* the slot, so the copy button and the page's own text are the code as
|
|
39
38
|
* written.
|
|
40
39
|
*
|
|
41
|
-
* **Code Block ships no grammar**, so plain code costs you no parser.
|
|
42
|
-
* every block on the page
|
|
43
|
-
* with the function and, for a highlighter that writes classes, the
|
|
44
|
-
* stylesheet that colors them. A block's own `highlight` wins over it:
|
|
40
|
+
* **Code Block ships no grammar**, so plain code costs you no parser. Shiki,
|
|
41
|
+
* registered for every block on the page:
|
|
45
42
|
*
|
|
46
43
|
* ```js
|
|
47
44
|
* import { registerHighlighter } from '@fusion.dev/helix-headless/code-block'
|
|
@@ -111,7 +108,17 @@ import { HighlighterController } from '../highlighter.js';
|
|
|
111
108
|
* @status stable
|
|
112
109
|
* @category typography
|
|
113
110
|
* @aliases Code block, Snippet, Pre
|
|
114
|
-
* @
|
|
111
|
+
* @use Lines of code set apart from the prose, such as an example to copy.
|
|
112
|
+
* @instead code - A name from code inside a sentence.
|
|
113
|
+
* @instead code-input - A short piece of code you type into a form.
|
|
114
|
+
* @instead code-editor - A file of code you edit, in a code editor you connect.
|
|
115
|
+
* @anatomy label
|
|
116
|
+
* @anatomy copy
|
|
117
|
+
* @anatomy block
|
|
118
|
+
* @practice Import `@fusion.dev/helix-sandbox/code-block` beside the block to color code with no highlighter of your own. - It registers a highlighter for every block, which colors code as the sandbox's editor does.
|
|
119
|
+
* @practice Call `registerHighlighter()` once, with the stylesheet for a highlighter that writes classes. - Every block on the page then shares it, and a block's own `highlight` still wins.
|
|
120
|
+
* @practice Say in the text around the block what a marked line means. - The bands that `mark-lines`, `added-lines`, and `removed-lines` draw are hidden from screen readers.
|
|
121
|
+
* @documentation https://fusion.dev/design/components/code-block
|
|
115
122
|
*
|
|
116
123
|
* @slot - The code.
|
|
117
124
|
* @slot actions - Controls for the block, in the header before the copy button.
|
|
@@ -93,12 +93,12 @@ declare const HelixHeadlessCodeEditor_base: (new (...args: any[]) => import("@fu
|
|
|
93
93
|
* @description
|
|
94
94
|
* A pane for working on a file: a header with its name, its language and the
|
|
95
95
|
* page's own actions, the code, the problems in it, and a status line that
|
|
96
|
-
* says where the caret is.
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
96
|
+
* says where the caret is. Connect an engine and it draws the code:
|
|
97
|
+
* `connectCodeEditor` from `@fusion.dev/helix-code-editor` connects CodeMirror,
|
|
98
|
+
* with highlighting in your theme's syntax colors, line numbers, folding,
|
|
99
|
+
* bracket matching and history. The value, the form, validation and the events
|
|
100
|
+
* stay the editor's, so a page reads and writes it the same with an engine or
|
|
101
|
+
* without one.
|
|
102
102
|
*
|
|
103
103
|
* For a few lines in a form, such as a setting in JSON, use `Code Input`,
|
|
104
104
|
* which needs no engine.
|
|
@@ -127,7 +127,18 @@ declare const HelixHeadlessCodeEditor_base: (new (...args: any[]) => import("@fu
|
|
|
127
127
|
* @status experimental
|
|
128
128
|
* @category editors
|
|
129
129
|
* @aliases Code editor, CodeMirror, File editor, IDE, Monaco
|
|
130
|
-
* @
|
|
130
|
+
* @use A file of code you edit, with its problems listed under it.
|
|
131
|
+
* @instead code-input - A short piece of code in a form, such as a JSON setting.
|
|
132
|
+
* @instead code-block - Code you read and copy, with no editing.
|
|
133
|
+
* @instead editor - A document of prose you write and format.
|
|
134
|
+
* @anatomy header
|
|
135
|
+
* @anatomy controls
|
|
136
|
+
* @anatomy body
|
|
137
|
+
* @anatomy diagnostics?
|
|
138
|
+
* @anatomy status
|
|
139
|
+
* @practice Connect CodeMirror for highlighting, line numbers, and folding. - On its own the code is a plain textarea in the code face.
|
|
140
|
+
* @practice {fill} Set `fill` for an editor that fills a pane, such as one side of a split view. - Without it, the editor is 24rem tall.
|
|
141
|
+
* @documentation https://fusion.dev/design/components/code-editor
|
|
131
142
|
*
|
|
132
143
|
* @slot actions - The page's own controls in the header, such as Run or Format, before the built-in ones.
|
|
133
144
|
* @slot hint - Help under the editor, in place of `hint`.
|
|
@@ -17,11 +17,8 @@ import { HelixHeadlessTextarea } from '../../textarea/root/textarea-root.js';
|
|
|
17
17
|
* - Lines keep their length and the field scrolls sideways, unless `wrap` is
|
|
18
18
|
* `soft`.
|
|
19
19
|
*
|
|
20
|
-
* **The colors
|
|
21
|
-
*
|
|
22
|
-
* `import '@fusion.dev/helix-sandbox/code-block'` registers Helix's own, or
|
|
23
|
-
* `registerHighlighter` takes Shiki or Prism. Without one the code is drawn
|
|
24
|
-
* plain, and `highlight` sets one for a single field.
|
|
20
|
+
* **The colors come from a highlighter.** `registerHighlighter` takes Shiki or
|
|
21
|
+
* Prism in place of Helix's own, and `highlight` sets one for a single field.
|
|
25
22
|
*
|
|
26
23
|
* For a whole file, with line numbers, folding, search and problems listed by
|
|
27
24
|
* line, use `Code Editor`. Code Input is for a few dozen lines in a form: a
|
|
@@ -36,7 +33,15 @@ import { HelixHeadlessTextarea } from '../../textarea/root/textarea-root.js';
|
|
|
36
33
|
* @status experimental
|
|
37
34
|
* @category forms
|
|
38
35
|
* @aliases Code field, Code textarea, JSON input, Syntax highlighted input
|
|
39
|
-
* @
|
|
36
|
+
* @use A short piece of code in a form, such as a JSON payload or a query.
|
|
37
|
+
* @instead code-editor - A whole file of code, in an editor you connect.
|
|
38
|
+
* @instead code-block - Code you show for reading and copying.
|
|
39
|
+
* @instead textarea - Several lines of plain text, such as a description.
|
|
40
|
+
* @anatomy label
|
|
41
|
+
* @anatomy field
|
|
42
|
+
* @anatomy hint?
|
|
43
|
+
* @practice Import Code Block from Helix Sandbox once on the page. - Helix ships no grammar, and that import registers the highlighter that colors every Code Input.
|
|
44
|
+
* @documentation https://fusion.dev/design/components/code-input
|
|
40
45
|
*
|
|
41
46
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
42
47
|
* @slot end - After the code, for an icon or an action beside it.
|
|
@@ -42,7 +42,14 @@ declare const HelixHeadlessColorInput_base: (new (...args: any[]) => import("@fu
|
|
|
42
42
|
* @status stable
|
|
43
43
|
* @category forms
|
|
44
44
|
* @aliases ColorField, ColourInput, InputColor
|
|
45
|
-
* @
|
|
45
|
+
* @use A color in a form, typed in any syntax or picked from a panel that opens.
|
|
46
|
+
* @instead color-picker - A picker that stays open on the page, such as in a theme editor.
|
|
47
|
+
* @anatomy label
|
|
48
|
+
* @anatomy field
|
|
49
|
+
* @anatomy trigger
|
|
50
|
+
* @anatomy hint?
|
|
51
|
+
* @anatomy surface
|
|
52
|
+
* @documentation https://fusion.dev/design/components/color-input
|
|
46
53
|
*
|
|
47
54
|
* @slot end - Content at the trailing end, before the trigger.
|
|
48
55
|
* @slot feedback - The message that says what is wrong with the value.
|
|
@@ -47,7 +47,13 @@ declare const HelixHeadlessColorPicker_base: (new (...args: any[]) => import("@f
|
|
|
47
47
|
* @status stable
|
|
48
48
|
* @category forms
|
|
49
49
|
* @aliases Color, ColorArea, Swatch picker
|
|
50
|
-
* @
|
|
50
|
+
* @use A color chosen in a picker that stays on the page, such as in a theme editor.
|
|
51
|
+
* @instead color-input - A color in a form field that opens a picker when you press it.
|
|
52
|
+
* @anatomy grid
|
|
53
|
+
* @anatomy sample
|
|
54
|
+
* @anatomy channels
|
|
55
|
+
* @anatomy value
|
|
56
|
+
* @documentation https://fusion.dev/design/components/color-picker
|
|
51
57
|
*
|
|
52
58
|
* @slot eyedropper-icon - The icon on the eyedropper button, usually a dropper.
|
|
53
59
|
* @slot hint - Help under the picker, for content richer than the `hint` text.
|
|
@@ -7,8 +7,7 @@ import '../../checkbox/index.js';
|
|
|
7
7
|
*
|
|
8
8
|
* @description
|
|
9
9
|
* Set `for` to the id of a `DataTable`, and the list holds a row for each of
|
|
10
|
-
* its columns with a `field`, in the order the table shows them.
|
|
11
|
-
* `Popover` opened by a Columns button, or in a `Drawer` on a phone.
|
|
10
|
+
* its columns with a `field`, in the order the table shows them.
|
|
12
11
|
*
|
|
13
12
|
* ```html
|
|
14
13
|
* <helix-column-manager for="invoices"></helix-column-manager>
|
|
@@ -29,8 +28,7 @@ import '../../checkbox/index.js';
|
|
|
29
28
|
*
|
|
30
29
|
* **It writes the table's `view.columns` and nothing else.** Every change asks
|
|
31
30
|
* the table with `requestView`, so the table fires `helix-before-view-change`,
|
|
32
|
-
* which you can refuse, and `helix-view-change`.
|
|
33
|
-
* reader's columns.
|
|
31
|
+
* which you can refuse, and `helix-view-change`.
|
|
34
32
|
*
|
|
35
33
|
* **Keyboard.** Each row's checkbox, grip and pin button are in the tab order.
|
|
36
34
|
*
|
|
@@ -46,7 +44,17 @@ import '../../checkbox/index.js';
|
|
|
46
44
|
* @status experimental
|
|
47
45
|
* @category data
|
|
48
46
|
* @aliases Column picker, Column chooser
|
|
49
|
-
* @
|
|
47
|
+
* @use Which of a Data Table's columns show, in what order, and which stay pinned.
|
|
48
|
+
* @instead view-panel - A table's whole view on a phone, with the columns as one section.
|
|
49
|
+
* @instead quick-filters - A saved view of a table that you switch to in one press.
|
|
50
|
+
* @anatomy header
|
|
51
|
+
* @anatomy item
|
|
52
|
+
* @anatomy grip
|
|
53
|
+
* @anatomy checkbox
|
|
54
|
+
* @anatomy pin
|
|
55
|
+
* @practice Put Column Manager in a Popover opened by a Columns button, or in a Drawer on a phone. - The list is the panel's content, and it draws no trigger of its own.
|
|
56
|
+
* @practice Store the table's view to keep a reader's columns. - Every change goes to the table's view, and the list keeps nothing of its own.
|
|
57
|
+
* @documentation https://fusion.dev/design/components/column-manager
|
|
50
58
|
*
|
|
51
59
|
* @csspart checkbox - The `Checkbox` that shows or hides a column.
|
|
52
60
|
* @csspart checkbox-box - The box drawn for a row's checkbox.
|
|
@@ -55,18 +55,6 @@ declare const HelixHeadlessCombobox_base: (new (...args: any[]) => import("@fusi
|
|
|
55
55
|
* next choice starts from the whole list.
|
|
56
56
|
*
|
|
57
57
|
* With `creatable`, the combobox offers a create row and fires `helix-create`.
|
|
58
|
-
* It does not add the option. The options are your light DOM, and your
|
|
59
|
-
* framework would re-render over an element the combobox inserted, so add the
|
|
60
|
-
* option in your event handler.
|
|
61
|
-
*
|
|
62
|
-
* **The options are an import of their own.** An option is the Option family's,
|
|
63
|
-
* which the combobox does not register, so a page that writes one imports it
|
|
64
|
-
* beside the combobox:
|
|
65
|
-
*
|
|
66
|
-
* ```js
|
|
67
|
-
* import '@fusion.dev/helix/combobox'
|
|
68
|
-
* import '@fusion.dev/helix/option'
|
|
69
|
-
* ```
|
|
70
58
|
*
|
|
71
59
|
* In development, a combobox holding an option nobody registered says so once
|
|
72
60
|
* the page has loaded, with the line to add.
|
|
@@ -78,7 +66,13 @@ declare const HelixHeadlessCombobox_base: (new (...args: any[]) => import("@fusi
|
|
|
78
66
|
* @use One value from a long list, found by typing.
|
|
79
67
|
* @instead select - A short list you scan.
|
|
80
68
|
* @instead filter-input - Several values that narrow a list.
|
|
81
|
-
* @
|
|
69
|
+
* @anatomy label
|
|
70
|
+
* @anatomy field
|
|
71
|
+
* @anatomy hint?
|
|
72
|
+
* @anatomy surface
|
|
73
|
+
* @practice Import Option beside Combobox. - An option belongs to the Option family, which Combobox does not register.
|
|
74
|
+
* @practice Add the option yourself when `creatable` sends its create event. - The options are your light DOM, and your framework would render over an option the combobox inserted.
|
|
75
|
+
* @documentation https://fusion.dev/design/components/combobox
|
|
82
76
|
*
|
|
83
77
|
* @slot - The options.
|
|
84
78
|
* @slot empty - What the list shows when it has no options, for content richer than `empty-text`.
|
|
@@ -76,15 +76,10 @@ declare const HelixHeadlessCommand_base: (new (...args: any[]) => import("@fusio
|
|
|
76
76
|
* Aria's `Autocomplete` is. The commands are a `listbox` of `option`s. How many commands typing left, the empty text and
|
|
77
77
|
* the loading text are said in a polite live region.
|
|
78
78
|
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* palette alone. A tier of your own registers its own option, and in
|
|
82
|
-
* development a palette holding one nobody registered says so.
|
|
79
|
+
* A tier of your own registers its own option, and in development a palette
|
|
80
|
+
* holding one nobody registered says so.
|
|
83
81
|
*
|
|
84
|
-
*
|
|
85
|
-
* puts itself on the page's list while it is connected, and the palette lists
|
|
86
|
-
* the ones a reader can reach under its own commands once they type, with
|
|
87
|
-
* each one's shortcut. Choosing one closes the palette and presses it, or
|
|
82
|
+
* Under `controls`, each control is listed with its shortcut. Choosing one closes the palette and presses it, or
|
|
88
83
|
* moves focus into a field. `unlisted` on a control, or on a region around it,
|
|
89
84
|
* leaves it out.
|
|
90
85
|
*
|
|
@@ -92,7 +87,17 @@ declare const HelixHeadlessCommand_base: (new (...args: any[]) => import("@fusio
|
|
|
92
87
|
* @status stable
|
|
93
88
|
* @category navigation
|
|
94
89
|
* @aliases Command palette, Quick open, Spotlight
|
|
95
|
-
* @
|
|
90
|
+
* @use Commands you find by typing, opened from anywhere on the page with a shortcut.
|
|
91
|
+
* @instead menu - Commands that open from one trigger, such as a row's More button.
|
|
92
|
+
* @instead combobox - One value for a form, found by typing.
|
|
93
|
+
* @instead find - Words to find in the content on the page.
|
|
94
|
+
* @anatomy dialog-surface
|
|
95
|
+
* @anatomy listbox-search-field
|
|
96
|
+
* @anatomy listbox-items
|
|
97
|
+
* @anatomy footer?
|
|
98
|
+
* @practice Import Command alone for commands written as options. - The palette registers Option itself, since it draws the controls on screen as options.
|
|
99
|
+
* @practice {controls} Set `controls` to find any control on screen. - Every labeled Helix control puts itself on the page's list, and the palette lists the ones you can reach once you type.
|
|
100
|
+
* @documentation https://fusion.dev/design/components/command
|
|
96
101
|
*
|
|
97
102
|
* @slot - The commands, and any groups of them.
|
|
98
103
|
* @slot empty - What the palette shows when typing matches no commands, for content richer than `empty-text`.
|
|
@@ -17,9 +17,8 @@ import '../../tooltip/index.js';
|
|
|
17
17
|
* moment a copy shows `copied-label`, draws a cross, and sends
|
|
18
18
|
* `helix-copy-error`.
|
|
19
19
|
*
|
|
20
|
-
* `from`
|
|
21
|
-
*
|
|
22
|
-
* press. It takes the place of `value`.
|
|
20
|
+
* `from` writes an attribute as `id[attribute]` and a property as
|
|
21
|
+
* `id.property`.
|
|
23
22
|
*
|
|
24
23
|
* It replaces Button's render and its press, so it never submits a form or
|
|
25
24
|
* sends a command: `type`, `command`, `commandfor` and the `form*` overrides
|
|
@@ -48,7 +47,13 @@ import '../../tooltip/index.js';
|
|
|
48
47
|
* @status stable
|
|
49
48
|
* @category actions
|
|
50
49
|
* @aliases Copy, Copy to clipboard
|
|
51
|
-
* @
|
|
50
|
+
* @use A value you copy with one press, such as an install command or an API key.
|
|
51
|
+
* @instead code-block - A block of code, which draws a copy button of its own.
|
|
52
|
+
* @instead icon-button - An icon that runs an action other than a copy.
|
|
53
|
+
* @anatomy button
|
|
54
|
+
* @anatomy mark
|
|
55
|
+
* @practice Set `from` to copy from another element on the page, in place of `value`. - It reads that element's text, an attribute, or a property at the press.
|
|
56
|
+
* @documentation https://fusion.dev/design/components/copy-button
|
|
52
57
|
*
|
|
53
58
|
* @slot - The icon shown before a copy. Defaults to a clipboard.
|
|
54
59
|
* @slot copied - The icon shown after a successful copy. Defaults to a check mark.
|
|
@@ -33,13 +33,9 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
33
33
|
*
|
|
34
34
|
* Sort and filter apply to the whole set, including the rows on other pages.
|
|
35
35
|
*
|
|
36
|
-
* **
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* Write the first page under the columns as `TableRow` and `TableCell`
|
|
40
|
-
* elements, in the table's sort and page size and formatted as its columns draw
|
|
41
|
-
* them. The table shows your rows until `rows` holds a row, then draws its own
|
|
42
|
-
* in their place and leaves yours in the page, unshown. A development build
|
|
36
|
+
* **The served first page.** Write it in the table's sort and page size and
|
|
37
|
+
* formatted as its columns draw them. The table shows your rows until `rows`
|
|
38
|
+
* holds a row, then draws its own in their place and leaves yours in the page, unshown. A development build
|
|
43
39
|
* warns when the two differ. In React, map the first page of the same array in
|
|
44
40
|
* the same server component.
|
|
45
41
|
*
|
|
@@ -62,10 +58,9 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
62
58
|
* To act on a single row, such as opening it, put a link or a button in a cell.
|
|
63
59
|
* `row-link` makes a press anywhere else on the row work that control.
|
|
64
60
|
*
|
|
65
|
-
*
|
|
66
|
-
* reach
|
|
67
|
-
* `
|
|
68
|
-
* `cellStyles`, or name an element with `part` and style it with `::part()`.
|
|
61
|
+
* The base layer's `data-link`, `data-link-underline`, and `data-density`
|
|
62
|
+
* reach a cell, as tokens and custom properties do. Name an element in a cell
|
|
63
|
+
* with `part` to style it with `::part()`.
|
|
69
64
|
*
|
|
70
65
|
* `helix-before-follow` hands a press on a link in a cell to your router:
|
|
71
66
|
*
|
|
@@ -229,9 +224,7 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
229
224
|
* stylesheet can read the table's own attributes and not its columns', so the
|
|
230
225
|
* served rows are laid out at the widths the table draws.
|
|
231
226
|
*
|
|
232
|
-
*
|
|
233
|
-
* `TableColumn`, which the data table does not register, so a page that writes
|
|
234
|
-
* one imports the Table entry beside the data table:
|
|
227
|
+
* A page that writes columns imports both entries:
|
|
235
228
|
*
|
|
236
229
|
* ```js
|
|
237
230
|
* import '@fusion.dev/helix/data-table'
|
|
@@ -245,7 +238,18 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
245
238
|
* @status stable
|
|
246
239
|
* @category data
|
|
247
240
|
* @aliases Grid, Result table, Data grid
|
|
248
|
-
* @
|
|
241
|
+
* @use Rows you pass as an array, sorted, filtered, and paged across the whole set.
|
|
242
|
+
* @instead table - A short table you write out by hand, one row of markup at a time.
|
|
243
|
+
* @instead list - Rows with one label each, and no columns to read across.
|
|
244
|
+
* @instead grid - A layout that places elements in rows and columns.
|
|
245
|
+
* @anatomy head
|
|
246
|
+
* @anatomy row
|
|
247
|
+
* @anatomy cell
|
|
248
|
+
* @anatomy pagination?
|
|
249
|
+
* @practice Import Table beside Data Table. - A column is the Table family's `TableColumn`, which Data Table does not register.
|
|
250
|
+
* @practice {serving-the-first-page} Write the first page as `TableRow` and `TableCell` elements under the columns. - A server does not pass the columns to the table, so on its own it serves the headings and no values.
|
|
251
|
+
* @practice Style what a cell draws with `cellStyles`. - A cell renders in the table's shadow root, where tokens reach it and a class from your stylesheet does not.
|
|
252
|
+
* @documentation https://fusion.dev/design/components/data-table
|
|
249
253
|
*
|
|
250
254
|
* @slot - The columns, as `TableColumn` elements, and the first page served as `TableRow` elements, which show until `rows` holds a row.
|
|
251
255
|
* @slot empty - Content shown when there are no rows to show and none are loading, such as a picture and a link. Falls back to `empty-text`, which the live region still says.
|
|
@@ -64,7 +64,15 @@ declare const HelixHeadlessDateInput_base: (new (...args: any[]) => import("@fus
|
|
|
64
64
|
* @status stable
|
|
65
65
|
* @category forms
|
|
66
66
|
* @aliases DatePicker, DateField, InputDate
|
|
67
|
-
* @
|
|
67
|
+
* @use A date in a form, typed or picked from a calendar that opens, such as a start date.
|
|
68
|
+
* @instead date-picker - A calendar that stays open on the page, such as on a booking page.
|
|
69
|
+
* @instead time-input - A time of day in a form.
|
|
70
|
+
* @anatomy label
|
|
71
|
+
* @anatomy field
|
|
72
|
+
* @anatomy trigger
|
|
73
|
+
* @anatomy hint?
|
|
74
|
+
* @anatomy surface
|
|
75
|
+
* @documentation https://fusion.dev/design/components/date-input
|
|
68
76
|
*
|
|
69
77
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
70
78
|
* @slot end - Content after the date, before the trigger, such as a clear button.
|
|
@@ -12,19 +12,12 @@ declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fu
|
|
|
12
12
|
* - `PageUp` and `PageDown` move by month.
|
|
13
13
|
* - `Home` and `End` move to the start and end of the week.
|
|
14
14
|
*
|
|
15
|
-
* **Dates are `YYYY-MM-DD` strings, and every calculation is in UTC**, because
|
|
16
|
-
* a local-time `Date` shifts across a time zone or daylight-saving boundary.
|
|
17
|
-
*
|
|
18
15
|
* **The months are the ones `calendar` counts**: the Gregorian months for the
|
|
19
16
|
* locale's own calendar where its months are the Gregorian months, as `th-TH`
|
|
20
17
|
* writes 2569 for 2026, and `gregory` where they are not, as for `fa-IR`
|
|
21
18
|
* with no `calendar`. Name a calendar with months of its own, such as
|
|
22
19
|
* `persian`, and every view counts its days, months, and years from `Intl`.
|
|
23
20
|
*
|
|
24
|
-
* `month` sets which month the grid shows, separately from `value`, so paging
|
|
25
|
-
* selects nothing and you can control the view. When unset, it follows the
|
|
26
|
-
* first selected date, then the current month.
|
|
27
|
-
*
|
|
28
21
|
* `mode` sets how many dates are held. Unset holds one, `range` holds two and
|
|
29
22
|
* marks the dates between them, and `multiple` toggles each date. All three
|
|
30
23
|
* read and write the same comma-separated `value`. With a `mode`, the grid
|
|
@@ -56,7 +49,18 @@ declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fu
|
|
|
56
49
|
* @status stable
|
|
57
50
|
* @category forms
|
|
58
51
|
* @aliases Calendar, Date grid, Month view
|
|
59
|
-
* @
|
|
52
|
+
* @use A date or a range chosen on a calendar that stays open on the page.
|
|
53
|
+
* @instead date-input - A date in a form field, typed or picked from a calendar that opens.
|
|
54
|
+
* @instead time-picker - A time of day, chosen from a list.
|
|
55
|
+
* @instead heatmap - Activity drawn day by day, such as contributions.
|
|
56
|
+
* @anatomy previous
|
|
57
|
+
* @anatomy heading
|
|
58
|
+
* @anatomy next
|
|
59
|
+
* @anatomy weekday
|
|
60
|
+
* @anatomy day
|
|
61
|
+
* @practice Write `value`, `min`, and `max` as `YYYY-MM-DD` strings. - Every calculation is in UTC, since a local-time `Date` shifts across a time zone or daylight-saving boundary.
|
|
62
|
+
* @practice {controlled-month} Set `month` to choose the month on show apart from `value`. - Paging selects nothing, and an unset `month` follows the first chosen date, then the current month.
|
|
63
|
+
* @documentation https://fusion.dev/design/components/date-picker
|
|
60
64
|
*
|
|
61
65
|
* @slot footer - Content under the calendar, such as buttons for today or a common range.
|
|
62
66
|
* @slot header - Content above the calendar, such as a note on what the date is for.
|
|
@@ -27,7 +27,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
27
27
|
*
|
|
28
28
|
* @since 0.1.0
|
|
29
29
|
* @status stable
|
|
30
|
-
* @documentation https://fusion.dev/
|
|
30
|
+
* @documentation https://fusion.dev/design/components/description-list
|
|
31
31
|
*
|
|
32
32
|
* @slot - The value, or several `<dd>` elements for several values.
|
|
33
33
|
* @slot actions - Controls that act on the value, such as a copy button, after it inside its `<dd>`.
|
|
@@ -24,7 +24,13 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
24
24
|
* @status stable
|
|
25
25
|
* @category data
|
|
26
26
|
* @aliases Data list, Key-value list, Details, Properties
|
|
27
|
-
* @
|
|
27
|
+
* @use One record's fields, each label beside its value, such as a details panel.
|
|
28
|
+
* @instead table - Several records compared field by field, in columns.
|
|
29
|
+
* @instead object-inspector - A nested value, such as an API response, that you open as a tree.
|
|
30
|
+
* @anatomy item
|
|
31
|
+
* @anatomy label
|
|
32
|
+
* @anatomy value
|
|
33
|
+
* @documentation https://fusion.dev/design/components/description-list
|
|
28
34
|
*
|
|
29
35
|
* @slot - The items.
|
|
30
36
|
*
|
|
@@ -14,11 +14,9 @@ import '../../tooltip/index.js';
|
|
|
14
14
|
* or a `<canvas>` you draw decoded frames on. The frame gives the screen the
|
|
15
15
|
* device's shape and stretches the element to fill it.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* `width` and `height` it is measured against. Without them, the frame reads
|
|
21
|
-
* the stream's own size in pixels.
|
|
17
|
+
* Every point an event carries is measured against the `width` and `height`
|
|
18
|
+
* the event carries beside it. Without `screen-width` and `screen-height`, the
|
|
19
|
+
* frame reads the stream's own size in pixels.
|
|
22
20
|
*
|
|
23
21
|
* **Touches.** Listen in one of two ways, and not both, or the device moves
|
|
24
22
|
* twice:
|
|
@@ -56,15 +54,22 @@ import '../../tooltip/index.js';
|
|
|
56
54
|
*
|
|
57
55
|
* Set `rotation` where your source sends frames in the device's natural
|
|
58
56
|
* orientation while the device is turned: the frame turns the picture, and
|
|
59
|
-
* turns every point back.
|
|
60
|
-
*
|
|
61
|
-
* `showTap()` and `showSwipe()` mark where the agent touched it.
|
|
57
|
+
* turns every point back. Under `readonly`, the screen is a picture, and
|
|
58
|
+
* `showTap()` and `showSwipe()` mark where an agent touched it.
|
|
62
59
|
*
|
|
63
60
|
* @since 0.211.0
|
|
64
61
|
* @status experimental
|
|
65
62
|
* @category media
|
|
66
63
|
* @aliases Simulator, Emulator, Device mirror, Remote screen
|
|
67
|
-
* @
|
|
64
|
+
* @use A simulator or a phone's screen on the page, which you tap, swipe, and type into.
|
|
65
|
+
* @instead video - A recording that you play, pause, and seek.
|
|
66
|
+
* @instead terminal - A shell on a machine, driven by typing.
|
|
67
|
+
* @anatomy controls
|
|
68
|
+
* @anatomy bezel
|
|
69
|
+
* @anatomy screen
|
|
70
|
+
* @practice Set `screen-width` and `screen-height` to the screen's size in the units your device takes input in. - Every point an event carries is in those units: points for the iOS Simulator, and pixels for an Android device.
|
|
71
|
+
* @practice Set `readonly` while an agent drives the device. - The screen then shows the stream and sends nothing back.
|
|
72
|
+
* @documentation https://fusion.dev/design/components/device-screen
|
|
68
73
|
*
|
|
69
74
|
* @slot - The element that draws the stream: a `<video>`, an `<img>`, or a `<canvas>`.
|
|
70
75
|
* @slot back-icon - Replaces the glyph inside the Back button.
|
|
@@ -36,10 +36,8 @@ declare const HelixHeadlessDialog_base: (new (...args: any[]) => import("@fusion
|
|
|
36
36
|
*
|
|
37
37
|
* Set `alert` for a dialog that interrupts to ask for an answer, such as a
|
|
38
38
|
* confirmation before a deletion. It is an `alertdialog`, which a screen reader
|
|
39
|
-
* announces with its description as it opens.
|
|
40
|
-
*
|
|
41
|
-
* destroys nothing. Set
|
|
42
|
-
* `dismissible` to draw a close control, labeled by `dismiss-label`.
|
|
39
|
+
* announces with its description as it opens. Set `dismissible` to draw a
|
|
40
|
+
* close control, labeled by `dismiss-label`.
|
|
43
41
|
*
|
|
44
42
|
* **Keyboard.** Opening moves focus to the first control in the dialog.
|
|
45
43
|
*
|
|
@@ -58,7 +56,11 @@ declare const HelixHeadlessDialog_base: (new (...args: any[]) => import("@fusion
|
|
|
58
56
|
* @use A decision or a short task that blocks the page until it is done.
|
|
59
57
|
* @instead drawer - Details or settings beside the page's content.
|
|
60
58
|
* @instead popover - Content tied to one trigger, with the page still in use.
|
|
61
|
-
* @
|
|
59
|
+
* @anatomy surface
|
|
60
|
+
* @anatomy header
|
|
61
|
+
* @anatomy footer
|
|
62
|
+
* @practice {alert} Under `alert`, put the action that dismisses first in the footer, and give it autofocus. - Focus then starts on the action that destroys nothing.
|
|
63
|
+
* @documentation https://fusion.dev/design/components/dialog
|
|
62
64
|
*
|
|
63
65
|
* @slot - The dialog's content.
|
|
64
66
|
* @slot dismiss-icon - Replaces the glyph inside the close control.
|
|
@@ -12,10 +12,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
12
12
|
* **The line is a separator**, as `<hr>` is, and as Radix Separator, React
|
|
13
13
|
* Aria Separator, and Web Awesome's divider are. It is named by any content
|
|
14
14
|
* set into it, so a screen reader says "Or, separator" where you wrote "Or" on
|
|
15
|
-
* the line, and the words are read once, as that name.
|
|
16
|
-
* separator and no controls, which are hidden with them. Set `decorative` on
|
|
17
|
-
* a rule that separates nothing, such as one under a heading or between the
|
|
18
|
-
* facts of a byline, and it leaves the accessibility tree.
|
|
15
|
+
* the line, and the words are read once, as that name.
|
|
19
16
|
*
|
|
20
17
|
* Use `orientation="vertical"` between items on one line. A vertical divider
|
|
21
18
|
* stretches to fit its flex parent and sets no height of its own.
|
|
@@ -31,7 +28,12 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
31
28
|
* @status stable
|
|
32
29
|
* @category layout
|
|
33
30
|
* @aliases Separator, Rule
|
|
34
|
-
* @
|
|
31
|
+
* @use A line between two groups of content, such as two sections of a settings page.
|
|
32
|
+
* @instead flex - Groups that space alone keeps apart, set with a gap.
|
|
33
|
+
* @instead card - Groups that each sit on a surface of their own.
|
|
34
|
+
* @practice Set words into the line, and no controls. - Controls are hidden with the words, which a screen reader hears once, as the separator's name.
|
|
35
|
+
* @practice Set `decorative` on a rule that separates nothing, such as one under a heading or between the facts of a byline. - It then leaves the accessibility tree.
|
|
36
|
+
* @documentation https://fusion.dev/design/components/divider
|
|
35
37
|
*
|
|
36
38
|
* @slot - Content set into the line, such as a word between two sections.
|
|
37
39
|
*
|