primer_view_components 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +2 -2
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/divider.rb +1 -1
- data/app/components/primer/alpha/action_list/heading.html.erb +2 -2
- data/app/components/primer/alpha/action_list/heading.rb +9 -5
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +1 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.html.erb +1 -0
- data/app/components/primer/alpha/action_list.pcss +5 -0
- data/app/components/primer/alpha/action_list.rb +14 -11
- data/app/components/primer/alpha/dialog.rb +4 -0
- data/app/components/primer/alpha/nav_list/divider.rb +14 -0
- data/app/components/primer/alpha/nav_list/group.html.erb +7 -0
- data/app/components/primer/alpha/nav_list/group.rb +24 -11
- data/app/components/primer/alpha/nav_list/item.rb +4 -0
- data/app/components/primer/alpha/nav_list.d.ts +0 -1
- data/app/components/primer/alpha/nav_list.html.erb +9 -4
- data/app/components/primer/alpha/nav_list.js +3 -4
- data/app/components/primer/alpha/nav_list.rb +87 -10
- data/app/components/primer/alpha/nav_list.ts +3 -2
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +2 -2
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +10 -8
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +11 -11
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +2 -2
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +2 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +9 -0
- data/app/components/primer/component.rb +3 -96
- data/app/lib/primer/attributes_helper.rb +105 -0
- data/lib/primer/forms/text_field.rb +6 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/nav_list_preview/trailing_action.html.erb +10 -10
- data/previews/primer/alpha/nav_list_preview.rb +37 -16
- data/previews/primer/beta/button_preview/trailing_counter.html.erb +11 -0
- data/previews/primer/beta/button_preview.rb +15 -0
- data/previews/primer/box_preview.rb +28 -0
- data/static/arguments.json +22 -12
- data/static/audited_at.json +1 -0
- data/static/classes.json +3 -0
- data/static/constants.json +3 -0
- data/static/info_arch.json +136 -19
- data/static/previews.json +38 -0
- data/static/statuses.json +1 -0
- metadata +7 -2
data/static/info_arch.json
CHANGED
@@ -97,6 +97,13 @@
|
|
97
97
|
}
|
98
98
|
]
|
99
99
|
},
|
100
|
+
{
|
101
|
+
"name": "id",
|
102
|
+
"description": "Returns the value of attribute id.",
|
103
|
+
"parameters": [
|
104
|
+
|
105
|
+
]
|
106
|
+
},
|
100
107
|
{
|
101
108
|
"name": "select_variant",
|
102
109
|
"description": "Returns the value of attribute select_variant.",
|
@@ -109,6 +116,13 @@
|
|
109
116
|
"description": "Returns the value of attribute role.",
|
110
117
|
"parameters": [
|
111
118
|
|
119
|
+
]
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"name": "post_list_content_block",
|
123
|
+
"description": "Returns the value of attribute post_list_content_block.",
|
124
|
+
"parameters": [
|
125
|
+
|
112
126
|
]
|
113
127
|
}
|
114
128
|
],
|
@@ -467,12 +481,6 @@
|
|
467
481
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list/heading.rb",
|
468
482
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/heading/default/",
|
469
483
|
"parameters": [
|
470
|
-
{
|
471
|
-
"name": "id",
|
472
|
-
"type": "String",
|
473
|
-
"default": "`self.class.generate_id`",
|
474
|
-
"description": "The group's identifier (ID attribute in HTML)."
|
475
|
-
},
|
476
484
|
{
|
477
485
|
"name": "title",
|
478
486
|
"type": "String",
|
@@ -497,12 +505,6 @@
|
|
497
505
|
"default": "`:subtle`",
|
498
506
|
"description": "Display a background color if scheme is `filled`."
|
499
507
|
},
|
500
|
-
{
|
501
|
-
"name": "tag",
|
502
|
-
"type": "Integer",
|
503
|
-
"default": "N/A",
|
504
|
-
"description": "Semantic tag for the heading."
|
505
|
-
},
|
506
508
|
{
|
507
509
|
"name": "system_arguments",
|
508
510
|
"type": "Hash",
|
@@ -515,8 +517,15 @@
|
|
515
517
|
],
|
516
518
|
"methods": [
|
517
519
|
{
|
518
|
-
"name": "
|
519
|
-
"description": "Returns the value of attribute
|
520
|
+
"name": "title_id",
|
521
|
+
"description": "Returns the value of attribute title_id.",
|
522
|
+
"parameters": [
|
523
|
+
|
524
|
+
]
|
525
|
+
},
|
526
|
+
{
|
527
|
+
"name": "subtitle_id",
|
528
|
+
"description": "Returns the value of attribute subtitle_id.",
|
520
529
|
"parameters": [
|
521
530
|
|
522
531
|
]
|
@@ -556,7 +565,7 @@
|
|
556
565
|
},
|
557
566
|
{
|
558
567
|
"fully_qualified_name": "Primer::Alpha::ActionList::Divider",
|
559
|
-
"description": "
|
568
|
+
"description": "Separator with optional text rendered above groups or between individual items.",
|
560
569
|
"component": "ActionList::Divider",
|
561
570
|
"status": "alpha",
|
562
571
|
"a11y_reviewed": false,
|
@@ -1702,7 +1711,13 @@
|
|
1702
1711
|
}
|
1703
1712
|
],
|
1704
1713
|
"methods": [
|
1714
|
+
{
|
1715
|
+
"name": "id",
|
1716
|
+
"description": "The dialog's ID value.",
|
1717
|
+
"parameters": [
|
1705
1718
|
|
1719
|
+
]
|
1720
|
+
}
|
1706
1721
|
],
|
1707
1722
|
"previews": [
|
1708
1723
|
{
|
@@ -2908,20 +2923,57 @@
|
|
2908
2923
|
],
|
2909
2924
|
"slots": [
|
2910
2925
|
{
|
2911
|
-
"name": "
|
2912
|
-
"description":
|
2926
|
+
"name": "heading",
|
2927
|
+
"description": null,
|
2928
|
+
"parameters": [
|
2929
|
+
|
2930
|
+
]
|
2931
|
+
},
|
2932
|
+
{
|
2933
|
+
"name": "items",
|
2934
|
+
"description": "Items.",
|
2913
2935
|
"parameters": [
|
2914
2936
|
{
|
2915
2937
|
"name": "system_arguments",
|
2916
2938
|
"type": "Hash",
|
2917
2939
|
"default": "N/A",
|
2918
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::NavList::
|
2940
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::NavList::Item{{/link_to_component}}."
|
2919
2941
|
}
|
2920
2942
|
]
|
2921
2943
|
}
|
2922
2944
|
],
|
2923
2945
|
"methods": [
|
2946
|
+
{
|
2947
|
+
"name": "with_group",
|
2948
|
+
"description": "Groups. Each group is a list of links and a (required) heading.",
|
2949
|
+
"parameters": [
|
2950
|
+
{
|
2951
|
+
"name": "system_arguments",
|
2952
|
+
"type": "Hash",
|
2953
|
+
"default": "N/A",
|
2954
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::NavList::Group{{/link_to_component}}."
|
2955
|
+
}
|
2956
|
+
]
|
2957
|
+
},
|
2958
|
+
{
|
2959
|
+
"name": "with_divider",
|
2960
|
+
"description": "Adds a divider to the list of items.",
|
2961
|
+
"parameters": [
|
2962
|
+
{
|
2963
|
+
"name": "system_arguments",
|
2964
|
+
"type": "Hash",
|
2965
|
+
"default": "N/A",
|
2966
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Divider{{/link_to_component}}."
|
2967
|
+
}
|
2968
|
+
]
|
2969
|
+
},
|
2970
|
+
{
|
2971
|
+
"name": "render_outer_list?",
|
2972
|
+
"description": "Lists that contain top-level items (i.e. items outside of a group) should be wrapped in a <ul>",
|
2973
|
+
"parameters": [
|
2924
2974
|
|
2975
|
+
]
|
2976
|
+
}
|
2925
2977
|
],
|
2926
2978
|
"previews": [
|
2927
2979
|
{
|
@@ -2934,6 +2986,11 @@
|
|
2934
2986
|
"preview_path": "/lookbook/preview/primer/alpha/nav_list/default",
|
2935
2987
|
"name": "default"
|
2936
2988
|
},
|
2989
|
+
{
|
2990
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/nav_list/top_level_items",
|
2991
|
+
"preview_path": "/lookbook/preview/primer/alpha/nav_list/top_level_items",
|
2992
|
+
"name": "top_level_items"
|
2993
|
+
},
|
2937
2994
|
{
|
2938
2995
|
"inspect_path": "/lookbook/inspect/primer/alpha/nav_list/show_more_item",
|
2939
2996
|
"preview_path": "/lookbook/preview/primer/alpha/nav_list/show_more_item",
|
@@ -3096,6 +3153,42 @@
|
|
3096
3153
|
|
3097
3154
|
]
|
3098
3155
|
},
|
3156
|
+
{
|
3157
|
+
"fully_qualified_name": "Primer::Alpha::NavList::Divider",
|
3158
|
+
"description": "Separator with optional text rendered above groups or between individual items.",
|
3159
|
+
"component": "NavList::Divider",
|
3160
|
+
"status": "alpha",
|
3161
|
+
"a11y_reviewed": false,
|
3162
|
+
"short_name": "NavListDivider",
|
3163
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/divider.rb",
|
3164
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/divider/default/",
|
3165
|
+
"parameters": [
|
3166
|
+
{
|
3167
|
+
"name": "scheme",
|
3168
|
+
"type": "Symbol",
|
3169
|
+
"default": "`:subtle`",
|
3170
|
+
"description": "Display a background color if scheme is `filled`."
|
3171
|
+
},
|
3172
|
+
{
|
3173
|
+
"name": "system_arguments",
|
3174
|
+
"type": "Hash",
|
3175
|
+
"default": "N/A",
|
3176
|
+
"description": "{{link_to_system_arguments_docs}}"
|
3177
|
+
}
|
3178
|
+
],
|
3179
|
+
"slots": [
|
3180
|
+
|
3181
|
+
],
|
3182
|
+
"methods": [
|
3183
|
+
|
3184
|
+
],
|
3185
|
+
"previews": [
|
3186
|
+
|
3187
|
+
],
|
3188
|
+
"subcomponents": [
|
3189
|
+
|
3190
|
+
]
|
3191
|
+
},
|
3099
3192
|
{
|
3100
3193
|
"fully_qualified_name": "Primer::Alpha::NavList::Group",
|
3101
3194
|
"description": "A logical grouping of navigation links with an optional heading.\n\nSee {{#link_to_component}}Primer::Alpha::NavList{{/link_to_component}} for usage examples.",
|
@@ -6525,6 +6618,11 @@
|
|
6525
6618
|
"preview_path": "/lookbook/preview/primer/beta/button/trailing_action",
|
6526
6619
|
"name": "trailing_action"
|
6527
6620
|
},
|
6621
|
+
{
|
6622
|
+
"inspect_path": "/lookbook/inspect/primer/beta/button/trailing_counter",
|
6623
|
+
"preview_path": "/lookbook/preview/primer/beta/button/trailing_counter",
|
6624
|
+
"name": "trailing_counter"
|
6625
|
+
},
|
6528
6626
|
{
|
6529
6627
|
"inspect_path": "/lookbook/inspect/primer/beta/button/with_tooltip",
|
6530
6628
|
"preview_path": "/lookbook/preview/primer/beta/button/with_tooltip",
|
@@ -8400,7 +8498,26 @@
|
|
8400
8498
|
|
8401
8499
|
],
|
8402
8500
|
"previews": [
|
8403
|
-
|
8501
|
+
{
|
8502
|
+
"inspect_path": "/lookbook/inspect/primer/box/playground",
|
8503
|
+
"preview_path": "/lookbook/preview/primer/box/playground",
|
8504
|
+
"name": "playground"
|
8505
|
+
},
|
8506
|
+
{
|
8507
|
+
"inspect_path": "/lookbook/inspect/primer/box/default",
|
8508
|
+
"preview_path": "/lookbook/preview/primer/box/default",
|
8509
|
+
"name": "default"
|
8510
|
+
},
|
8511
|
+
{
|
8512
|
+
"inspect_path": "/lookbook/inspect/primer/box/border",
|
8513
|
+
"preview_path": "/lookbook/preview/primer/box/border",
|
8514
|
+
"name": "border"
|
8515
|
+
},
|
8516
|
+
{
|
8517
|
+
"inspect_path": "/lookbook/inspect/primer/box/border_bottom",
|
8518
|
+
"preview_path": "/lookbook/preview/primer/box/border_bottom",
|
8519
|
+
"name": "border_bottom"
|
8520
|
+
}
|
8404
8521
|
],
|
8405
8522
|
"subcomponents": [
|
8406
8523
|
|
data/static/previews.json
CHANGED
@@ -587,6 +587,34 @@
|
|
587
587
|
}
|
588
588
|
]
|
589
589
|
},
|
590
|
+
{
|
591
|
+
"name": "box",
|
592
|
+
"component": "Box",
|
593
|
+
"status": "stable",
|
594
|
+
"lookup_path": "primer/box",
|
595
|
+
"examples": [
|
596
|
+
{
|
597
|
+
"inspect_path": "/lookbook/inspect/primer/box/playground",
|
598
|
+
"preview_path": "/lookbook/preview/primer/box/playground",
|
599
|
+
"name": "playground"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"inspect_path": "/lookbook/inspect/primer/box/default",
|
603
|
+
"preview_path": "/lookbook/preview/primer/box/default",
|
604
|
+
"name": "default"
|
605
|
+
},
|
606
|
+
{
|
607
|
+
"inspect_path": "/lookbook/inspect/primer/box/border",
|
608
|
+
"preview_path": "/lookbook/preview/primer/box/border",
|
609
|
+
"name": "border"
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"inspect_path": "/lookbook/inspect/primer/box/border_bottom",
|
613
|
+
"preview_path": "/lookbook/preview/primer/box/border_bottom",
|
614
|
+
"name": "border_bottom"
|
615
|
+
}
|
616
|
+
]
|
617
|
+
},
|
590
618
|
{
|
591
619
|
"name": "breadcrumbs",
|
592
620
|
"component": "Breadcrumbs",
|
@@ -676,6 +704,11 @@
|
|
676
704
|
"preview_path": "/lookbook/preview/primer/beta/button/trailing_action",
|
677
705
|
"name": "trailing_action"
|
678
706
|
},
|
707
|
+
{
|
708
|
+
"inspect_path": "/lookbook/inspect/primer/beta/button/trailing_counter",
|
709
|
+
"preview_path": "/lookbook/preview/primer/beta/button/trailing_counter",
|
710
|
+
"name": "trailing_counter"
|
711
|
+
},
|
679
712
|
{
|
680
713
|
"inspect_path": "/lookbook/inspect/primer/beta/button/with_tooltip",
|
681
714
|
"preview_path": "/lookbook/preview/primer/beta/button/with_tooltip",
|
@@ -1318,6 +1351,11 @@
|
|
1318
1351
|
"preview_path": "/lookbook/preview/primer/alpha/nav_list/default",
|
1319
1352
|
"name": "default"
|
1320
1353
|
},
|
1354
|
+
{
|
1355
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/nav_list/top_level_items",
|
1356
|
+
"preview_path": "/lookbook/preview/primer/alpha/nav_list/top_level_items",
|
1357
|
+
"name": "top_level_items"
|
1358
|
+
},
|
1321
1359
|
{
|
1322
1360
|
"inspect_path": "/lookbook/inspect/primer/alpha/nav_list/show_more_item",
|
1323
1361
|
"preview_path": "/lookbook/preview/primer/alpha/nav_list/show_more_item",
|
data/static/statuses.json
CHANGED
@@ -31,6 +31,7 @@
|
|
31
31
|
"Primer::Alpha::Menu": "alpha",
|
32
32
|
"Primer::Alpha::MultiInput": "alpha",
|
33
33
|
"Primer::Alpha::NavList": "alpha",
|
34
|
+
"Primer::Alpha::NavList::Divider": "alpha",
|
34
35
|
"Primer::Alpha::NavList::Group": "alpha",
|
35
36
|
"Primer::Alpha::NavList::Item": "alpha",
|
36
37
|
"Primer::Alpha::Navigation::Tab": "alpha",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -489,6 +489,8 @@ files:
|
|
489
489
|
- app/components/primer/alpha/nav_list.js
|
490
490
|
- app/components/primer/alpha/nav_list.rb
|
491
491
|
- app/components/primer/alpha/nav_list.ts
|
492
|
+
- app/components/primer/alpha/nav_list/divider.rb
|
493
|
+
- app/components/primer/alpha/nav_list/group.html.erb
|
492
494
|
- app/components/primer/alpha/nav_list/group.rb
|
493
495
|
- app/components/primer/alpha/nav_list/item.html.erb
|
494
496
|
- app/components/primer/alpha/nav_list/item.rb
|
@@ -750,6 +752,7 @@ files:
|
|
750
752
|
- app/forms/submit_button_form.rb
|
751
753
|
- app/forms/text_field_and_checkbox_form.rb
|
752
754
|
- app/helpers/primer/form_helper.rb
|
755
|
+
- app/lib/primer/attributes_helper.rb
|
753
756
|
- app/lib/primer/audited/dsl.rb
|
754
757
|
- app/lib/primer/class_name_helper.rb
|
755
758
|
- app/lib/primer/css/layout.css
|
@@ -1016,6 +1019,7 @@ files:
|
|
1016
1019
|
- previews/primer/beta/button_preview/invisible_all_visuals.html.erb
|
1017
1020
|
- previews/primer/beta/button_preview/leading_visual.html.erb
|
1018
1021
|
- previews/primer/beta/button_preview/trailing_action.html.erb
|
1022
|
+
- previews/primer/beta/button_preview/trailing_counter.html.erb
|
1019
1023
|
- previews/primer/beta/button_preview/trailing_visual.html.erb
|
1020
1024
|
- previews/primer/beta/button_preview/with_tooltip.html.erb
|
1021
1025
|
- previews/primer/beta/clipboard_copy_preview.rb
|
@@ -1040,6 +1044,7 @@ files:
|
|
1040
1044
|
- previews/primer/beta/text_preview.rb
|
1041
1045
|
- previews/primer/beta/timeline_item_preview.rb
|
1042
1046
|
- previews/primer/beta/truncate_preview.rb
|
1047
|
+
- previews/primer/box_preview.rb
|
1043
1048
|
- previews/primer/forms/forms_preview.rb
|
1044
1049
|
- previews/primer/forms/forms_preview/after_content_form.html.erb
|
1045
1050
|
- previews/primer/forms/forms_preview/array_check_box_group_form.html.erb
|