primer_view_components 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts +16 -0
  4. data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +30 -0
  5. data/app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  6. data/app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts +1 -0
  7. data/app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts +1 -0
  8. data/app/assets/javascripts/app/components/primer/alpha/modal_dialog.d.ts +18 -0
  9. data/app/assets/javascripts/app/components/primer/alpha/nav_list.d.ts +28 -0
  10. data/app/assets/javascripts/app/components/primer/alpha/segmented_control.d.ts +12 -0
  11. data/app/assets/javascripts/app/components/primer/alpha/tab_container.d.ts +1 -0
  12. data/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +30 -0
  13. data/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +26 -0
  14. data/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +11 -0
  15. data/app/assets/javascripts/app/components/primer/anchored_position.d.ts +27 -0
  16. data/app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
  17. data/app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts +1 -0
  18. data/app/assets/javascripts/app/components/primer/beta/relative_time.d.ts +1 -0
  19. data/app/assets/javascripts/app/components/primer/focus_group.d.ts +19 -0
  20. data/app/assets/javascripts/app/components/primer/primer.d.ts +21 -0
  21. data/app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts +10 -0
  22. data/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +1 -0
  23. data/app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts +5 -0
  24. data/app/assets/javascripts/primer_view_components.js +1 -1
  25. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  26. data/app/assets/styles/primer_view_components.css +1 -1
  27. data/app/assets/styles/primer_view_components.css.map +1 -1
  28. data/app/components/primer/alpha/action_bar/divider.rb +30 -0
  29. data/app/components/primer/alpha/action_bar/item.rb +26 -0
  30. data/app/components/primer/alpha/action_bar.css +1 -0
  31. data/app/components/primer/alpha/action_bar.css.json +17 -0
  32. data/app/components/primer/alpha/action_bar.css.map +1 -0
  33. data/app/components/primer/alpha/action_bar.html.erb +12 -0
  34. data/app/components/primer/alpha/action_bar.pcss +69 -0
  35. data/app/components/primer/alpha/action_bar.rb +110 -0
  36. data/app/components/primer/alpha/action_bar_element.d.ts +16 -0
  37. data/app/components/primer/alpha/action_bar_element.js +172 -0
  38. data/app/components/primer/alpha/action_bar_element.ts +175 -0
  39. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -2
  40. data/app/components/primer/alpha/tool_tip.d.ts +3 -2
  41. data/app/components/primer/alpha/tool_tip.js +89 -44
  42. data/app/components/primer/alpha/tool_tip.ts +88 -41
  43. data/app/components/primer/alpha/tooltip.rb +1 -0
  44. data/app/components/primer/beta/link.css +1 -1
  45. data/app/components/primer/beta/link.css.map +1 -1
  46. data/app/components/primer/beta/link.pcss +4 -0
  47. data/app/components/primer/beta/link.rb +6 -10
  48. data/app/components/primer/primer.d.ts +1 -0
  49. data/app/components/primer/primer.js +1 -0
  50. data/app/components/primer/primer.pcss +1 -0
  51. data/app/components/primer/primer.ts +1 -0
  52. data/lib/primer/static/generate_previews.rb +9 -0
  53. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -3
  54. data/lib/primer/view_components/version.rb +2 -2
  55. data/lib/primer/yard.rb +5 -0
  56. data/previews/primer/alpha/action_bar_preview/inline.html.erb +16 -0
  57. data/previews/primer/alpha/action_bar_preview.rb +77 -0
  58. data/previews/primer/alpha/action_list_preview.rb +10 -0
  59. data/previews/primer/alpha/action_menu_preview.rb +5 -0
  60. data/previews/primer/alpha/auto_complete_preview.rb +1 -0
  61. data/previews/primer/alpha/banner_preview.rb +9 -1
  62. data/previews/primer/alpha/button_marketing_preview.rb +2 -0
  63. data/previews/primer/alpha/check_box_group_preview.rb +1 -0
  64. data/previews/primer/alpha/check_box_preview.rb +6 -0
  65. data/previews/primer/alpha/dialog_preview.rb +1 -0
  66. data/previews/primer/alpha/dropdown_preview.rb +1 -0
  67. data/previews/primer/alpha/hellip_button_preview.rb +1 -0
  68. data/previews/primer/alpha/hidden_text_expander_preview.rb +1 -0
  69. data/previews/primer/alpha/layout_preview.rb +4 -0
  70. data/previews/primer/alpha/menu_preview.rb +1 -0
  71. data/previews/primer/alpha/multi_input_preview.rb +4 -0
  72. data/previews/primer/alpha/nav_list_preview.rb +3 -0
  73. data/previews/primer/alpha/radio_button_group_preview.rb +2 -0
  74. data/previews/primer/alpha/radio_button_preview.rb +10 -0
  75. data/previews/primer/alpha/segmented_control_preview.rb +13 -0
  76. data/previews/primer/alpha/select_preview.rb +6 -0
  77. data/previews/primer/alpha/tab_nav_preview.rb +3 -0
  78. data/previews/primer/alpha/tab_panels_preview.rb +1 -0
  79. data/previews/primer/alpha/text_area_preview.rb +7 -0
  80. data/previews/primer/alpha/text_field_preview.rb +15 -0
  81. data/previews/primer/alpha/toggle_switch_preview.rb +7 -0
  82. data/previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb +20 -0
  83. data/previews/primer/alpha/tooltip_preview.rb +7 -0
  84. data/previews/primer/alpha/underline_nav_preview.rb +2 -0
  85. data/previews/primer/beta/auto_complete_item_preview.rb +2 -0
  86. data/previews/primer/beta/auto_complete_preview.rb +7 -0
  87. data/previews/primer/beta/avatar_preview.rb +10 -0
  88. data/previews/primer/beta/avatar_stack_preview.rb +3 -0
  89. data/previews/primer/beta/blankslate_preview.rb +9 -0
  90. data/previews/primer/beta/border_box_preview.rb +4 -0
  91. data/previews/primer/beta/breadcrumbs_preview.rb +1 -0
  92. data/previews/primer/beta/button_group_preview.rb +4 -0
  93. data/previews/primer/beta/button_preview.rb +10 -0
  94. data/previews/primer/beta/clipboard_copy_preview.rb +2 -0
  95. data/previews/primer/beta/close_button_preview.rb +1 -0
  96. data/previews/primer/beta/counter_preview.rb +11 -0
  97. data/previews/primer/beta/flash_preview.rb +8 -0
  98. data/previews/primer/beta/heading_preview.rb +1 -0
  99. data/previews/primer/beta/icon_button_preview.rb +3 -0
  100. data/previews/primer/beta/label_preview.rb +13 -0
  101. data/previews/primer/beta/link_preview.rb +11 -9
  102. data/previews/primer/beta/markdown_preview.rb +1 -0
  103. data/previews/primer/beta/octicon_preview.rb +1 -0
  104. data/previews/primer/beta/popover_preview.rb +6 -0
  105. data/previews/primer/beta/progress_bar_preview.rb +4 -0
  106. data/previews/primer/beta/spinner_preview.rb +1 -0
  107. data/previews/primer/beta/state_preview.rb +6 -0
  108. data/previews/primer/beta/subhead_preview.rb +4 -0
  109. data/previews/primer/beta/text_preview.rb +1 -0
  110. data/previews/primer/beta/timeline_item_preview.rb +1 -0
  111. data/previews/primer/beta/truncate_preview.rb +1 -0
  112. data/previews/primer/box_preview.rb +2 -0
  113. data/static/arguments.json +51 -7
  114. data/static/audited_at.json +3 -0
  115. data/static/classes.json +21 -0
  116. data/static/constants.json +20 -6
  117. data/static/info_arch.json +669 -7
  118. data/static/previews.json +571 -0
  119. data/static/statuses.json +3 -0
  120. metadata +43 -8
