@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
|
@@ -15,12 +15,6 @@ declare const HelixHeadlessDonutChart_base: typeof HelixElement & (new (...args:
|
|
|
15
15
|
* @summary A chart that shows parts of a whole as a ring, read from a table.
|
|
16
16
|
*
|
|
17
17
|
* @description
|
|
18
|
-
* A donut chart divides one whole into parts, so the component reads one
|
|
19
|
-
* column.
|
|
20
|
-
*
|
|
21
|
-
* **The first column of numbers is the series, and each row is a slice.** Other
|
|
22
|
-
* Helix charts take one column per series.
|
|
23
|
-
*
|
|
24
18
|
* **Negative values are skipped.** An arc cannot show a negative number, so
|
|
25
19
|
* those rows are left out and the total is the sum of the remaining rows.
|
|
26
20
|
*
|
|
@@ -62,7 +56,15 @@ declare const HelixHeadlessDonutChart_base: typeof HelixElement & (new (...args:
|
|
|
62
56
|
* @status stable
|
|
63
57
|
* @category charts
|
|
64
58
|
* @aliases Pie Chart, Ring Chart, Share Chart
|
|
65
|
-
* @
|
|
59
|
+
* @use Parts of one whole, such as sessions by source, with a total in the middle.
|
|
60
|
+
* @instead bar-chart - Many parts, or parts close in size that you compare.
|
|
61
|
+
* @instead area-chart - Parts of a whole as they change over time.
|
|
62
|
+
* @instead meter - One measurement against its full range, such as disk used.
|
|
63
|
+
* @anatomy segment
|
|
64
|
+
* @anatomy center
|
|
65
|
+
* @practice Set the ring's thickness with `hole`. - The stroke width and the ring's radius must agree, so no CSS hook sets it.
|
|
66
|
+
* @practice Point `for` at a table with one row per slice, its amount in the first column of numbers. - A donut divides one whole, so it reads one column where other Helix charts read one per series.
|
|
67
|
+
* @documentation https://fusion.dev/design/components/donut-chart
|
|
66
68
|
*
|
|
67
69
|
* @slot - Content in the middle of the ring, usually a total. It is read by screen readers, while the ring itself is hidden from them.
|
|
68
70
|
* @slot empty - Content shown in place of the ring when the table has no readings. Falls back to `empty-text`.
|
|
@@ -81,16 +81,9 @@ declare const HelixHeadlessDrawer_base: (new (...args: any[]) => import("@fusion
|
|
|
81
81
|
* `drawer-root.ssr.spec.ts` checks that the panel has no hand-written `inert`
|
|
82
82
|
* or `role`.
|
|
83
83
|
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* <helix-headless-button commandfor="nav" command="--toggle">Menu</helix-headless-button>
|
|
88
|
-
* <helix-headless-drawer id="nav">…</helix-headless-drawer>
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* From its first press, a button that opens the drawer this way says whether
|
|
92
|
-
* the drawer is open: a Helix button through `expanded`, and any other
|
|
93
|
-
* element with `aria-expanded`.
|
|
84
|
+
* From its first press, a button that opens the drawer through the invoker
|
|
85
|
+
* attributes says whether the drawer is open: a Helix button through
|
|
86
|
+
* `expanded`, and any other element with `aria-expanded`.
|
|
94
87
|
*
|
|
95
88
|
* @since 0.1.0
|
|
96
89
|
* @status stable
|
|
@@ -99,7 +92,12 @@ declare const HelixHeadlessDrawer_base: (new (...args: any[]) => import("@fusion
|
|
|
99
92
|
* @use Details, filters, or navigation that slide in from an edge, with the page still in view.
|
|
100
93
|
* @instead dialog - A decision you answer before going on.
|
|
101
94
|
* @instead drilldown - Pages you step into and back out of.
|
|
102
|
-
* @
|
|
95
|
+
* @anatomy panel
|
|
96
|
+
* @anatomy header
|
|
97
|
+
* @anatomy dismiss?
|
|
98
|
+
* @anatomy content
|
|
99
|
+
* @practice {unsaved} Open the drawer from a button with `commandfor="<id>"` naming the drawer and `command="--show"`. - The platform's invoker attributes open it with no script.
|
|
100
|
+
* @documentation https://fusion.dev/design/components/drawer
|
|
103
101
|
*
|
|
104
102
|
* @slot - The drawer's content.
|
|
105
103
|
* @slot dismiss-icon - Replaces the glyph inside the close control.
|
|
@@ -42,7 +42,7 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
42
42
|
* @since 0.1.0
|
|
43
43
|
* @status stable
|
|
44
44
|
* @aliases Panel item, Drill row
|
|
45
|
-
* @documentation https://fusion.dev/
|
|
45
|
+
* @documentation https://fusion.dev/design/components/drilldown
|
|
46
46
|
*
|
|
47
47
|
* @slot - The row's label.
|
|
48
48
|
* @slot chevron - Replaces the caret of a row that opens a page, such as with your own icon.
|
|
@@ -48,12 +48,9 @@ declare const HelixHeadlessDrilldown_base: (new (...args: any[]) => import("@fus
|
|
|
48
48
|
* or by `fallbackLabel` where nothing names it, and by the page's title below
|
|
49
49
|
* it.
|
|
50
50
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* disclosure navigation is built,
|
|
55
|
-
* so a reader meets places to go in place of a menu of commands. The keys stay
|
|
56
|
-
* the same. The back button and the title sit above
|
|
51
|
+
* Under `navigation`, the landmark is named by `label`, and unnamed without
|
|
52
|
+
* one. Each row is a list item holding a link or a button, as the APG's
|
|
53
|
+
* disclosure navigation is built. The keys stay the same. The back button and the title sit above
|
|
57
54
|
* the menu. Disabled rows stay reachable with the arrow keys, and typing a
|
|
58
55
|
* letter moves to the next row whose name starts with it.
|
|
59
56
|
*
|
|
@@ -61,7 +58,15 @@ declare const HelixHeadlessDrilldown_base: (new (...args: any[]) => import("@fus
|
|
|
61
58
|
* @status stable
|
|
62
59
|
* @category navigation
|
|
63
60
|
* @aliases Panel, Nested list, Drill-in
|
|
64
|
-
* @
|
|
61
|
+
* @use Nested lists you step into one level at a time, such as settings on a narrow screen.
|
|
62
|
+
* @instead tree - A hierarchy whose branches open in place.
|
|
63
|
+
* @instead menu - Commands that open from a trigger and close when you are done.
|
|
64
|
+
* @instead listbox - A value you choose from a list.
|
|
65
|
+
* @anatomy page
|
|
66
|
+
* @anatomy item
|
|
67
|
+
* @anatomy mark
|
|
68
|
+
* @practice {navigation} Set `navigation` for a site's navigation. - The host is then a navigation landmark, and each page a list of places to go in place of a menu of commands.
|
|
69
|
+
* @documentation https://fusion.dev/design/components/drilldown
|
|
65
70
|
*
|
|
66
71
|
* @slot - The rows of the top page.
|
|
67
72
|
* @slot back-icon - Replaces the icon on the back button.
|
|
@@ -103,8 +103,7 @@ export interface EditorSink {
|
|
|
103
103
|
* The document is the element you write inside the frame, so it stays in the
|
|
104
104
|
* page: the browser's input methods, spellcheck, and right-to-left text work in
|
|
105
105
|
* it as they do in any field. A server can send the document's HTML there, and
|
|
106
|
-
* it reads before any script loads.
|
|
107
|
-
* draws its headings, lists, and quotes before a renderer connects.
|
|
106
|
+
* it reads before any script loads.
|
|
108
107
|
*
|
|
109
108
|
* The toolbar's groups are named by `tools`, in this order: `history` (Undo
|
|
110
109
|
* and Redo), `block` (a menu of Paragraph, three headings, and Code block),
|
|
@@ -151,7 +150,17 @@ export interface EditorSink {
|
|
|
151
150
|
* @status experimental
|
|
152
151
|
* @category editors
|
|
153
152
|
* @aliases Rich text editor, WYSIWYG, Document editor, ProseMirror, Block editor
|
|
154
|
-
* @
|
|
153
|
+
* @use A document you write and format, such as notes, a brief, or an article.
|
|
154
|
+
* @instead code-editor - A file of code, with its language and its problems.
|
|
155
|
+
* @instead textarea - Plain text with no formatting, such as a comment.
|
|
156
|
+
* @instead markdown - Markdown you show to read, such as a reply that streams in.
|
|
157
|
+
* @anatomy controls
|
|
158
|
+
* @anatomy tools
|
|
159
|
+
* @anatomy block
|
|
160
|
+
* @anatomy viewport
|
|
161
|
+
* @practice Write data-prose on the document element in the frame. - The base layer then draws its headings, lists, and quotes before a renderer connects.
|
|
162
|
+
* @practice {in-a-pane} Set `fill` for an editor that fills a pane. - The document then scrolls inside the frame, where otherwise the frame grows with it.
|
|
163
|
+
* @documentation https://fusion.dev/design/components/editor
|
|
155
164
|
*
|
|
156
165
|
* @slot - The element your renderer draws the document in.
|
|
157
166
|
* @slot actions - Controls of your own at the end of the toolbar, such as Share or Comment.
|
|
@@ -28,10 +28,8 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
28
28
|
* actions differently. Read in the browser, so a served view carries neither
|
|
29
29
|
* until the script runs.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* rendering from data or on a server gets a heading a reader finds in the
|
|
34
|
-
* outline without writing the element. A heading slotted in replaces it.
|
|
31
|
+
* `heading` draws its words in a `heading` part that is a heading at
|
|
32
|
+
* `heading-level`, 3 where it is not set. A heading slotted in replaces it.
|
|
35
33
|
*
|
|
36
34
|
* **Whatever is slotted into `heading` is read as a heading.** An element that
|
|
37
35
|
* is no heading, such as a `<span>` or a `<p>`, is set inside the `heading`
|
|
@@ -46,7 +44,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
46
44
|
* @aliases Placeholder, NoResults, Blank
|
|
47
45
|
* @use A region with nothing in it, and the next step to take.
|
|
48
46
|
* @instead skeleton - Content that has not arrived yet.
|
|
49
|
-
* @
|
|
47
|
+
* @anatomy icon?
|
|
48
|
+
* @anatomy heading
|
|
49
|
+
* @anatomy actions?
|
|
50
|
+
* @practice {heading} Set `heading` for a view rendered from data or on a server. - It draws a heading at `heading-level` that you find in the outline, with no element of yours to write.
|
|
51
|
+
* @documentation https://fusion.dev/design/components/empty
|
|
50
52
|
*
|
|
51
53
|
* @slot - The message: why the region is empty, and what to do about it.
|
|
52
54
|
* @slot actions - The action that would put something in the region.
|
|
@@ -43,7 +43,12 @@ declare const HelixHeadlessFileInput_base: (new (...args: any[]) => import("@fus
|
|
|
43
43
|
* @status stable
|
|
44
44
|
* @category forms
|
|
45
45
|
* @aliases FileUpload, FilePicker, Dropzone, InputFile
|
|
46
|
-
* @
|
|
46
|
+
* @use Files you attach to a form, chosen from a picker or dropped on the field.
|
|
47
|
+
* @anatomy label
|
|
48
|
+
* @anatomy field
|
|
49
|
+
* @anatomy trigger
|
|
50
|
+
* @anatomy hint?
|
|
51
|
+
* @documentation https://fusion.dev/design/components/file-input
|
|
47
52
|
*
|
|
48
53
|
* @slot feedback - The message that says what is wrong with the chosen files.
|
|
49
54
|
* @slot hint - Help under the field.
|
|
@@ -47,7 +47,7 @@ declare const HelixHeadlessFilterChip_base: (new (...args: any[]) => import("@fu
|
|
|
47
47
|
* @status stable
|
|
48
48
|
* @category forms
|
|
49
49
|
* @aliases FilterToken, FacetChip
|
|
50
|
-
* @documentation https://fusion.dev/
|
|
50
|
+
* @documentation https://fusion.dev/design/components/filter-input
|
|
51
51
|
*
|
|
52
52
|
* @slot - The values the field is compared to, usually as text. It takes any
|
|
53
53
|
* content you want shown there.
|
|
@@ -39,7 +39,7 @@ import type { HelixHeadlessFilterOperator } from '../operator/filter-operator.js
|
|
|
39
39
|
* @status stable
|
|
40
40
|
* @category forms
|
|
41
41
|
* @aliases Facet, Dimension
|
|
42
|
-
* @documentation https://fusion.dev/
|
|
42
|
+
* @documentation https://fusion.dev/design/components/filter-input
|
|
43
43
|
*
|
|
44
44
|
* @slot - The field's comparisons, as `FilterOperator`s, and its values, as
|
|
45
45
|
* `Option`s. The filter input reads them and does not render them.
|
|
@@ -60,7 +60,7 @@ import '../../menu/index.js';
|
|
|
60
60
|
* @status stable
|
|
61
61
|
* @category forms
|
|
62
62
|
* @aliases FacetPicker, FilterBuilder
|
|
63
|
-
* @documentation https://fusion.dev/
|
|
63
|
+
* @documentation https://fusion.dev/design/components/filter-input
|
|
64
64
|
*
|
|
65
65
|
* @slot - The fields the menu can filter by, as `FilterField`s. The menu reads them and does not render them.
|
|
66
66
|
* @slot trigger - The control that opens the menu, usually a `Button`.
|
|
@@ -21,7 +21,7 @@ import { nothing, type PropertyValues } from 'lit';
|
|
|
21
21
|
* @status stable
|
|
22
22
|
* @category forms
|
|
23
23
|
* @aliases Comparator, Predicate
|
|
24
|
-
* @documentation https://fusion.dev/
|
|
24
|
+
* @documentation https://fusion.dev/design/components/filter-input
|
|
25
25
|
*/
|
|
26
26
|
export declare class HelixHeadlessFilterOperator extends HelixElement {
|
|
27
27
|
/**
|
|
@@ -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,24 +118,26 @@ 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
|
|
148
|
-
* @
|
|
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.
|
|
140
|
+
* @documentation https://fusion.dev/design/components/filter-input
|
|
149
141
|
*
|
|
150
142
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
151
143
|
* @slot end - Content after the text, such as a count or a control.
|
|
@@ -53,7 +53,16 @@ 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
|
-
* @
|
|
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.
|
|
65
|
+
* @documentation https://fusion.dev/design/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.
|
|
59
68
|
* @slot close-icon - Replaces the glyph inside the close button.
|
|
@@ -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,7 +53,13 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
54
53
|
* @status stable
|
|
55
54
|
* @category typography
|
|
56
55
|
* @aliases RelativeTime, Timestamp, TimeAgo
|
|
57
|
-
* @
|
|
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.
|
|
62
|
+
* @documentation https://fusion.dev/design/components/format-date
|
|
58
63
|
*
|
|
59
64
|
* @csspart day - The day of the month, with `fields`.
|
|
60
65
|
* @csspart day-period - AM or PM, or the locale's word for the part of the day, with `fields`.
|
|
@@ -51,19 +51,25 @@ 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
|
|
66
|
-
* @
|
|
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.
|
|
72
|
+
* @documentation https://fusion.dev/design/components/graph
|
|
67
73
|
*
|
|
68
74
|
* @slot - The renderer's box, which the drawing is made in.
|
|
69
75
|
* @slot empty - What the panel shows when the list holds no notes. Defaults to `empty-text`.
|
|
@@ -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,7 +96,15 @@ 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
|
|
100
|
-
* @
|
|
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.
|
|
107
|
+
* @documentation https://fusion.dev/design/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`.
|
|
103
110
|
* @slot end - Below the strip, at the trailing edge: usually the newest date.
|
|
@@ -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,7 +35,12 @@ 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
|
|
41
|
-
* @
|
|
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.
|
|
43
|
+
* @documentation https://fusion.dev/design/components/hover-card
|
|
42
44
|
*
|
|
43
45
|
* @slot - The card's content, which may hold links and buttons.
|
|
44
46
|
*
|
|
@@ -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,7 +55,12 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
56
55
|
* @status stable
|
|
57
56
|
* @category media
|
|
58
57
|
* @aliases Glyph, Symbol
|
|
59
|
-
* @
|
|
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.
|
|
63
|
+
* @documentation https://fusion.dev/design/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.
|
|
62
66
|
* @event {Event} load - A glyph a library gave later for `name`, or the file at `src`, is drawn.
|
|
@@ -23,7 +23,11 @@ import { HelixHeadlessButton } from '../../button/root/button-root.js';
|
|
|
23
23
|
* @status stable
|
|
24
24
|
* @category actions
|
|
25
25
|
* @aliases Icon button, Square button
|
|
26
|
-
* @
|
|
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.
|
|
30
|
+
* @documentation https://fusion.dev/design/components/icon-button
|
|
27
31
|
*
|
|
28
32
|
* @slot - The icon.
|
|
29
33
|
*
|
|
@@ -31,7 +31,11 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
31
31
|
* @status stable
|
|
32
32
|
* @category media
|
|
33
33
|
* @aliases Picture, Img, Figure
|
|
34
|
-
* @
|
|
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.
|
|
38
|
+
* @documentation https://fusion.dev/design/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".
|
|
37
41
|
* @slot placeholder - Shown until the image loads.
|
|
@@ -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,7 +39,15 @@ declare const HelixHeadlessInput_base: (new (...args: any[]) => import("@fusion.
|
|
|
40
39
|
* @status stable
|
|
41
40
|
* @category forms
|
|
42
41
|
* @aliases TextField, Field, TextInput
|
|
43
|
-
* @
|
|
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.
|
|
50
|
+
* @documentation https://fusion.dev/design/components/input
|
|
44
51
|
*
|
|
45
52
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
46
53
|
* @slot conceal-icon - Replaces the crossed-out eye on the reveal button while the password shows, under `reveal`.
|
|
@@ -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,7 +32,14 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
43
32
|
* @status stable
|
|
44
33
|
* @category typography
|
|
45
34
|
* @aliases Key, Shortcut, Hotkey
|
|
46
|
-
* @
|
|
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.
|
|
42
|
+
* @documentation https://fusion.dev/design/components/kbd
|
|
47
43
|
*
|
|
48
44
|
* @slot - The key's label, where `keys` is not set.
|
|
49
45
|
*
|
|
@@ -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,7 +31,13 @@ import { nothing, type PropertyValues, type TemplateResult } from 'lit';
|
|
|
34
31
|
* @status stable
|
|
35
32
|
* @category charts
|
|
36
33
|
* @aliases Series Key
|
|
37
|
-
* @
|
|
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.
|
|
40
|
+
* @documentation https://fusion.dev/design/components/legend
|
|
38
41
|
*
|
|
39
42
|
* @event {Event} change - Fired once a toggle has hidden or shown a series.
|
|
40
43
|
* @event {HelixBeforeChangeEvent} helix-before-change - Fired before a toggle hides or shows a series, with the `hidden-series` it would leave. Cancelable.
|
|
@@ -22,7 +22,7 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
22
22
|
* @status stable
|
|
23
23
|
* @category media
|
|
24
24
|
* @aliases LightboxSlide, GalleryItem
|
|
25
|
-
* @documentation https://fusion.dev/
|
|
25
|
+
* @documentation https://fusion.dev/design/components/lightbox
|
|
26
26
|
*
|
|
27
27
|
* @slot - The content to show.
|
|
28
28
|
* @slot description - A line under the content that describes it.
|