openproject-primer_view_components 0.28.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts +2 -0
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_bar.css +1 -1
  9. data/app/components/primer/alpha/action_bar.css.map +1 -1
  10. data/app/components/primer/alpha/action_list/item.html.erb +1 -1
  11. data/app/components/primer/alpha/action_list.css +1 -1
  12. data/app/components/primer/alpha/action_list.css.map +1 -1
  13. data/app/components/primer/alpha/auto_complete.css +1 -1
  14. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  15. data/app/components/primer/alpha/banner.css +1 -1
  16. data/app/components/primer/alpha/banner.css.map +1 -1
  17. data/app/components/primer/alpha/button_marketing.css +1 -1
  18. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  19. data/app/components/primer/alpha/dialog.css +1 -1
  20. data/app/components/primer/alpha/dialog.css.map +1 -1
  21. data/app/components/primer/alpha/dropdown.css +1 -1
  22. data/app/components/primer/alpha/dropdown.css.map +1 -1
  23. data/app/components/primer/alpha/layout.css +1 -1
  24. data/app/components/primer/alpha/layout.css.map +1 -1
  25. data/app/components/primer/alpha/menu.css +1 -1
  26. data/app/components/primer/alpha/menu.css.map +1 -1
  27. data/app/components/primer/alpha/segmented_control.css +1 -1
  28. data/app/components/primer/alpha/segmented_control.css.json +2 -0
  29. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  30. data/app/components/primer/alpha/segmented_control.pcss +13 -0
  31. data/app/components/primer/alpha/tab_nav.css +1 -1
  32. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  33. data/app/components/primer/alpha/text_field.css +1 -1
  34. data/app/components/primer/alpha/text_field.css.map +1 -1
  35. data/app/components/primer/alpha/toggle_switch.css +1 -1
  36. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  37. data/app/components/primer/alpha/underline_nav.css +1 -1
  38. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  39. data/app/components/primer/beta/avatar.css +1 -1
  40. data/app/components/primer/beta/avatar.css.map +1 -1
  41. data/app/components/primer/beta/avatar_stack.css +1 -1
  42. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  43. data/app/components/primer/beta/blankslate.css +1 -1
  44. data/app/components/primer/beta/blankslate.css.map +1 -1
  45. data/app/components/primer/beta/border_box.css +1 -1
  46. data/app/components/primer/beta/border_box.css.json +1 -1
  47. data/app/components/primer/beta/border_box.css.map +1 -1
  48. data/app/components/primer/beta/breadcrumbs.css +1 -1
  49. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  50. data/app/components/primer/beta/breadcrumbs.rb +3 -2
  51. data/app/components/primer/beta/button.css +1 -1
  52. data/app/components/primer/beta/button.css.json +8 -0
  53. data/app/components/primer/beta/button.css.map +1 -1
  54. data/app/components/primer/beta/button.pcss +42 -0
  55. data/app/components/primer/beta/button.rb +5 -1
  56. data/app/components/primer/beta/button_group.css +1 -1
  57. data/app/components/primer/beta/button_group.css.map +1 -1
  58. data/app/components/primer/beta/counter.css +1 -1
  59. data/app/components/primer/beta/counter.css.map +1 -1
  60. data/app/components/primer/beta/flash.css +1 -1
  61. data/app/components/primer/beta/flash.css.map +1 -1
  62. data/app/components/primer/beta/label.css +1 -1
  63. data/app/components/primer/beta/label.css.map +1 -1
  64. data/app/components/primer/beta/link.css +1 -1
  65. data/app/components/primer/beta/link.css.map +1 -1
  66. data/app/components/primer/beta/popover.css +1 -1
  67. data/app/components/primer/beta/popover.css.map +1 -1
  68. data/app/components/primer/beta/progress_bar.css +1 -1
  69. data/app/components/primer/beta/progress_bar.css.map +1 -1
  70. data/app/components/primer/beta/state.css +1 -1
  71. data/app/components/primer/beta/state.css.map +1 -1
  72. data/app/components/primer/beta/subhead.css +1 -1
  73. data/app/components/primer/beta/subhead.css.map +1 -1
  74. data/app/components/primer/beta/timeline_item.css +1 -1
  75. data/app/components/primer/beta/timeline_item.css.map +1 -1
  76. data/app/components/primer/beta/truncate.css +1 -1
  77. data/app/components/primer/beta/truncate.css.map +1 -1
  78. data/app/components/primer/open_project/border_grid.css +1 -1
  79. data/app/components/primer/open_project/border_grid.css.map +1 -1
  80. data/app/components/primer/open_project/drag_handle.css +1 -1
  81. data/app/components/primer/open_project/drag_handle.css.map +1 -1
  82. data/app/components/primer/open_project/page_header.css +1 -1
  83. data/app/components/primer/open_project/page_header.css.map +1 -1
  84. data/app/components/primer/open_project/page_header.html.erb +1 -1
  85. data/app/components/primer/open_project/page_header.pcss +1 -2
  86. data/app/components/primer/open_project/page_header.rb +25 -10
  87. data/app/components/primer/open_project/page_header_element.d.ts +2 -0
  88. data/app/components/primer/open_project/page_header_element.js +16 -1
  89. data/app/components/primer/open_project/page_header_element.ts +16 -1
  90. data/lib/primer/view_components/version.rb +1 -1
  91. data/previews/primer/alpha/action_list_preview.rb +1 -1
  92. data/previews/primer/alpha/select_preview.rb +3 -0
  93. data/previews/primer/beta/button_preview/label_wrap.html.erb +9 -0
  94. data/previews/primer/beta/button_preview/link_scheme_label_wrap.html.erb +8 -0
  95. data/previews/primer/beta/button_preview.rb +31 -2
  96. data/previews/primer/beta/nav_list_preview.rb +15 -1
  97. data/previews/primer/open_project/page_header_preview.rb +5 -5
  98. data/static/arguments.json +6 -0
  99. data/static/classes.json +3 -0
  100. data/static/info_arch.json +47 -2
  101. data/static/previews.json +41 -2
  102. metadata +4 -2
