Skip to content

Commit 3393f3c

Browse files
committed
Generating static files
1 parent 668a48f commit 3393f3c

6 files changed

Lines changed: 280 additions & 910 deletions

File tree

static/arguments.json

Lines changed: 68 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,77 @@
325325
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu.rb",
326326
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/default/",
327327
"parameters": [
328+
{
329+
"name": "menu_id",
330+
"type": "String",
331+
"default": "`self.class.generate_id`",
332+
"description": "Id of the menu."
333+
},
334+
{
335+
"name": "anchor_align",
336+
"type": "Symbol",
337+
"default": "`:start`",
338+
"description": "One of `:center`, `:end`, or `:start`.."
339+
},
340+
{
341+
"name": "anchor_side",
342+
"type": "Symbol",
343+
"default": "`:outside_bottom`",
344+
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`.."
345+
},
346+
{
347+
"name": "size",
348+
"type": "Symbol",
349+
"default": "`:auto`",
350+
"description": "One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`.."
351+
},
352+
{
353+
"name": "src",
354+
"type": "String",
355+
"default": "`nil`",
356+
"description": "Used with an `include-fragment` element to load menu content from the given source URL."
357+
},
358+
{
359+
"name": "preload",
360+
"type": "Boolean",
361+
"default": "`false`",
362+
"description": "When true, and src is present, loads the `include-fragment` on trigger hover."
363+
},
364+
{
365+
"name": "dynamic_label",
366+
"type": "Boolean",
367+
"default": "`false`",
368+
"description": "Whether or not to display the text of the currently selected item in the show button."
369+
},
370+
{
371+
"name": "dynamic_label_prefix",
372+
"type": "String",
373+
"default": "`nil`",
374+
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
375+
},
376+
{
377+
"name": "select_variant",
378+
"type": "Symbol",
379+
"default": "`:none`",
380+
"description": "One of `:multiple`, `:none`, or `:single`."
381+
},
382+
{
383+
"name": "form_arguments",
384+
"type": "Hash",
385+
"default": "`{}`",
386+
"description": "Allows an `ActionMenu` 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."
387+
},
388+
{
389+
"name": "overlay_arguments",
390+
"type": "Hash",
391+
"default": "`{}`",
392+
"description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
393+
},
328394
{
329395
"name": "system_arguments",
330396
"type": "Hash",
331397
"default": "N/A",
332-
"description": "The arguments accepted by [ActionMenu::PrimaryMenu](/components/alpha/actionmenuprimarymenu)."
398+
"description": "[System arguments](/system-arguments)."
333399
}
334400
]
335401
},
@@ -418,7 +484,7 @@
418484
"name": "system_arguments",
419485
"type": "Hash",
420486
"default": "N/A",
421-
"description": "The arguments accepted by [ActionMenu::ListWrapper](/components/alpha/actionmenulistwrapper)"
487+
"description": "The arguments accepted by [ActionList](/components/alpha/actionlist)"
422488
}
423489
]
424490
},
@@ -444,171 +510,6 @@
444510
}
445511
]
446512
},
447-
{
448-
"component": "ActionMenu::Menu",
449-
"status": "alpha",
450-
"a11y_reviewed": false,
451-
"short_name": "ActionMenuMenu",
452-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/menu.rb",
453-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/menu/default/",
454-
"parameters": [
455-
{
456-
"name": "anchor_align",
457-
"type": "Symbol",
458-
"default": "N/A",
459-
"description": "One of `:center`, `:end`, or `:start`."
460-
},
461-
{
462-
"name": "anchor_side",
463-
"type": "Symbol",
464-
"default": "N/A",
465-
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
466-
},
467-
{
468-
"name": "menu_id",
469-
"type": "String",
470-
"default": "`self.class.generate_id`",
471-
"description": "Id of the menu."
472-
},
473-
{
474-
"name": "size",
475-
"type": "Symbol",
476-
"default": "`:auto`",
477-
"description": "One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
478-
},
479-
{
480-
"name": "src",
481-
"type": "String",
482-
"default": "`nil`",
483-
"description": "Used with an `include-fragment` element to load menu content from the given source URL."
484-
},
485-
{
486-
"name": "preload",
487-
"type": "Boolean",
488-
"default": "`false`",
489-
"description": "When true, and src is present, loads the `include-fragment` on trigger hover."
490-
},
491-
{
492-
"name": "select_variant",
493-
"type": "Symbol",
494-
"default": "`:none`",
495-
"description": "One of `:multiple`, `:none`, or `:single`."
496-
},
497-
{
498-
"name": "form_arguments",
499-
"type": "Hash",
500-
"default": "`{}`",
501-
"description": "Allows an `ActionMenu` 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."
502-
},
503-
{
504-
"name": "overlay_arguments",
505-
"type": "Hash",
506-
"default": "`{}`",
507-
"description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
508-
},
509-
{
510-
"name": "list_arguments",
511-
"type": "Hash",
512-
"default": "`{}`",
513-
"description": "Arguments to pass to the underlying [ActionMenu::List](/components/alpha/actionmenulist)"
514-
},
515-
{
516-
"name": "system_arguments",
517-
"type": "Hash",
518-
"default": "N/A",
519-
"description": "[System arguments](/system-arguments)."
520-
}
521-
]
522-
},
523-
{
524-
"component": "ActionMenu::PrimaryMenu",
525-
"status": "alpha",
526-
"a11y_reviewed": false,
527-
"short_name": "ActionMenuPrimaryMenu",
528-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/primary_menu.rb",
529-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/primary_menu/default/",
530-
"parameters": [
531-
{
532-
"name": "anchor_align",
533-
"type": "Symbol",
534-
"default": "`:start`",
535-
"description": "One of `:center`, `:end`, or `:start`."
536-
},
537-
{
538-
"name": "anchor_side",
539-
"type": "Symbol",
540-
"default": "`:outside_bottom`",
541-
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
542-
},
543-
{
544-
"name": "dynamic_label",
545-
"type": "Boolean",
546-
"default": "`false`",
547-
"description": "Whether or not to display the text of the currently selected item in the show button."
548-
},
549-
{
550-
"name": "dynamic_label_prefix",
551-
"type": "String",
552-
"default": "`nil`",
553-
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
554-
},
555-
{
556-
"name": "system_arguments",
557-
"type": "Hash",
558-
"default": "N/A",
559-
"description": "[System arguments](/system-arguments)."
560-
}
561-
]
562-
},
563-
{
564-
"component": "ActionMenu::SubMenu",
565-
"status": "alpha",
566-
"a11y_reviewed": false,
567-
"short_name": "ActionMenuSubMenu",
568-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/sub_menu.rb",
569-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/sub_menu/default/",
570-
"parameters": [
571-
{
572-
"name": "menu_id",
573-
"type": "String",
574-
"default": "`self.class.generate_id`",
575-
"description": "Id of the menu."
576-
},
577-
{
578-
"name": "anchor_align",
579-
"type": "Symbol",
580-
"default": "`:start`",
581-
"description": "One of `:center`, `:end`, or `:start`."
582-
},
583-
{
584-
"name": "anchor_side",
585-
"type": "Symbol",
586-
"default": "`:outside_right`",
587-
"description": "One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`."
588-
},
589-
{
590-
"name": "overlay_arguments",
591-
"type": "Hash",
592-
"default": "`{}`",
593-
"description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
594-
},
595-
{
596-
"name": "system_arguments",
597-
"type": "Hash",
598-
"default": "N/A",
599-
"description": "[System arguments](/system-arguments)."
600-
}
601-
]
602-
},
603-
{
604-
"component": "ActionMenu::SubMenuItem",
605-
"status": "alpha",
606-
"a11y_reviewed": false,
607-
"short_name": "ActionMenuSubMenuItem",
608-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/sub_menu_item.rb",
609-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/sub_menu_item/default/",
610-
"parameters": []
611-
},
612513
{
613514
"component": "AutoComplete",
614515
"status": "deprecated",

static/audited_at.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
"Primer::Alpha::ActionMenu::Heading": "",
1313
"Primer::Alpha::ActionMenu::List": "",
1414
"Primer::Alpha::ActionMenu::ListWrapper": "2023-07-10",
15-
"Primer::Alpha::ActionMenu::Menu": "",
16-
"Primer::Alpha::ActionMenu::PrimaryMenu": "",
17-
"Primer::Alpha::ActionMenu::SubMenu": "",
18-
"Primer::Alpha::ActionMenu::SubMenuItem": "",
1915
"Primer::Alpha::AutoComplete": "",
2016
"Primer::Alpha::AutoComplete::Item": "",
2117
"Primer::Alpha::Banner": "",

static/constants.json

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,18 @@
152152
]
153153
},
154154
"Primer::Alpha::ActionMenu": {
155+
"DEFAULT_PRELOAD": false,
156+
"DEFAULT_SELECT_VARIANT": "none",
155157
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::GeneratedSlotMethods",
156158
"Group": "Primer::Alpha::ActionMenu::Group",
157159
"Heading": "Primer::Alpha::ActionMenu::Heading",
158160
"List": "Primer::Alpha::ActionMenu::List",
159161
"ListWrapper": "Primer::Alpha::ActionMenu::ListWrapper",
160-
"Menu": "Primer::Alpha::ActionMenu::Menu",
161-
"PrimaryMenu": "Primer::Alpha::ActionMenu::PrimaryMenu",
162-
"SubMenu": "Primer::Alpha::ActionMenu::SubMenu",
163-
"SubMenuItem": "Primer::Alpha::ActionMenu::SubMenuItem"
162+
"SELECT_VARIANT_OPTIONS": [
163+
"single",
164+
"multiple",
165+
"none"
166+
]
164167
},
165168
"Primer::Alpha::ActionMenu::Group": {
166169
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::Group::GeneratedSlotMethods"
@@ -180,29 +183,6 @@
180183
"Primer::Alpha::ActionMenu::ListWrapper": {
181184
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::ListWrapper::GeneratedSlotMethods"
182185
},
183-
"Primer::Alpha::ActionMenu::Menu": {
184-
"DEFAULT_PRELOAD": false,
185-
"DEFAULT_SELECT_VARIANT": "none",
186-
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::Menu::GeneratedSlotMethods",
187-
"SELECT_VARIANT_OPTIONS": [
188-
"single",
189-
"multiple",
190-
"none"
191-
]
192-
},
193-
"Primer::Alpha::ActionMenu::PrimaryMenu": {
194-
"DEFAULT_ANCHOR_ALIGN": "start",
195-
"DEFAULT_ANCHOR_SIDE": "outside_bottom",
196-
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::PrimaryMenu::GeneratedSlotMethods"
197-
},
198-
"Primer::Alpha::ActionMenu::SubMenu": {
199-
"DEFAULT_ANCHOR_ALIGN": "start",
200-
"DEFAULT_ANCHOR_SIDE": "outside_right",
201-
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::SubMenu::GeneratedSlotMethods"
202-
},
203-
"Primer::Alpha::ActionMenu::SubMenuItem": {
204-
"GeneratedSlotMethods": "Primer::Alpha::ActionMenu::SubMenuItem::GeneratedSlotMethods"
205-
},
206186
"Primer::Alpha::AutoComplete": {
207187
"GeneratedSlotMethods": "Primer::Alpha::AutoComplete::GeneratedSlotMethods",
208188
"Item": "Primer::Alpha::AutoComplete::Item"

0 commit comments

Comments
 (0)