@fusion.dev/helix-headless 0.234.0 → 0.235.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.234.0",
4
+ "version": "0.235.1",
5
5
  "license": "MIT",
6
6
  "author": "Fusion Development Group",
7
7
  "repository": {
@@ -58,14 +58,14 @@
58
58
  },
59
59
  "bugs": "https://github.com/project-fusion/fusion/issues",
60
60
  "dependencies": {
61
- "@fusion.dev/helix-core": "0.234.0",
62
- "@fusion.dev/helix-icons": "0.234.0",
61
+ "@fusion.dev/helix-core": "0.235.1",
62
+ "@fusion.dev/helix-icons": "0.235.1",
63
63
  "tslib": "^2.8.1",
64
64
  "uqr": "^0.1.3"
65
65
  },
66
66
  "devDependencies": {
67
- "@fusion.dev/helix-cem": "0.234.0",
68
- "@fusion.dev/helix-testing": "0.234.0",
67
+ "@fusion.dev/helix-cem": "0.235.1",
68
+ "@fusion.dev/helix-testing": "0.235.1",
69
69
  "@fusion.dev/scripts": "0.0.0-dev",
70
70
  "@happy-dom/global-registrator": "^21.0.4",
71
71
  "@lit-labs/ssr": "^4.1.0",
package/types/jsx.d.ts CHANGED
@@ -14249,7 +14249,10 @@ The columns are the stylesheet's: the styled tier draws them at
14249
14249
  `--listbox-column-min-inline-size` or wider, and a headless list lays out
14250
14250
  `::part(items)` as it likes, since the keys read where each option is
14251
14251
  drawn. A list of `items` stays a stack. Left out, the list is a stack,
14252
- and the host carries no attribute for it. */
14252
+ and the host carries no attribute for it.
14253
+
14254
+ An option with an image in its `media` slot is drawn as a tile, the image
14255
+ above the label, for a picker of photos or products. */
14253
14256
  "layout"?: HelixHeadlessListbox["layout"] | undefined;
14254
14257
  /** The old name of `error-text`, read only where a page sets it. */
14255
14258
  "load-error"?: HelixHeadlessListbox["loadError"] | undefined;
@@ -38601,7 +38604,7 @@ interface Tags {
38601
38604
  * - `description`: A line under the label that describes the row. It describes the row to a screen reader and is not part of its name.
38602
38605
  * - `end`: Words after the label, such as a count or a detail, beside any `shortcut`. They describe the row and are not part of its name.
38603
38606
  * - `start`: Content before the label, such as an icon.
38604
- * - `submenu`: The rows of a submenu that this row opens.
38607
+ * - `submenu`: The rows of a submenu that this row opens, each a menu item placed directly in the slot.
38605
38608
  *
38606
38609
  * ## Methods
38607
38610
  *
@@ -38669,6 +38672,14 @@ interface Tags {
38669
38672
  * its heading. Between runs of rows, a `<helix-divider>` is a separator a
38670
38673
  * screen reader announces.
38671
38674
  *
38675
+ * **A row goes directly in the menu, in a `Menu.Section`, or in another row's
38676
+ * `submenu` slot.** The menu reads rows in those places only. A row inside an
38677
+ * element of your own, such as a `<div>` or a component's host element, is
38678
+ * skipped by the arrow keys, and a drilled page hides that element with the
38679
+ * rest of the top page, so the row's submenu shows none of its rows. A
38680
+ * development build warns about it as `wrapped-row`. In a framework, render a
38681
+ * component's rows without a wrapper element, such as with a fragment.
38682
+ *
38672
38683
  * Keys: Enter, Space or Down Arrow on the trigger opens the menu on its first
38673
38684
  * row, and Up Arrow on its last. In the menu, Up and Down Arrow move between
38674
38685
  * rows, Home and End go to the first and the last, a typed letter moves to
@@ -39691,11 +39702,17 @@ interface Tags {
39691
39702
  * nothing, as an entry in a command palette that goes to a page does.
39692
39703
  *
39693
39704
  * The option's name is its label alone, as React Aria's `slot="label"` makes
39694
- * it: what is in `start` and `end`, an avatar's initials or a shortcut, is
39695
- * drawn and not read as part of the name. The description is read as the
39705
+ * it: what is in `start`, `end` and `media`, an avatar's initials, a shortcut
39706
+ * or a photo, is drawn and not read as part of the name. The description is read as the
39696
39707
  * option's description. A name you give with `aria-label` or
39697
39708
  * `aria-labelledby` wins over both.
39698
39709
  *
39710
+ * **An image goes in `media`, above the label**, for an option drawn as a
39711
+ * tile, such as a photo or a product in a listbox with `layout="grid"`. The
39712
+ * row is still the option: choosing, the arrow keys and the highlight work as
39713
+ * they do on a row with no image, and the label stays its name, so give the
39714
+ * image an empty `alt`.
39715
+ *
39699
39716
  * ## Attributes & Properties
39700
39717
  *
39701
39718
  * - `data-active`
@@ -39724,6 +39741,7 @@ interface Tags {
39724
39741
  * - `description`: A second line under the label, for content richer than the `description` text.
39725
39742
  * - `end`: Content after the label, such as a shortcut or a count.
39726
39743
  * - `indicator`: An icon shown while the option is chosen, in place of the check the styled option draws.
39744
+ * - `media`: An image above the label, for an option drawn as a tile.
39727
39745
  * - `start`: Content before the label, such as an icon or an avatar.
39728
39746
  *
39729
39747
  * ## Methods
@@ -39744,6 +39762,7 @@ interface Tags {
39744
39762
  * - `active`: While the keyboard is on the option, which is the option `aria-activedescendant` names.
39745
39763
  * - `disabled`: While the option cannot be chosen.
39746
39764
  * - `has-indicator`: An icon is slotted into `indicator`.
39765
+ * - `has-media`: Something is slotted into `media`.
39747
39766
  * - `hovered`: While a mouse or a pen is over the option. A touch sets no hover, as React Aria's `data-hovered` does not.
39748
39767
  * - `pressing`: While a pointer presses the option, from the press to the release.
39749
39768
  * - `selected`: While the option is chosen.
package/types/vue.d.ts CHANGED
@@ -9534,7 +9534,10 @@ The columns are the stylesheet's: the styled tier draws them at
9534
9534
  `--listbox-column-min-inline-size` or wider, and a headless list lays out
9535
9535
  `::part(items)` as it likes, since the keys read where each option is
9536
9536
  drawn. A list of `items` stays a stack. Left out, the list is a stack,
9537
- and the host carries no attribute for it. */
9537
+ and the host carries no attribute for it.
9538
+
9539
+ An option with an image in its `media` slot is drawn as a tile, the image
9540
+ above the label, for a picker of photos or products. */
9538
9541
  "layout"?: HelixHeadlessListbox["layout"] | undefined;
9539
9542
  /** The old name of `error-text`, read only where a page sets it. */
9540
9543
  "load-error"?: HelixHeadlessListbox["loadError"] | undefined;
@@ -23622,6 +23625,14 @@ export interface HelixVueGlobalComponents {
23622
23625
  * its heading. Between runs of rows, a `<helix-divider>` is a separator a
23623
23626
  * screen reader announces.
23624
23627
  *
23628
+ * **A row goes directly in the menu, in a `Menu.Section`, or in another row's
23629
+ * `submenu` slot.** The menu reads rows in those places only. A row inside an
23630
+ * element of your own, such as a `<div>` or a component's host element, is
23631
+ * skipped by the arrow keys, and a drilled page hides that element with the
23632
+ * rest of the top page, so the row's submenu shows none of its rows. A
23633
+ * development build warns about it as `wrapped-row`. In a framework, render a
23634
+ * component's rows without a wrapper element, such as with a fragment.
23635
+ *
23625
23636
  * Keys: Enter, Space or Down Arrow on the trigger opens the menu on its first
23626
23637
  * row, and Up Arrow on its last. In the menu, Up and Down Arrow move between
23627
23638
  * rows, Home and End go to the first and the last, a typed letter moves to
@@ -24056,10 +24067,16 @@ export interface HelixVueGlobalComponents {
24056
24067
  * nothing, as an entry in a command palette that goes to a page does.
24057
24068
  *
24058
24069
  * The option's name is its label alone, as React Aria's `slot="label"` makes
24059
- * it: what is in `start` and `end`, an avatar's initials or a shortcut, is
24060
- * drawn and not read as part of the name. The description is read as the
24070
+ * it: what is in `start`, `end` and `media`, an avatar's initials, a shortcut
24071
+ * or a photo, is drawn and not read as part of the name. The description is read as the
24061
24072
  * option's description. A name you give with `aria-label` or
24062
24073
  * `aria-labelledby` wins over both.
24074
+ *
24075
+ * **An image goes in `media`, above the label**, for an option drawn as a
24076
+ * tile, such as a photo or a product in a listbox with `layout="grid"`. The
24077
+ * row is still the option: choosing, the arrow keys and the highlight work as
24078
+ * they do on a row with no image, and the label stays its name, so give the
24079
+ * image an empty `alt`.
24063
24080
  */
24064
24081
  "helix-headless-option": DefineCustomElement<HelixHeadlessOption, HelixHeadlessOptionVueProps, HelixHeadlessOptionVueEvents>;
24065
24082
  /**