primer_view_components 0.0.121 → 0.0.122

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/app/assets/styles/primer_view_components.css +2 -2
  4. data/app/assets/styles/primer_view_components.css.map +1 -1
  5. data/app/components/primer/alpha/action_list.css.json +123 -1
  6. data/app/components/primer/alpha/auto_complete.css.json +23 -1
  7. data/app/components/primer/alpha/banner.css.json +24 -1
  8. data/app/components/primer/alpha/button_marketing.css.json +33 -1
  9. data/app/components/primer/alpha/check_box.rb +74 -0
  10. data/app/components/primer/alpha/check_box_group.rb +36 -0
  11. data/app/components/primer/alpha/dialog.css.json +82 -1
  12. data/app/components/primer/alpha/dialog.rb +1 -1
  13. data/app/components/primer/alpha/dropdown.css.json +40 -1
  14. data/app/components/primer/alpha/form_button.rb +32 -0
  15. data/app/components/primer/alpha/form_control.html.erb +26 -0
  16. data/app/components/primer/alpha/form_control.rb +105 -0
  17. data/app/components/primer/alpha/layout.css.json +80 -1
  18. data/app/components/primer/alpha/menu.css.json +28 -1
  19. data/app/components/primer/alpha/multi_input.rb +81 -0
  20. data/app/components/primer/alpha/radio_button.rb +25 -0
  21. data/app/components/primer/alpha/radio_button_group.rb +36 -0
  22. data/app/components/primer/alpha/segmented_control.css +1 -1
  23. data/app/components/primer/alpha/segmented_control.css.json +31 -1
  24. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  25. data/app/components/primer/alpha/segmented_control.pcss +43 -12
  26. data/app/components/primer/alpha/select.rb +37 -0
  27. data/app/components/primer/alpha/submit_button.rb +32 -0
  28. data/app/components/primer/alpha/tab_nav.css.json +24 -1
  29. data/app/components/primer/alpha/tab_panels.rb +7 -0
  30. data/app/components/primer/alpha/text_area.rb +24 -0
  31. data/app/components/primer/alpha/text_field.css +2 -2
  32. data/app/components/primer/alpha/text_field.css.json +134 -1
  33. data/app/components/primer/alpha/text_field.css.map +1 -1
  34. data/app/components/primer/alpha/text_field.pcss +27 -0
  35. data/app/components/primer/alpha/text_field.rb +15 -20
  36. data/app/components/primer/alpha/toggle_switch.css +1 -1
  37. data/app/components/primer/alpha/toggle_switch.css.json +40 -1
  38. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  39. data/app/components/primer/alpha/toggle_switch.pcss +31 -61
  40. data/app/components/primer/alpha/underline_nav.css.json +28 -1
  41. data/app/components/primer/beta/avatar.css.json +17 -1
  42. data/app/components/primer/beta/avatar_stack.css.json +28 -1
  43. data/app/components/primer/beta/blankslate.css.json +22 -1
  44. data/app/components/primer/beta/border_box.css.json +54 -1
  45. data/app/components/primer/beta/breadcrumbs.css.json +11 -1
  46. data/app/components/primer/beta/button.css.json +71 -1
  47. data/app/components/primer/beta/counter.css.json +10 -1
  48. data/app/components/primer/beta/flash.css.json +27 -1
  49. data/app/components/primer/beta/label.css.json +25 -1
  50. data/app/components/primer/beta/link.css.json +19 -1
  51. data/app/components/primer/beta/popover.css.json +39 -1
  52. data/app/components/primer/beta/progress_bar.css.json +10 -1
  53. data/app/components/primer/beta/state.css.json +13 -1
  54. data/app/components/primer/beta/subhead.css.json +12 -1
  55. data/app/components/primer/beta/timeline_item.css.json +16 -1
  56. data/app/components/primer/beta/truncate.css.json +12 -1
  57. data/app/components/primer/component.rb +10 -2
  58. data/app/components/primer/truncate.css.json +13 -1
  59. data/app/forms/{select_list_form.rb → select_form.rb} +1 -1
  60. data/app/lib/primer/css/layout.css.json +316 -1
  61. data/app/lib/primer/css/utilities.css.json +1659 -1
  62. data/lib/primer/form_components.rb +26 -6
  63. data/lib/primer/forms/builder.rb +1 -17
  64. data/lib/primer/forms/button.rb +4 -1
  65. data/lib/primer/forms/check_box_group.html.erb +14 -9
  66. data/lib/primer/forms/check_box_group.rb +5 -0
  67. data/lib/primer/forms/dsl/check_box_group_input.rb +3 -4
  68. data/lib/primer/forms/dsl/input.rb +33 -2
  69. data/lib/primer/forms/dsl/input_methods.rb +49 -1
  70. data/lib/primer/forms/dsl/radio_button_group_input.rb +2 -3
  71. data/lib/primer/forms/dsl/{select_list_input.rb → select_input.rb} +2 -2
  72. data/lib/primer/forms/dsl/text_field_input.rb +7 -5
  73. data/lib/primer/forms/form_control.rb +0 -1
  74. data/lib/primer/forms/group.html.erb +1 -1
  75. data/lib/primer/forms/multi.html.erb +8 -6
  76. data/lib/primer/forms/multi.rb +2 -0
  77. data/lib/primer/forms/radio_button_group.html.erb +14 -9
  78. data/lib/primer/forms/radio_button_group.rb +5 -0
  79. data/lib/primer/forms/{select_list.html.erb → select.html.erb} +0 -0
  80. data/lib/primer/forms/{select_list.rb → select.rb} +2 -2
  81. data/lib/primer/forms/spacing_wrapper.html.erb +1 -1
  82. data/lib/primer/forms/text_area.rb +1 -1
  83. data/lib/primer/forms/text_field.rb +5 -1
  84. data/lib/primer/forms/utils.rb +20 -0
  85. data/lib/primer/view_components/engine.rb +1 -1
  86. data/lib/primer/view_components/version.rb +1 -1
  87. data/lib/primer/yard/backend.rb +1 -15
  88. data/lib/primer/yard/component_manifest.rb +44 -25
  89. data/lib/primer/yard/component_ref.rb +40 -0
  90. data/lib/primer/yard/docs_helper.rb +16 -2
  91. data/lib/primer/yard/legacy_gatsby_backend.rb +9 -15
  92. data/lib/primer/yard/lookbook_docs_helper.rb +32 -0
  93. data/lib/primer/yard/lookbook_pages_backend.rb +194 -0
  94. data/lib/primer/yard/registry.rb +6 -21
  95. data/lib/primer/yard/renders_many_handler.rb +1 -1
  96. data/lib/primer/yard/renders_one_handler.rb +1 -1
  97. data/lib/primer/yard.rb +14 -0
  98. data/lib/tasks/docs.rake +26 -13
  99. data/previews/pages/forms/01_introduction.md.erb +44 -0
  100. data/previews/pages/forms/02_getting_started.md.erb +125 -0
  101. data/previews/pages/forms/03_caption_templates.md.erb +30 -0
  102. data/previews/pages/forms/04_after_content.md.erb +39 -0
  103. data/previews/pages/forms/05_groups_layouts.md.erb +22 -0
  104. data/previews/pages/forms/06_miscellaneous_inputs.md.erb +43 -0
  105. data/previews/pages/forms/07_toggle_switch_forms.md.erb +58 -0
  106. data/previews/pages/forms/08_validations.md.erb +28 -0
  107. data/previews/pages/forms/09_compound_forms.md.erb +97 -0
  108. data/previews/primer/alpha/check_box_group_preview.rb +89 -0
  109. data/previews/primer/alpha/check_box_preview.rb +62 -0
  110. data/previews/primer/alpha/form_control_preview/playground.html.erb +9 -0
  111. data/previews/primer/alpha/form_control_preview.rb +106 -0
  112. data/previews/primer/alpha/multi_input_preview/playground.html.erb +41 -0
  113. data/previews/primer/alpha/multi_input_preview.rb +80 -0
  114. data/previews/primer/alpha/radio_button_group_preview.rb +83 -0
  115. data/previews/primer/alpha/radio_button_preview.rb +62 -0
  116. data/previews/primer/alpha/select_preview.rb +130 -0
  117. data/previews/primer/alpha/text_area_preview.rb +87 -0
  118. data/previews/primer/alpha/text_field_preview.rb +10 -1
  119. data/previews/primer/forms/forms_preview/example_toggle_switch_form.html.erb +2 -2
  120. data/previews/primer/forms/forms_preview/{select_list_form.html.erb → select_form.html.erb} +1 -1
  121. data/previews/primer/forms/forms_preview.rb +3 -1
  122. data/static/arguments.json +1358 -1328
  123. data/static/audited_at.json +10 -0
  124. data/static/constants.json +20 -0
  125. data/static/previews.json +218 -40
  126. data/static/statuses.json +10 -0
  127. metadata +41 -7
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.0.121
4
+ version: 0.0.122
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-02-03 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -423,6 +423,8 @@ files:
423
423
  - app/components/primer/alpha/button_marketing.css.map
