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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +77 -0
- data/app/assets/javascripts/primer_view_components.js +2 -0
- data/app/assets/javascripts/primer_view_components.js.map +1 -0
- data/app/components/primer/avatar_component.rb +3 -3
- data/app/components/primer/avatar_stack_component.rb +3 -3
- data/app/components/primer/base_component.rb +6 -2
- data/app/components/primer/blankslate_component.html.erb +2 -2
- data/app/components/primer/blankslate_component.rb +11 -7
- data/app/components/primer/border_box_component.html.erb +4 -18
- data/app/components/primer/border_box_component.rb +58 -67
- data/app/components/primer/box_component.rb +2 -2
- data/app/components/primer/breadcrumb_component.html.erb +1 -2
- data/app/components/primer/breadcrumb_component.rb +24 -13
- data/app/components/primer/button_component.rb +2 -2
- data/app/components/primer/button_group_component.rb +1 -1
- data/app/components/primer/button_marketing_component.rb +2 -2
- data/app/components/primer/component.rb +4 -0
- data/app/components/primer/counter_component.rb +1 -1
- data/app/components/primer/details_component.html.erb +2 -6
- data/app/components/primer/details_component.rb +21 -35
- data/app/components/primer/dropdown_component.html.erb +2 -2
- data/app/components/primer/dropdown_component.rb +4 -6
- data/app/components/primer/dropdown_menu_component.rb +4 -4
- data/app/components/primer/flash_component.html.erb +2 -2
- data/app/components/primer/flash_component.rb +5 -5
- data/app/components/primer/flex_component.rb +4 -4
- data/app/components/primer/flex_item_component.rb +1 -1
- data/app/components/primer/heading_component.rb +3 -1
- data/app/components/primer/label_component.rb +22 -26
- data/app/components/primer/layout_component.rb +2 -2
- data/app/components/primer/link_component.rb +2 -2
- data/app/components/primer/markdown_component.rb +8 -8
- data/app/components/primer/menu_component.rb +1 -1
- data/app/components/primer/octicon_component.rb +5 -3
- data/app/components/primer/popover_component.rb +3 -3
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/progress_bar_component.html.erb +1 -1
- data/app/components/primer/progress_bar_component.rb +27 -31
- data/app/components/primer/spinner_component.rb +3 -3
- data/app/components/primer/state_component.rb +21 -10
- data/app/components/primer/subhead_component.html.erb +3 -15
- data/app/components/primer/subhead_component.rb +47 -59
- data/app/components/primer/tab_container_component.js +1 -0
- data/app/components/primer/tab_container_component.rb +41 -0
- data/app/components/primer/tab_container_component.ts +1 -0
- data/app/components/primer/tab_nav_component.html.erb +17 -0
- data/app/components/primer/tab_nav_component.rb +108 -0
- data/app/components/primer/text_component.rb +1 -1
- data/app/components/primer/timeline_item_component.rb +1 -1
- data/app/components/primer/tooltip_component.rb +5 -5
- data/app/components/primer/truncate_component.rb +4 -4
- data/app/components/primer/underline_nav_component.rb +2 -2
- data/{lib → app/lib}/primer/class_name_helper.rb +0 -0
- data/{lib → app/lib}/primer/classify.rb +0 -2
- data/{lib → app/lib}/primer/classify/cache.rb +0 -0
- data/{lib → app/lib}/primer/fetch_or_fallback_helper.rb +0 -0
- data/{lib → app/lib}/primer/join_style_arguments_helper.rb +0 -0
- data/app/lib/primer/view_helper.rb +22 -0
- data/app/lib/primer/view_helper/dsl.rb +34 -0
- data/lib/primer/view_components/engine.rb +10 -2
- data/lib/primer/view_components/version.rb +5 -1
- data/static/statuses.json +1 -1
- metadata +18 -8
- 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"
|