@fusion.dev/helix-headless 0.181.1 → 0.182.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-headless",
3
3
  "description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
4
- "version": "0.181.1",
4
+ "version": "0.182.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -49,13 +49,13 @@
49
49
  },
50
50
  "bugs": "https://github.com/project-fusion/fusion/issues",
51
51
  "dependencies": {
52
- "@fusion.dev/helix-core": "0.181.1",
53
- "@fusion.dev/helix-icons": "0.181.1",
52
+ "@fusion.dev/helix-core": "0.182.0",
53
+ "@fusion.dev/helix-icons": "0.182.0",
54
54
  "uqr": "^0.1.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@fusion.dev/helix-cem": "0.181.1",
58
- "@fusion.dev/helix-testing": "0.181.1",
57
+ "@fusion.dev/helix-cem": "0.182.0",
58
+ "@fusion.dev/helix-testing": "0.182.0",
59
59
  "@fusion.dev/scripts": "0.0.0-dev",
60
60
  "@happy-dom/global-registrator": "^20.14.5",
61
61
  "@lit-labs/ssr": "^4.1.0",
package/types/jsx.d.ts CHANGED
@@ -38566,6 +38566,11 @@ export type CustomElements = {
38566
38566
  * tap or key, and `helix-reading-press` says a reading was clicked, tapped, or
38567
38567
  * pressed with Enter or Space, for a page that opens what a reading stands for.
38568
38568
  *
38569
+ * **A cell's `data-tone` colors its own bar**, such as `data-tone="primary"`
38570
+ * on the one reading a chart is about, so one column of numbers can single
38571
+ * a bar out without a second column to color it. Without one, a bar takes
38572
+ * its series' color.
38573
+ *
38569
38574
  * **`data` takes the readings as data** where the page has no table to point
38570
38575
  * `for` at, in a table's shape: the column headings, then one row per reading
38571
38576
  * with its label first. A table is still the better source where the page can
@@ -38847,6 +38852,13 @@ export type CustomElements = {
38847
38852
  *
38848
38853
  * - `--bar-chart-axis`: The width of an axis, in `ch`, set from the widest number on it. The chart sets it on the axis itself, and only when the categories run along the bottom. In a horizontal chart the axis is a row, one line high.
38849
38854
  * - `--bar-chart-secondary`: The color of the secondary axis, when one series is on it. The chart sets it from that series' `--chart-series-*` property, so the axis is drawn in whatever color that property resolves to.
38855
+ * - `--bar-chart-tone-accent`: The color of a bar whose cell says `data-tone="accent"`.
38856
+ * - `--bar-chart-tone-danger`: The color of a bar whose cell says `data-tone="danger"`.
38857
+ * - `--bar-chart-tone-info`: The color of a bar whose cell says `data-tone="info"`.
38858
+ * - `--bar-chart-tone-muted`: The color of a bar whose cell says `data-tone="muted"`.
38859
+ * - `--bar-chart-tone-primary`: The color of a bar whose cell says `data-tone="primary"`. A tone with no property of its own falls back to the bar's series color, and the same holds for a name you define.
38860
+ * - `--bar-chart-tone-success`: The color of a bar whose cell says `data-tone="success"`.
38861
+ * - `--bar-chart-tone-warning`: The color of a bar whose cell says `data-tone="warning"`.
38850
38862
  * - `--chart-bar-wash`: The gradient for a bar, named per bar so the styled tier can use it as the `fill`. It is always drawn, and used only when `wash="gradient"` is set.
38851
38863
  *
38852
38864
  * ## CSS Parts
@@ -68254,6 +68266,11 @@ export type CustomElementsSolidJs = {
68254
68266
  * tap or key, and `helix-reading-press` says a reading was clicked, tapped, or
68255
68267
  * pressed with Enter or Space, for a page that opens what a reading stands for.
68256
68268
  *
68269
+ * **A cell's `data-tone` colors its own bar**, such as `data-tone="primary"`
68270
+ * on the one reading a chart is about, so one column of numbers can single
68271
+ * a bar out without a second column to color it. Without one, a bar takes
68272
+ * its series' color.
68273
+ *
68257
68274
  * **`data` takes the readings as data** where the page has no table to point
68258
68275
  * `for` at, in a table's shape: the column headings, then one row per reading
68259
68276
  * with its label first. A table is still the better source where the page can
@@ -68535,6 +68552,13 @@ export type CustomElementsSolidJs = {
68535
68552
  *
68536
68553
  * - `--bar-chart-axis`: The width of an axis, in `ch`, set from the widest number on it. The chart sets it on the axis itself, and only when the categories run along the bottom. In a horizontal chart the axis is a row, one line high.
68537
68554
  * - `--bar-chart-secondary`: The color of the secondary axis, when one series is on it. The chart sets it from that series' `--chart-series-*` property, so the axis is drawn in whatever color that property resolves to.
68555
+ * - `--bar-chart-tone-accent`: The color of a bar whose cell says `data-tone="accent"`.
68556
+ * - `--bar-chart-tone-danger`: The color of a bar whose cell says `data-tone="danger"`.
68557
+ * - `--bar-chart-tone-info`: The color of a bar whose cell says `data-tone="info"`.
68558
+ * - `--bar-chart-tone-muted`: The color of a bar whose cell says `data-tone="muted"`.
68559
+ * - `--bar-chart-tone-primary`: The color of a bar whose cell says `data-tone="primary"`. A tone with no property of its own falls back to the bar's series color, and the same holds for a name you define.
68560
+ * - `--bar-chart-tone-success`: The color of a bar whose cell says `data-tone="success"`.
68561
+ * - `--bar-chart-tone-warning`: The color of a bar whose cell says `data-tone="warning"`.
68538
68562
  * - `--chart-bar-wash`: The gradient for a bar, named per bar so the styled tier can use it as the `fill`. It is always drawn, and used only when `wash="gradient"` is set.
68539
68563
  *
68540
68564
  * ## CSS Parts
@@ -96959,6 +96983,20 @@ export type CustomCssProperties = {
96959
96983
  "--bar-chart-axis"?: (string) | undefined;
96960
96984
  /** The color of the secondary axis, when one series is on it. The chart sets it from that series' `--chart-series-*` property, so the axis is drawn in whatever color that property resolves to. */
96961
96985
  "--bar-chart-secondary"?: (string) | undefined;
96986
+ /** The color of a bar whose cell says `data-tone="accent"`. */
96987
+ "--bar-chart-tone-accent"?: (string) | undefined;
96988
+ /** The color of a bar whose cell says `data-tone="danger"`. */
96989
+ "--bar-chart-tone-danger"?: (string) | undefined;
96990
+ /** The color of a bar whose cell says `data-tone="info"`. */
96991
+ "--bar-chart-tone-info"?: (string) | undefined;
96992
+ /** The color of a bar whose cell says `data-tone="muted"`. */
96993
+ "--bar-chart-tone-muted"?: (string) | undefined;
96994
+ /** The color of a bar whose cell says `data-tone="primary"`. A tone with no property of its own falls back to the bar's series color, and the same holds for a name you define. */
96995
+ "--bar-chart-tone-primary"?: (string) | undefined;
96996
+ /** The color of a bar whose cell says `data-tone="success"`. */
96997
+ "--bar-chart-tone-success"?: (string) | undefined;
96998
+ /** The color of a bar whose cell says `data-tone="warning"`. */
96999
+ "--bar-chart-tone-warning"?: (string) | undefined;
96962
97000
  /** The gradient for a bar, named per bar so the styled tier can use it as the `fill`. It is always drawn, and used only when `wash="gradient"` is set. */
96963
97001
  "--chart-bar-wash"?: (string) | undefined;
96964
97002
  /** Written on the control inside each toggle button of a group with `selection-mode`: `1` while it is pressed and `0` while it is not. Read it in a `::part(button)` rule to draw the pressed look. */
package/types/vue.d.ts CHANGED
@@ -19082,6 +19082,20 @@ export type CustomCssProperties = {
19082
19082
  "--bar-chart-axis"?: (string) | undefined;
19083
19083
  /** The color of the secondary axis, when one series is on it. The chart sets it from that series' `--chart-series-*` property, so the axis is drawn in whatever color that property resolves to. */
19084
19084
  "--bar-chart-secondary"?: (string) | undefined;
19085
+ /** The color of a bar whose cell says `data-tone="accent"`. */
19086
+ "--bar-chart-tone-accent"?: (string) | undefined;
19087
+ /** The color of a bar whose cell says `data-tone="danger"`. */
19088
+ "--bar-chart-tone-danger"?: (string) | undefined;
19089
+ /** The color of a bar whose cell says `data-tone="info"`. */
19090
+ "--bar-chart-tone-info"?: (string) | undefined;
19091
+ /** The color of a bar whose cell says `data-tone="muted"`. */
19092
+ "--bar-chart-tone-muted"?: (string) | undefined;
19093
+ /** The color of a bar whose cell says `data-tone="primary"`. A tone with no property of its own falls back to the bar's series color, and the same holds for a name you define. */
19094
+ "--bar-chart-tone-primary"?: (string) | undefined;
19095
+ /** The color of a bar whose cell says `data-tone="success"`. */
19096
+ "--bar-chart-tone-success"?: (string) | undefined;
19097
+ /** The color of a bar whose cell says `data-tone="warning"`. */
19098
+ "--bar-chart-tone-warning"?: (string) | undefined;
19085
19099
  /** The gradient for a bar, named per bar so the styled tier can use it as the `fill`. It is always drawn, and used only when `wash="gradient"` is set. */
19086
19100
  "--chart-bar-wash"?: (string) | undefined;
19087
19101
  /** Written on the control inside each toggle button of a group with `selection-mode`: `1` while it is pressed and `0` while it is not. Read it in a `::part(button)` rule to draw the pressed look. */
@@ -19320,7 +19334,7 @@ export interface WcToolkitVueGlobalComponents {
19320
19334
  HelixHeadlessBadgeVueProps,
19321
19335
  HelixHeadlessBadgeVueEvents
19322
19336
  >;
19323
- /** Every bar is measured from zero, and no property changes the baseline, because a bar's length is its value. To show the differences between values, use a line chart. The labels are HTML beside the drawing. An '<svg>' that fills its box scales the text inside it: the same 'font-size' renders at 10px in a narrow chart and 43px in a wide one, and SVG has no setting that keeps text at one size the way 'vector-effect' does for strokes. The table is the accessible representation, and the drawing is hidden from screen readers, so they get the numbers themselves. The 'summary' part names the chart, from 'label' or the table's caption, and gives each series' highest reading. **The plot is read by key.** It takes focus, named by 'label' or the caption. The arrows along the categories move from one to the next, which is left and right for columns and up and down for 'orientation="horizontal"'. Home and End go to the first and the last, and the other pair of arrows moves among the series of a category. The tooltip follows, the 'live' part says the reading in words, and Escape puts the tooltip away. The component writes the custom properties below with numbers it computes, and the stylesheet that draws the chart reads them. Do not set them yourself. **A tap shows the reading under it**, and keeps it until a tap lands elsewhere. 'helix-reading-change' says each move of the reading, by pointer, tap or key, and 'helix-reading-press' says a reading was clicked, tapped, or pressed with Enter or Space, for a page that opens what a reading stands for. **'data' takes the readings as data** where the page has no table to point 'for' at, in a table's shape: the column headings, then one row per reading with its label first. A table is still the better source where the page can show one, since it reads before any script runs. **A chart with nothing to draw says so.** A table with no readings shows 'empty-text', "No readings", in the plot, and 'loading' shows 'loading-text' there until readings arrive. The 'empty' and 'loading' slots take markup in their place, such as a link to add the first reading. **Keyboard.** The plot is one tab stop. | Key | What it does | |---|---| | Tab | Moves focus to the plot and shows the first reading. | | Right, Left | Moves to the next or the previous reading. On a right-to-left page, Left moves to the next. | | Down, Up | Moves among the series of the reading. With one series, moves to the next or the previous reading. | | Down, Up under 'orientation="horizontal"' | Moves to the next or the previous reading, and Right and Left move among the series. | | Home, End | Moves to the first or the last reading. | | Page Down, Page Up | Moves a tenth of the readings on or back. | | Enter, Space | Presses the reading shown, which sends 'helix-reading-press'. | | Escape | Puts the reading and its tooltip away. | */
19337
+ /** Every bar is measured from zero, and no property changes the baseline, because a bar's length is its value. To show the differences between values, use a line chart. The labels are HTML beside the drawing. An '<svg>' that fills its box scales the text inside it: the same 'font-size' renders at 10px in a narrow chart and 43px in a wide one, and SVG has no setting that keeps text at one size the way 'vector-effect' does for strokes. The table is the accessible representation, and the drawing is hidden from screen readers, so they get the numbers themselves. The 'summary' part names the chart, from 'label' or the table's caption, and gives each series' highest reading. **The plot is read by key.** It takes focus, named by 'label' or the caption. The arrows along the categories move from one to the next, which is left and right for columns and up and down for 'orientation="horizontal"'. Home and End go to the first and the last, and the other pair of arrows moves among the series of a category. The tooltip follows, the 'live' part says the reading in words, and Escape puts the tooltip away. The component writes the custom properties below with numbers it computes, and the stylesheet that draws the chart reads them. Do not set them yourself. **A tap shows the reading under it**, and keeps it until a tap lands elsewhere. 'helix-reading-change' says each move of the reading, by pointer, tap or key, and 'helix-reading-press' says a reading was clicked, tapped, or pressed with Enter or Space, for a page that opens what a reading stands for. **A cell's 'data-tone' colors its own bar**, such as 'data-tone="primary"' on the one reading a chart is about, so one column of numbers can single a bar out without a second column to color it. Without one, a bar takes its series' color. **'data' takes the readings as data** where the page has no table to point 'for' at, in a table's shape: the column headings, then one row per reading with its label first. A table is still the better source where the page can show one, since it reads before any script runs. **A chart with nothing to draw says so.** A table with no readings shows 'empty-text', "No readings", in the plot, and 'loading' shows 'loading-text' there until readings arrive. The 'empty' and 'loading' slots take markup in their place, such as a link to add the first reading. **Keyboard.** The plot is one tab stop. | Key | What it does | |---|---| | Tab | Moves focus to the plot and shows the first reading. | | Right, Left | Moves to the next or the previous reading. On a right-to-left page, Left moves to the next. | | Down, Up | Moves among the series of the reading. With one series, moves to the next or the previous reading. | | Down, Up under 'orientation="horizontal"' | Moves to the next or the previous reading, and Right and Left move among the series. | | Home, End | Moves to the first or the last reading. | | Page Down, Page Up | Moves a tenth of the readings on or back. | | Enter, Space | Presses the reading shown, which sends 'helix-reading-press'. | | Escape | Puts the reading and its tooltip away. | */
19324
19338
  "helix-headless-bar-chart": DefineCustomElement<
19325
19339
  HelixHeadlessBarChart,
19326
19340
  HelixHeadlessBarChartVueProps,