424
424
  - app/components/primer/alpha/button_marketing.pcss
425
425
  - app/components/primer/alpha/button_marketing.rb
426
+ - app/components/primer/alpha/check_box.rb
427
+ - app/components/primer/alpha/check_box_group.rb
426
428
  - app/components/primer/alpha/dialog.css
427
429
  - app/components/primer/alpha/dialog.css.json
428
430
  - app/components/primer/alpha/dialog.css.map
@@ -447,6 +449,9 @@ files:
447
449
  - app/components/primer/alpha/dropdown/menu.js
448
450
  - app/components/primer/alpha/dropdown/menu.rb
449
451
  - app/components/primer/alpha/dropdown/menu.ts
452
+ - app/components/primer/alpha/form_button.rb
453
+ - app/components/primer/alpha/form_control.html.erb
454
+ - app/components/primer/alpha/form_control.rb
450
455
  - app/components/primer/alpha/hellip_button.rb
451
456
  - app/components/primer/alpha/hidden_text_expander.rb
452
457
  - app/components/primer/alpha/image.rb
@@ -470,6 +475,7 @@ files:
470
475
  - app/components/primer/alpha/modal_dialog.d.ts
471
476
  - app/components/primer/alpha/modal_dialog.js
472
477
  - app/components/primer/alpha/modal_dialog.ts
