@primer/view-components 0.27.0-rc.565a31e6 → 0.27.0-rc.7451d0f2

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.
@@ -11,7 +11,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _FocusGroupElement_instances, _FocusGroupElement_retainSignal, _FocusGroupElement_abortController, _FocusGroupElement_items_get;
13
13
  import '@oddbird/popover-polyfill';
14
- const validSelectors = ['[role="menuitem"]', '[role="menuitemcheckbox"]', '[role="menuitemradio"]'];
14
+ const validSelectors = ['[role="menuitem"]', '[role="menuitemcheckbox"]', '[role="menuitemradio"]', '[role="option"]'];
15
15
  const menuItemSelector = validSelectors.map(selector => `:not([hidden]) > ${selector}`).join(', ');
16
16
  const getMnemonicFor = (item) => item.textContent?.trim()[0].toLowerCase();
17
17
  const printable = /^\S$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.27.0-rc.565a31e6",
3
+ "version": "0.27.0-rc.7451d0f2",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -19,7 +19,9 @@
19
19
  "Primer::Alpha::ActionBar::Item": {
20
20
  },
21
21
  "Primer::Alpha::ActionList": {
22
+ "LIST_BOX_ITEM_ROLE": "option",
22
23
  "DEFAULT_MENU_ITEM_ROLE": "menuitem",
24
+ "DEFAULT_ARIA_SELECTION_VARIANT": "checked",
23
25
  "DEFAULT_ROLE": "list",
24
26
  "DEFAULT_SCHEME": "full",
25
27
  "DEFAULT_SELECT_VARIANT": "none",
@@ -42,6 +44,10 @@
42
44
  "multiple_checkbox",
43
45
  "none"
44
46
  ],
47
+ "ARIA_SELECTION_VARIANT_OPTIONS": [
48
+ "selected",
49
+ "checked"
50
+ ],
45
51
  "SELECT_VARIANT_ROLE_MAP": {
46
52
  "single": "menuitemradio",
47
53
  "multiple": "menuitemcheckbox",