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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/README.md +1 -1
- 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 +1 -3
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +2 -2
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +16 -16
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +145 -145
- data/app/components/primer/alpha/action_list.rb +30 -15
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.js +44 -34
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +32 -30
- data/app/components/primer/alpha/action_menu/list.rb +6 -1
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/auto_complete.pcss +3 -3
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +11 -11
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.pcss +5 -12
- data/app/components/primer/alpha/button_marketing.rb +3 -0
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +36 -36
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/dropdown.pcss +12 -12
- data/app/components/primer/alpha/form_control.html.erb +1 -1
- data/app/components/primer/alpha/hellip_button.rb +3 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/layout.pcss +4 -4
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/menu.pcss +21 -21
- data/app/components/primer/alpha/modal_dialog.js +11 -4
- data/app/components/primer/alpha/modal_dialog.ts +11 -4
- data/app/components/primer/alpha/nav_list/item.rb +2 -0
- data/app/components/primer/alpha/nav_list.js +6 -0
- data/app/components/primer/alpha/nav_list.rb +55 -36
- data/app/components/primer/alpha/nav_list.ts +8 -0
- data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +1 -2
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +14 -4
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +24 -33
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.pcss +12 -12
- data/app/components/primer/alpha/text_field.css +1 -3
- data/app/components/primer/alpha/text_field.css.json +1 -0
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +87 -83
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/toggle_switch.pcss +12 -12
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.pcss +11 -11
- data/app/components/primer/beta/avatar.css +1 -1
- data/app/components/primer/beta/avatar.css.map +1 -1
- data/app/components/primer/beta/avatar.pcss +18 -18
- data/app/components/primer/beta/avatar_stack.css +1 -1
- data/app/components/primer/beta/avatar_stack.css.map +1 -1
- data/app/components/primer/beta/avatar_stack.pcss +5 -5
- data/app/components/primer/beta/base_button.rb +11 -0
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.pcss +16 -16
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.json +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/border_box.pcss +40 -42
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +4 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +39 -24
- data/app/components/primer/beta/button.rb +3 -0
- data/app/components/primer/beta/button_group.css +1 -0
- data/app/components/primer/beta/button_group.css.json +14 -0
- data/app/components/primer/beta/button_group.css.map +1 -0
- data/app/components/primer/beta/button_group.pcss +27 -0
- data/app/components/primer/beta/button_group.rb +19 -19
- data/app/components/primer/beta/close_button.rb +3 -1
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/counter.pcss +5 -5
- data/app/components/primer/beta/details.html.erb +6 -2
- data/app/components/primer/beta/details.rb +18 -10
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.pcss +12 -12
- data/app/components/primer/beta/icon_button.rb +7 -3
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/label.pcss +3 -3
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/popover.pcss +4 -4
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/state.pcss +7 -7
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +9 -9
- data/app/components/primer/beta/timeline_item.css +1 -1
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/beta/timeline_item.pcss +18 -18
- data/app/components/primer/beta/truncate.css +1 -1
- data/app/components/primer/beta/truncate.css.map +1 -1
- data/app/components/primer/beta/truncate.pcss +1 -1
- data/app/components/primer/focus_group.js +1 -10
- data/app/components/primer/focus_group.ts +1 -10
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/lib/postcss_mixins/activeIndicatorLine.pcss +4 -4
- data/lib/primer/accessibility.rb +74 -0
- data/lib/primer/forms/form_control.html.erb +1 -1
- data/lib/primer/static/generate_previews.rb +15 -8
- data/lib/primer/view_components/linters/deprecated_components_counter.rb +37 -13
- data/lib/primer/view_components/version.rb +2 -2
- data/lib/primer/yard/lookbook_pages_backend.rb +3 -3
- data/previews/pages/forms/03_caption_templates.md.erb +1 -1
- data/previews/pages/forms/04_after_content.md.erb +1 -1
- data/previews/pages/forms/06_miscellaneous_inputs.md.erb +1 -1
- data/previews/pages/forms/07_toggle_switch_forms.md.erb +1 -1
- data/previews/primer/alpha/action_menu_preview/two_menus.html.erb +13 -0
- data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +21 -0
- data/previews/primer/alpha/action_menu_preview.rb +5 -13
- data/previews/primer/alpha/button_marketing_preview.rb +3 -2
- data/previews/primer/alpha/dialog_preview.rb +4 -3
- data/previews/primer/alpha/hellip_button_preview.rb +3 -2
- data/previews/primer/alpha/nav_list_preview.rb +1 -1
- data/previews/primer/beta/base_button_preview.rb +9 -2
- data/previews/primer/beta/button_group_preview/action_menus.html.erb +8 -0
- data/previews/primer/beta/button_group_preview.rb +49 -11
- data/previews/primer/beta/button_preview/trailing_counter.html.erb +1 -1
- data/previews/primer/beta/button_preview.rb +5 -2
- data/previews/primer/beta/close_button_preview.rb +3 -2
- data/previews/primer/beta/details_preview.rb +11 -8
- data/previews/primer/forms_preview.rb +44 -0
- data/static/arguments.json +4 -4
- data/static/classes.json +378 -372
- data/static/constants.json +0 -1
- data/static/info_arch.json +5150 -1368
- data/static/previews.json +5197 -1433
- metadata +37 -29
- data/previews/primer/forms/forms_preview.rb +0 -48
- /data/previews/primer/{forms/forms_preview → forms_preview}/after_content_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/array_check_box_group_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/caption_template_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_group_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/check_box_with_nested_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/composed_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/example_toggle_switch_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/horizontal_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/immediate_validation_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/invalid_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/multi_input_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/multi_text_field_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/name_with_question_mark_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_group_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_with_nested_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/select_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/single_text_field_form.html.erb +0 -0
- /data/previews/primer/{forms/forms_preview → forms_preview}/submit_button_form.html.erb +0 -0
- /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.
|
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-
|
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: '
|
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: '
|
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.
|
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.
|
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/
|
1045
|
-
- previews/primer/
|
1046
|
-
- previews/primer/
|
1047
|
-
- previews/primer/
|
1048
|
-
- previews/primer/
|
1049
|
-
- previews/primer/
|
1050
|
-
- previews/primer/
|
1051
|
-
- previews/primer/
|
1052
|
-
- previews/primer/
|
1053
|
-
- previews/primer/
|
1054
|
-
- previews/primer/
|
1055
|
-
- previews/primer/
|
1056
|
-
- previews/primer/
|
1057
|
-
- previews/primer/
|
1058
|
-
- previews/primer/
|
1059
|
-
- previews/primer/
|
1060
|
-
- previews/primer/
|
1061
|
-
- previews/primer/
|
1062
|
-
- previews/primer/
|
1063
|
-
- previews/primer/
|
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.
|
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
|
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/array_check_box_group_form.html.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/check_box_with_nested_form.html.erb
RENAMED
File without changes
|
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/example_toggle_switch_form.html.erb
RENAMED
File without changes
|
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/immediate_validation_form.html.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/name_with_question_mark_form.html.erb
RENAMED
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_group_form.html.erb
RENAMED
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/radio_button_with_nested_form.html.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/data/previews/primer/{forms/forms_preview → forms_preview}/text_field_and_checkbox_form.html.erb
RENAMED
File without changes
|