Skip to content

Commit 26783e5

Browse files
authored
Merge pull request #268 from opf/bump/primer-upstream
Bump/primer upstream 0.40.0
2 parents ccde8df + 8ae1dff commit 26783e5

File tree

18 files changed

+749
-669
lines changed

18 files changed

+749
-669
lines changed

.changeset/six-moose-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openproject/primer-view-components': minor
3+
---
4+
5+
Adding upsell scheme to Primer::Alpha::Banner
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- paragraph: This is a upsell banner!
37.7 KB
Loading
37.7 KB
Loading

app/components/primer/alpha/banner.pcss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
grid-template-columns: min-content 1fr minmax(0, auto) min-content;
1414
grid-template-rows: min-content;
1515

16-
/* `sm` breakpoint variantion */
16+
/* `sm` breakpoint variation */
1717
@media (max-width: 543.98px) {
1818
grid-template-areas:
1919
'visual message close'
@@ -108,6 +108,16 @@
108108
}
109109
}
110110

111+
&.Banner--upsell {
112+
color: var(--fgColor-default);
113+
background-image: linear-gradient(var(--bgColor-done-muted), var(--bgColor-done-muted));
114+
border-color: var(--borderColor-done-muted);
115+
116+
& .Banner-visual .octicon {
117+
color: var(--fgColor-done);
118+
}
119+
}
120+
111121
/* Full-width */
112122

113123
&.Banner--full {

app/components/primer/alpha/banner.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,23 @@ class Banner < Primer::Component
6161
DEFAULT_SCHEME => "",
6262
:warning => "Banner--warning",
6363
:danger => "Banner--error",
64-
:success => "Banner--success"
64+
:success => "Banner--success",
65+
:upsell => "Banner--upsell"
6566
}.freeze
6667

6768
LEGACY_SCHEME_MAPPINGS = {
6869
DEFAULT_SCHEME => "",
6970
:warning => "flash-warn",
7071
:danger => "flash-error",
71-
:success => "flash-success"
72+
:success => "flash-success",
7273
}.freeze
7374

7475
DEFAULT_ICONS = {
7576
default: :bell,
7677
warning: :alert,
7778
danger: :stop,
78-
success: :"check-circle"
79+
success: :"check-circle",
80+
upsell: :info,
7981
}.freeze
8082

8183
DEFAULT_DISMISS_SCHEME = :none

app/components/primer/alpha/select_panel.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,8 @@ def with_avatar_item(**system_arguments)
354354
# @param dynamic_aria_label_prefix [String] If provided, the prefix is prepended to the dynamic label and set as the value of the `aria-label` attribute on the show button.
355355
# @param body_id [String] The unique ID of the panel body. If not provided, the body ID will be set to the panel ID with a "-body" suffix.
356356
# @param list_arguments [Hash] Arguments to pass to the underlying <%= link_to_component(Primer::Alpha::ActionList) %> component. Only has an effect for the local fetch strategy.
357-
# @param form_arguments [Hash] Form arguments
358-
359-
# @param use_experimental_non_local_form [Boolean] A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values.
357+
# @param form_arguments [Hash] Form arguments. Supported for `local`, and experimentally supported for `remote` and `eventually_local` strategies by enabling the `use_experimental_non_local_form` flag.
358+
# @param use_experimental_non_local_form [Boolean] A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values. At this time, support is only available for the :single select variant. See: https://github.com/github/primer/issues/4923.
360359
# @param show_filter [Boolean] Whether or not to show the filter input.
361360
# @param open_on_load [Boolean] Open the panel when the page loads.
362361
# @param anchor_align [Symbol] The anchor alignment of the Overlay. <%= one_of(Primer::Alpha::Overlay::ANCHOR_ALIGN_OPTIONS) %>

demo/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ gem "bootsnap", ">= 1.4.2", require: false
3838

3939
gem "openproject-primer_view_components", path: "../"
4040
gem "view_component", '>= 3.11.0'
41-
gem "lookbook", "~> 2.3.5" unless rails_version.to_f < 7
41+
gem "lookbook", "~> 2.3.8" unless rails_version.to_f < 7
4242

4343
gem "vite_rails", "~> 3.0"
4444
gem "cssbundling-rails", "~> 1.4"

