openproject-primer_view_components 0.24.0 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +1 -0
  4. data/app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts +9 -0
  5. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  6. data/app/assets/javascripts/primer_view_components.js +1 -1
  7. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  8. data/app/assets/styles/primer_view_components.css +1 -1
  9. data/app/assets/styles/primer_view_components.css.map +1 -1
  10. data/app/components/primer/alpha/banner.css +1 -1
  11. data/app/components/primer/alpha/banner.css.map +1 -1
  12. data/app/components/primer/alpha/banner.pcss +4 -4
  13. data/app/components/primer/alpha/dialog.css +1 -1
  14. data/app/components/primer/alpha/dialog.css.json +1 -2
  15. data/app/components/primer/alpha/dialog.css.map +1 -1
  16. data/app/components/primer/alpha/dialog.pcss +8 -7
  17. data/app/components/primer/alpha/segmented_control.css +1 -1
  18. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  19. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  20. data/app/components/primer/alpha/tool_tip.js +46 -77
  21. data/app/components/primer/alpha/tool_tip.ts +46 -77
  22. data/app/components/primer/beta/button.css +1 -1
  23. data/app/components/primer/beta/button.css.json +2 -0
  24. data/app/components/primer/beta/button.css.map +1 -1
  25. data/app/components/primer/beta/button.pcss +8 -0
  26. data/app/components/primer/beta/button_group.rb +4 -2
  27. data/app/components/primer/beta/flash.css +1 -1
  28. data/app/components/primer/beta/flash.css.map +1 -1
  29. data/app/components/primer/beta/flash.pcss +4 -4
  30. data/app/components/primer/beta/icon_button.rb +2 -0
  31. data/app/components/primer/dialog_helper.js +16 -3
  32. data/app/components/primer/dialog_helper.ts +14 -1
  33. data/app/components/primer/open_project/page_header.css +1 -1
  34. data/app/components/primer/open_project/page_header.css.json +1 -0
  35. data/app/components/primer/open_project/page_header.css.map +1 -1
  36. data/app/components/primer/open_project/page_header.html.erb +6 -7
  37. data/app/components/primer/open_project/page_header.pcss +10 -0
  38. data/app/components/primer/open_project/page_header.rb +152 -34
  39. data/app/components/primer/open_project/page_header_element.d.ts +9 -0
  40. data/app/components/primer/open_project/page_header_element.js +23 -0
  41. data/app/components/primer/open_project/page_header_element.ts +25 -0
  42. data/app/components/primer/primer.d.ts +1 -0
  43. data/app/components/primer/primer.js +1 -0
  44. data/app/components/primer/primer.ts +1 -0
  45. data/lib/primer/view_components/version.rb +2 -2
  46. data/previews/primer/alpha/action_menu_preview.rb +1 -1
  47. data/previews/primer/alpha/dialog_preview.rb +24 -0
  48. data/previews/primer/alpha/tooltip_preview/tooltip_e.html.erb +6 -0
  49. data/previews/primer/alpha/tooltip_preview/tooltip_n.html.erb +6 -0
  50. data/previews/primer/alpha/tooltip_preview/tooltip_ne.html.erb +6 -0
  51. data/previews/primer/alpha/tooltip_preview/tooltip_nw.html.erb +6 -0
  52. data/previews/primer/alpha/tooltip_preview/tooltip_s.html.erb +6 -0
  53. data/previews/primer/alpha/tooltip_preview/tooltip_se.html.erb +6 -0
  54. data/previews/primer/alpha/tooltip_preview/tooltip_sw.html.erb +6 -0
  55. data/previews/primer/alpha/tooltip_preview/tooltip_w.html.erb +6 -0
  56. data/previews/primer/alpha/tooltip_preview.rb +80 -0
  57. data/previews/primer/beta/button_group_preview/with_menu_button.html.erb +1 -1
  58. data/previews/primer/beta/button_group_preview.rb +7 -1
  59. data/previews/primer/beta/icon_button_preview.rb +25 -0
  60. data/previews/primer/open_project/border_grid_preview.rb +2 -2
  61. data/previews/primer/open_project/input_group_preview.rb +5 -5
  62. data/previews/primer/open_project/page_header_preview/actions.html.erb +16 -15
  63. data/previews/primer/open_project/page_header_preview/playground.html.erb +9 -24
  64. data/previews/primer/open_project/page_header_preview.rb +14 -36
  65. data/static/arguments.json +35 -2
  66. data/static/audited_at.json +1 -0
  67. data/static/classes.json +3 -0
  68. data/static/constants.json +13 -5
  69. data/static/info_arch.json +180 -49
  70. data/static/previews.json +130 -26
  71. data/static/statuses.json +1 -0
  72. metadata +16 -5
  73. data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +0 -27
data/static/previews.json CHANGED
@@ -3264,6 +3264,19 @@
3264
3264
  "color-contrast"
3265
3265
  ]
3266
3266
  }
