primer_view_components 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/README.md +1 -1
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -3
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_list/item.rb +2 -2
  9. data/app/components/primer/alpha/action_list.css +1 -1
  10. data/app/components/primer/alpha/action_list.css.json +16 -16
  11. data/app/components/primer/alpha/action_list.css.map +1 -1
  12. data/app/components/primer/alpha/action_list.pcss +145 -145
  13. data/app/components/primer/alpha/action_list.rb +30 -15
  14. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -1
  15. data/app/components/primer/alpha/action_menu/action_menu_element.js +44 -34
  16. data/app/components/primer/alpha/action_menu/action_menu_element.ts +32 -30
  17. data/app/components/primer/alpha/action_menu/list.rb +6 -1
  18. data/app/components/primer/alpha/auto_complete.css +1 -1
  19. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  20. data/app/components/primer/alpha/auto_complete.pcss +3 -3
  21. data/app/components/primer/alpha/banner.css +1 -1
  22. data/app/components/primer/alpha/banner.css.map +1 -1
  23. data/app/components/primer/alpha/banner.pcss +11 -11
  24. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  25. data/app/components/primer/alpha/button_marketing.pcss +5 -12
  26. data/app/components/primer/alpha/button_marketing.rb +3 -0
  27. data/app/components/primer/alpha/dialog.css +1 -1
  28. data/app/components/primer/alpha/dialog.css.map +1 -1
  29. data/app/components/primer/alpha/dialog.pcss +36 -36
  30. data/app/components/primer/alpha/dropdown.css +1 -1
  31. data/app/components/primer/alpha/dropdown.css.map +1 -1
  32. data/app/components/primer/alpha/dropdown.pcss +12 -12
  33. data/app/components/primer/alpha/form_control.html.erb +1 -1
  34. data/app/components/primer/alpha/hellip_button.rb +3 -1
  35. data/app/components/primer/alpha/layout.css +1 -1
  36. data/app/components/primer/alpha/layout.css.map +1 -1
  37. data/app/components/primer/alpha/layout.pcss +4 -4
  38. data/app/components/primer/alpha/menu.css +1 -1
  39. data/app/components/primer/alpha/menu.css.map +1 -1
  40. data/app/components/primer/alpha/menu.pcss +21 -21
  41. data/app/components/primer/alpha/modal_dialog.js +11 -4
  42. data/app/components/primer/alpha/modal_dialog.ts +11 -4
  43. data/app/components/primer/alpha/nav_list/item.rb +2 -0
  44. data/app/components/primer/alpha/nav_list.js +6 -0
  45. data/app/components/primer/alpha/nav_list.rb +55 -36
  46. data/app/components/primer/alpha/nav_list.ts +8 -0
  47. data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
  48. data/app/components/primer/alpha/overlay.css +1 -1
  49. data/app/components/primer/alpha/overlay.css.json +1 -2
  50. data/app/components/primer/alpha/overlay.css.map +1 -1
  51. data/app/components/primer/alpha/overlay.pcss +14 -4
  52. data/app/components/primer/alpha/segmented_control.css +1 -1
  53. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  54. data/app/components/primer/alpha/segmented_control.pcss +24 -33
  55. data/app/components/primer/alpha/tab_nav.css +1 -1
  56. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  57. data/app/components/primer/alpha/tab_nav.pcss +12 -12
  58. data/app/components/primer/alpha/text_field.css +1 -3
  59. data/app/components/primer/alpha/text_field.css.json +1 -0
  60. data/app/components/primer/alpha/text_field.css.map +1 -1
  61. data/app/components/primer/alpha/text_field.pcss +87 -83
  62. data/app/components/primer/alpha/toggle_switch.css +1 -1
  63. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  64. data/app/components/primer/alpha/toggle_switch.pcss +12 -12
  65. data/app/components/primer/alpha/underline_nav.css +1 -1
  66. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  67. data/app/components/primer/alpha/underline_nav.pcss +11 -11
  68. data/app/components/primer/beta/avatar.css +1 -1
  69. data/app/components/primer/beta/avatar.css.map +1 -1
  70. data/app/components/primer/beta/avatar.pcss +18 -18
  71. data/app/components/primer/beta/avatar_stack.css +1 -1
  72. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  73. data/app/components/primer/beta/avatar_stack.pcss +5 -5
  74. data/app/components/primer/beta/base_button.rb +11 -0
  75. data/app/components/primer/beta/blankslate.css +1 -1
  76. data/app/components/primer/beta/blankslate.css.map +1 -1
  77. data/app/components/primer/beta/blankslate.pcss +16 -16
  78. data/app/components/primer/beta/border_box.css +1 -1
  79. data/app/components/primer/beta/border_box.css.json +1 -1
  80. data/app/components/primer/beta/border_box.css.map +1 -1
  81. data/app/components/primer/beta/border_box.pcss +40 -42
  82. data/app/components/primer/beta/button.css +1 -1
  83. data/app/components/primer/beta/button.css.json +4 -0
  84. data/app/components/primer/beta/button.css.map +1 -1
  85. data/app/components/primer/beta/button.pcss +39 -24
  86. data/app/components/primer/beta/button.rb +3 -0
  87. data/app/components/primer/beta/button_group.css +1 -0
  88. data/app/components/primer/beta/button_group.css.json +14 -0
  89. data/app/components/primer/beta/button_group.css.map +1 -0
  90. data/app/components/primer/beta/button_group.pcss +27 -0
  91. data/app/components/primer/beta/button_group.rb +19 -19
  92. data/app/components/primer/beta/close_button.rb +3 -1
  93. data/app/components/primer/beta/counter.css +1 -1
  94. data/app/components/primer/beta/counter.css.map +1 -1
  95. data/app/components/primer/beta/counter.pcss +5 -5
  96. data/app/components/primer/beta/details.html.erb +6 -2
  97. data/app/components/primer/beta/details.rb +18 -10
  98. data/app/components/primer/beta/flash.css +1 -1
  99. data/app/components/primer/beta/flash.css.map +1 -1
  100. data/app/components/primer/beta/flash.pcss +12 -12
  101. data/app/components/primer/beta/icon_button.rb +7 -3
  102. data/app/components/primer/beta/label.css +1 -1
  103. data/app/components/primer/beta/label.css.map +1 -1
  104. data/app/components/primer/beta/label.pcss +3 -3
  105. data/app/components/primer/beta/popover.css +1 -1
  106. data/app/components/primer/beta/popover.css.map +1 -1
  107. data/app/components/primer/beta/popover.pcss +4 -4
  108. data/app/components/primer/beta/state.css +1 -1
  109. data/app/components/primer/beta/state.css.map +1 -1
  110. data/app/components/primer/beta/state.pcss +7 -7
  111. data/app/components/primer/beta/subhead.css +1 -1
  112. data/app/components/primer/beta/subhead.css.map +1 -1
  113. data/app/components/primer/beta/subhead.pcss +9 -9
  114. data/app/components/primer/beta/timeline_item.css +1 -1
  115. data/app/components/primer/beta/timeline_item.css.map +1 -1
  116. data/app/components/primer/beta/timeline_item.pcss +18 -18
  117. data/app/components/primer/beta/truncate.css +1 -1
  118. data/app/components/primer/beta/truncate.css.map +1 -1
  119. data/app/components/primer/beta/truncate.pcss +1 -1
  120. data/app/components/primer/focus_group.js +1 -10
  121. data/app/components/primer/focus_group.ts +1 -10
  122. data/app/components/primer/primer.d.ts +1 -0
  123. data/app/components/primer/primer.js +1 -0
  124. data/app/components/primer/primer.pcss +1 -0
  125. data/app/components/primer/primer.ts +1 -0
  126. data/lib/postcss_mixins/activeIndicatorLine.pcss +4 -4
  127. data/lib/primer/accessibility.rb +74 -0
  128. data/lib/primer/forms/form_control.html.erb +1 -1
  129. data/lib/primer/static/generate_previews.rb +15 -8
  130. data/lib/primer/view_components/linters/deprecated_components_counter.rb +37 -13
  131. data/lib/primer/view_components/version.rb +2 -2
  132. data/lib/primer/yard/lookbook_pages_backend.rb +3 -3
  133. data/previews/pages/forms/03_caption_templates.md.erb +1 -1
  134. data/previews/pages/forms/04_after_content.md.erb +1 -1
  135. data/previews/pages/forms/06_miscellaneous_inputs.md.erb +1 -1
  136. data/previews/pages/forms/07_toggle_switch_forms.md.erb +1 -1
  137. data/previews/primer/alpha/action_menu_preview/two_menus.html.erb +13 -0
  138. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +21 -0
  139. data/previews/primer/alpha/action_menu_preview.rb +5 -13
  140. data/previews/primer/alpha/button_marketing_preview.rb +3 -2
  141. data/previews/primer/alpha/dialog_preview.rb +4 -3
  142. data/previews/primer/alpha/hellip_button_preview.rb +3 -2
  143. data/previews/primer/alpha/nav_list_preview.rb +1 -1
  144. data/previews/primer/beta/base_button_preview.rb +9 -2
  145. data/previews/primer/beta/button_group_preview/action_menus.html.erb +8 -0
  146. data/previews/primer/beta/button_group_preview.rb +49 -11
  147. data/previews/primer/beta/button_preview/trailing_counter.html.erb +1 -1
  148. data/previews/primer/beta/button_preview.rb +5 -2
  149. data/previews/primer/beta/close_button_preview.rb +3 -2
  150. data/previews/primer/beta/details_preview.rb +11 -8
  151. data/previews/primer/forms_preview.rb +44 -0
  152. data/static/arguments.json +4 -4
  153. data/static/classes.json +378 -372
  154. data/static/constants.json +0 -1
  155. data/static/info_arch.json +5150 -1368
  156. data/static/previews.json +5197 -1433
  157. metadata +37 -29
  158. data/previews/primer/forms/forms_preview.rb +0 -48
  159. /data/previews/primer/{forms/forms_preview → forms_preview}/after_content_form.html.erb +0 -0
  160. /data/previews/primer/{forms/forms_preview → forms_preview}/array_check_box_group_form.html.erb +0 -0
  161. /data/previews/primer/{forms/forms_preview → forms_preview}/caption_template_form.html.erb +0 -0
  162. /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_group_form.html.erb +0 -0
  163. /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_with_nested_form.html.erb +0 -0
  164. /data/previews/primer/{forms/forms_preview → forms_preview}/composed_form.html.erb +0 -0
  165. /data/previews/primer/{forms/forms_preview → forms_preview}/example_toggle_switch_form.html.erb +0 -0
  166. /data/previews/primer/{forms/forms_preview → forms_preview}/horizontal_form.html.erb +0 -0
  167. /data/previews/primer/{forms/forms_preview → forms_preview}/immediate_validation_form.html.erb +0 -0
  168. /data/previews/primer/{forms/forms_preview → forms_preview}/invalid_form.html.erb +0 -0
  169. /data/previews/primer/{forms/forms_preview → forms_preview}/multi_input_form.html.erb +0 -0
  170. /data/previews/primer/{forms/forms_preview → forms_preview}/multi_text_field_form.html.erb +0 -0
  171. /data/previews/primer/{forms/forms_preview → forms_preview}/name_with_question_mark_form.html.erb +0 -0
  172. /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_group_form.html.erb +0 -0
  173. /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_with_nested_form.html.erb +0 -0
  174. /data/previews/primer/{forms/forms_preview → forms_preview}/select_form.html.erb +0 -0
  175. /data/previews/primer/{forms/forms_preview → forms_preview}/single_text_field_form.html.erb +0 -0
  176. /data/previews/primer/{forms/forms_preview → forms_preview}/submit_button_form.html.erb +0 -0
  177. /data/previews/primer/{forms/forms_preview → forms_preview}/text_field_and_checkbox_form.html.erb +0 -0
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.9
4
+ version: 0.2.0
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-05-15 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -56,9 +56,9 @@ dependencies:
56
56
  name: view_component
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '3.1'
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
64
  version: '4.0'