data/static/statuses.json CHANGED
@@ -1,4 +1,7 @@
1
1
  {
2
+ "Primer::Alpha::ActionBar": "alpha",
3
+ "Primer::Alpha::ActionBar::Divider": "alpha",
4
+ "Primer::Alpha::ActionBar::Item": "alpha",
2
5
  "Primer::Alpha::ActionList": "alpha",
3
6
  "Primer::Alpha::ActionList::Divider": "alpha",
4
7
  "Primer::Alpha::ActionList::FormWrapper": "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.3.1
4
+ version: 0.4.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-06-28 00:00:00.000000000 Z
11
+ date: 2023-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -120,28 +120,28 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '3'
123
+ version: 3.39.2
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '3'
130
+ version: 3.39.2
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: cuprite
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - '='
135
+ - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0.13'
137
+ version: 0.14.3
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - '='
142
+ - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '0.13'
144
+ version: 0.14.3
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: erb_lint
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -390,10 +390,42 @@ files:
390
390
  - CHANGELOG.md
391
391
  - LICENSE.txt
392
392
  - README.md
393
+ - app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts
394
+ - app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
395
+ - app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts
396
+ - app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts
397
+ - app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts
398
+ - app/assets/javascripts/app/components/primer/alpha/modal_dialog.d.ts
399
+ - app/assets/javascripts/app/components/primer/alpha/nav_list.d.ts
400
+ - app/assets/javascripts/app/components/primer/alpha/segmented_control.d.ts
401
+ - app/assets/javascripts/app/components/primer/alpha/tab_container.d.ts
402
+ - app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
403
+ - app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts
404
+ - app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts
405
+ - app/assets/javascripts/app/components/primer/anchored_position.d.ts
406
+ - app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts
407
+ - app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts
408
+ - app/assets/javascripts/app/components/primer/beta/relative_time.d.ts
409
+ - app/assets/javascripts/app/components/primer/focus_group.d.ts
410
+ - app/assets/javascripts/app/components/primer/primer.d.ts
411
+ - app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts
412
+ - app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts
413
+ - app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts
393
414
  - app/assets/javascripts/primer_view_components.js
394
415
  - app/assets/javascripts/primer_view_components.js.map
395
416
  - app/assets/styles/primer_view_components.css
396
417
  - app/assets/styles/primer_view_components.css.map
418
+ - app/components/primer/alpha/action_bar.css
419
+ - app/components/primer/alpha/action_bar.css.json
420
+ - app/components/primer/alpha/action_bar.css.map
421
+ - app/components/primer/alpha/action_bar.html.erb
422
+ - app/components/primer/alpha/action_bar.pcss
423
+ - app/components/primer/alpha/action_bar.rb
424
+ - app/components/primer/alpha/action_bar/divider.rb
425
+ - app/components/primer/alpha/action_bar/item.rb
426
+ - app/components/primer/alpha/action_bar_element.d.ts
427
+ - app/components/primer/alpha/action_bar_element.js
428
+ - app/components/primer/alpha/action_bar_element.ts
397
429
  - app/components/primer/alpha/action_list.css
398
430
  - app/components/primer/alpha/action_list.css.json
399
431
  - app/components/primer/alpha/action_list.css.map
@@ -946,6 +978,8 @@ files:
946
978
  - previews/pages/forms/07_toggle_switch_forms.md.erb
947
979
  - previews/pages/forms/08_validations.md.erb
948
980
  - previews/pages/forms/09_compound_forms.md.erb
981
+ - previews/primer/alpha/action_bar_preview.rb
982
+ - previews/primer/alpha/action_bar_preview/inline.html.erb
949
983
  - previews/primer/alpha/action_list_preview.rb
950
984
  - previews/primer/alpha/action_menu_preview.rb
951
985
  - previews/primer/alpha/action_menu_preview/align_end.html.erb
@@ -1002,6 +1036,7 @@ files:
1002
1036
  - previews/primer/alpha/text_field_preview.rb
1003
1037
  - previews/primer/alpha/toggle_switch_preview.rb
1004
1038
  - previews/primer/alpha/tooltip_preview.rb
1039
+ - previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
1005
1040
  - previews/primer/alpha/tooltip_preview/with_multiple_on_a_page.html.erb
1006
1041
  - previews/primer/alpha/tooltip_preview/with_right_most_position.html.erb
1007
1042
  - previews/primer/alpha/underline_nav_preview.rb