@fusion.dev/helix 0.178.0 → 0.179.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 +507 -83
- package/dist/aura/root/aura-root.css.js +5 -1
- package/dist/aura/root/aura-root.d.ts +33 -2
- package/dist/aura/root/aura-root.js +32 -3
- package/dist/badge/root/badge-root.css.js +1 -1
- package/dist/element-events.generated.js +8 -2
- package/dist/graph/root/graph-root.css.js +2 -1
- package/dist/heatmap/root/heatmap-root.css.js +4 -3
- package/dist/legend/root/legend-root.css.js +1 -1
- package/dist/line-chart/root/line-chart-root.css.js +1 -1
- package/dist/map/marker/map-marker.css.js +1 -1
- package/dist/map/position/map-position.css.js +3 -1
- package/dist/meter/root/meter-root.css.js +1 -1
- package/dist/rating/root/rating-root.css.js +2 -1
- package/dist/scatter-chart/root/scatter-chart-root.css.js +1 -1
- package/dist/shared/chart/terminus.css.js +1 -1
- package/dist/skeleton/root/skeleton-root.css.js +1 -1
- package/dist/sparkline/root/sparkline-root.css.js +4 -1
- package/lint.json +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +258 -52
- package/types/vue.d.ts +52 -17
- package/types/words.d.ts +10 -0
package/types/vue.d.ts
CHANGED
|
@@ -930,6 +930,14 @@ hit-testable at rest, or it would swallow clicks meant for what is over it,
|
|
|
930
930
|
and an element that is not hit-testable never receives the `pointermove`
|
|
931
931
|
this listens for. Asking for the pointer is asking for the hit test. */
|
|
932
932
|
interactive?: (HelixAura["interactive"]) | undefined;
|
|
933
|
+
/** Whether the aura draws its own control that pauses the field and starts it
|
|
934
|
+
again, in its trailing corner. Absent draws none, for a page with a pause
|
|
935
|
+
control of its own. */
|
|
936
|
+
"pause-control"?: (HelixAura["pauseControl"]) | undefined;
|
|
937
|
+
/** Whether the aura draws its own control that pauses the field and starts it
|
|
938
|
+
again, in its trailing corner. Absent draws none, for a page with a pause
|
|
939
|
+
control of its own. */
|
|
940
|
+
pauseControl?: (HelixAura["pauseControl"]) | undefined;
|
|
933
941
|
/** Whether the field holds still on the frame it shows.
|
|
934
942
|
|
|
935
943
|
Set it from a pause control on your page, so a reader can stop the motion,
|
|
@@ -937,6 +945,14 @@ as WCAG 2.2.2 asks of anything that moves for more than five seconds. A
|
|
|
937
945
|
change to another property still repaints the frame. Clearing it starts
|
|
938
946
|
the field from where it stopped. */
|
|
939
947
|
paused?: (HelixAura["paused"]) | undefined;
|
|
948
|
+
/** The pause control's name, read by screen readers. The control is a toggle
|
|
949
|
+
and says it is pressed while the field is paused, so the name stays the
|
|
950
|
+
same. */
|
|
951
|
+
"pause-label"?: (HelixAura["pauseLabel"]) | undefined;
|
|
952
|
+
/** The pause control's name, read by screen readers. The control is a toggle
|
|
953
|
+
and says it is pressed while the field is paused, so the name stays the
|
|
954
|
+
same. */
|
|
955
|
+
pauseLabel?: (HelixAura["pauseLabel"]) | undefined;
|
|
940
956
|
/** How far the pointer reaches into the field, `0` upward.
|
|
941
957
|
|
|
942
958
|
Multiplied into the presence the pointer already fades in and out with, so
|
|
@@ -1009,6 +1025,8 @@ states. */
|
|
|
1009
1025
|
};
|
|
1010
1026
|
|
|
1011
1027
|
export type HelixAuraVueEvents = {
|
|
1028
|
+
/** Fired when the aura's own pause control pauses the field or starts it again. */
|
|
1029
|
+
change: HelixAuraElementEvent;
|
|
1012
1030
|
/** Fired each time the aura stops drawing its shader and shows its gradient, with the reason. */
|
|
1013
1031
|
"helix-aura-fallback": HelixAuraHelixAuraFallbackElementEvent;
|
|
1014
1032
|
};
|
|
@@ -9186,11 +9204,36 @@ export type HelixHeatmapElementEvent<E = Event> = TypedEvent<HelixHeatmap, E>;
|
|
|
9186
9204
|
/** `helix-before-change` event type */
|
|
9187
9205
|
export type HelixHeatmapHelixBeforeChangeElementEvent =
|
|
9188
9206
|
HelixHeatmapElementEvent<HelixBeforeChangeEvent>;
|
|
9207
|
+
/** `helix-reading-change` event type */
|
|
9208
|
+
export type HelixHeatmapHelixReadingChangeElementEvent =
|
|
9209
|
+
HelixHeatmapElementEvent<HelixReadingChangeEvent>;
|
|
9210
|
+
/** `helix-reading-press` event type */
|
|
9211
|
+
export type HelixHeatmapHelixReadingPressElementEvent =
|
|
9212
|
+
HelixHeatmapElementEvent<HelixReadingPressEvent>;
|
|
9189
9213
|
/** `helix-resize` event type */
|
|
9190
9214
|
export type HelixHeatmapHelixResizeElementEvent =
|
|
9191
9215
|
HelixHeatmapElementEvent<HelixResizeEvent>;
|
|
9192
9216
|
|
|
9193
9217
|
export type HelixHeatmapVueProps = {
|
|
9218
|
+
/** The words shown in place of the drawing when the table has no readings,
|
|
9219
|
+
and the fallback of the `empty` slot. */
|
|
9220
|
+
"empty-text"?: (HelixHeatmap["emptyText"]) | undefined;
|
|
9221
|
+
/** The words shown in place of the drawing when the table has no readings,
|
|
9222
|
+
and the fallback of the `empty` slot. */
|
|
9223
|
+
emptyText?: (HelixHeatmap["emptyText"]) | undefined;
|
|
9224
|
+
/** Whether the readings are still on their way. The chart shows
|
|
9225
|
+
`loading-text` in place of an empty drawing until it has readings.
|
|
9226
|
+
|
|
9227
|
+
Reflected, so a stylesheet can treat the chart while it waits. A chart
|
|
9228
|
+
that already has readings keeps drawing them, so a refresh does not
|
|
9229
|
+
blank it. */
|
|
9230
|
+
loading?: (HelixHeatmap["loading"]) | undefined;
|
|
9231
|
+
/** The words shown in place of the drawing while `loading` is set and
|
|
9232
|
+
there are no readings yet, and the fallback of the `loading` slot. */
|
|
9233
|
+
"loading-text"?: (HelixHeatmap["loadingText"]) | undefined;
|
|
9234
|
+
/** The words shown in place of the drawing while `loading` is set and
|
|
9235
|
+
there are no readings yet, and the fallback of the `loading` slot. */
|
|
9236
|
+
loadingText?: (HelixHeatmap["loadingText"]) | undefined;
|
|
9194
9237
|
/** The id of the table to read.
|
|
9195
9238
|
|
|
9196
9239
|
Names a table in the same tree, so a chart inside another component's
|
|
@@ -9233,16 +9276,6 @@ legend hid is not counted. */
|
|
|
9233
9276
|
/** The name the `overview` gives the busiest reading, `{busiestLabel}` in
|
|
9234
9277
|
`overview-label`. */
|
|
9235
9278
|
busiestLabel?: (HelixHeatmap["busiestLabel"]) | undefined;
|
|
9236
|
-
/** Shown when the table has no readings in it.
|
|
9237
|
-
|
|
9238
|
-
Never shown while the table cannot be read at all, which is a server render
|
|
9239
|
-
and the hydrating one after it: see `sourceKnown`. */
|
|
9240
|
-
"empty-text"?: (HelixHeatmap["emptyText"]) | undefined;
|
|
9241
|
-
/** Shown when the table has no readings in it.
|
|
9242
|
-
|
|
9243
|
-
Never shown while the table cannot be read at all, which is a server render
|
|
9244
|
-
and the hydrating one after it: see `sourceKnown`. */
|
|
9245
|
-
emptyText?: (HelixHeatmap["emptyText"]) | undefined;
|
|
9246
9279
|
/** Space between cells, in CSS pixels. It is a number for the same reason
|
|
9247
9280
|
`min-cell` is. */
|
|
9248
9281
|
gap?: (HelixHeatmap["gap"]) | undefined;
|
|
@@ -9300,13 +9333,9 @@ calendar heatmap does: a week is a column, so the strip reads along the
|
|
|
9300
9333
|
line in weeks, from the right on a right-to-left page, and top to bottom in
|
|
9301
9334
|
days. */
|
|
9302
9335
|
rows?: (HelixHeatmap["rows"]) | undefined;
|
|
9303
|
-
/** What the readout
|
|
9304
|
-
where the cell stands: "Day 1: 0 (1 of 14, selected)". Empty adds
|
|
9305
|
-
nothing. */
|
|
9336
|
+
/** What the readout added for a selected cell, under `selection-mode`. */
|
|
9306
9337
|
"selected-label"?: (HelixHeatmap["selectedLabel"]) | undefined;
|
|
9307
|
-
/** What the readout
|
|
9308
|
-
where the cell stands: "Day 1: 0 (1 of 14, selected)". Empty adds
|
|
9309
|
-
nothing. */
|
|
9338
|
+
/** What the readout added for a selected cell, under `selection-mode`. */
|
|
9310
9339
|
selectedLabel?: (HelixHeatmap["selectedLabel"]) | undefined;
|
|
9311
9340
|
/** What the `selection` part says after the selection changes. `{count}` is
|
|
9312
9341
|
how many cells are selected, written in the locale, and a language that
|
|
@@ -9393,6 +9422,10 @@ export type HelixHeatmapVueEvents = {
|
|
|
9393
9422
|
change: HelixHeatmapElementEvent;
|
|
9394
9423
|
/** Fired before a press or a key changes which cells are selected, with the `value` it would leave. Cancelable. */
|
|
9395
9424
|
"helix-before-change": HelixHeatmapHelixBeforeChangeElementEvent;
|
|
9425
|
+
/** The reading shown moved, or was put away: `index` is the row, or `-1` for none, with its `label`, the `series` the keys rest on, and the `pointerType` that moved it. */
|
|
9426
|
+
"helix-reading-change": HelixHeatmapHelixReadingChangeElementEvent;
|
|
9427
|
+
/** A reading was clicked, tapped, or pressed with Enter or Space, with the same detail as `helix-reading-change`. */
|
|
9428
|
+
"helix-reading-press": HelixHeatmapHelixReadingPressElementEvent;
|
|
9396
9429
|
/** Fired when the number of cells drawn changes, with the new number. */
|
|
9397
9430
|
"helix-resize": HelixHeatmapHelixResizeElementEvent;
|
|
9398
9431
|
};
|
|
@@ -21701,6 +21734,8 @@ export type CustomCssProperties = {
|
|
|
21701
21734
|
"--aura-ground"?: (string) | undefined;
|
|
21702
21735
|
/** The faint stop between the ground and the glow. Defaults to `--helix-color-primary-subtle`. */
|
|
21703
21736
|
"--aura-haze"?: (string) | undefined;
|
|
21737
|
+
/** The pause control's ground. Defaults to `--helix-color-surface-overlay`. */
|
|
21738
|
+
"--aura-pause-background-color"?: (string) | undefined;
|
|
21704
21739
|
/** The hottest stop, at the center of a shape. Defaults to `--helix-color-primary-active` on a light page and `--helix-color-foreground` on a dark one. */
|
|
21705
21740
|
"--aura-peak"?: (string) | undefined;
|
|
21706
21741
|
/** The fill of the count of avatars past `max`. */
|
|
@@ -24181,7 +24216,7 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
24181
24216
|
HelixAreaChartVueProps,
|
|
24182
24217
|
HelixAreaChartVueEvents
|
|
24183
24218
|
>;
|
|
24184
|
-
/** One fragment shader draws over a full-screen triangle, and its palette comes from the tokens. A background built on '--helix-color-primary' changes when your brand color changes. Every shape ramps through four token stops, and the token layer inverts each one: the page background, 'primary-subtle', 'primary', and a peak. The peak is the foreground on a dark page and 'primary-active' on a light one, because mixing a saturated hue toward near-black removes its chroma. The component reads which way the page runs from the background's luminance, because the mode is a private token. The geometry is three vertices derived from 'gl_VertexID'. There is no dependency, scene graph, attribute, buffer, or upload. The shader stops drawing in these cases: - The element is off screen or in a background tab. - 'prefers-reduced-motion' is set. The element shows one still frame. - 'paused' is set, from a pause control on your page. The element holds the
|
|
24219
|
+
/** One fragment shader draws over a full-screen triangle, and its palette comes from the tokens. A background built on '--helix-color-primary' changes when your brand color changes. Every shape ramps through four token stops, and the token layer inverts each one: the page background, 'primary-subtle', 'primary', and a peak. The peak is the foreground on a dark page and 'primary-active' on a light one, because mixing a saturated hue toward near-black removes its chroma. The component reads which way the page runs from the background's luminance, because the mode is a private token. The geometry is three vertices derived from 'gl_VertexID'. There is no dependency, scene graph, attribute, buffer, or upload. The shader stops drawing in these cases: - The element is off screen or in a background tab. - 'prefers-reduced-motion' is set. The element shows one still frame. - 'paused' is set, from a pause control on your page or from the aura's own under 'pause-control'. The element holds the frame it shows. - The browser takes back the drawing context, on a GPU reset or past its limit of about sixteen contexts. The gradient shows until the context returns. On a renderer that draws on the CPU, such as a headless browser or a machine with no usable GPU, the element shows the gradient. There the shader costs about 450ms for the first frame of each element, against 2ms on a GPU. Aura is styled only and has behavior, which the tier split does not otherwise allow. Its behavior is drawing to a canvas, so there is no structure for you to restyle and nothing for a headless version to hold. **Content placed inside sits over the field**, in a 'content' part that covers the aura, so an interactive aura answers the pointer over the content too. Clicks still reach the content. Style '::part(content)' to place it, such as centering a hero's heading. **The colors are the theme's, and each has a hook**: '--aura-ground', '--aura-haze', '--aura-glow' and '--aura-peak', read by the shader and by the fallback gradient alike, from wherever on the page you set them. A hook changed while the aura draws, by a class, a style or the color mode, reaches the shader on the next frame. **'pause-control' draws a control that stops the motion and starts it again**, in the trailing corner of the field, as WCAG 2.2.2 asks of anything that moves for more than five seconds. It is a toggle button named by 'pause-label', which says it is pressed while the field is paused, and a press sends 'change'. A reader who asked for reduced motion sees no motion and no control. Where the gradient shows in place of the shader, the aura matches ':state(fallback)' and sends 'helix-aura-fallback' with the reason. */
|
|
24185
24220
|
"helix-aura": DefineCustomElement<
|
|
24186
24221
|
HelixAura,
|
|
24187
24222
|
HelixAuraVueProps,
|
package/types/words.d.ts
CHANGED
|
@@ -1004,6 +1004,16 @@ declare module '@fusion.dev/helix-core' {
|
|
|
1004
1004
|
*/
|
|
1005
1005
|
menuLabel: Message
|
|
1006
1006
|
}
|
|
1007
|
+
'helix-aura': {
|
|
1008
|
+
/**
|
|
1009
|
+
* The pause control's name, read by screen readers. The control is a toggle
|
|
1010
|
+
* and says it is pressed while the field is paused, so the name stays the
|
|
1011
|
+
* same.
|
|
1012
|
+
*
|
|
1013
|
+
* English: `Pause the motion`
|
|
1014
|
+
*/
|
|
1015
|
+
pauseLabel: Message
|
|
1016
|
+
}
|
|
1007
1017
|
'helix-avatar-group': {
|
|
1008
1018
|
/**
|
|
1009
1019
|
* What a screen reader is told the count is, with `{count}` for the number,
|