@@ -66,9 +66,9 @@ dependencies:
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">"
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.0'
71
+ version: '3.1'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '4.0'
@@ -162,14 +162,14 @@ dependencies:
162
162
  requirements:
163
163
  - - '='
164
164
  - !ruby/object:Gem::Version
165
- version: 0.1.0
165
+ version: 0.4.0
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - '='
171
171
  - !ruby/object:Gem::Version
172
- version: 0.1.0
172
+ version: 0.4.0
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: listen
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -614,7 +614,11 @@ files:
614
614
  - app/components/primer/beta/button.html.erb
615
615
  - app/components/primer/beta/button.pcss
616
616
  - app/components/primer/beta/button.rb
617
+ - app/components/primer/beta/button_group.css
618
+ - app/components/primer/beta/button_group.css.json
619
+ - app/components/primer/beta/button_group.css.map
617
620
  - app/components/primer/beta/button_group.html.erb
621
+ - app/components/primer/beta/button_group.pcss
618
622
  - app/components/primer/beta/button_group.rb
619
623
  - app/components/primer/beta/clipboard_copy.d.ts
620
624
  - app/components/primer/beta/clipboard_copy.html.erb
@@ -775,6 +779,7 @@ files:
775
779
  - lib/postcss_mixins/focusOutlineOnEmphasis.pcss