478
+ - app/components/primer/alpha/multi_input.rb
473
479
  - app/components/primer/alpha/nav_list.d.ts
474
480
  - app/components/primer/alpha/nav_list.html.erb
475
481
  - app/components/primer/alpha/nav_list.js
@@ -481,6 +487,8 @@ files:
481
487
  - app/components/primer/alpha/nav_list/section.rb
482
488
  - app/components/primer/alpha/octicon_symbols.html.erb
483
489
  - app/components/primer/alpha/octicon_symbols.rb
490
+ - app/components/primer/alpha/radio_button.rb
491
+ - app/components/primer/alpha/radio_button_group.rb
484
492
  - app/components/primer/alpha/segmented_control.css
485
493
  - app/components/primer/alpha/segmented_control.css.json
486
494
  - app/components/primer/alpha/segmented_control.css.map
@@ -492,6 +500,8 @@ files:
492
500
  - app/components/primer/alpha/segmented_control.ts
493
501
  - app/components/primer/alpha/segmented_control/item.html.erb
494
502
  - app/components/primer/alpha/segmented_control/item.rb
503
+ - app/components/primer/alpha/select.rb
504
+ - app/components/primer/alpha/submit_button.rb
495
505
  - app/components/primer/alpha/tab_container.d.ts
496
506
  - app/components/primer/alpha/tab_container.js