3267
+ },
3268
+ {
3269
+ "preview_path": "primer/alpha/dialog/initally_open",
3270
+ "name": "initally_open",
3271
+ "snapshot": "interactive",
3272
+ "skip_rules": {
3273
+ "wont_fix": [
3274
+ "region"
3275
+ ],
3276
+ "will_fix": [
3277
+ "color-contrast"
3278
+ ]
3279
+ }
3267
3280
  }
3268
3281
  ]
3269
3282
  },
@@ -3969,6 +3982,19 @@
3969
3982
  ]
3970
3983
  }
3971
3984
  },
3985
+ {
3986
+ "preview_path": "primer/beta/icon_button/primary",
3987
+ "name": "primary",
3988
+ "snapshot": "true",
3989
+ "skip_rules": {
3990
+ "wont_fix": [
3991
+ "region"
3992
+ ],
3993
+ "will_fix": [
3994
+ "color-contrast"
3995
+ ]
3996
+ }
3997
+ },
3972
3998
  {
3973
3999
  "preview_path": "primer/beta/icon_button/danger",
3974
4000
  "name": "danger",
@@ -5182,32 +5208,6 @@
5182
5208
  "color-contrast"
5183
5209
  ]
5184
5210
  }
5185
- },
5186
- {
5187
- "preview_path": "primer/open_project/page_header/parent_link",
5188
- "name": "parent_link",
5189
- "snapshot": "false",
5190
- "skip_rules": {
5191
- "wont_fix": [
5192
- "region"
5193
- ],
5194
- "will_fix": [
5195
- "color-contrast"
5196
- ]
5197
- }
5198
- },
5199
- {
5200
- "preview_path": "primer/open_project/page_header/context_bar_actions",
5201
- "name": "context_bar_actions",
5202
- "snapshot": "false",
5203
- "skip_rules": {
5204
- "wont_fix": [
5205
- "region"
5206
- ],
5207
- "will_fix": [
5208
- "color-contrast"
5209
- ]
5210
- }
5211
5211
  }
5212
5212
  ]
5213
5213
  },
@@ -7157,6 +7157,110 @@
7157
7157
  "color-contrast"
7158
7158
  ]
7159
7159
  }
7160
+ },
7161
+ {
7162
+ "preview_path": "primer/alpha/tooltip/tooltip_n",
7163
+ "name": "tooltip_n",
7164
+ "snapshot": "interactive",
7165
+ "skip_rules": {
7166
+ "wont_fix": [
7167
+ "region"
7168
+ ],
7169
+ "will_fix": [
7170
+ "color-contrast"
7171
+ ]
7172
+ }
7173
+ },
7174
+ {
7175
+ "preview_path": "primer/alpha/tooltip/tooltip_s",
7176
+ "name": "tooltip_s",
7177
+ "snapshot": "interactive",
7178
+ "skip_rules": {
7179
+ "wont_fix": [
7180
+ "region"
7181
+ ],
7182
+ "will_fix": [
7183
+ "color-contrast"
7184
+ ]
7185
+ }
7186
+ },
7187
+ {
7188
+ "preview_path": "primer/alpha/tooltip/tooltip_e",
7189
+ "name": "tooltip_e",
7190
+ "snapshot": "interactive",
7191
+ "skip_rules": {
7192
+ "wont_fix": [
7193
+ "region"
7194
+ ],
7195
+ "will_fix": [
7196
+ "color-contrast"
7197
+ ]
7198
+ }
7199
+ },
7200
+ {
7201
+ "preview_path": "primer/alpha/tooltip/tooltip_w",
7202
+ "name": "tooltip_w",
7203
+ "snapshot": "interactive",
7204
+ "skip_rules": {
7205
+ "wont_fix": [
7206
+ "region"
7207
+ ],
7208
+ "will_fix": [
7209
+ "color-contrast"
7210
+ ]
7211
+ }
7212
+ },
7213
+ {
7214
+ "preview_path": "primer/alpha/tooltip/tooltip_se",
7215
+ "name": "tooltip_se",
7216
+ "snapshot": "interactive",
7217
+ "skip_rules": {
7218
+ "wont_fix": [
7219
+ "region"
7220
+ ],
7221
+ "will_fix": [
7222
+ "color-contrast"
7223
+ ]
7224
+ }
7225
+ },
7226
+ {
7227
+ "preview_path": "primer/alpha/tooltip/tooltip_sw",
7228
+ "name": "tooltip_sw",
7229
+ "snapshot": "interactive",
7230
+ "skip_rules": {
7231
+ "wont_fix": [
7232
+ "region"
7233
+ ],
7234
+ "will_fix": [
7235
+ "color-contrast"
7236
+ ]
7237
+ }
7238
+ },
7239
+ {
7240
+ "preview_path": "primer/alpha/tooltip/tooltip_ne",
7241
+ "name": "tooltip_ne",
7242
+ "snapshot": "interactive",
7243
+ "skip_rules": {
7244
+ "wont_fix": [
7245
+ "region"
7246
+ ],
7247
+ "will_fix": [
7248
+ "color-contrast"
7249
+ ]
7250
+ }
7251
+ },
7252
+ {
7253
+ "preview_path": "primer/alpha/tooltip/tooltip_nw",
7254
+ "name": "tooltip_nw",
7255
+ "snapshot": "interactive",
7256
+ "skip_rules": {
7257
+ "wont_fix": [
7258
+ "region"
7259
+ ],
7260
+ "will_fix": [
7261
+ "color-contrast"
7262
+ ]
7263
+ }
7160
7264
  }