776
780
  - lib/postcss_mixins/minTouchTarget.js
777
781
  - lib/postcss_mixins/targetBoxShadow.pcss
782
+ - lib/primer/accessibility.rb
778
783
  - lib/primer/classify.rb
779
784
  - lib/primer/classify/utilities.rb
780
785
  - lib/primer/classify/utilities.yml
@@ -945,6 +950,8 @@ files:
945
950
  - previews/primer/alpha/action_menu_preview/opens_dialog.html.erb
946
951
  - previews/primer/alpha/action_menu_preview/single_select_form.html.erb
947
952
  - previews/primer/alpha/action_menu_preview/submitting_forms.html.erb
953
+ - previews/primer/alpha/action_menu_preview/two_menus.html.erb
954
+ - previews/primer/alpha/action_menu_preview/with_actions.html.erb
948
955
  - previews/primer/alpha/auto_complete_preview.rb
949
956
  - previews/primer/alpha/banner_preview.rb
950
957
  - previews/primer/alpha/banner_preview/with_action_button.html.erb
@@ -1010,6 +1017,7 @@ files:
1010
1017
  - previews/primer/beta/border_box_preview.rb
1011
1018
  - previews/primer/beta/breadcrumbs_preview.rb
1012
1019
  - previews/primer/beta/button_group_preview.rb