data/static/classes.json CHANGED
@@ -197,6 +197,9 @@
197
197
  "Button--invisible": [
198
198
  "Primer::Beta::Button"
199
199
  ],
200
+ "Button--labelWrap": [
201
+ "Primer::Beta::Button"
202
+ ],
200
203
  "Button--large": [
201
204
  "Primer::Beta::Button"
202
205
  ],
@@ -10967,6 +10967,12 @@
10967
10967
  "default": "`false`",
10968
10968
  "description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
10969
10969
  },
10970
+ {
10971
+ "name": "label_wrap",
10972
+ "type": "Boolean",
10973
+ "default": "`false`",
10974
+ "description": "Whether or not the button label text wraps and the button height expands."
10975
+ },
10970
10976
  {
10971
10977
  "name": "system_arguments",
10972
10978
  "type": "Hash",
@@ -11151,6 +11157,19 @@
11151
11157
  ]
11152
11158
  }
11153
11159
  },
11160
+ {
11161
+ "preview_path": "primer/beta/button/label_wrap",
11162
+ "name": "label_wrap",
11163
+ "snapshot": "true",
11164
+ "skip_rules": {
11165
+ "wont_fix": [
11166
+ "region"
11167
+ ],
11168
+ "will_fix": [
11169
+ "color-contrast"
11170
+ ]
11171
+ }
11172
+ },
11154
11173
  {
11155
11174
  "preview_path": "primer/beta/button/link_as_button",
11156
11175
  "name": "link_as_button",
@@ -11254,6 +11273,19 @@
11254
11273
  "color-contrast"
11255
11274
  ]
11256
11275
  }
11276
+ },
11277
+ {
11278
+ "preview_path": "primer/beta/button/link_scheme_label_wrap",
11279
+ "name": "link_scheme_label_wrap",
11280
+ "snapshot": "true",
11281
+ "skip_rules": {
11282
+ "wont_fix": [
11283
+ "region"
11284
+ ],
11285
+ "will_fix": [
11286
+ "color-contrast"
11287
+ ]
11288
+ }
11257
11289
  }
11258
11290
  ],
11259
11291
  "subcomponents": [
@@ -13438,6 +13470,19 @@
13438
13470
  "color-contrast"
13439
13471
  ]
13440
13472
  }