497
507
  - app/components/primer/alpha/tab_container.rb
@@ -504,6 +514,7 @@ files:
504
514
  - app/components/primer/alpha/tab_nav.rb
505
515
  - app/components/primer/alpha/tab_panels.html.erb
506
516
  - app/components/primer/alpha/tab_panels.rb
517
+ - app/components/primer/alpha/text_area.rb
507
518
  - app/components/primer/alpha/text_field.css
508
519
  - app/components/primer/alpha/text_field.css.json
509
520
  - app/components/primer/alpha/text_field.css.map
@@ -710,7 +721,7 @@ files:
710
721
  - app/forms/name_with_question_mark_form/enabled_caption.html.erb
711
722
  - app/forms/radio_button_group_form.rb
712
723
  - app/forms/radio_button_with_nested_form.rb
713
- - app/forms/select_list_form.rb
724
+ - app/forms/select_form.rb
714
725
  - app/forms/single_text_field_form.rb
715
726
  - app/forms/submit_button_form.rb
716
727
  - app/forms/text_field_and_checkbox_form.rb
@@ -771,7 +782,7 @@ files:
771
782
  - lib/primer/forms/dsl/multi_input.rb
772
783
  - lib/primer/forms/dsl/radio_button_group_input.rb
773
784
  - lib/primer/forms/dsl/radio_button_input.rb
774
- - lib/primer/forms/dsl/select_list_input.rb
785
+ - lib/primer/forms/dsl/select_input.rb
775
786
  - lib/primer/forms/dsl/submit_button_input.rb
776
787
  - lib/primer/forms/dsl/text_area_input.rb
777
788
  - lib/primer/forms/dsl/text_field_input.rb
@@ -798,8 +809,8 @@ files:
798
809
  - lib/primer/forms/radio_button.rb
799
810
  - lib/primer/forms/radio_button_group.html.erb
800
811
  - lib/primer/forms/radio_button_group.rb
801
- - lib/primer/forms/select_list.html.erb
802
- - lib/primer/forms/select_list.rb
812
+ - lib/primer/forms/select.html.erb
813
+ - lib/primer/forms/select.rb
803
814
  - lib/primer/forms/separator.html.erb
804
815
  - lib/primer/forms/separator.rb
805
816
  - lib/primer/forms/spacing_wrapper.html.erb
@@ -853,10 +864,14 @@ files:
853
864
  - lib/primer/view_components/linters/two_column_layout_migration_counter.rb
854
865
  - lib/primer/view_components/statuses.rb
855
866
  - lib/primer/view_components/version.rb
867
+ - lib/primer/yard.rb
856
868
  - lib/primer/yard/backend.rb
857
869
  - lib/primer/yard/component_manifest.rb
870
+ - lib/primer/yard/component_ref.rb
858
871
  - lib/primer/yard/docs_helper.rb
859
872
  - lib/primer/yard/legacy_gatsby_backend.rb
873
+ - lib/primer/yard/lookbook_docs_helper.rb
874
+ - lib/primer/yard/lookbook_pages_backend.rb
860
875
  - lib/primer/yard/registry.rb
861
876
  - lib/primer/yard/renders_many_handler.rb
862
877
  - lib/primer/yard/renders_one_handler.rb
@@ -882,6 +897,15 @@ files:
882
897
  - lib/tasks/static.rake
883
898
  - lib/tasks/test.rake
884
899
  - lib/tasks/utilities.rake