1020
+ - previews/primer/beta/button_group_preview/action_menus.html.erb
1013
1021
  - previews/primer/beta/button_preview.rb
1014
1022
  - previews/primer/beta/button_preview/all_schemes.html.erb
1015
1023
  - previews/primer/beta/button_preview/invisible_all_visuals.html.erb
@@ -1041,26 +1049,26 @@ files:
1041
1049
  - previews/primer/beta/timeline_item_preview.rb
1042
1050
  - previews/primer/beta/truncate_preview.rb
1043
1051
  - previews/primer/box_preview.rb
1044
- - previews/primer/forms/forms_preview.rb
1045
- - previews/primer/forms/forms_preview/after_content_form.html.erb
1046
- - previews/primer/forms/forms_preview/array_check_box_group_form.html.erb
1047
- - previews/primer/forms/forms_preview/caption_template_form.html.erb
1048
- - previews/primer/forms/forms_preview/check_box_group_form.html.erb
1049
- - previews/primer/forms/forms_preview/check_box_with_nested_form.html.erb
1050
- - previews/primer/forms/forms_preview/composed_form.html.erb
1051
- - previews/primer/forms/forms_preview/example_toggle_switch_form.html.erb
1052
- - previews/primer/forms/forms_preview/horizontal_form.html.erb
1053
- - previews/primer/forms/forms_preview/immediate_validation_form.html.erb
1054
- - previews/primer/forms/forms_preview/invalid_form.html.erb
1055
- - previews/primer/forms/forms_preview/multi_input_form.html.erb
1056
- - previews/primer/forms/forms_preview/multi_text_field_form.html.erb
1057
- - previews/primer/forms/forms_preview/name_with_question_mark_form.html.erb
1058
- - previews/primer/forms/forms_preview/radio_button_group_form.html.erb
1059
- - previews/primer/forms/forms_preview/radio_button_with_nested_form.html.erb
1060
- - previews/primer/forms/forms_preview/select_form.html.erb
1061
- - previews/primer/forms/forms_preview/single_text_field_form.html.erb
1062
- - previews/primer/forms/forms_preview/submit_button_form.html.erb
1063
- - previews/primer/forms/forms_preview/text_field_and_checkbox_form.html.erb
1052
+ - previews/primer/forms_preview.rb
1053
+ - previews/primer/forms_preview/after_content_form.html.erb
1054
+ - previews/primer/forms_preview/array_check_box_group_form.html.erb
1055
+ - previews/primer/forms_preview/caption_template_form.html.erb
1056
+ - previews/primer/forms_preview/check_box_group_form.html.erb
1057
+ - previews/primer/forms_preview/check_box_with_nested_form.html.erb
1058
+ - previews/primer/forms_preview/composed_form.html.erb
1059
+ - previews/primer/forms_preview/example_toggle_switch_form.html.erb
1060
+ - previews/primer/forms_preview/horizontal_form.html.erb
1061
+ - previews/primer/forms_preview/immediate_validation_form.html.erb
1062
+ - previews/primer/forms_preview/invalid_form.html.erb
1063
+ - previews/primer/forms_preview/multi_input_form.html.erb
1064
+ - previews/primer/forms_preview/multi_text_field_form.html.erb
1065
+ - previews/primer/forms_preview/name_with_question_mark_form.html.erb
1066
+ - previews/primer/forms_preview/radio_button_group_form.html.erb
1067
+ - previews/primer/forms_preview/radio_button_with_nested_form.html.erb
1068
+ - previews/primer/forms_preview/select_form.html.erb
1069
+ - previews/primer/forms_preview/single_text_field_form.html.erb
1070
+ - previews/primer/forms_preview/submit_button_form.html.erb
1071
+ - previews/primer/forms_preview/text_field_and_checkbox_form.html.erb
1064
1072
  - previews/primer/url_helpers.rb
