@primitiv-ui/core 0.1.57 → 0.1.58

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.
@@ -1,5 +1,6 @@
1
1
  /** A menu's enabled items, as the selector a host finds them with: every item role, bar the disabled. */
2
- export const MENU_ITEM_SELECTOR = '[role="menuitem"]:not([aria-disabled="true"]), [role="menuitemcheckbox"]:not([aria-disabled="true"]), [role="menuitemradio"]:not([aria-disabled="true"])';
2
+ // `^=` matches exactly the three item roles: menuitem, menuitemcheckbox and menuitemradio.
3
+ export const MENU_ITEM_SELECTOR = '[role^="menuitem"]:not([aria-disabled="true"])';
3
4
  /**
4
5
  * The menu's keyboard contract (WAI-ARIA APG Menu Button): the arrows move
5
6
  * through the items and wrap, Home and End jump to the ends, Enter and Space
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitiv-ui/core",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "The framework-free behaviour core shared by every Primitiv surface — keyboard maps, roving-focus targets, id derivation and per-component policy, as pure functions with no DOM and no dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",