openproject-primer_view_components 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +1 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +6 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +37 -6
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +39 -5
- data/app/components/primer/alpha/dialog.rb +2 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +1 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +4 -0
- data/app/components/primer/beta/button.rb +6 -1
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.html.erb +1 -3
- data/app/components/primer/beta/flash.pcss +1 -2
- data/app/components/primer/component.rb +1 -1
- data/app/components/primer/open_project/page_header.css +1 -0
- data/app/components/primer/open_project/page_header.css.json +10 -0
- data/app/components/primer/open_project/page_header.css.map +1 -0
- data/app/components/primer/open_project/page_header.html.erb +5 -0
- data/app/components/primer/open_project/page_header.pcss +36 -0
- data/app/components/primer/open_project/page_header.rb +59 -0
- data/app/components/primer/primer.pcss +3 -0
- data/app/lib/primer/fetch_or_fallback_helper.rb +1 -1
- data/app/lib/primer/status/dsl.rb +2 -1
- data/lib/primer/view_components/linters/details_menu_migration.rb +1 -1
- data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/primer/view_components.rb +18 -0
- data/previews/primer/beta/button_preview/leading_visual.html.erb +2 -2
- data/previews/primer/beta/button_preview/leading_visual_svg.html.erb +12 -0
- data/previews/primer/beta/button_preview/trailing_counter.html.erb +1 -1
- data/previews/primer/beta/button_preview/trailing_visual.html.erb +1 -1
- data/previews/primer/beta/button_preview.rb +22 -0
- data/previews/primer/open_project/page_header_preview/actions.html.erb +22 -0
- data/previews/primer/open_project/page_header_preview.rb +33 -0
- data/static/classes.json +12 -0
- data/static/info_arch.json +14 -1
- data/static/previews.json +60 -0
- metadata +13 -4
@@ -31,8 +31,7 @@
|
|
31
31
|
/* Close button */
|
32
32
|
.flash-close:not(.Banner-close) {
|
33
33
|
float: right;
|
34
|
-
|
35
|
-
margin: calc(var(--control-medium-paddingInline-spacious) * -1);
|
34
|
+
margin-top: calc(var(--base-size-4) * -1);
|
36
35
|
text-align: center;
|
37
36
|
cursor: pointer;
|
38
37
|
|
@@ -52,7 +52,7 @@ module Primer
|
|
52
52
|
message += " and will be removed in v#{version}." if version
|
53
53
|
message += " Use #{new_class.name} instead." if new_class
|
54
54
|
|
55
|
-
|
55
|
+
::Primer::ViewComponents.deprecation.warn(message)
|
56
56
|
end
|
57
57
|
|
58
58
|
def validate_aria_label
|
@@ -0,0 +1 @@
|
|
1
|
+
.PageHeader{border-bottom:var(--borderWidth-thin,max(1px,.0625rem)) solid var(--borderColor-muted,var(--color-border-muted));display:flex;flex-flow:row wrap;justify-content:flex-end;margin-bottom:var(--stack-gap-normal,1rem);padding-bottom:var(--stack-padding-condensed,.5rem)}.PageHeader-title{flex:1 1 auto;order:0}.PageHeader-description{color:var(--fgColor-muted,var(--color-fg-muted));flex:1 100%;font-size:var(--text-body-size-medium,.875rem);order:2}.PageHeader-actions{align-self:center;justify-content:flex-end;margin:var(--base-size-4,.25rem) 0 var(--base-size-4,.25rem) var(--base-size-4,.25rem);order:1}.PageHeader-actions+.PageHeader-description{margin-top:var(--base-size-4,.25rem)}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["page_header.pcss"],"names":[],"mappings":"AAEA,YAIE,gHAAqE,CAHrE,YAAa,CAIb,kBAAmB,CACnB,wBAAyB,CAHzB,0CAAsC,CADtC,mDAKF,CAGA,kBACE,aAAc,CACd,OACF,CAGA,wBAEE,gDAA2B,CAC3B,WAAY,CAFZ,8CAAuC,CAGvC,OACF,CAGA,oBAEE,iBAAkB,CAClB,wBAAyB,CAFzB,sFAAkE,CAGlE,OAKF,CAHE,4CACE,oCACF","file":"page_header.css","sourcesContent":["/* OP PageHeader */\n\n.PageHeader {\n display: flex;\n padding-bottom: var(--stack-padding-condensed);\n margin-bottom: var(--stack-gap-normal);\n border-bottom: var(--borderWidth-thin) solid var(--borderColor-muted);\n flex-flow: row wrap;\n justify-content: flex-end; /* Keep actions right aligned. */\n}\n\n/* <h2> sized heading with normal font weight */\n.PageHeader-title {\n flex: 1 1 auto;\n order: 0;\n}\n\n/* One-liner of supporting text */\n.PageHeader-description {\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex: 1 100%;\n order: 2;\n}\n\n/* Add 1 or 2 buttons to the right of the heading */\n.PageHeader-actions {\n margin: var(--base-size-4) 0 var(--base-size-4) var(--base-size-4);\n align-self: center;\n justify-content: flex-end;\n order: 1;\n\n & + .PageHeader-description {\n margin-top: var(--base-size-4);\n }\n}\n"]}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/* OP PageHeader */
|
2
|
+
|
3
|
+
.PageHeader {
|
4
|
+
display: flex;
|
5
|
+
padding-bottom: var(--stack-padding-condensed);
|
6
|
+
margin-bottom: var(--stack-gap-normal);
|
7
|
+
border-bottom: var(--borderWidth-thin) solid var(--borderColor-muted);
|
8
|
+
flex-flow: row wrap;
|
9
|
+
justify-content: flex-end; /* Keep actions right aligned. */
|
10
|
+
}
|
11
|
+
|
12
|
+
/* <h2> sized heading with normal font weight */
|
13
|
+
.PageHeader-title {
|
14
|
+
flex: 1 1 auto;
|
15
|
+
order: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
/* One-liner of supporting text */
|
19
|
+
.PageHeader-description {
|
20
|
+
font-size: var(--text-body-size-medium);
|
21
|
+
color: var(--fgColor-muted);
|
22
|
+
flex: 1 100%;
|
23
|
+
order: 2;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Add 1 or 2 buttons to the right of the heading */
|
27
|
+
.PageHeader-actions {
|
28
|
+
margin: var(--base-size-4) 0 var(--base-size-4) var(--base-size-4);
|
29
|
+
align-self: center;
|
30
|
+
justify-content: flex-end;
|
31
|
+
order: 1;
|
32
|
+
|
33
|
+
& + .PageHeader-description {
|
34
|
+
margin-top: var(--base-size-4);
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module OpenProject
|
5
|
+
# A ViewComponent PageHeader inspired by the primer react variant
|
6
|
+
class PageHeader < Primer::Component
|
7
|
+
HEADING_TAG_OPTIONS = [:h1, :h2, :h3, :h4, :h5, :h6].freeze
|
8
|
+
HEADING_TAG_FALLBACK = :h1
|
9
|
+
|
10
|
+
status :open_project
|
11
|
+
|
12
|
+
# The title of the page header
|
13
|
+
#
|
14
|
+
# @param tag [Symbol] <%= one_of(Primer::Beta::Heading::TAG_OPTIONS) %>
|
15
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
16
|
+
renders_one :title, lambda { |tag: :h1, **system_arguments|
|
17
|
+
system_arguments[:tag] = fetch_or_fallback(HEADING_TAG_OPTIONS, tag, HEADING_TAG_FALLBACK)
|
18
|
+
system_arguments[:classes] = class_names(system_arguments[:classes], "PageHeader-title")
|
19
|
+
|
20
|
+
Primer::BaseComponent.new(**system_arguments)
|
21
|
+
}
|
22
|
+
|
23
|
+
# Optional description below the title row
|
24
|
+
renders_one :description, lambda { |**system_arguments|
|
25
|
+
deny_tag_argument(**system_arguments)
|
26
|
+
system_arguments[:tag] = :div
|
27
|
+
system_arguments[:classes] = class_names(system_arguments[:classes], "PageHeader-description")
|
28
|
+
|
29
|
+
Primer::BaseComponent.new(**system_arguments)
|
30
|
+
}
|
31
|
+
|
32
|
+
# Actions
|
33
|
+
#
|
34
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
35
|
+
renders_one :actions, lambda { |**system_arguments|
|
36
|
+
deny_tag_argument(**system_arguments)
|
37
|
+
system_arguments[:tag] = :div
|
38
|
+
system_arguments[:classes] = class_names(system_arguments[:classes], "PageHeader-actions")
|
39
|
+
|
40
|
+
Primer::BaseComponent.new(**system_arguments)
|
41
|
+
}
|
42
|
+
|
43
|
+
def initialize(**system_arguments)
|
44
|
+
@system_arguments = deny_tag_argument(**system_arguments)
|
45
|
+
|
46
|
+
@system_arguments[:tag] = :header
|
47
|
+
@system_arguments[:classes] =
|
48
|
+
class_names(
|
49
|
+
@system_arguments[:classes],
|
50
|
+
"PageHeader"
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
def render?
|
55
|
+
title?
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -29,7 +29,7 @@ module Primer
|
|
29
29
|
if allowed_values.include?(given_value)
|
30
30
|
given_value
|
31
31
|
elsif deprecated_values&.include?(given_value)
|
32
|
-
|
32
|
+
::Primer::ViewComponents.deprecation.warn("#{given_value} is deprecated and will be removed in a future version.") unless Rails.env.production? || silence_deprecations?
|
33
33
|
|
34
34
|
given_value
|
35
35
|
else
|
@@ -11,7 +11,7 @@ module ERBLint
|
|
11
11
|
include Helpers::RuleHelpers
|
12
12
|
|
13
13
|
MIGRATE_FROM_DETAILS_MENU = "<details-menu> has been deprecated. Please instead use Primer::Alpha::ActionMenu" \
|
14
|
-
"https://primer.style/design/components/action-menu/rails/alpha"
|
14
|
+
" https://primer.style/design/components/action-menu/rails/alpha"
|
15
15
|
DETAILS_MENU_RUBY_PATTERN = /tag:?\s+:"details-menu"/.freeze
|
16
16
|
|
17
17
|
def run(processed_source)
|
@@ -10,7 +10,7 @@ module ERBLint
|
|
10
10
|
include LinterRegistry
|
11
11
|
include Helpers::RuleHelpers
|
12
12
|
|
13
|
-
MIGRATE_TO_NEWER_TOOLTIP = ".tooltipped has been deprecated. There are major accessibility concerns with using this tooltip so please take action. See https://
|
13
|
+
MIGRATE_TO_NEWER_TOOLTIP = ".tooltipped has been deprecated. There are major accessibility concerns with using this tooltip so please take action. See https://primer.style/design/guides/development/rails/migration-guides/primer-css-tooltipped."
|
14
14
|
TOOLTIPPED_RUBY_PATTERN = /classes:.*tooltipped|class:.*tooltipped/.freeze
|
15
15
|
|
16
16
|
def run(processed_source)
|
@@ -7,9 +7,27 @@ require "primer/view_components/engine"
|
|
7
7
|
module Primer
|
8
8
|
# :nodoc:
|
9
9
|
module ViewComponents
|
10
|
+
DEPRECATION_HORIZON = "1.0"
|
11
|
+
|
10
12
|
# primer/view_components root directory.
|
11
13
|
def self.root
|
12
14
|
Pathname(File.expand_path(File.join("..", ".."), __dir__))
|
13
15
|
end
|
16
|
+
|
17
|
+
# Skip coverage here because only one branch will execute depending on what
|
18
|
+
# Rails version you're running.
|
19
|
+
|
20
|
+
# :nocov:
|
21
|
+
def self.deprecation
|
22
|
+
@deprecation ||=
|
23
|
+
if Rails.application.respond_to?(:deprecators)
|
24
|
+
Rails.application.deprecators[:primer_view_components] ||= ActiveSupport::Deprecation.new(
|
25
|
+
DEPRECATION_HORIZON, "primer_view_components"
|
26
|
+
)
|
27
|
+
else
|
28
|
+
ActiveSupport::Deprecation.instance
|
29
|
+
end
|
30
|
+
end
|
31
|
+
# :nocov:
|
14
32
|
end
|
15
33
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= render(Primer::Beta::Button.new(
|
2
|
+
scheme: scheme,
|
3
|
+
size: size,
|
4
|
+
block: block,
|
5
|
+
id: "button-preview",
|
6
|
+
align_content: align_content
|
7
|
+
)) do |component| %>
|
8
|
+
<% component.with_leading_visual_svg do %>
|
9
|
+
<path d="M8 16a2 2 0 001.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 008 16z"></path><path fill-rule="evenodd" d="M8 1.5A3.5 3.5 0 004.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.018.018 0 00-.003.01l.001.006c0 .002.002.004.004.006a.017.017 0 00.006.004l.007.001h10.964l.007-.001a.016.016 0 00.006-.004.016.016 0 00.004-.006l.001-.007a.017.017 0 00-.003-.01l-1.703-2.554a1.75 1.75 0 01-.294-.97V5A3.5 3.5 0 008 1.5zM3 5a5 5 0 0110 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.518 1.518 0 0113.482 13H2.518a1.518 1.518 0 01-1.263-2.36l1.703-2.554A.25.25 0 003 7.947V5z"></path>
|
10
|
+
<% end %>
|
11
|
+
Button
|
12
|
+
<% end %>
|
@@ -264,6 +264,28 @@ module Primer
|
|
264
264
|
})
|
265
265
|
end
|
266
266
|
|
267
|
+
# @label Leading visual SVG
|
268
|
+
# @param scheme select [default, primary, danger, invisible, link]
|
269
|
+
# @param size select [small, medium]
|
270
|
+
# @param block toggle
|
271
|
+
# @param align_content select [center, start]
|
272
|
+
# @snapshot
|
273
|
+
def leading_visual_svg(
|
274
|
+
scheme: :invisible,
|
275
|
+
size: :medium,
|
276
|
+
block: false,
|
277
|
+
id: "button-preview",
|
278
|
+
align_content: :center
|
279
|
+
)
|
280
|
+
render_with_template(locals: {
|
281
|
+
scheme: scheme,
|
282
|
+
size: size,
|
283
|
+
block: block,
|
284
|
+
id: id,
|
285
|
+
align_content: align_content
|
286
|
+
})
|
287
|
+
end
|
288
|
+
|
267
289
|
# @label Trailing action
|
268
290
|
# @param block toggle
|
269
291
|
# @param align_content select [center, start]
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%= render(Primer::OpenProject::PageHeader.new) do |component| %>
|
2
|
+
<% component.with_title(tag: :h1) do %>
|
3
|
+
A title
|
4
|
+
<% end %>
|
5
|
+
<% component.with_description do %>
|
6
|
+
A description with actions
|
7
|
+
<% end %>
|
8
|
+
<% component.with_actions do %>
|
9
|
+
<%= render(Primer::Alpha::ActionMenu.new) do |component| %>
|
10
|
+
<% component.with_show_button { "Menu" } %>
|
11
|
+
<% component.with_item(label: "Item", tag: :button, value: "") %>
|
12
|
+
<% component.with_item(
|
13
|
+
label: "Show dialog",
|
14
|
+
tag: :button,
|
15
|
+
content_arguments: { "data-show-dialog-id": "my-dialog" },
|
16
|
+
value: "",
|
17
|
+
scheme: :danger
|
18
|
+
) %>
|
19
|
+
<% end %>
|
20
|
+
<% end %>
|
21
|
+
<% end %>
|
22
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module OpenProject
|
5
|
+
# @component Primer::OpenProject::PageHeader
|
6
|
+
# @label Page Header
|
7
|
+
class PageHeaderPreview < ViewComponent::Preview
|
8
|
+
# @label Default
|
9
|
+
# @snapshot
|
10
|
+
def default
|
11
|
+
render(Primer::OpenProject::PageHeader.new) do |header|
|
12
|
+
header.with_title { "Hello" }
|
13
|
+
header.with_description { "Last updated 5 minutes ago by XYZ." }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
# @label Playground
|
19
|
+
#
|
20
|
+
def playground
|
21
|
+
render(Primer::OpenProject::PageHeader.new) do |header|
|
22
|
+
header.with_title { "Hello" }
|
23
|
+
header.with_description { "Last updated 5 minutes ago by XYZ." }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
# @label With actions
|
28
|
+
def actions
|
29
|
+
render_with_template(locals: {})
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/static/classes.json
CHANGED
@@ -411,6 +411,18 @@
|
|
411
411
|
"Overlay-header": [
|
412
412
|
"Primer::Alpha::Dialog"
|
413
413
|
],
|
414
|
+
"PageHeader": [
|
415
|
+
"Primer::OpenProject::PageHeader"
|
416
|
+
],
|
417
|
+
"PageHeader-actions": [
|
418
|
+
"Primer::OpenProject::PageHeader"
|
419
|
+
],
|
420
|
+
"PageHeader-description": [
|
421
|
+
"Primer::OpenProject::PageHeader"
|
422
|
+
],
|
423
|
+
"PageHeader-title": [
|
424
|
+
"Primer::OpenProject::PageHeader"
|
425
|
+
],
|
414
426
|
"Popover": [
|
415
427
|
"Primer::Beta::Popover"
|
416
428
|
],
|
data/static/info_arch.json
CHANGED
@@ -10495,7 +10495,7 @@
|
|
10495
10495
|
"slots": [
|
10496
10496
|
{
|
10497
10497
|
"name": "leading_visual",
|
10498
|
-
"description": "Leading visuals appear to the left of the button text.\n\nUse:\n\n- `leading_visual_icon` for a {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.",
|
10498
|
+
"description": "Leading visuals appear to the left of the button text.\n\nUse:\n\n- `leading_visual_icon` for a {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.\n\n- `leading_visual_svg` to render a SVG.",
|
10499
10499
|
"parameters": [
|
10500
10500
|
{
|
10501
10501
|
"name": "system_arguments",
|
@@ -10708,6 +10708,19 @@
|
|
10708
10708
|
]
|
10709
10709
|
}
|
10710
10710
|
},
|
10711
|
+
{
|
10712
|
+
"preview_path": "primer/beta/button/leading_visual_svg",
|
10713
|
+
"name": "leading_visual_svg",
|
10714
|
+
"snapshot": "true",
|
10715
|
+
"skip_rules": {
|
10716
|
+
"wont_fix": [
|
10717
|
+
"region"
|
10718
|
+
],
|
10719
|
+
"will_fix": [
|
10720
|
+
"color-contrast"
|
10721
|
+
]
|
10722
|
+
}
|
10723
|
+
},
|
10711
10724
|
{
|
10712
10725
|
"preview_path": "primer/beta/button/trailing_action",
|
10713
10726
|
"name": "trailing_action",
|
data/static/previews.json
CHANGED
@@ -2046,6 +2046,19 @@
|
|
2046
2046
|
]
|
2047
2047
|
}
|
2048
2048
|
},
|
2049
|
+
{
|
2050
|
+
"preview_path": "primer/beta/button/leading_visual_svg",
|
2051
|
+
"name": "leading_visual_svg",
|
2052
|
+
"snapshot": "true",
|
2053
|
+
"skip_rules": {
|
2054
|
+
"wont_fix": [
|
2055
|
+
"region"
|
2056
|
+
],
|
2057
|
+
"will_fix": [
|
2058
|
+
"color-contrast"
|
2059
|
+
]
|
2060
|
+
}
|
2061
|
+
},
|
2049
2062
|
{
|
2050
2063
|
"preview_path": "primer/beta/button/trailing_action",
|
2051
2064
|
"name": "trailing_action",
|
@@ -4419,6 +4432,53 @@
|
|
4419
4432
|
}
|
4420
4433
|
]
|
4421
4434
|
},
|
4435
|
+
{
|
4436
|
+
"name": "page_header",
|
4437
|
+
"component": "PageHeader",
|
4438
|
+
"status": "openproject",
|
4439
|
+
"lookup_path": "primer/open_project/page_header",
|
4440
|
+
"examples": [
|
4441
|
+
{
|
4442
|
+
"preview_path": "primer/open_project/page_header/playground",
|
4443
|
+
"name": "playground",
|
4444
|
+
"snapshot": "true",
|
4445
|
+
"skip_rules": {
|
4446
|
+
"wont_fix": [
|
4447
|
+
"region"
|
4448
|
+
],
|
4449
|
+
"will_fix": [
|
4450
|
+
"color-contrast"
|
4451
|
+
]
|
4452
|
+
}
|
4453
|
+
},
|
4454
|
+
{
|
4455
|
+
"preview_path": "primer/open_project/page_header/default",
|
4456
|
+
"name": "default",
|
4457
|
+
"snapshot": "true",
|
4458
|
+
"skip_rules": {
|
4459
|
+
"wont_fix": [
|
4460
|
+
"region"
|
4461
|
+
],
|
4462
|
+
"will_fix": [
|
4463
|
+
"color-contrast"
|
4464
|
+
]
|
4465
|
+
}
|
4466
|
+
},
|
4467
|
+
{
|
4468
|
+
"preview_path": "primer/open_project/page_header/actions",
|
4469
|
+
"name": "actions",
|
4470
|
+
"snapshot": "true",
|
4471
|
+
"skip_rules": {
|
4472
|
+
"wont_fix": [
|
4473
|
+
"region"
|
4474
|
+
],
|
4475
|
+
"will_fix": [
|
4476
|
+
"color-contrast"
|
4477
|
+
]
|
4478
|
+
}
|
4479
|
+
}
|
4480
|
+
]
|
4481
|
+
},
|
4422
4482
|
{
|
4423
4483
|
"name": "popover",
|
4424
4484
|
"component": "Popover",
|
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.
|
4
|
+
version: 0.9.0
|
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: 2023-
|
12
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 19.
|
48
|
+
version: 19.7.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 19.
|
55
|
+
version: 19.7.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: view_component
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -746,6 +746,12 @@ files:
|
|
746
746
|
- app/components/primer/layout_component.html.erb
|
747
747
|
- app/components/primer/layout_component.rb
|
748
748
|
- app/components/primer/navigation/tab_component.rb
|
749
|
+
- app/components/primer/open_project/page_header.css
|
750
|
+
- app/components/primer/open_project/page_header.css.json
|
751
|
+
- app/components/primer/open_project/page_header.css.map
|
752
|
+
- app/components/primer/open_project/page_header.html.erb
|
753
|
+
- app/components/primer/open_project/page_header.pcss
|
754
|
+
- app/components/primer/open_project/page_header.rb
|
749
755
|
- app/components/primer/primer.d.ts
|
750
756
|
- app/components/primer/primer.js
|
751
757
|
- app/components/primer/primer.pcss
|
@@ -1062,6 +1068,7 @@ files:
|
|
1062
1068
|
- previews/primer/beta/button_preview/all_schemes.html.erb
|
1063
1069
|
- previews/primer/beta/button_preview/invisible_all_visuals.html.erb
|
1064
1070
|
- previews/primer/beta/button_preview/leading_visual.html.erb
|
1071
|
+
- previews/primer/beta/button_preview/leading_visual_svg.html.erb
|
1065
1072
|
- previews/primer/beta/button_preview/trailing_action.html.erb
|
1066
1073
|
- previews/primer/beta/button_preview/trailing_counter.html.erb
|
1067
1074
|
- previews/primer/beta/button_preview/trailing_visual.html.erb
|
@@ -1109,6 +1116,8 @@ files:
|
|
1109
1116
|
- previews/primer/forms_preview/single_text_field_form.html.erb
|
1110
1117
|
- previews/primer/forms_preview/submit_button_form.html.erb
|
1111
1118
|
- previews/primer/forms_preview/text_field_and_checkbox_form.html.erb
|
1119
|
+
- previews/primer/open_project/page_header_preview.rb
|
1120
|
+
- previews/primer/open_project/page_header_preview/actions.html.erb
|
1112
1121
|
- previews/primer/url_helpers.rb
|
1113
1122
|
- static/arguments.json
|
1114
1123
|
- static/assets/view-components.svg
|