@primer/view-components 0.1.7-rc.98e43f7a → 0.1.7-rc.b2a7d2ac
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 +1 -1
- package/static/arguments.json +2 -31
- package/static/audited_at.json +0 -1
- package/static/constants.json +0 -12
- package/static/info_arch.json +11 -86
- package/static/previews.json +0 -10
- package/static/statuses.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.1.7-rc.
|
|
3
|
+
"version": "0.1.7-rc.b2a7d2ac",
|
|
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",
|
package/static/arguments.json
CHANGED
|
@@ -43,12 +43,6 @@
|
|
|
43
43
|
"default": "`:none`",
|
|
44
44
|
"description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
|
|
45
45
|
},
|
|
46
|
-
{
|
|
47
|
-
"name": "form_arguments",
|
|
48
|
-
"type": "Hash",
|
|
49
|
-
"default": "`{}`",
|
|
50
|
-
"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."
|
|
51
|
-
},
|
|
52
46
|
{
|
|
53
47
|
"name": "system_arguments",
|
|
54
48
|
"type": "Hash",
|
|
@@ -79,17 +73,6 @@
|
|
|
79
73
|
}
|
|
80
74
|
]
|
|
81
75
|
},
|
|
82
|
-
{
|
|
83
|
-
"component": "ActionList::FormWrapper",
|
|
84
|
-
"status": "alpha",
|
|
85
|
-
"a11y_reviewed": false,
|
|
86
|
-
"short_name": "ActionListFormWrapper",
|
|
87
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list/form_wrapper.rb",
|
|
88
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/form_wrapper/default/",
|
|
89
|
-
"parameters": [
|
|
90
|
-
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
76
|
{
|
|
94
77
|
"component": "ActionList::Heading",
|
|
95
78
|
"status": "alpha",
|
|
@@ -186,12 +169,6 @@
|
|
|
186
169
|
"default": "`{}`",
|
|
187
170
|
"description": "[System arguments](/system-arguments) used to construct the item's anchor or button tag."
|
|
188
171
|
},
|
|
189
|
-
{
|
|
190
|
-
"name": "form_arguments",
|
|
191
|
-
"type": "Hash",
|
|
192
|
-
"default": "`{}`",
|
|
193
|
-
"description": "Allows the item to submit a form on click. The URL passed in the `href:` option will be used as the form action. Pass the `method:` option to this hash to control what kind of request is made, One of `:delete`, `:get`, `:head`, `:patch`, `:post`, or `:put`. The `name:` option is required and specifies the desired name of the field that will be included in the params sent to the server on form submission. Specify the `value:` option to send a custom value to the server; otherwise the value of `name:` is sent."
|
|
194
|
-
},
|
|
195
172
|
{
|
|
196
173
|
"name": "truncate_label",
|
|
197
174
|
"type": "Boolean",
|
|
@@ -320,13 +297,7 @@
|
|
|
320
297
|
"name": "select_variant",
|
|
321
298
|
"type": "Symbol",
|
|
322
299
|
"default": "`:none`",
|
|
323
|
-
"description": "One of `:multiple`, `:none`, or `:single
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"name": "form_arguments",
|
|
327
|
-
"type": "Hash",
|
|
328
|
-
"default": "`{}`",
|
|
329
|
-
"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."
|
|
300
|
+
"description": ". One of `:multiple`, `:none`, or `:single`.."
|
|
330
301
|
},
|
|
331
302
|
{
|
|
332
303
|
"name": "system_arguments",
|
|
@@ -354,7 +325,7 @@
|
|
|
354
325
|
"name": "system_arguments",
|
|
355
326
|
"type": "Hash",
|
|
356
327
|
"default": "N/A",
|
|
357
|
-
"description": "
|
|
328
|
+
"description": "[System arguments](/system-arguments)"
|
|
358
329
|
}
|
|
359
330
|
]
|
|
360
331
|
},
|
package/static/audited_at.json
CHANGED
package/static/constants.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"DEFAULT_SCHEME": "full",
|
|
6
6
|
"DEFAULT_SELECT_VARIANT": "none",
|
|
7
7
|
"Divider": "Primer::Alpha::ActionList::Divider",
|
|
8
|
-
"FormWrapper": "Primer::Alpha::ActionList::FormWrapper",
|
|
9
8
|
"Heading": "Primer::Alpha::ActionList::Heading",
|
|
10
9
|
"Item": "Primer::Alpha::ActionList::Item",
|
|
11
10
|
"MENU_ROLE": "menu",
|
|
@@ -40,17 +39,6 @@
|
|
|
40
39
|
"filled"
|
|
41
40
|
]
|
|
42
41
|
},
|
|
43
|
-
"Primer::Alpha::ActionList::FormWrapper": {
|
|
44
|
-
"DEFAULT_HTTP_METHOD": "get",
|
|
45
|
-
"HTTP_METHOD_OPTIONS": [
|
|
46
|
-
"get",
|
|
47
|
-
"post",
|
|
48
|
-
"patch",
|
|
49
|
-
"put",
|
|
50
|
-
"delete",
|
|
51
|
-
"head"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
42
|
"Primer::Alpha::ActionList::Heading": {
|
|
55
43
|
"DEFAULT_SCHEME": "subtle",
|
|
56
44
|
"HEADING_LEVELS": [
|
package/static/info_arch.json
CHANGED
|
@@ -45,12 +45,6 @@
|
|
|
45
45
|
"default": "`:none`",
|
|
46
46
|
"description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
|
|
47
47
|
},
|
|
48
|
-
{
|
|
49
|
-
"name": "form_arguments",
|
|
50
|
-
"type": "Hash",
|
|
51
|
-
"default": "`{}`",
|
|
52
|
-
"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 {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}} instead of using this feature directly."
|
|
53
|
-
},
|
|
54
48
|
{
|
|
55
49
|
"name": "system_arguments",
|
|
56
50
|
"type": "Hash",
|
|
@@ -266,12 +260,6 @@
|
|
|
266
260
|
"default": "`{}`",
|
|
267
261
|
"description": "{{link_to_system_arguments_docs}} used to construct the item's anchor or button tag."
|
|
268
262
|
},
|
|
269
|
-
{
|
|
270
|
-
"name": "form_arguments",
|
|
271
|
-
"type": "Hash",
|
|
272
|
-
"default": "`{}`",
|
|
273
|
-
"description": "Allows the item to submit a form on click. The URL passed in the `href:` option will be used as the form action. Pass the `method:` option to this hash to control what kind of request is made, One of `:delete`, `:get`, `:head`, `:patch`, `:post`, or `:put`. The `name:` option is required and specifies the desired name of the field that will be included in the params sent to the server on form submission. Specify the `value:` option to send a custom value to the server; otherwise the value of `name:` is sent."
|
|
274
|
-
},
|
|
275
263
|
{
|
|
276
264
|
"name": "truncate_label",
|
|
277
265
|
"type": "Boolean",
|
|
@@ -529,31 +517,6 @@
|
|
|
529
517
|
|
|
530
518
|
]
|
|
531
519
|
},
|
|
532
|
-
{
|
|
533
|
-
"fully_qualified_name": "Primer::Alpha::ActionList::FormWrapper",
|
|
534
|
-
"description": "Utility component for wrapping ActionLists or individual ActionList::Items in forms.",
|
|
535
|
-
"component": "ActionList::FormWrapper",
|
|
536
|
-
"status": "alpha",
|
|
537
|
-
"a11y_reviewed": false,
|
|
538
|
-
"short_name": "ActionListFormWrapper",
|
|
539
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list/form_wrapper.rb",
|
|
540
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/form_wrapper/default/",
|
|
541
|
-
"parameters": [
|
|
542
|
-
|
|
543
|
-
],
|
|
544
|
-
"slots": [
|
|
545
|
-
|
|
546
|
-
],
|
|
547
|
-
"methods": [
|
|
548
|
-
|
|
549
|
-
],
|
|
550
|
-
"previews": [
|
|
551
|
-
|
|
552
|
-
],
|
|
553
|
-
"subcomponents": [
|
|
554
|
-
|
|
555
|
-
]
|
|
556
|
-
},
|
|
557
520
|
{
|
|
558
521
|
"fully_qualified_name": "Primer::Alpha::ActionList::Divider",
|
|
559
522
|
"description": "Group heading rendered above the group contents.",
|
|
@@ -594,7 +557,7 @@
|
|
|
594
557
|
},
|
|
595
558
|
{
|
|
596
559
|
"fully_qualified_name": "Primer::Alpha::ActionMenu",
|
|
597
|
-
"description": "ActionMenu
|
|
560
|
+
"description": "The ActionMenu should be used when a user can select a single option triggering an action from a list of items. Primer will automatically nest an `Item` within a presentational `<li>` tag.\n\nThe only allowed elements for the `Item` components are: `:a`, `:button`, and `:clipboard-copy`. If one isn't selected, a fallback `:span` will be used. To add functionality, use a `.js` class to create the functionality, or an `onclick` handler.",
|
|
598
561
|
"component": "ActionMenu",
|
|
599
562
|
"status": "alpha",
|
|
600
563
|
"a11y_reviewed": false,
|
|
@@ -654,13 +617,7 @@
|
|
|
654
617
|
"name": "select_variant",
|
|
655
618
|
"type": "Symbol",
|
|
656
619
|
"default": "`:none`",
|
|
657
|
-
"description": "One of `:multiple`, `:none`, or `:single
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
"name": "form_arguments",
|
|
661
|
-
"type": "Hash",
|
|
662
|
-
"default": "`{}`",
|
|
663
|
-
"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."
|
|
620
|
+
"description": ". One of `:multiple`, `:none`, or `:single`.."
|
|
664
621
|
},
|
|
665
622
|
{
|
|
666
623
|
"name": "system_arguments",
|
|
@@ -670,30 +627,7 @@
|
|
|
670
627
|
}
|
|
671
628
|
],
|
|
672
629
|
"slots": [
|
|
673
|
-
|
|
674
|
-
"name": "show_button",
|
|
675
|
-
"description": "Button to activate the menu.",
|
|
676
|
-
"parameters": [
|
|
677
|
-
{
|
|
678
|
-
"name": "system_arguments",
|
|
679
|
-
"type": "Hash",
|
|
680
|
-
"default": "N/A",
|
|
681
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::Overlay{{/link_to_component}}'s `show_button` slot."
|
|
682
|
-
}
|
|
683
|
-
]
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"name": "items",
|
|
687
|
-
"description": "Adds a new item to the list.",
|
|
688
|
-
"parameters": [
|
|
689
|
-
{
|
|
690
|
-
"name": "system_arguments",
|
|
691
|
-
"type": "Hash",
|
|
692
|
-
"default": "N/A",
|
|
693
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}."
|
|
694
|
-
}
|
|
695
|
-
]
|
|
696
|
-
}
|
|
630
|
+
|
|
697
631
|
],
|
|
698
632
|
"methods": [
|
|
699
633
|
{
|
|
@@ -741,6 +675,13 @@
|
|
|
741
675
|
}
|
|
742
676
|
]
|
|
743
677
|
},
|
|
678
|
+
{
|
|
679
|
+
"name": "items",
|
|
680
|
+
"description": "Retrieves the list of items.",
|
|
681
|
+
"parameters": [
|
|
682
|
+
|
|
683
|
+
]
|
|
684
|
+
},
|
|
744
685
|
{
|
|
745
686
|
"name": "with_divider",
|
|
746
687
|
"description": "Adds a divider to the list.",
|
|
@@ -825,16 +766,6 @@
|
|
|
825
766
|
"preview_path": "/lookbook/preview/primer/alpha/action_menu/with_actions",
|
|
826
767
|
"name": "with_actions"
|
|
827
768
|
},
|
|
828
|
-
{
|
|
829
|
-
"inspect_path": "/lookbook/inspect/primer/alpha/action_menu/single_select_form",
|
|
830
|
-
"preview_path": "/lookbook/preview/primer/alpha/action_menu/single_select_form",
|
|
831
|
-
"name": "single_select_form"
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
"inspect_path": "/lookbook/inspect/primer/alpha/action_menu/multiple_select_form",
|
|
835
|
-
"preview_path": "/lookbook/preview/primer/alpha/action_menu/multiple_select_form",
|
|
836
|
-
"name": "multiple_select_form"
|
|
837
|
-
},
|
|
838
769
|
{
|
|
839
770
|
"inspect_path": "/lookbook/inspect/primer/alpha/action_menu/with_disabled_items",
|
|
840
771
|
"preview_path": "/lookbook/preview/primer/alpha/action_menu/with_disabled_items",
|
|
@@ -897,7 +828,7 @@
|
|
|
897
828
|
"name": "system_arguments",
|
|
898
829
|
"type": "Hash",
|
|
899
830
|
"default": "N/A",
|
|
900
|
-
"description": "
|
|
831
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
901
832
|
}
|
|
902
833
|
],
|
|
903
834
|
"slots": [
|
|
@@ -931,12 +862,6 @@
|
|
|
931
862
|
"name": "with_item",
|
|
932
863
|
"description": "Adds a new item to the list.",
|
|
933
864
|
"parameters": [
|
|
934
|
-
{
|
|
935
|
-
"name": "data",
|
|
936
|
-
"type": "Hash",
|
|
937
|
-
"default": "`{}`",
|
|
938
|
-
"description": "When the menu is used as a form input (see the {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}} docs), the label is submitted to the server by default. However, if the `data: { value: }` or `\"data-value\":` attribute is provided, it will be sent to the server instead."
|
|
939
|
-
},
|
|
940
865
|
{
|
|
941
866
|
"name": "system_arguments",
|
|
942
867
|
"type": "Hash",
|
package/static/previews.json
CHANGED
|
@@ -188,16 +188,6 @@
|
|
|
188
188
|
"preview_path": "/lookbook/preview/primer/alpha/action_menu/with_actions",
|
|
189
189
|
"name": "with_actions"
|
|
190
190
|
},
|
|
191
|
-
{
|
|
192
|
-
"inspect_path": "/lookbook/inspect/primer/alpha/action_menu/single_select_form",
|
|
193
|
-
"preview_path": "/lookbook/preview/primer/alpha/action_menu/single_select_form",
|
|
194
|
-
"name": "single_select_form"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"inspect_path": "/lookbook/inspect/primer/alpha/action_menu/multiple_select_form",
|
|
198
|
-
"preview_path": "/lookbook/preview/primer/alpha/action_menu/multiple_select_form",
|
|
199
|
-
"name": "multiple_select_form"
|
|
200
|
-
},
|
|
201
191
|
{
|
|
202
192
|
"inspect_path": "/lookbook/inspect/primer/alpha/action_menu/with_disabled_items",
|
|
203
193
|
"preview_path": "/lookbook/preview/primer/alpha/action_menu/with_disabled_items",
|
package/static/statuses.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Primer::Alpha::ActionList": "alpha",
|
|
3
3
|
"Primer::Alpha::ActionList::Divider": "alpha",
|
|
4
|
-
"Primer::Alpha::ActionList::FormWrapper": "alpha",
|
|
5
4
|
"Primer::Alpha::ActionList::Heading": "alpha",
|
|
6
5
|
"Primer::Alpha::ActionList::Item": "alpha",
|
|
7
6
|
"Primer::Alpha::ActionMenu": "alpha",
|