7161
7265
  ]
7162
7266
  },
data/static/statuses.json CHANGED
@@ -121,6 +121,7 @@
121
121
  "Primer::OpenProject::GridLayout::Area": "open_project",
122
122
  "Primer::OpenProject::InputGroup": "open_project",
123
123
  "Primer::OpenProject::PageHeader": "open_project",
124
+ "Primer::OpenProject::PageHeader::PageHeaderActionMenu": "open_project",
124
125
  "Primer::Tooltip": "deprecated",
125
126
  "Primer::Truncate": "deprecated"
126
127
  }
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.24.0
4
+ version: 0.25.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-03-19 00:00:00.000000000 Z
12
+ date: 2024-04-02 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.8.0
48
+ version: 19.9.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.8.0
55
+ version: 19.9.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: view_component
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,7 @@ files:
102
102
  - app/assets/javascripts/app/components/primer/beta/relative_time.d.ts
103
103
  - app/assets/javascripts/app/components/primer/dialog_helper.d.ts
104
104
  - app/assets/javascripts/app/components/primer/focus_group.d.ts
105
+ - app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts
105
106
  - app/assets/javascripts/app/components/primer/primer.d.ts
106
107
  - app/assets/javascripts/app/components/primer/scrollable_region.d.ts
107
108
  - app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts
@@ -492,6 +493,9 @@ files:
492
493
  - app/components/primer/open_project/page_header.html.erb
493
494
  - app/components/primer/open_project/page_header.pcss
494
495
  - app/components/primer/open_project/page_header.rb
496
+ - app/components/primer/open_project/page_header_element.d.ts
497
+ - app/components/primer/open_project/page_header_element.js
498
+ - app/components/primer/open_project/page_header_element.ts
495
499
  - app/components/primer/primer.d.ts
496
500
  - app/components/primer/primer.js
497
501
  - app/components/primer/primer.pcss
@@ -813,7 +817,15 @@ files:
813
817
  - previews/primer/alpha/text_field_preview/input_group_trailing_button.html.erb
814
818
  - previews/primer/alpha/toggle_switch_preview.rb
815
819
  - previews/primer/alpha/tooltip_preview.rb
820
+ - previews/primer/alpha/tooltip_preview/tooltip_e.html.erb
816
821
  - previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
822
+ - previews/primer/alpha/tooltip_preview/tooltip_n.html.erb
823
+ - previews/primer/alpha/tooltip_preview/tooltip_ne.html.erb
824
+ - previews/primer/alpha/tooltip_preview/tooltip_nw.html.erb
825
+ - previews/primer/alpha/tooltip_preview/tooltip_s.html.erb
826
+ - previews/primer/alpha/tooltip_preview/tooltip_se.html.erb
827
+ - previews/primer/alpha/tooltip_preview/tooltip_sw.html.erb
828
+ - previews/primer/alpha/tooltip_preview/tooltip_w.html.erb
817
829
  - previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb
818
830
  - previews/primer/alpha/tooltip_preview/with_multiple_on_a_page.html.erb
819
831
  - previews/primer/alpha/tooltip_preview/with_right_most_position.html.erb
@@ -901,7 +913,6 @@ files:
901
913
  - previews/primer/open_project/input_group_preview.rb
902
914
  - previews/primer/open_project/page_header_preview.rb
903
915
  - previews/primer/open_project/page_header_preview/actions.html.erb
904
- - previews/primer/open_project/page_header_preview/context_bar_actions.html.erb
905
916
  - previews/primer/open_project/page_header_preview/playground.html.erb
906
917
  - previews/primer/url_helpers.rb
907
918
  - static/arguments.json
@@ -1,27 +0,0 @@
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_parent_link(href: "#") do %>
9
- Parent link
10
- <% end %>
11
- <% component.with_context_bar_action do %>
12
- <%= render(Primer::Beta::IconButton.new(icon: 'star', 'aria-label': 'Star')) %>
13
- <% end %>
14
- <% component.with_context_bar_action do %>
15
- <%= render(Primer::Alpha::ActionMenu.new) do |menu| %>
16
- <% menu.with_show_button { "Menu" } %>
17
- <% menu.with_item(label: "Item", tag: :button, value: "") %>
18
- <% menu.with_item(
19
- label: "Show dialog",
20
- tag: :button,
21
- content_arguments: { "data-show-dialog-id": "my-dialog" },
22
- value: "",
23
- scheme: :danger
24
- ) %>
25
- <% end %>
26
- <% end %>
27
- <% end %>