@fusion.dev/helix 0.105.0 → 0.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +8259 -4085
- package/dist/accordion/item/accordion-item.d.ts +9 -10
- package/dist/accordion/root/accordion-root.d.ts +8 -9
- package/dist/announcement/root/announcement-root.d.ts +7 -7
- package/dist/app-header/root/app-header-root.d.ts +14 -12
- package/dist/area-chart/root/area-chart-root.d.ts +23 -32
- package/dist/aura/root/aura-root.d.ts +32 -31
- package/dist/avatar/group/avatar-group.d.ts +8 -11
- package/dist/avatar/root/avatar-root.d.ts +4 -5
- package/dist/badge/root/badge-root.d.ts +7 -8
- package/dist/bar-chart/root/bar-chart-root.d.ts +17 -16
- package/dist/blockquote/root/blockquote-root.d.ts +4 -5
- package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +7 -7
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +2 -2
- package/dist/button/root/button-root.d.ts +16 -13
- package/dist/button-group/root/button-group-root.d.ts +6 -6
- package/dist/callout/root/callout-root.d.ts +8 -8
- package/dist/canvas/edge/canvas-edge.d.ts +3 -3
- package/dist/canvas/node/canvas-node.d.ts +17 -18
- package/dist/canvas/root/canvas-root.d.ts +18 -19
- package/dist/card/root/card-root.d.ts +14 -14
- package/dist/carousel/root/carousel-root.d.ts +11 -14
- package/dist/chat/composer/chat-composer.d.ts +10 -11
- package/dist/chat/message/chat-message.d.ts +18 -18
- package/dist/chat/root/chat-root.d.ts +15 -18
- package/dist/checkbox/root/checkbox-root.d.ts +17 -16
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +6 -5
- package/dist/code/root/code-root.d.ts +9 -9
- package/dist/code-block/root/code-block-root.d.ts +14 -15
- package/dist/color-input/root/color-input-root.d.ts +13 -18
- package/dist/color-picker/root/color-picker-root.d.ts +26 -27
- package/dist/combobox/root/combobox-root.css.js +3 -2
- package/dist/combobox/root/combobox-root.d.ts +8 -8
- package/dist/command/root/command-root.d.ts +5 -6
- package/dist/copy-button/root/copy-button-root.d.ts +4 -5
- package/dist/data-table/root/data-table-root.d.ts +30 -37
- package/dist/date-input/root/date-input-root.d.ts +15 -17
- package/dist/date-picker/root/date-picker-root.d.ts +11 -12
- package/dist/description-list/item/description-list-item.d.ts +2 -2
- package/dist/description-list/root/description-list-root.d.ts +13 -14
- package/dist/dialog/root/dialog-root.d.ts +9 -10
- package/dist/divider/root/divider-root.d.ts +11 -12
- package/dist/donut-chart/root/donut-chart-root.d.ts +12 -15
- package/dist/drawer/root/drawer-root.d.ts +14 -13
- package/dist/drilldown/item/drilldown-item.d.ts +3 -4
- package/dist/drilldown/root/drilldown-root.d.ts +6 -9
- package/dist/element-events.generated.js +7 -0
- package/dist/empty/root/empty-root.d.ts +3 -4
- package/dist/file-input/root/file-input-root.d.ts +8 -12
- package/dist/filter-input/chip/filter-chip.d.ts +11 -10
- package/dist/filter-input/field/filter-field.d.ts +7 -8
- package/dist/filter-input/menu/filter-menu.d.ts +7 -8
- package/dist/filter-input/operator/filter-operator.d.ts +5 -5
- package/dist/filter-input/root/filter-input-root.d.ts +25 -27
- package/dist/flex/root/flex-root.d.ts +9 -14
- package/dist/format-date/root/format-date-root.d.ts +5 -8
- package/dist/grid/root/grid-root.d.ts +13 -11
- package/dist/heatmap/root/heatmap-root.d.ts +34 -31
- package/dist/icon/root/icon-root.d.ts +6 -6
- package/dist/icon-button/root/icon-button-root.d.ts +9 -10
- package/dist/image/root/image-root.d.ts +10 -10
- package/dist/input/root/input-root.d.ts +10 -13
- package/dist/kbd/root/kbd-root.d.ts +6 -7
- package/dist/legend/root/legend-root.d.ts +19 -20
- package/dist/lightbox/item/lightbox-item.d.ts +4 -5
- package/dist/lightbox/root/lightbox-root.d.ts +13 -16
- package/dist/line-chart/root/line-chart-root.d.ts +24 -25
- package/dist/list/item/list-item.d.ts +7 -8
- package/dist/list/root/list-root.d.ts +7 -9
- package/dist/listbox/root/listbox-root.d.ts +8 -9
- package/dist/loader/root/loader-root.d.ts +5 -7
- package/dist/map/buildings/map-buildings.css.d.ts +1 -0
- package/dist/map/buildings/map-buildings.css.js +27 -0
- package/dist/map/buildings/map-buildings.d.ts +28 -0
- package/dist/map/buildings/map-buildings.js +20 -0
- package/dist/map/contours/map-contours.css.d.ts +1 -0
- package/dist/map/contours/map-contours.css.js +8 -0
- package/dist/map/contours/map-contours.d.ts +25 -0
- package/dist/map/contours/map-contours.js +16 -0
- package/dist/map/index.d.ts +5 -0
- package/dist/map/index.js +5 -0
- package/dist/map/landcover/map-landcover.css.d.ts +1 -0
- package/dist/map/landcover/map-landcover.css.js +5 -0
- package/dist/map/landcover/map-landcover.d.ts +25 -0
- package/dist/map/landcover/map-landcover.js +16 -0
- package/dist/map/marker/map-marker.css.js +5 -0
- package/dist/map/position/map-position.css.js +5 -0
- package/dist/map/raster/map-raster.css.d.ts +1 -0
- package/dist/map/raster/map-raster.css.js +4 -0
- package/dist/map/raster/map-raster.d.ts +23 -0
- package/dist/map/raster/map-raster.js +16 -0
- package/dist/map/root/map-root.css.js +218 -1
- package/dist/map/terrain/map-terrain.css.d.ts +1 -0
- package/dist/map/terrain/map-terrain.css.js +12 -0
- package/dist/map/terrain/map-terrain.d.ts +27 -0
- package/dist/map/terrain/map-terrain.js +16 -0
- package/dist/megamenu/root/megamenu-root.d.ts +14 -14
- package/dist/menu/item/menu-item.d.ts +8 -8
- package/dist/menu/root/menu-root.d.ts +9 -9
- package/dist/meter/root/meter-root.d.ts +29 -38
- package/dist/navigation/root/navigation-root.d.ts +4 -5
- package/dist/notifications/group/notification-group.d.ts +9 -13
- package/dist/notifications/notification/notification.d.ts +27 -33
- package/dist/notifications/root/notifications-root.d.ts +9 -11
- package/dist/number-input/root/number-input-root.d.ts +16 -18
- package/dist/object-inspector/root/object-inspector-root.d.ts +11 -12
- package/dist/option/group/option-group.d.ts +3 -4
- package/dist/option/root/option-root.d.ts +7 -8
- package/dist/orb/root/orb-root.d.ts +30 -36
- package/dist/outline/root/outline-root.d.ts +8 -10
- package/dist/pagination/root/pagination-root.d.ts +13 -23
- package/dist/pagination/size/pagination-size.d.ts +7 -7
- package/dist/pagination/summary/pagination-summary.d.ts +3 -4
- package/dist/pin-input/root/pin-input-root.d.ts +8 -11
- package/dist/popover/root/popover-root.d.ts +14 -16
- package/dist/progress/root/progress-root.d.ts +10 -13
- package/dist/qr-code/root/qr-code-root.d.ts +13 -14
- package/dist/quote/root/quote-root.d.ts +2 -2
- package/dist/radio/group/radio-group.d.ts +6 -6
- package/dist/radio/root/radio-root.d.ts +16 -19
- package/dist/rating/root/rating-root.d.ts +9 -9
- package/dist/sandbox/preview/sandbox-preview.d.ts +18 -19
- package/dist/sandbox/root/sandbox-root.d.ts +27 -27
- package/dist/sandbox/source/sandbox-source.d.ts +9 -12
- package/dist/sandbox/status-bar/sandbox-status-bar.d.ts +9 -11
- package/dist/sandbox/terminal/sandbox-terminal.d.ts +13 -15
- package/dist/sandbox/toolbar/sandbox-toolbar.d.ts +8 -9
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +18 -29
- package/dist/scroll-area/root/scroll-area-root.d.ts +13 -13
- package/dist/select/root/select-root.d.ts +14 -14
- package/dist/shared/mixin-control-surface/mixin-control-surface.d.ts +8 -2
- package/dist/shared/viewport/viewport.css.js +5 -1
- package/dist/skeleton/root/skeleton-root.d.ts +6 -7
- package/dist/skip-link/root/skip-link-root.d.ts +16 -19
- package/dist/slider/root/slider-root.d.ts +16 -18
- package/dist/sparkline/root/sparkline-root.d.ts +16 -24
- package/dist/speed-dial/item/speed-dial-item.d.ts +5 -5
- package/dist/speed-dial/root/speed-dial-root.d.ts +3 -4
- package/dist/splitter/root/splitter-root.d.ts +23 -32
- package/dist/stat/group/stat-group.d.ts +4 -5
- package/dist/stat/root/stat-root.d.ts +4 -5
- package/dist/steps/root/steps-root.d.ts +12 -13
- package/dist/switch/root/switch-root.d.ts +13 -17
- package/dist/table/cell/table-cell.css.js +5 -0
- package/dist/table/cell/table-cell.d.ts +4 -4
- package/dist/table/column/table-column.d.ts +3 -4
- package/dist/table/root/table-root.d.ts +5 -6
- package/dist/table/row/table-row.d.ts +3 -3
- package/dist/tabs/panel/tab-panel.d.ts +2 -3
- package/dist/tabs/root/tabs-root.d.ts +12 -11
- package/dist/tabs/tab/tab.d.ts +4 -4
- package/dist/tag/root/tag-root.d.ts +10 -11
- package/dist/text/root/text-root.d.ts +22 -30
- package/dist/textarea/root/textarea-root.d.ts +4 -5
- package/dist/time-input/root/time-input-root.d.ts +12 -14
- package/dist/time-picker/root/time-picker-root.d.ts +8 -10
- package/dist/timeline/item/timeline-item.d.ts +2 -2
- package/dist/timeline/root/timeline-root.d.ts +3 -3
- package/dist/toast/item/toast-item.d.ts +7 -8
- package/dist/toast/root/toast-root.d.ts +10 -12
- package/dist/toggle/group/toggle-group.d.ts +10 -12
- package/dist/toggle/root/toggle-root.d.ts +2 -3
- package/dist/toolbar/root/toolbar-root.d.ts +3 -3
- package/dist/tooltip/root/tooltip-root.d.ts +10 -10
- package/dist/tour/root/tour-root.d.ts +5 -6
- package/dist/tour/stop/tour-stop.d.ts +14 -14
- package/dist/tree/item/tree-item.d.ts +6 -9
- package/dist/tree/root/tree-root.d.ts +7 -8
- package/dist/trend/root/trend-root.d.ts +12 -19
- package/dist/video/root/video-root.d.ts +15 -21
- package/dist/video-playlist/item/video-playlist-item.d.ts +4 -4
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +14 -16
- package/dist/video-playlist/root/video-playlist-root.d.ts +5 -5
- package/dist/virtual-list/root/virtual-list-root.d.ts +6 -8
- package/package.json +6 -6
- package/types/jsx.d.ts +10064 -8833
- package/types/svelte.d.ts +5 -0
- package/types/vue.d.ts +1909 -1480
|
@@ -2,44 +2,37 @@ import { HelixElement } from '@fusion.dev/helix-core';
|
|
|
2
2
|
import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
import { type OrbState } from '../shapes.js';
|
|
4
4
|
/**
|
|
5
|
-
* @summary
|
|
5
|
+
* @summary An animated shape that shows what an agent is doing.
|
|
6
6
|
*
|
|
7
7
|
* @description
|
|
8
|
-
* A cloud of dots
|
|
9
|
-
* and `thinking` are the same leaning sash and differ in how agitated it is;
|
|
10
|
-
* `waiting` and `done` are the same settled ball at different tempos, which is
|
|
11
|
-
* the difference between not having started and having finished. `fetching` is
|
|
12
|
-
* a globe with a light going round it, `listening` a closed sphere with a
|
|
13
|
-
* ripple crossing it, and `working` a ring.
|
|
8
|
+
* A cloud of dots drawn to a canvas, with one shape per state:
|
|
14
9
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
10
|
+
* - `connecting` and `thinking`: the same leaning sash, differing in how
|
|
11
|
+
* agitated it is.
|
|
12
|
+
* - `waiting` and `done`: the same settled ball at different tempos.
|
|
13
|
+
* - `fetching`: a globe with a light moving around it.
|
|
14
|
+
* - `listening`: a closed sphere with a ripple crossing it.
|
|
15
|
+
* - `working`: a ring.
|
|
19
16
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
17
|
+
* Every state is the same banded grid with different parameters. Changing state
|
|
18
|
+
* interpolates the parameters, so every frame in between is a complete shape. A
|
|
19
|
+
* small change gets less time than a large one, such as a sash becoming a ring.
|
|
20
|
+
* The outline changes first, so the light starts orbiting only after the shape
|
|
21
|
+
* is round.
|
|
24
22
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* ring of evenly spaced dots is unchanged by rotation: without something fixed
|
|
29
|
-
* in space passing over them, a state that turns has nothing a reader can see
|
|
30
|
-
* turning.
|
|
23
|
+
* The cloud does not rotate, and all movement happens inside it. The exception
|
|
24
|
+
* is the light, which travels because a ring of evenly spaced dots looks the
|
|
25
|
+
* same when rotated, so a turning state needs something fixed passing over it.
|
|
31
26
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* `--orb-color` and `--orb-ground`. That is what makes depth survive a theme
|
|
35
|
-
* change without the consumer restating anything.
|
|
27
|
+
* Colors come from `--orb-color` and `--orb-ground`. Each dot's color is mixed
|
|
28
|
+
* toward the ground color by its depth, so depth holds when the theme changes.
|
|
36
29
|
*
|
|
37
|
-
*
|
|
38
|
-
* `prefers-reduced-motion
|
|
30
|
+
* The animation stops when the orb is off screen or in a background tab. With
|
|
31
|
+
* `prefers-reduced-motion`, it draws one still frame.
|
|
39
32
|
*
|
|
40
|
-
*
|
|
41
|
-
* allow
|
|
42
|
-
*
|
|
33
|
+
* The orb is styled only and has behavior, which the tier split does not
|
|
34
|
+
* otherwise allow. The behavior is drawing dots to a canvas, so there is no
|
|
35
|
+
* structure to restyle and nothing for a headless element to hold.
|
|
43
36
|
*
|
|
44
37
|
* @since 0.8.0
|
|
45
38
|
* @status stable
|
|
@@ -47,16 +40,17 @@ import { type OrbState } from '../shapes.js';
|
|
|
47
40
|
* @aliases Thinking, Activity, Agent, Status
|
|
48
41
|
* @documentation https://fusion.dev/helix/components/orb
|
|
49
42
|
*
|
|
50
|
-
* @csspart canvas - The
|
|
43
|
+
* @csspart canvas - The canvas the dots are drawn on.
|
|
51
44
|
*
|
|
52
|
-
* @cssproperty --orb-color -
|
|
53
|
-
* @cssproperty --orb-ground -
|
|
54
|
-
* @cssproperty --orb-size -
|
|
45
|
+
* @cssproperty --orb-color - The color of the nearest dots. Defaults to `currentColor`.
|
|
46
|
+
* @cssproperty --orb-ground - The color the farthest dots fade toward. Defaults to the page's background.
|
|
47
|
+
* @cssproperty --orb-size - The diameter. Overrides `size`.
|
|
55
48
|
*/
|
|
56
49
|
export declare class HelixOrb extends HelixElement {
|
|
57
50
|
static styles: CSSResultGroup;
|
|
58
51
|
/**
|
|
59
|
-
*
|
|
52
|
+
* The name read by screen readers. Defaults to the name of the state, such
|
|
53
|
+
* as "Thinking".
|
|
60
54
|
*
|
|
61
55
|
* Empty is the state's word, which is what most callers want and none of them
|
|
62
56
|
* should have to write. A caller with something better to say says it here:
|
|
@@ -64,7 +58,7 @@ export declare class HelixOrb extends HelixElement {
|
|
|
64
58
|
*/
|
|
65
59
|
label: string;
|
|
66
60
|
/**
|
|
67
|
-
*
|
|
61
|
+
* The diameter, relative to the surrounding text.
|
|
68
62
|
*
|
|
69
63
|
* **`Loader`'s three steps, because the two are swapped for each other.** An
|
|
70
64
|
* orb and a spinner are the same job drawn differently, a wait a reader is
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HelixHeadlessOutline } from '@fusion.dev/helix-headless/outline';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary Links to the headings on
|
|
4
|
+
* @summary Links to the headings on the page, with the section in view marked.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
* A rule down the leading edge
|
|
8
|
-
*
|
|
9
|
-
* says the list is one thing, and the lit segment says where in it you are.
|
|
7
|
+
* A rule runs down the leading edge, and the current section is highlighted
|
|
8
|
+
* along it.
|
|
10
9
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* and the document is not always where the headings are.
|
|
10
|
+
* Set nesting with `data-level` on each link, using the heading levels: `2`
|
|
11
|
+
* through `6` each add one step of `--outline-indent`, and a link without
|
|
12
|
+
* `data-level` is at the top level. The outline does not read heading levels
|
|
13
|
+
* from the document, because the headings are not always in the document.
|
|
16
14
|
*
|
|
17
15
|
* @since 0.1.0
|
|
18
16
|
* @status stable
|
|
@@ -21,7 +19,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
21
19
|
* @documentation https://fusion.dev/helix/components/outline
|
|
22
20
|
*
|
|
23
21
|
* @cssproperty --outline-indent - How far each level is inset from the one above.
|
|
24
|
-
* @cssproperty --outline-rail -
|
|
22
|
+
* @cssproperty --outline-rail - The width of the gutter that holds the line and the moving mark.
|
|
25
23
|
*/
|
|
26
24
|
export declare class HelixOutline extends HelixHeadlessOutline {
|
|
27
25
|
static styles: CSSResultGroup;
|
|
@@ -1,32 +1,22 @@
|
|
|
1
1
|
import { HelixHeadlessPagination } from '@fusion.dev/helix-headless/pagination';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary
|
|
4
|
+
* @summary Controls for moving between the pages of a long set of results.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* to the widest would leave the short ones swimming; `min-inline-size` rather
|
|
11
|
-
* than a fixed one, so page 100 grows instead of overflowing.
|
|
7
|
+
* Every control in the row, arrows and numbers alike, uses the same box, so the
|
|
8
|
+
* row has one rhythm. Boxes are square with a `min-inline-size`, so page 100
|
|
9
|
+
* grows wider and does not overflow.
|
|
12
10
|
*
|
|
13
|
-
* Figures are tabular
|
|
14
|
-
* changes under the pointer, and proportional digits make the whole row shuffle
|
|
15
|
-
* as it does.
|
|
11
|
+
* Figures are tabular, so the row does not shift as the page number changes.
|
|
16
12
|
*
|
|
17
|
-
* The current page is a raised chip
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* blue one reads as the blue one being an action.
|
|
13
|
+
* The current page is a raised chip, the same treatment `Tabs` gives its
|
|
14
|
+
* selected tab. A brand fill would make the current page look like an action.
|
|
15
|
+
* It is styled from `aria-current`, so there is no second attribute to keep in
|
|
16
|
+
* sync.
|
|
22
17
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* beside it would be two places to keep in step.
|
|
26
|
-
*
|
|
27
|
-
* The gap takes the same box as everything else in the row and only sits back a
|
|
28
|
-
* shade in color. It is a control, so it answers hover and focus like one; it
|
|
29
|
-
* is a way through rather than a destination, so it does not compete.
|
|
18
|
+
* A gap uses the same box in a slightly muted color. It responds to hover and
|
|
19
|
+
* focus like any control, and it does not stand out from the numbers.
|
|
30
20
|
*
|
|
31
21
|
* @since 0.1.0
|
|
32
22
|
* @status stable
|
|
@@ -35,7 +25,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
35
25
|
* @documentation https://fusion.dev/helix/components/pagination
|
|
36
26
|
*
|
|
37
27
|
* @csspart first - The control that jumps to the first page, under `ends`.
|
|
38
|
-
* @csspart gap - The control
|
|
28
|
+
* @csspart gap - The control in place of hidden pages, which jumps into them.
|
|
39
29
|
* @csspart item - One slot in the run, holding a page or a gap.
|
|
40
30
|
* @csspart last - The control that jumps to the last page, under `ends`.
|
|
41
31
|
* @csspart list - The run of pages.
|
|
@@ -43,7 +33,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
43
33
|
* @csspart page - The control for one page.
|
|
44
34
|
* @csspart page-current - The page you are on, beside `page`.
|
|
45
35
|
* @csspart previous - The control that moves back one page.
|
|
46
|
-
* @csspart status - The
|
|
36
|
+
* @csspart status - The text that says which page you are on, in `compact`.
|
|
47
37
|
*
|
|
48
38
|
* @cssproperty --pagination-current-color - Fill behind the page you are on.
|
|
49
39
|
* @cssproperty --pagination-gap - Space between one control and the next.
|
|
@@ -3,16 +3,16 @@ import type { CSSResultGroup } from 'lit';
|
|
|
3
3
|
import '../../option/index.js';
|
|
4
4
|
import '../../select/index.js';
|
|
5
5
|
/**
|
|
6
|
-
* @summary
|
|
6
|
+
* @summary A control for choosing how many items each page shows.
|
|
7
7
|
*
|
|
8
8
|
* @description
|
|
9
|
-
* A `Select
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* A `Select` laid out on one row. Other fields stack their label because they
|
|
10
|
+
* sit in a column of fields. This one sits in a footer beside the page numbers,
|
|
11
|
+
* where a two-line control would make the whole row two lines tall.
|
|
12
12
|
*
|
|
13
|
-
* `Select`'s
|
|
14
|
-
* `::part(control-label)` reach through both
|
|
15
|
-
*
|
|
13
|
+
* `Select`'s parts are exported with a `control-` prefix, so
|
|
14
|
+
* `::part(control-trigger)` and `::part(control-label)` reach through both
|
|
15
|
+
* shadow boundaries, and you can style it like any select.
|
|
16
16
|
*
|
|
17
17
|
* @since 0.1.0
|
|
18
18
|
* @status stable
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { HelixHeadlessPaginationSummary } from '@fusion.dev/helix-headless/pagination';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary
|
|
4
|
+
* @summary Text that shows which items are on the current page, out of the total.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* a way to move through it.
|
|
7
|
+
* Plain text beside the controls, with no box and no hover, in the lighter of
|
|
8
|
+
* the two muted colors. It reports the result and is not a control.
|
|
10
9
|
*
|
|
11
10
|
* @since 0.1.0
|
|
12
11
|
* @status stable
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { HelixHeadlessPinInput } from '@fusion.dev/helix-headless/pin-input';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary A short code, one
|
|
4
|
+
* @summary A field for a short code, with one box for each character.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
* Square boxes at the control height with
|
|
8
|
-
*
|
|
9
|
-
* shoulder read as one field with lines drawn in it.
|
|
7
|
+
* Square boxes at the control height, with space between them so the code reads
|
|
8
|
+
* as separate characters.
|
|
10
9
|
*
|
|
11
|
-
* The focus ring is on the box
|
|
12
|
-
*
|
|
13
|
-
* is next, so a ring around all six would answer the question the component is
|
|
14
|
-
* for.
|
|
10
|
+
* The focus ring is on the current box, so you can see which character comes
|
|
11
|
+
* next.
|
|
15
12
|
*
|
|
16
|
-
* Figures are tabular, so
|
|
17
|
-
*
|
|
13
|
+
* Figures are tabular, so every digit takes the same width and the row does not
|
|
14
|
+
* shift as you type.
|
|
18
15
|
*
|
|
19
16
|
* @since 0.1.0
|
|
20
17
|
* @status stable
|
|
@@ -25,7 +22,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
25
22
|
* @csspart cell - One box.
|
|
26
23
|
* @csspart field - The row of boxes.
|
|
27
24
|
*
|
|
28
|
-
* @cssproperty --pin-input-gap -
|
|
25
|
+
* @cssproperty --pin-input-gap - The space between one box and the next.
|
|
29
26
|
*/
|
|
30
27
|
export declare class HelixPinInput extends HelixHeadlessPinInput {
|
|
31
28
|
static styles: CSSResultGroup;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { HelixHeadlessPopover } from '@fusion.dev/helix-headless/popover';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary A panel that opens
|
|
4
|
+
* @summary A panel that opens next to its trigger and holds any content.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* and everyone was writing the same one.
|
|
7
|
+
* The styled tier draws a surface with an inset and a shadow and styles nothing
|
|
8
|
+
* inside it. The panel sets its own inset, as `Dialog` and `Drawer` do, because
|
|
9
|
+
* every use needed the same one.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* time.
|
|
11
|
+
* The panel animates in from the side it opened on. The positioning writes
|
|
12
|
+
* `data-placement`, so the panel animates from the trigger's side, including
|
|
13
|
+
* after it flips.
|
|
16
14
|
*
|
|
17
15
|
* @since 0.1.0
|
|
18
16
|
* @status stable
|
|
@@ -21,18 +19,18 @@ import type { CSSResultGroup } from 'lit';
|
|
|
21
19
|
* @documentation https://fusion.dev/helix/components/popover
|
|
22
20
|
*
|
|
23
21
|
* @cssproperty --popover-border-color - Color of the panel's edge.
|
|
24
|
-
* @cssproperty --popover-border-width - Width of the panel's edge.
|
|
25
|
-
* `--helix-border-floating`, which is `0`, so the panel
|
|
26
|
-
* theme
|
|
22
|
+
* @cssproperty --popover-border-width - Width of the panel's edge. Defaults to
|
|
23
|
+
* `--helix-border-floating`, which is `0`, so the panel stands out by its shadow unless
|
|
24
|
+
* your theme sets a width.
|
|
27
25
|
* @cssproperty --popover-inline-size - Width of the panel.
|
|
28
|
-
* @cssproperty --popover-max-block-size -
|
|
26
|
+
* @cssproperty --popover-max-block-size - Maximum height of the panel before it scrolls.
|
|
29
27
|
* @cssproperty --popover-padding - Space between the panel's edge and its contents.
|
|
30
|
-
* @cssproperty --popover-shadow -
|
|
31
|
-
* floating
|
|
28
|
+
* @cssproperty --popover-shadow - Shadow under the panel. Defaults to
|
|
29
|
+
* `--helix-shadow-floating`, because the panel can sit over any content.
|
|
32
30
|
*/
|
|
33
31
|
export declare class HelixPopover extends HelixHeadlessPopover {
|
|
34
32
|
/**
|
|
35
|
-
* How the panel
|
|
33
|
+
* How the panel is set apart from the content under it.
|
|
36
34
|
*
|
|
37
35
|
* One of the axis's four values, which is all this surface has meaning for: a
|
|
38
36
|
* floating panel keeps its lift by default, `ThemeIntent.separation.floating`
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { HelixHeadlessProgress } from '@fusion.dev/helix-headless/progress';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary
|
|
4
|
+
* @summary A bar or ring that shows how far along a task is.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
* A track and the part of it that is done. The height comes from a token
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `--progress-size` on that region says it once.
|
|
7
|
+
* A track and the part of it that is done. The height comes from a token, like
|
|
8
|
+
* control sizes elsewhere in the library, so you can set `--progress-size` once
|
|
9
|
+
* on a region.
|
|
11
10
|
*
|
|
12
|
-
* The fill transitions
|
|
13
|
-
*
|
|
14
|
-
* as a series of unrelated states where one that travels reads as a single
|
|
15
|
-
* thing advancing.
|
|
11
|
+
* The fill transitions between values. Progress often arrives in large steps,
|
|
12
|
+
* and a fill that moves between them shows one task advancing.
|
|
16
13
|
*
|
|
17
14
|
* @since 0.1.0
|
|
18
15
|
* @status stable
|
|
@@ -22,14 +19,14 @@ import type { CSSResultGroup } from 'lit';
|
|
|
22
19
|
* @documentation https://fusion.dev/helix/components/progress
|
|
23
20
|
*
|
|
24
21
|
* @cssproperty --progress-color - Fill of the part that is done.
|
|
25
|
-
* @cssproperty --progress-ring-size - Diameter of the ring
|
|
26
|
-
* @cssproperty --progress-ring-width - Thickness of
|
|
22
|
+
* @cssproperty --progress-ring-size - Diameter of the ring.
|
|
23
|
+
* @cssproperty --progress-ring-width - Thickness of the ring's stroke.
|
|
27
24
|
* @cssproperty --progress-size - Thickness of the bar.
|
|
28
|
-
* @cssproperty --progress-track-color - Fill of the part that is not.
|
|
25
|
+
* @cssproperty --progress-track-color - Fill of the part that is not done.
|
|
29
26
|
*/
|
|
30
27
|
export declare class HelixProgress extends HelixHeadlessProgress {
|
|
31
28
|
/**
|
|
32
|
-
* How
|
|
29
|
+
* How strongly the bar is drawn.
|
|
33
30
|
*
|
|
34
31
|
* `subtle` is the bar as a wash of its own color: still legible, no longer
|
|
35
32
|
* the loudest thing in the region. The case is a background task, which has to
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { HelixHeadlessQrCode } from '@fusion.dev/helix-headless/qr-code';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary
|
|
4
|
+
* @summary A scannable QR code for a short piece of text.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
* The
|
|
7
|
+
* The headless tier draws the code. The styled tier adds a size you can set
|
|
8
8
|
* once, the colors a scanner needs, and the box that holds a center mark.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* dark on light to
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* So the ground is stated and the ink is the foreground it is chosen for.
|
|
10
|
+
* The ink is `currentColor` and the background is a solid fill. A code must be
|
|
11
|
+
* dark on light to scan. The page's foreground and background invert together
|
|
12
|
+
* in dark mode, and at least half of scanners reject a light-on-dark code, so
|
|
13
|
+
* the background is set explicitly and the ink is the foreground chosen for it.
|
|
15
14
|
*
|
|
16
15
|
* @since 0.1.0
|
|
17
16
|
* @status stable
|
|
18
17
|
* @category media
|
|
19
18
|
* @documentation https://fusion.dev/helix/components/qr-code
|
|
20
19
|
*
|
|
21
|
-
* @cssproperty --qr-code-background-color -
|
|
22
|
-
* @cssproperty --qr-code-color -
|
|
23
|
-
* @cssproperty --qr-code-finder-color -
|
|
24
|
-
* the
|
|
25
|
-
* @cssproperty --qr-code-logo-padding - The
|
|
26
|
-
* @cssproperty --qr-code-logo-size - How much of the
|
|
27
|
-
* Defaults to `27%`, which `H` correction
|
|
20
|
+
* @cssproperty --qr-code-background-color - The fill behind the modules, including the quiet zone.
|
|
21
|
+
* @cssproperty --qr-code-color - Color of the dark modules. Defaults to the page's text color.
|
|
22
|
+
* @cssproperty --qr-code-finder-color - Color of the three corner squares. Defaults
|
|
23
|
+
* to the color of the modules.
|
|
24
|
+
* @cssproperty --qr-code-logo-padding - The clear space around the center logo.
|
|
25
|
+
* @cssproperty --qr-code-logo-size - How much of the center a logo can cover.
|
|
26
|
+
* Defaults to `27%`, which `H` correction allows, because it can lose thirty percent.
|
|
28
27
|
* @cssproperty --qr-code-size - How wide the square is. Defaults to `12rem`.
|
|
29
28
|
*/
|
|
30
29
|
export declare class HelixQrCode extends HelixHeadlessQrCode {
|
|
@@ -4,8 +4,8 @@ import type { CSSResultGroup } from 'lit';
|
|
|
4
4
|
* @summary A short quotation, set inline with the text around it.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Inherits the surrounding type, because an inline quotation is part of its
|
|
8
|
+
* paragraph.
|
|
9
9
|
*
|
|
10
10
|
* @since 0.1.0
|
|
11
11
|
* @status stable
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { HelixHeadlessRadioGroup } from '@fusion.dev/helix-headless/radio';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary A set of
|
|
4
|
+
* @summary A set of radios where exactly one can be chosen.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
* question
|
|
9
|
-
* wrong. `orientation` lays out the choices
|
|
10
|
-
* group keeps its question above the row
|
|
7
|
+
* Lays out the field's three parts the same way as every other field: the
|
|
8
|
+
* question above the set, and one line below it that shows the hint, or the
|
|
9
|
+
* message when something is wrong. `orientation` lays out the choices only, so
|
|
10
|
+
* a horizontal group keeps its question above the row.
|
|
11
11
|
*
|
|
12
12
|
* @since 0.1.0
|
|
13
13
|
* @status stable
|
|
14
14
|
* @aliases RadioButtons, Choice group
|
|
15
15
|
* @documentation https://fusion.dev/helix/components/radio
|
|
16
16
|
*
|
|
17
|
-
* @cssproperty --radio-group-gap -
|
|
17
|
+
* @cssproperty --radio-group-gap - The space between the choices.
|
|
18
18
|
*/
|
|
19
19
|
export declare class HelixRadioGroup extends HelixHeadlessRadioGroup {
|
|
20
20
|
static styles: CSSResultGroup;
|
|
@@ -4,14 +4,12 @@ import type { CSSResultGroup } from 'lit';
|
|
|
4
4
|
* @summary One choice in a radio group.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* never a native control to restyle, and the weight and the motion of the mark
|
|
10
|
-
* are ours either way.
|
|
7
|
+
* Draws a circle with a dot in it. The element is a `<button role="radio">`, so
|
|
8
|
+
* there is no native control to restyle, the same as the checkbox's box.
|
|
11
9
|
*
|
|
12
|
-
* The dot scales from nothing, like the checkbox's
|
|
13
|
-
*
|
|
14
|
-
*
|
|
10
|
+
* The dot scales up from nothing when the radio is chosen, like the checkbox's
|
|
11
|
+
* tick. It has no color, because Helix reserves color for state, and a chosen
|
|
12
|
+
* radio is an answer.
|
|
15
13
|
*
|
|
16
14
|
* @since 0.1.0
|
|
17
15
|
* @status stable
|
|
@@ -19,19 +17,19 @@ import type { CSSResultGroup } from 'lit';
|
|
|
19
17
|
* @aliases Option, Choice
|
|
20
18
|
* @documentation https://fusion.dev/helix/components/radio
|
|
21
19
|
*
|
|
22
|
-
* @cssproperty --radio-background-color -
|
|
23
|
-
* @cssproperty --radio-border-color -
|
|
24
|
-
* @cssproperty --radio-card-background-color -
|
|
25
|
-
* @cssproperty --radio-card-border-color -
|
|
26
|
-
* @cssproperty --radio-card-padding -
|
|
27
|
-
* @cssproperty --radio-chip-size -
|
|
28
|
-
* @cssproperty --radio-mark-color -
|
|
29
|
-
* @cssproperty --radio-size -
|
|
20
|
+
* @cssproperty --radio-background-color - The fill of an unselected circle.
|
|
21
|
+
* @cssproperty --radio-border-color - The border color of the circle, in every state.
|
|
22
|
+
* @cssproperty --radio-card-background-color - The fill behind a card-shaped choice.
|
|
23
|
+
* @cssproperty --radio-card-border-color - The border color of a card-shaped choice.
|
|
24
|
+
* @cssproperty --radio-card-padding - The padding inside a card-shaped choice.
|
|
25
|
+
* @cssproperty --radio-chip-size - The diameter of a chip.
|
|
26
|
+
* @cssproperty --radio-mark-color - The color of the dot.
|
|
27
|
+
* @cssproperty --radio-size - The diameter of the circle.
|
|
30
28
|
*/
|
|
31
29
|
export declare class HelixRadio extends HelixHeadlessRadio {
|
|
32
30
|
static styles: CSSResultGroup;
|
|
33
31
|
/**
|
|
34
|
-
*
|
|
32
|
+
* Hides the circle, so the card is the whole control.
|
|
35
33
|
*
|
|
36
34
|
* Unnecessary under `chip`, which has no room for a circle beside its mark
|
|
37
35
|
* and hides it already.
|
|
@@ -50,7 +48,7 @@ export declare class HelixRadio extends HelixHeadlessRadio {
|
|
|
50
48
|
*/
|
|
51
49
|
hideControl: boolean;
|
|
52
50
|
/**
|
|
53
|
-
*
|
|
51
|
+
* How the choice's own surface is set apart from its surroundings.
|
|
54
52
|
*
|
|
55
53
|
* The question `separation` asks everywhere else, asked of one option, so it
|
|
56
54
|
* is that word: what these values pick is a surface, and `plain` is already
|
|
@@ -78,8 +76,7 @@ export declare class HelixRadio extends HelixHeadlessRadio {
|
|
|
78
76
|
*/
|
|
79
77
|
separation?: 'filled' | 'outlined' | 'plain';
|
|
80
78
|
/**
|
|
81
|
-
*
|
|
82
|
-
* glance.
|
|
79
|
+
* Draws the choice as a small chip, for a row of short choices.
|
|
83
80
|
*
|
|
84
81
|
* **Not a separation, which is why it is still `variant`.** The other values
|
|
85
82
|
* pick where a surface ends around a row that keeps its circle and its words;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HelixHeadlessRating } from '@fusion.dev/helix-headless/rating';
|
|
2
2
|
import type { CSSResultGroup } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
* @summary A
|
|
4
|
+
* @summary A row of marks, such as stars, for giving or showing a score.
|
|
5
5
|
*
|
|
6
6
|
* @description
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Draws the marks and the clip that fills them partway. The value and how it is
|
|
8
|
+
* chosen come from the headless base class.
|
|
9
9
|
*
|
|
10
10
|
* @since 0.1.0
|
|
11
11
|
* @status stable
|
|
@@ -13,19 +13,19 @@ import type { CSSResultGroup } from 'lit';
|
|
|
13
13
|
* @aliases Stars, Score, Review score
|
|
14
14
|
* @documentation https://fusion.dev/helix/components/rating
|
|
15
15
|
*
|
|
16
|
-
* @slot mark - The shape of a mark,
|
|
17
|
-
* stylesheet draws
|
|
16
|
+
* @slot mark - The shape of a mark, copied into every position. When the slot is
|
|
17
|
+
* empty, the stylesheet draws a mark, and `--rating-mark` changes its shape.
|
|
18
18
|
*
|
|
19
19
|
* @cssproperty --rating-color - The color of a filled mark.
|
|
20
|
-
* @cssproperty --rating-empty-color -
|
|
21
|
-
* @cssproperty --rating-gap -
|
|
20
|
+
* @cssproperty --rating-empty-color - The color of an unfilled mark.
|
|
21
|
+
* @cssproperty --rating-gap - The space between marks.
|
|
22
22
|
* @cssproperty --rating-mark - The shape of one mark, as a mask image.
|
|
23
|
-
* @cssproperty --rating-size -
|
|
23
|
+
* @cssproperty --rating-size - The size of one mark.
|
|
24
24
|
*/
|
|
25
25
|
export declare class HelixRating extends HelixHeadlessRating {
|
|
26
26
|
static styles: CSSResultGroup;
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
28
|
+
* The shape of each mark. `dots` draws plain circles.
|
|
29
29
|
*
|
|
30
30
|
* The registry's word, because the question is the registry's: `Avatar`,
|
|
31
31
|
* `Skeleton`, `IconButton`, `Meter` and `Progress` each ask what geometry
|