@fusion.dev/helix-headless 0.181.2 → 0.182.1

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.2",
4
+ "version": "0.182.1",
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.2",
53
- "@fusion.dev/helix-icons": "0.181.2",
52
+ "@fusion.dev/helix-core": "0.182.1",
53
+ "@fusion.dev/helix-icons": "0.182.1",
54
54
  "uqr": "^0.1.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@fusion.dev/helix-cem": "0.181.2",
58
- "@fusion.dev/helix-testing": "0.181.2",
57
+ "@fusion.dev/helix-cem": "0.182.1",
58
+ "@fusion.dev/helix-testing": "0.182.1",
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
@@ -38856,7 +38868,8 @@ export type CustomElements = {
38856
38868
  * - `axis`: The numbers of one scale: the primary under `value-axis`, and both when `secondary` splits the chart into two scales.
38857
38869
  * - `band`: The category band under the pointer.
38858
38870
  * - `bar`: One column. Under `stacked`, one segment of a category's column.
38859
- * - `bar-end`: Under `stacked`, the segment at a column's far end: the last positive segment above zero and the last negative one below it. Its `data-end` is `positive` or `negative`. A blank or a zero segment is never the end. Set together with `bar`.
38871
+ * - `bar-end`: The bar at a column's far end, the end away from zero, which is the end to round. A column standing alone is its own far end. Under `stacked`, the last positive segment above zero and the last negative one below it. Its `data-end` is `positive` or `negative`. A blank or a zero is never the end. Set together with `bar`.
38872
+ * - `bar-end-negative`: A far end below zero, whose far end is its bottom, or its inline start when the bars run across. Set together with `bar-end`.
38860
38873
  * - `bar-wash-end`: The far stop of a bar's gradient, where one is used.
38861
38874
  * - `bar-wash-start`: The stop of a bar's gradient at its base.
38862
38875
  * - `baseline`: The line the columns stand on.
@@ -68254,6 +68267,11 @@ export type CustomElementsSolidJs = {
68254
68267
  * tap or key, and `helix-reading-press` says a reading was clicked, tapped, or
68255
68268
  * pressed with Enter or Space, for a page that opens what a reading stands for.
68256
68269
  *
68270
+ * **A cell's `data-tone` colors its own bar**, such as `data-tone="primary"`
68271
+ * on the one reading a chart is about, so one column of numbers can single
68272
+ * a bar out without a second column to color it. Without one, a bar takes
68273
+ * its series' color.
68274
+ *
68257
68275
  * **`data` takes the readings as data** where the page has no table to point
68258
68276
  * `for` at, in a table's shape: the column headings, then one row per reading
68259
68277
  * with its label first. A table is still the better source where the page can
@@ -68535,6 +68553,13 @@ export type CustomElementsSolidJs = {
68535
68553
  *
68536
68554
  * - `--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
68555
  * - `--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.
68556
+ * - `--bar-chart-tone-accent`: The color of a bar whose cell says `data-tone="accent"`.
68557
+ * - `--bar-chart-tone-danger`: The color of a bar whose cell says `data-tone="danger"`.
68558
+ * - `--bar-chart-tone-info`: The color of a bar whose cell says `data-tone="info"`.
68559
+ * - `--bar-chart-tone-muted`: The color of a bar whose cell says `data-tone="muted"`.
68560
+ * - `--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.
68561
+ * - `--bar-chart-tone-success`: The color of a bar whose cell says `data-tone="success"`.
68562
+ * - `--bar-chart-tone-warning`: The color of a bar whose cell says `data-tone="warning"`.
68538
68563
  * - `--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
68564
  *
68540
68565
  * ## CSS Parts
@@ -68544,7 +68569,8 @@ export type CustomElementsSolidJs = {
68544
68569
  * - `axis`: The numbers of one scale: the primary under `value-axis`, and both when `secondary` splits the chart into two scales.
68545
68570
  * - `band`: The category band under the pointer.
68546
68571
  * - `bar`: One column. Under `stacked`, one segment of a category's column.
68547
- * - `bar-end`: Under `stacked`, the segment at a column's far end: the last positive segment above zero and the last negative one below it. Its `data-end` is `positive` or `negative`. A blank or a zero segment is never the end. Set together with `bar`.
68572
+ * - `bar-end`: The bar at a column's far end, the end away from zero, which is the end to round. A column standing alone is its own far end. Under `stacked`, the last positive segment above zero and the last negative one below it. Its `data-end` is `positive` or `negative`. A blank or a zero is never the end. Set together with `bar`.
68573
+ * - `bar-end-negative`: A far end below zero, whose far end is its bottom, or its inline start when the bars run across. Set together with `bar-end`.
68548
68574
  * - `bar-wash-end`: The far stop of a bar's gradient, where one is used.
68549
68575
  * - `bar-wash-start`: The stop of a bar's gradient at its base.
68550
68576
  * - `baseline`: The line the columns stand on.
@@ -96959,6 +96985,20 @@ export type CustomCssProperties = {
96959
96985
  "--bar-chart-axis"?: (string) | undefined;
96960
96986
  /** 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
96987
  "--bar-chart-secondary"?: (string) | undefined;
96988
+ /** The color of a bar whose cell says `data-tone="accent"`. */
96989
+ "--bar-chart-tone-accent"?: (string) | undefined;
96990
+ /** The color of a bar whose cell says `data-tone="danger"`. */
96991
+ "--bar-chart-tone-danger"?: (string) | undefined;
96992
+ /** The color of a bar whose cell says `data-tone="info"`. */
96993
+ "--bar-chart-tone-info"?: (string) | undefined;
96994
+ /** The color of a bar whose cell says `data-tone="muted"`. */
96995
+ "--bar-chart-tone-muted"?: (string) | undefined;
96996
+ /** 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. */
96997
+ "--bar-chart-tone-primary"?: (string) | undefined;
96998
+ /** The color of a bar whose cell says `data-tone="success"`. */
96999
+ "--bar-chart-tone-success"?: (string) | undefined;
97000
+ /** The color of a bar whose cell says `data-tone="warning"`. */
97001
+ "--bar-chart-tone-warning"?: (string) | undefined;
96962
97002
  /** 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
97003
  "--chart-bar-wash"?: (string) | undefined;
96964
97004
  /** 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,