@primer/view-components 0.14.1-rc.758f7715 → 0.15.0-rc.22e6d987

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.14.1-rc.758f7715",
3
+ "version": "0.15.0-rc.22e6d987",
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",
@@ -386,12 +386,97 @@
386
386
  ]
387
387
  },
388
388
  {
389
- "component": "ActionMenu::List",
389
+ "component": "ActionMenu::Group",
390
390
  "status": "alpha",
391
391
  "a11y_reviewed": true,
392
+ "short_name": "ActionMenuGroup",
393
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/group.rb",
394
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/group/default/",
395
+ "parameters": [
396
+ {
397
+ "name": "id",
398
+ "type": "String",
399
+ "default": "`self.class.generate_id`",
400
+ "description": "HTML ID value."
401
+ },
402
+ {
403
+ "name": "role",
404
+ "type": "Boolean",
405
+ "default": "`nil`",
406
+ "description": "ARIA role describing the function of the list. listbox and menu are a common values."
407
+ },
408
+ {
409
+ "name": "item_classes",
410
+ "type": "String",
411
+ "default": "`nil`",
412
+ "description": "Additional CSS classes to attach to items."
413
+ },
414
+ {
415
+ "name": "scheme",
416
+ "type": "Symbol",
417
+ "default": "`:full`",
418
+ "description": "One of `:full` or `:inset`. `inset` children are offset (vertically and horizontally) from list edges. `full` (default) children are flush (vertically and horizontally) with list edges."
419
+ },
420
+ {
421
+ "name": "show_dividers",
422
+ "type": "Boolean",
423
+ "default": "`false`",
424
+ "description": "Display a divider above each item in the list when it does not follow a header or divider."
425
+ },
426
+ {
427
+ "name": "select_variant",
428
+ "type": "Symbol",
429
+ "default": "`:none`",
430
+ "description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
431
+ },
432
+ {
433
+ "name": "form_arguments",
434
+ "type": "Hash",
435
+ "default": "`{}`",
436
+ "description": "Allows an `ActionList` to act as a select list in multi- and single-select modes. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission. *NOTE*: Consider using an [ActionMenu](/components/alpha/actionmenu) instead of using this feature directly."
437
+ },
438
+ {
439
+ "name": "system_arguments",
440
+ "type": "Hash",
441
+ "default": "N/A",
442
+ "description": "[System arguments](/system-arguments)"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "component": "ActionMenu::Heading",
448
+ "status": "alpha",
449
+ "a11y_reviewed": false,
450
+ "short_name": "ActionMenuHeading",
451
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/heading.rb",
452
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/heading/default/",
453
+ "parameters": [
454
+
455
+ ]
456
+ },
457
+ {
458
+ "component": "ActionMenu::List",
459
+ "status": "alpha",
460
+ "a11y_reviewed": false,
392
461
  "short_name": "ActionMenuList",
393
462
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/list.rb",
394
463
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/list/default/",
464
+ "parameters": [
465
+ {
466
+ "name": "system_arguments",
467
+ "type": "Hash",
468
+ "default": "N/A",
469
+ "description": "The arguments accepted by [ActionMenu::List](/components/alpha/actionmenulist)"
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "component": "ActionMenu::ListWrapper",
475
+ "status": "alpha",
476
+ "a11y_reviewed": true,
477
+ "short_name": "ActionMenuListWrapper",
478
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/list_wrapper.rb",
479
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/list_wrapper/default/",
395
480
  "parameters": [
396
481
  {
397
482
  "name": "menu_id",
@@ -8,7 +8,10 @@
8
8
  "Primer::Alpha::ActionList::Heading": "",
9
9
  "Primer::Alpha::ActionList::Item": "",
10
10
  "Primer::Alpha::ActionMenu": "",
11
- "Primer::Alpha::ActionMenu::List": "2023-07-10",
11
+ "Primer::Alpha::ActionMenu::Group": "2023-07-10",
12
+ "Primer::Alpha::ActionMenu::Heading": "",
13
+ "Primer::Alpha::ActionMenu::List": "",
14
+ "Primer::Alpha::ActionMenu::ListWrapper": "2023-07-10",
12
15
  "Primer::Alpha::AutoComplete": "",
13
16
  "Primer::Alpha::AutoComplete::Item": "",
14
17
  "Primer::Alpha::Banner": "",
@@ -125,13 +125,20 @@
125
125
  "Primer::Alpha::ActionMenu": {
126
126
  "DEFAULT_PRELOAD": false,
127
127
  "DEFAULT_SELECT_VARIANT": "none",
128
+ "Group": "Primer::Alpha::ActionMenu::Group",
129
+ "Heading": "Primer::Alpha::ActionMenu::Heading",
128
130
  "List": "Primer::Alpha::ActionMenu::List",
131
+ "ListWrapper": "Primer::Alpha::ActionMenu::ListWrapper",
129
132
  "SELECT_VARIANT_OPTIONS": [
130
133
  "single",
131
134
  "multiple",
132
135
  "none"
133
136
  ]
134
137
  },
138
+ "Primer::Alpha::ActionMenu::Group": {
139
+ },
140
+ "Primer::Alpha::ActionMenu::Heading": {
141
+ },
135
142
  "Primer::Alpha::ActionMenu::List": {
136
143
  "DEFAULT_ITEM_TAG": "button",
137
144
  "ITEM_TAG_OPTIONS": [
@@ -140,6 +147,8 @@
140
147
  "button"
141
148
  ]
142
149
  },
150
+ "Primer::Alpha::ActionMenu::ListWrapper": {
151
+ },
143
152
  "Primer::Alpha::AutoComplete": {
144
153
  "Item": "Primer::Alpha::AutoComplete::Item"
145
154
  },