openproject-primer_view_components 0.39.0 → 0.39.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3ebb419d4e20f0975a1f77b6c75b135d9852a2604f876e2585f096065284faf
4
- data.tar.gz: 4912b1756dfd9729abac0940fce6916f330fb26e673bf29b17da7a584e5be51f
3
+ metadata.gz: cb37337d3063b095d568d2c8a89dafbcd1cece45010ab42b1e88664af53ce78b
4
+ data.tar.gz: 3247969ec5c6fd71611330d450d95581b892043f25f2bfeb3a9d48fedfcd833a
5
5
  SHA512:
6
- metadata.gz: 86be7a5639c3f53d1c3ecd54f1b948446c82d0a5a6fb8503809bb9197faf1943d9786ee9ea18545897be45e76cbb44ba0f44f3760401fee16de8d25d9e32edb4
7
- data.tar.gz: bf4421a4f6ed01236c31fbf0c64371eff19032ed63fd88505324109328b0388b17be2ae4b09924d65b0b7559829ee2179381e0cbe5f346967d56920552b8f5ab
6
+ metadata.gz: bd5d5c42323e4832f52d6b338e2393c0b1bdaf70c23e3d9d53de61e437e2e514e2c6ddcb897b6c4e1060454d1fbf3fe9cfce031916d6df47a748255bc0f5d8d5
7
+ data.tar.gz: ae3d596a7f6e988843d847e2faa933a0e9fd751d1705eaaacf1ced46fe67a67b5fd5b9a7787ea9f599f5eb73fbf1c91feab9fdc131207f0dfeb55b1a0a4a3081
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.39.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#154](https://github.com/opf/primer_view_components/pull/154) [`8bf5ac3`](https://github.com/opf/primer_view_components/commit/8bf5ac30202c291af00334faf0b7f7cd28a10849) Thanks [@HDinger](https://github.com/HDinger)! - Update previews for Primer::OpenProject::PageHeader
8
+
3
9
  ## 0.39.0
4
10
 
5
11
  ### Minor Changes
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 39
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
@@ -0,0 +1,21 @@
1
+ <%=
2
+ render(Primer::OpenProject::PageHeader.new) do |component|
3
+ component.with_title { "Users" }
4
+ component.with_breadcrumbs([{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"])
5
+ end
6
+ %>
7
+
8
+ <%=
9
+ render(Primer::OpenProject::SubHeader.new) do |component|
10
+ component.with_filter_input(name: "filter", label: "Filter")
11
+ component.with_filter_button do |button|
12
+ button.with_trailing_visual_counter(count: "15")
13
+ "Filter"
14
+ end
15
+
16
+ component.with_action_button(scheme: :primary) do |button|
17
+ button.with_leading_visual_icon(icon: :plus)
18
+ "User"
19
+ end
20
+ end
21
+ %>
@@ -111,28 +111,34 @@ module Primer
111
111
  # The missing label will be resolved automatically when included into the core
112
112
  def zen_mode_button_actions
113
113
  render(Primer::OpenProject::PageHeader.new) do |component|
114
- component.with_title { "Great news" }
114
+ component.with_title { "Great user" }
115
115
  component.with_breadcrumbs([{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"])
116
116
 
117
117
  # The missing label will be resolved automatically when included into the core
118
118
  component.with_action_zen_mode_button
119
- component.with_action_button(mobile_icon: "plus", mobile_label: "Meeting", scheme: :primary) do |button|
120
- button.with_leading_visual_icon(icon: "plus")
121
- "Meeting"
119
+ component.with_action_button(mobile_icon: "person", mobile_label: "Profile") do |button|
120
+ button.with_leading_visual_icon(icon: "person")
121
+ "Profile"
122
122
  end
123
123
  end
124
124
  end
125
125
 
126
+ # @label With a create action
127
+ # Create action usually belong into the Primer::OpenProject::SubHeader
128
+ def create_action
129
+ render_with_template(locals: {})
130
+ end
131
+
126
132
  # @label With a single action
127
133
  # The single action will not be transformed into a menu on mobile, but remains in a smaller variant
128
134
  def single_action
129
135
  render(Primer::OpenProject::PageHeader.new) do |component|
130
- component.with_title { "Great news" }
136
+ component.with_title { "Great user" }
131
137
  component.with_breadcrumbs([{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"])
132
138
 
133
- component.with_action_button(mobile_icon: "plus", mobile_label: "Meeting", scheme: :primary) do |button|
134
- button.with_leading_visual_icon(icon: "plus")
135
- "Meeting"
139
+ component.with_action_button(mobile_icon: "person", mobile_label: "Profile") do |button|
140
+ button.with_leading_visual_icon(icon: "person")
141
+ "Profile"
136
142
  end
137
143
  end
138
144
  end
@@ -17828,6 +17828,19 @@
17828
17828
  ]
17829
17829
  }
17830
17830
  },
17831
+ {
17832
+ "preview_path": "primer/open_project/page_header/create_action",
17833
+ "name": "create_action",
17834
+ "snapshot": "false",
17835
+ "skip_rules": {
17836
+ "wont_fix": [
17837
+ "region"
17838
+ ],
17839
+ "will_fix": [
17840
+ "color-contrast"
17841
+ ]
17842
+ }
17843
+ },
17831
17844
  {
17832
17845
  "preview_path": "primer/open_project/page_header/single_action",
17833
17846
  "name": "single_action",
data/static/previews.json CHANGED
@@ -5443,6 +5443,19 @@
5443
5443
  ]
5444
5444
  }
5445
5445
  },
5446
+ {
5447
+ "preview_path": "primer/open_project/page_header/create_action",
5448
+ "name": "create_action",
5449
+ "snapshot": "false",
5450
+ "skip_rules": {
5451
+ "wont_fix": [
5452
+ "region"
5453
+ ],
5454
+ "will_fix": [
5455
+ "color-contrast"
5456
+ ]
5457
+ }
5458
+ },
5446
5459
  {
5447
5460
  "preview_path": "primer/open_project/page_header/single_action",
5448
5461
  "name": "single_action",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-07-24 00:00:00.000000000 Z
12
+ date: 2024-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -987,6 +987,7 @@ files:
987
987
  - previews/primer/open_project/input_group_preview.rb
988
988
  - previews/primer/open_project/page_header_preview.rb
989
989
  - previews/primer/open_project/page_header_preview/actions.html.erb
990
+ - previews/primer/open_project/page_header_preview/create_action.html.erb
990
991
  - previews/primer/open_project/page_header_preview/playground.html.erb
991
992
  - previews/primer/open_project/side_panel_preview.rb
992
993
  - previews/primer/open_project/side_panel_preview/default.html.erb