primer_view_components 0.0.21 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +77 -0
  3. data/app/assets/javascripts/primer_view_components.js +2 -0
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -0
  5. data/app/components/primer/avatar_component.rb +3 -3
  6. data/app/components/primer/avatar_stack_component.rb +3 -3
  7. data/app/components/primer/base_component.rb +6 -2
  8. data/app/components/primer/blankslate_component.html.erb +2 -2
  9. data/app/components/primer/blankslate_component.rb +11 -7
  10. data/app/components/primer/border_box_component.html.erb +4 -18
  11. data/app/components/primer/border_box_component.rb +58 -67
  12. data/app/components/primer/box_component.rb +2 -2
  13. data/app/components/primer/breadcrumb_component.html.erb +1 -2
  14. data/app/components/primer/breadcrumb_component.rb +24 -13
  15. data/app/components/primer/button_component.rb +2 -2
  16. data/app/components/primer/button_group_component.rb +1 -1
  17. data/app/components/primer/button_marketing_component.rb +2 -2
  18. data/app/components/primer/component.rb +4 -0
  19. data/app/components/primer/counter_component.rb +1 -1
  20. data/app/components/primer/details_component.html.erb +2 -6
  21. data/app/components/primer/details_component.rb +21 -35
  22. data/app/components/primer/dropdown_component.html.erb +2 -2
  23. data/app/components/primer/dropdown_component.rb +4 -6
  24. data/app/components/primer/dropdown_menu_component.rb +4 -4
  25. data/app/components/primer/flash_component.html.erb +2 -2
  26. data/app/components/primer/flash_component.rb +5 -5
  27. data/app/components/primer/flex_component.rb +4 -4
  28. data/app/components/primer/flex_item_component.rb +1 -1
  29. data/app/components/primer/heading_component.rb +3 -1
  30. data/app/components/primer/label_component.rb +22 -26
  31. data/app/components/primer/layout_component.rb +2 -2
  32. data/app/components/primer/link_component.rb +2 -2
  33. data/app/components/primer/markdown_component.rb +8 -8
  34. data/app/components/primer/menu_component.rb +1 -1
  35. data/app/components/primer/octicon_component.rb +5 -3
  36. data/app/components/primer/popover_component.rb +3 -3
  37. data/app/components/primer/primer.js +1 -0
  38. data/app/components/primer/primer.ts +1 -0
  39. data/app/components/primer/progress_bar_component.html.erb +1 -1
  40. data/app/components/primer/progress_bar_component.rb +27 -31
  41. data/app/components/primer/spinner_component.rb +3 -3
  42. data/app/components/primer/state_component.rb +21 -10
  43. data/app/components/primer/subhead_component.html.erb +3 -15
  44. data/app/components/primer/subhead_component.rb +47 -59
  45. data/app/components/primer/tab_container_component.js +1 -0
  46. data/app/components/primer/tab_container_component.rb +41 -0
  47. data/app/components/primer/tab_container_component.ts +1 -0
  48. data/app/components/primer/tab_nav_component.html.erb +17 -0
  49. data/app/components/primer/tab_nav_component.rb +108 -0
  50. data/app/components/primer/text_component.rb +1 -1
  51. data/app/components/primer/timeline_item_component.rb +1 -1
  52. data/app/components/primer/tooltip_component.rb +5 -5
  53. data/app/components/primer/truncate_component.rb +4 -4
  54. data/app/components/primer/underline_nav_component.rb +2 -2
  55. data/{lib → app/lib}/primer/class_name_helper.rb +0 -0
  56. data/{lib → app/lib}/primer/classify.rb +0 -2
  57. data/{lib → app/lib}/primer/classify/cache.rb +0 -0
  58. data/{lib → app/lib}/primer/fetch_or_fallback_helper.rb +0 -0
  59. data/{lib → app/lib}/primer/join_style_arguments_helper.rb +0 -0
  60. data/app/lib/primer/view_helper.rb +22 -0
  61. data/app/lib/primer/view_helper/dsl.rb +34 -0
  62. data/lib/primer/view_components/engine.rb +10 -2
  63. data/lib/primer/view_components/version.rb +5 -1
  64. data/static/statuses.json +1 -1
  65. metadata +18 -8
  66. data/app/components/primer/view_components.rb +0 -60
@@ -1,60 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "active_support/core_ext"
4
-
5
- # ViewComponent
6
-
7
- require "view_component/engine"
8
-
9
- # Octicons
10
-
11
- require "octicons_helper/helper"
12
-
13
- # Helpers
14
-
15
- require "primer/class_name_helper"
16
- require "primer/classify"
17
- require "primer/fetch_or_fallback_helper"
18
- require "primer/join_style_arguments_helper"
19
-
20
- # Base configurations
21
-
22
- require_relative "component"
23
- require_relative "base_component"
24
- require_relative "slot"
25
-
26
- # Components
27
-
28
- require_relative "avatar_component"
29
- require_relative "avatar_stack_component"
30
- require_relative "blankslate_component"
31
- require_relative "border_box_component"
32
- require_relative "box_component"
33
- require_relative "breadcrumb_component"
34
- require_relative "button_component"
35
- require_relative "button_group_component"
36
- require_relative "button_marketing_component"
37
- require_relative "counter_component"
38
- require_relative "details_component"
39
- require_relative "dropdown_component"
40
- require_relative "dropdown_menu_component"
41
- require_relative "flash_component"
42
- require_relative "flex_component"
43
- require_relative "flex_item_component"
44
- require_relative "heading_component"
45
- require_relative "label_component"
46
- require_relative "layout_component"
47
- require_relative "link_component"
48
- require_relative "markdown_component"
49
- require_relative "menu_component"
50
- require_relative "octicon_component"
51
- require_relative "popover_component"
52
- require_relative "progress_bar_component"
53
- require_relative "spinner_component"
54
- require_relative "state_component"
55
- require_relative "subhead_component"
56
- require_relative "text_component"
57
- require_relative "timeline_item_component"
58
- require_relative "tooltip_component"
59
- require_relative "truncate_component"
60
- require_relative "underline_nav_component"