demo/Gemfile.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ GEM
5353
bootsnap (1.18.4)
5454
msgpack (~> 1.2)
5555
builder (3.3.0)
56-
byebug (11.1.3)
56+
byebug (12.0.0)
5757
coderay (1.1.3)
5858
colorize (0.8.1)
59-
concurrent-ruby (1.3.5)
59+
concurrent-ruby (1.3.4)
6060
connection_pool (2.5.0)
6161
crass (1.0.6)
62-
css_parser (1.21.0)
62+
css_parser (1.21.1)
6363
addressable
6464
cssbundling-rails (1.4.3)
6565
railties (>= 6.0.0)
@@ -208,7 +208,7 @@ GEM
208208
loofah (2.24.0)
209209
crass (~> 1.0.2)
210210
nokogiri (>= 1.12.0)
211-
lookbook (2.3.7)
211+
lookbook (2.3.8)
212212
activemodel
213213
css_parser
214214
htmlbeautifier (~> 1.3)
@@ -226,7 +226,7 @@ GEM
226226
logger
227227
mime-types-data (~> 3.2015)
228228
mime-types-data (3.2025.0304)
229-
minitest (5.25.4)
229+
minitest (5.25.5)
230230
ms_rest (0.7.6)
231231
concurrent-ruby (~> 1.0)
232232
faraday (>= 0.9, < 2.0.0)
@@ -242,11 +242,11 @@ GEM
242242
mutex_m (0.2.0)
243243
netrc (0.11.0)
244244
nio4r (2.7.4)
245-
nokogiri (1.18.3-arm64-darwin)
245+
nokogiri (1.18.6-arm64-darwin)
246246
racc (~> 1.4)
247-
nokogiri (1.18.3-x86_64-darwin)
247+
nokogiri (1.18.6-x86_64-darwin)
248248
racc (~> 1.4)
249-
nokogiri (1.18.3-x86_64-linux-gnu)
249+
nokogiri (1.18.6-x86_64-linux-gnu)
250250
racc (~> 1.4)
251251
oj (3.16.10)
252252
bigdecimal (>= 3.0)
@@ -257,12 +257,12 @@ GEM
257257
pp (0.6.2)
258258
prettyprint
259259
prettyprint (0.2.0)
260-
pry (0.14.2)
260+
pry (0.15.2)
261261
coderay (~> 1.1)
262262
method_source (~> 1.0)
263-
pry-byebug (3.10.1)
264-
byebug (~> 11.0)
265-
pry (>= 0.13, < 0.15)
263+
pry-byebug (3.11.0)
264+
byebug (~> 12.0)
265+
pry (>= 0.13, < 0.16)
266266
psych (5.2.3)
267267
date
268268
stringio
@@ -301,7 +301,7 @@ GEM
301301
rb-fsevent (0.11.2)
302302
rb-inotify (0.11.1)
303303
ffi (~> 1.0)
304-
rdoc (6.12.0)
304+
rdoc (6.13.1)
305305
psych (>= 4.0.0)
306306
recursive-open-struct (1.3.1)
307307
ostruct
@@ -334,17 +334,17 @@ GEM
334334
statsd-instrument (3.9.9)
335335
stimulus-rails (1.3.4)
336336
railties (>= 6.0.0)
337-
stringio (3.1.5)
337+
stringio (3.1.6)
338338
thor (1.3.2)
339339
timeliness (0.3.10)
340-
turbo-rails (2.0.12)
341-
actionpack (>= 6.0.0)
342-
railties (>= 6.0.0)
340+
turbo-rails (2.0.13)
341+
actionpack (>= 7.1.0)
342+
railties (>= 7.1.0)
343343
tzinfo (2.0.6)
344344
concurrent-ruby (~> 1.0)
345-
view_component (3.19.0)
345+
view_component (3.22.0)
346346
activesupport (>= 5.2.0, < 8.1)
347-
concurrent-ruby (~> 1.0)
347+
concurrent-ruby (= 1.3.4)
348348
method_source (~> 1.0)
349349
vite_rails (3.0.19)
350350
railties (>= 5.1, < 9)
@@ -385,7 +385,7 @@ DEPENDENCIES
385385
kuby-core (~> 0.20)
386386
kuby-kind (~> 0.2)
387387
listen
388-
lookbook (~> 2.3.5)
388+
lookbook (~> 2.3.8)
389389
openproject-primer_view_components!
390390
pry-byebug
391391
puma (~> 6.6.0)

demo/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)