900
+ - previews/pages/forms/01_introduction.md.erb
901
+ - previews/pages/forms/02_getting_started.md.erb
902
+ - previews/pages/forms/03_caption_templates.md.erb
903
+ - previews/pages/forms/04_after_content.md.erb
904
+ - previews/pages/forms/05_groups_layouts.md.erb
905
+ - previews/pages/forms/06_miscellaneous_inputs.md.erb
906
+ - previews/pages/forms/07_toggle_switch_forms.md.erb
907
+ - previews/pages/forms/08_validations.md.erb
908
+ - previews/pages/forms/09_compound_forms.md.erb
885
909
  - previews/primer/alpha/action_list_preview.rb
886
910
  - previews/primer/alpha/action_list_preview/heading.html.erb
887
911
  - previews/primer/alpha/auto_complete_preview.rb
@@ -889,6 +913,8 @@ files:
889
913
  - previews/primer/alpha/banner_preview/with_action_button.html.erb
890
914
  - previews/primer/alpha/banner_preview/with_action_content.html.erb
891
915
  - previews/primer/alpha/button_marketing_preview.rb
916
+ - previews/primer/alpha/check_box_group_preview.rb
917
+ - previews/primer/alpha/check_box_preview.rb
892
918
  - previews/primer/alpha/dialog_preview.rb
893
919
  - previews/primer/alpha/dialog_preview/body_has_scrollbar_overflow.html.erb
894
920
  - previews/primer/alpha/dialog_preview/custom_header.html.erb
@@ -898,6 +924,8 @@ files:
898
924
  - previews/primer/alpha/dialog_preview/with_form.html.erb
899
925
  - previews/primer/alpha/dialog_preview/with_text_input.html.erb
900
926
  - previews/primer/alpha/dropdown_preview.rb
927
+ - previews/primer/alpha/form_control_preview.rb
928
+ - previews/primer/alpha/form_control_preview/playground.html.erb
901
929
  - previews/primer/alpha/hellip_button_preview.rb
902
930
  - previews/primer/alpha/hidden_text_expander_preview.rb
903
931
  - previews/primer/alpha/image_crop_preview.rb
@@ -905,12 +933,18 @@ files:
905
933
  - previews/primer/alpha/menu_preview.rb
906
934
  - previews/primer/alpha/menu_preview/default.html.erb
907
935
  - previews/primer/alpha/menu_preview/playground.html.erb
936
+ - previews/primer/alpha/multi_input_preview.rb
937
+ - previews/primer/alpha/multi_input_preview/playground.html.erb
908
938
  - previews/primer/alpha/nav_list_preview.rb
939
+ - previews/primer/alpha/radio_button_group_preview.rb
940
+ - previews/primer/alpha/radio_button_preview.rb
909
941
  - previews/primer/alpha/segmented_control_preview.rb
910
942
  - previews/primer/alpha/segmented_control_preview/with_label_and_caption.html.erb
911
943
  - previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb
944
+ - previews/primer/alpha/select_preview.rb
912
945
  - previews/primer/alpha/tab_nav_preview.rb
913
946
  - previews/primer/alpha/tab_panels_preview.rb
947
+ - previews/primer/alpha/text_area_preview.rb
914
948
  - previews/primer/alpha/text_field_preview.rb
915
949
  - previews/primer/alpha/toggle_switch_preview.rb
916
950
  - previews/primer/alpha/tooltip_preview.rb
@@ -978,7 +1012,7 @@ files:
978
1012
  - previews/primer/forms/forms_preview/name_with_question_mark_form.html.erb
979
1013
  - previews/primer/forms/forms_preview/radio_button_group_form.html.erb
980
1014
  - previews/primer/forms/forms_preview/radio_button_with_nested_form.html.erb
981
- - previews/primer/forms/forms_preview/select_list_form.html.erb
1015
+ - previews/primer/forms/forms_preview/select_form.html.erb
982
1016
  - previews/primer/forms/forms_preview/single_text_field_form.html.erb
983
1017
  - previews/primer/forms/forms_preview/submit_button_form.html.erb
984
1018
  - previews/primer/forms/forms_preview/text_field_and_checkbox_form.html.erb