1065
1073
  - static/arguments.json
1066
1074
  - static/assets/view-components.svg
@@ -1090,7 +1098,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1090
1098
  - !ruby/object:Gem::Version
1091
1099
  version: '0'
1092
1100
  requirements: []
1093
- rubygems_version: 3.2.33
1101
+ rubygems_version: 3.4.10
1094
1102
  signing_key:
1095
1103
  specification_version: 4
1096
1104
  summary: ViewComponents for the Primer Design System
@@ -1,48 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Primer
4
- module Forms
5
- # :nodoc:
6
- #
7
- # @logical_path primer/
8
- class FormsPreview < ViewComponent::Preview
9
- def single_text_field_form; end
10
-
11
- def multi_text_field_form; end
12
-
13
- def text_field_and_checkbox_form; end
14
-
15
- def horizontal_form; end
16
-
17
- def composed_form; end
18
-
19
- def submit_button_form; end
20
-
21
- def radio_button_group_form; end
22
-
23
- def check_box_group_form; end
24
-
25
- def array_check_box_group_form; end
26
-
27
- def select_form; end
28
-
29
- def radio_button_with_nested_form; end
30
-
31
- def check_box_with_nested_form; end
32
-
33
- def caption_template_form; end
34
-
35
- def after_content_form; end
36
-
37
- def invalid_form; end
38
-
39
- def multi_input_form; end
40
-
41
- def name_with_question_mark_form; end
42
-
43
- def immediate_validation_form; end
44
-
45
- def example_toggle_switch_form; end
46
- end
47
- end
48
- end