13473
+ },
13474
+ {
13475
+ "preview_path": "primer/beta/nav_list/group_long_label_with_tooltip",
13476
+ "name": "group_long_label_with_tooltip",
13477
+ "snapshot": "false",
13478
+ "skip_rules": {
13479
+ "wont_fix": [
13480
+ "region"
13481
+ ],
13482
+ "will_fix": [
13483
+ "color-contrast"
13484
+ ]
13485
+ }
13441
13486
  }
13442
13487
  ],
13443
13488
  "subcomponents": [
@@ -16658,8 +16703,8 @@
16658
16703
  }
16659
16704
  },
16660
16705
  {
16661
- "preview_path": "primer/open_project/page_header/breadcrumbs",
16662
- "name": "breadcrumbs",
16706
+ "preview_path": "primer/open_project/page_header/non_bold_breadcrumbs",
16707
+ "name": "non_bold_breadcrumbs",
16663
16708
  "snapshot": "false",
16664
16709
  "skip_rules": {
16665
16710
  "wont_fix": [
data/static/previews.json CHANGED
@@ -2184,6 +2184,19 @@
2184
2184
  ]
2185
2185
  }
2186
2186
  },
2187
+ {
2188
+ "preview_path": "primer/beta/button/label_wrap",
2189
+ "name": "label_wrap",
2190
+ "snapshot": "true",
2191
+ "skip_rules": {
2192
+ "wont_fix": [
2193
+ "region"
2194
+ ],
2195
+ "will_fix": [
2196
+ "color-contrast"
2197
+ ]
2198
+ }
2199
+ },
2187
2200
  {
2188
2201
  "preview_path": "primer/beta/button/link_as_button",
2189
2202
  "name": "link_as_button",
@@ -2287,6 +2300,19 @@
2287
2300
  "color-contrast"
2288
2301
  ]
2289
2302
  }
2303
+ },
2304
+ {
2305
+ "preview_path": "primer/beta/button/link_scheme_label_wrap",
2306
+ "name": "link_scheme_label_wrap",
2307
+ "snapshot": "true",
2308
+ "skip_rules": {
2309
+ "wont_fix": [
2310
+ "region"
2311
+ ],
2312
+ "will_fix": [
2313
+ "color-contrast"
2314
+ ]
2315
+ }
2290
2316
  }
2291
2317
  ]
2292
2318
  },
@@ -4955,6 +4981,19 @@
4955
4981
  "color-contrast"
4956
4982
  ]
4957
4983
  }
4984
+ },
4985
+ {
4986
+ "preview_path": "primer/beta/nav_list/group_long_label_with_tooltip",
4987
+ "name": "group_long_label_with_tooltip",
4988
+ "snapshot": "false",
4989
+ "skip_rules": {
4990
+ "wont_fix": [
4991
+ "region"
4992
+ ],
4993
+ "will_fix": [
4994
+ "color-contrast"
4995
+ ]
4996
+ }
4958
4997
  }
4959
4998
  ]
4960
4999
  },
@@ -5249,8 +5288,8 @@
5249
5288
  }
5250
5289
  },
5251
5290
  {
5252
- "preview_path": "primer/open_project/page_header/breadcrumbs",
5253
- "name": "breadcrumbs",
5291
+ "preview_path": "primer/open_project/page_header/non_bold_breadcrumbs",
5292
+ "name": "non_bold_breadcrumbs",
5254
5293
  "snapshot": "false",
5255
5294
  "skip_rules": {
5256
5295
  "wont_fix": [
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.28.0
4
+ version: 0.29.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: 2024-04-10 00:00:00.000000000 Z
12
+ date: 2024-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -860,8 +860,10 @@ files:
860
860
  - previews/primer/beta/button_preview.rb
861
861
  - previews/primer/beta/button_preview/all_schemes.html.erb
862
862
  - previews/primer/beta/button_preview/invisible_all_visuals.html.erb
863
+ - previews/primer/beta/button_preview/label_wrap.html.erb
863
864
  - previews/primer/beta/button_preview/leading_visual.html.erb
864
865
  - previews/primer/beta/button_preview/leading_visual_svg.html.erb
866
+ - previews/primer/beta/button_preview/link_scheme_label_wrap.html.erb
865
867
  - previews/primer/beta/button_preview/trailing_action.html.erb
866
868
  - previews/primer/beta/button_preview/trailing_counter.html.erb
867
869
  - previews/primer/beta/button_preview/trailing_visual.html.erb