@primer/view-components 0.1.5-rc.f1ff56c5 → 0.1.5

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.
@@ -3,6 +3,8 @@
3
3
  "Primer::Alpha::ActionList::Divider": "",
4
4
  "Primer::Alpha::ActionList::Heading": "",
5
5
  "Primer::Alpha::ActionList::Item": "",
6
+ "Primer::Alpha::ActionMenu": "",
7
+ "Primer::Alpha::ActionMenu::List": "",
6
8
  "Primer::Alpha::AutoComplete": "",
7
9
  "Primer::Alpha::AutoComplete::Item": "",
8
10
  "Primer::Alpha::Banner": "",
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "Primer::Alpha::ActionList": {
3
+ "DEFAULT_MENU_ITEM_ROLE": "menuitem",
3
4
  "DEFAULT_ROLE": "list",
4
5
  "DEFAULT_SCHEME": "full",
6
+ "DEFAULT_SELECT_VARIANT": "none",
5
7
  "Divider": "Primer::Alpha::ActionList::Divider",
6
8
  "Heading": "Primer::Alpha::ActionList::Heading",
7
9
  "Item": "Primer::Alpha::ActionList::Item",
10
+ "MENU_ROLE": "menu",
8
11
  "SCHEME_MAPPINGS": {
9
12
  "full": null,
10
13
  "inset": "ActionListWrap--inset"
@@ -12,7 +15,18 @@
12
15
  "SCHEME_OPTIONS": [
13
16
  "full",
14
17
  "inset"
15
- ]
18
+ ],
19
+ "SELECT_VARIANT_OPTIONS": [
20
+ "single",
21
+ "multiple",
22
+ "multiple_checkbox",
23
+ "none"
24
+ ],
25
+ "SELECT_VARIANT_ROLE_MAP": {
26
+ "single": "menuitemradio",
27
+ "multiple": "menuitemcheckbox",
28
+ "multiple_checkbox": "menuitemcheckbox"
29
+ }
16
30
  },
17
31
  "Primer::Alpha::ActionList::Divider": {
18
32
  "DEFAULT_SCHEME": "subtle",
@@ -77,6 +91,31 @@
77
91
  "xlarge"
78
92
  ]
79
93
  },
94
+ "Primer::Alpha::ActionMenu": {
95
+ "DEFAULT_PRELOAD": false,
96
+ "DEFAULT_SELECT_VARIANT": "none",
97
+ "List": "Primer::Alpha::ActionMenu::List",
98
+ "SELECT_VARIANT_OPTIONS": [
99
+ "single",
100
+ "multiple",
101
+ "none"
102
+ ]
103
+ },
104
+ "Primer::Alpha::ActionMenu::List": {
105
+ "DEFAULT_ITEM_TAG": "span",
106
+ "ITEM_ACTION_OPTIONS": [
107
+ "classes",
108
+ "onclick",
109
+ "href",
110
+ "value"
111
+ ],
112
+ "ITEM_TAG_OPTIONS": [
113
+ "a",
114
+ "button",
115
+ "clipboard-copy",
116
+ "span"
117
+ ]
118
+ },
80
119
  "Primer::Alpha::AutoComplete": {
81
120
  "Item": "Primer::Alpha::AutoComplete::Item"
82
121
  },
@@ -420,7 +459,8 @@
420
459
  ],
421
460
  "ROLE_OPTIONS": [
422
461
  "dialog",
423
- "menu"
462
+ "menu",
463
+ null
424
464
  ],
425
465
  "SIZE_MAPPINGS": {
426
466
  "auto": "Overlay--size-auto",