openproject-primer_view_components 0.12.1 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +1 -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/item.rb +7 -4
  9. data/app/components/primer/alpha/action_bar.rb +2 -2
  10. data/app/components/primer/alpha/action_bar_element.js +11 -4
  11. data/app/components/primer/alpha/action_bar_element.ts +11 -2
  12. data/app/components/primer/alpha/action_list/form_wrapper.html.erb +4 -2
  13. data/app/components/primer/alpha/action_list/form_wrapper.rb +20 -9
  14. data/app/components/primer/alpha/action_menu/action_menu_element.js +174 -84
  15. data/app/components/primer/alpha/action_menu/action_menu_element.ts +218 -81
  16. data/app/components/primer/alpha/action_menu/list.rb +0 -2
  17. data/app/components/primer/alpha/action_menu.rb +120 -3
  18. data/app/components/primer/alpha/modal_dialog.js +10 -13
  19. data/app/components/primer/alpha/modal_dialog.ts +10 -13
  20. data/app/components/primer/alpha/segmented_control/item.html.erb +1 -8
  21. data/app/components/primer/alpha/segmented_control/item.rb +38 -4
  22. data/app/components/primer/alpha/segmented_control.css +1 -1
  23. data/app/components/primer/alpha/segmented_control.css.json +14 -13
  24. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  25. data/app/components/primer/alpha/segmented_control.pcss +75 -66
  26. data/app/components/primer/alpha/segmented_control.rb +10 -0
  27. data/app/components/primer/alpha/text_field.css +1 -1
  28. data/app/components/primer/alpha/tool_tip.d.ts +1 -0
  29. data/app/components/primer/alpha/tool_tip.js +34 -28
  30. data/app/components/primer/alpha/tool_tip.ts +33 -26
  31. data/app/components/primer/beta/base_button.rb +4 -0
  32. data/app/components/primer/beta/button.css +1 -1
  33. data/app/components/primer/beta/button.css.map +1 -1
  34. data/app/components/primer/beta/button.pcss +6 -2
  35. data/app/components/primer/focus_group.js +28 -3
  36. data/app/components/primer/focus_group.ts +27 -1
  37. data/lib/primer/static/generate_info_arch.rb +86 -5
  38. data/lib/primer/view_components/version.rb +1 -1
  39. data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +31 -0
  40. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +6 -5
  41. data/previews/primer/alpha/action_menu_preview.rb +10 -1
  42. data/previews/primer/alpha/check_box_preview.rb +0 -2
  43. data/previews/primer/alpha/dialog_preview/autofocus_element.html.erb +8 -0
  44. data/previews/primer/alpha/dialog_preview/with_text_input.html.erb +2 -1
  45. data/previews/primer/alpha/dialog_preview.rb +5 -0
  46. data/previews/primer/alpha/radio_button_preview.rb +0 -2
  47. data/previews/primer/alpha/segmented_control_preview.rb +35 -0
  48. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +23 -0
  49. data/previews/primer/alpha/tooltip_preview.rb +6 -1
  50. data/previews/primer/beta/button_group_preview.rb +6 -6
  51. data/previews/primer/beta/button_preview.rb +20 -2
  52. data/previews/primer/beta/icon_button_preview.rb +3 -0
  53. data/static/arguments.json +18 -1
  54. data/static/classes.json +12 -0
  55. data/static/constants.json +12 -1
  56. data/static/info_arch.json +135 -5
  57. data/static/previews.json +91 -0
  58. metadata +5 -310
data/static/previews.json CHANGED
@@ -580,6 +580,19 @@
580
580
  ]
581
581
  }
582
582
  },
583
+ {
584
+ "preview_path": "primer/alpha/action_menu/single_select_form_items",
585
+ "name": "single_select_form_items",
586
+ "snapshot": "false",
587
+ "skip_rules": {
588
+ "wont_fix": [
589
+ "region"
590
+ ],
591
+ "will_fix": [
592
+ "color-contrast"
593
+ ]
594
+ }
595
+ },
583
596
  {
584
597
  "preview_path": "primer/alpha/action_menu/multiple_select_form",
585
598
  "name": "multiple_select_form",
@@ -2144,6 +2157,19 @@
2144
2157
  "color-contrast"
2145
2158
  ]
2146
2159
  }
2160
+ },
2161
+ {
2162
+ "preview_path": "primer/beta/button/inactive",
2163
+ "name": "inactive",
2164
+ "snapshot": "true",
2165
+ "skip_rules": {
2166
+ "wont_fix": [
2167
+ "region"
2168
+ ],
2169
+ "will_fix": [
2170
+ "color-contrast"
2171
+ ]
2172
+ }
2147
2173
  }
2148
2174
  ]
2149
2175
  },
@@ -2970,6 +2996,19 @@
2970
2996
  "color-contrast"
2971
2997
  ]
2972
2998
  }
2999
+ },
3000
+ {
3001
+ "preview_path": "primer/alpha/dialog/autofocus_element",
3002
+ "name": "autofocus_element",
3003
+ "snapshot": "false",
3004
+ "skip_rules": {
3005
+ "wont_fix": [
3006
+ "region"
3007
+ ],
3008
+ "will_fix": [
3009
+ "color-contrast"
3010
+ ]
3011
+ }
2973
3012
  }
2974
3013
  ]
2975
3014
  },
@@ -5259,6 +5298,45 @@
5259
5298
  ]
5260
5299
  }
5261
5300
  },
5301
+ {
5302
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_small",
5303
+ "name": "trailing_label_width_small",
5304
+ "snapshot": "true",
5305
+ "skip_rules": {
5306
+ "wont_fix": [
5307
+ "region"
5308
+ ],
5309
+ "will_fix": [
5310
+ "color-contrast"
5311
+ ]
5312
+ }
5313
+ },
5314
+ {
5315
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_medium",
5316
+ "name": "trailing_label_width_medium",
5317
+ "snapshot": "true",
5318
+ "skip_rules": {
5319
+ "wont_fix": [
5320
+ "region"
5321
+ ],
5322
+ "will_fix": [
5323
+ "color-contrast"
5324
+ ]
5325
+ }
5326
+ },
5327
+ {
5328
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_large",
5329
+ "name": "trailing_label_width_large",
5330
+ "snapshot": "true",
5331
+ "skip_rules": {
5332
+ "wont_fix": [
5333
+ "region"
5334
+ ],
5335
+ "will_fix": [
5336
+ "color-contrast"
5337
+ ]
5338
+ }
5339
+ },
5262
5340
  {
5263
5341
  "preview_path": "primer/alpha/segmented_control/icon_only_small",
5264
5342
  "name": "icon_only_small",
@@ -6600,6 +6678,19 @@
6600
6678
  "color-contrast"
6601
6679
  ]
6602
6680
  }
6681
+ },
6682
+ {
6683
+ "preview_path": "primer/alpha/tooltip/tooltip_with_dialog_moving_focus_to_input",
6684
+ "name": "tooltip_with_dialog_moving_focus_to_input",
6685
+ "snapshot": "false",
6686
+ "skip_rules": {
6687
+ "wont_fix": [
6688
+ "region"
6689
+ ],
6690
+ "will_fix": [
6691
+ "color-contrast"
6692
+ ]
6693
+ }
6603
6694
  }
6604
6695
  ]
6605
6696
  },
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.12.1
4
+ version: 0.13.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: 2023-10-06 00:00:00.000000000 Z
12
+ date: 2023-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -73,314 +73,6 @@ dependencies:
73
73
  - - "<"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '4.0'
76
- - !ruby/object:Gem::Dependency
77
- name: allocation_stats
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.1'
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.1'
90
- - !ruby/object:Gem::Dependency
91
- name: allocation_tracer
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.6.3
97
- type: :development
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 0.6.3
104
- - !ruby/object:Gem::Dependency
105
- name: benchmark-ips
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 2.8.4
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 2.8.4
118
- - !ruby/object:Gem::Dependency
119
- name: capybara
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 3.39.2
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 3.39.2
132
- - !ruby/object:Gem::Dependency
133
- name: cuprite
134
- requirement: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 0.14.3
139
- type: :development
140
- prerelease: false
141
- version_requirements: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.14.3
146
- - !ruby/object:Gem::Dependency
147
- name: erb_lint
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.4.0
153
- type: :development
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.4.0
160
- - !ruby/object:Gem::Dependency
161
- name: erblint-github
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '='
165
- - !ruby/object:Gem::Version
166
- version: 0.4.0
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '='
172
- - !ruby/object:Gem::Version
173
- version: 0.4.0
174
- - !ruby/object:Gem::Dependency
175
- name: listen
176
- requirement: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '3.0'
181
- type: :development
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '3.0'
188
- - !ruby/object:Gem::Dependency
189
- name: matrix
190
- requirement: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: 0.4.2
195
- type: :development
196
- prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: 0.4.2
202
- - !ruby/object:Gem::Dependency
203
- name: minitest
204
- requirement: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '5.0'
209
- type: :development
210
- prerelease: false
211
- version_requirements: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: '5.0'
216
- - !ruby/object:Gem::Dependency
217
- name: mocha
218
- requirement: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
- type: :development
224
- prerelease: false
225
- version_requirements: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- - !ruby/object:Gem::Dependency
231
- name: pry
232
- requirement: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
- type: :development
238
- prerelease: false
239
- version_requirements: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - ">="
242
- - !ruby/object:Gem::Version
243
- version: '0'
244
- - !ruby/object:Gem::Dependency
245
- name: rubocop
246
- requirement: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - '='
249
- - !ruby/object:Gem::Version
250
- version: 1.13.0
251
- type: :development
252
- prerelease: false
253
- version_requirements: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - '='
256
- - !ruby/object:Gem::Version
257
- version: 1.13.0
258
- - !ruby/object:Gem::Dependency
259
- name: rubocop-github
260
- requirement: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - "~>"
263
- - !ruby/object:Gem::Version
264
- version: 0.16.0
265
- type: :development
266
- prerelease: false
267
- version_requirements: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - "~>"
270
- - !ruby/object:Gem::Version
271
- version: 0.16.0
272
- - !ruby/object:Gem::Dependency
273
- name: rubocop-performance
274
- requirement: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "~>"
277
- - !ruby/object:Gem::Version
278
- version: '1.7'
279
- type: :development
280
- prerelease: false
281
- version_requirements: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - "~>"
284
- - !ruby/object:Gem::Version
285
- version: '1.7'
286
- - !ruby/object:Gem::Dependency
287
- name: simplecov
288
- requirement: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - "~>"
291
- - !ruby/object:Gem::Version
292
- version: 0.21.2
293
- type: :development
294
- prerelease: false
295
- version_requirements: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - "~>"
298
- - !ruby/object:Gem::Version
299
- version: 0.21.2
300
- - !ruby/object:Gem::Dependency
301
- name: simplecov-console
302
- requirement: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - "~>"
305
- - !ruby/object:Gem::Version
306
- version: 0.9.1
307
- type: :development
308
- prerelease: false
309
- version_requirements: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - "~>"
312
- - !ruby/object:Gem::Version
313
- version: 0.9.1
314
- - !ruby/object:Gem::Dependency
315
- name: sprockets
316
- requirement: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - ">="
319
- - !ruby/object:Gem::Version
320
- version: '0'
321
- type: :development
322
- prerelease: false
323
- version_requirements: !ruby/object:Gem::Requirement
324
- requirements:
325
- - - ">="
326
- - !ruby/object:Gem::Version
327
- version: '0'
328
- - !ruby/object:Gem::Dependency
329
- name: sprockets-rails
330
- requirement: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - ">="
333
- - !ruby/object:Gem::Version
334
- version: '0'
335
- type: :development
336
- prerelease: false
337
- version_requirements: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - ">="
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
- - !ruby/object:Gem::Dependency
343
- name: thor
344
- requirement: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - ">="
347
- - !ruby/object:Gem::Version
348
- version: '0'
349
- type: :development
350
- prerelease: false
351
- version_requirements: !ruby/object:Gem::Requirement
352
- requirements:
353
- - - ">="
354
- - !ruby/object:Gem::Version
355
- version: '0'
356
- - !ruby/object:Gem::Dependency
357
- name: timecop
358
- requirement: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - ">="
361
- - !ruby/object:Gem::Version
362
- version: '0'
363
- type: :development
364
- prerelease: false
365
- version_requirements: !ruby/object:Gem::Requirement
366
- requirements:
367
- - - ">="
368
- - !ruby/object:Gem::Version
369
- version: '0'
370
- - !ruby/object:Gem::Dependency
371
- name: yard
372
- requirement: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - "~>"
375
- - !ruby/object:Gem::Version
376
- version: 0.9.25
377
- type: :development
378
- prerelease: false
379
- version_requirements: !ruby/object:Gem::Requirement
380
- requirements:
381
- - - "~>"
382
- - !ruby/object:Gem::Version
383
- version: 0.9.25
384
76
  description:
385
77
  email:
386
78
  executables: []
@@ -1022,6 +714,7 @@ files:
1022
714
  - previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb
1023
715
  - previews/primer/alpha/action_menu_preview/opens_dialog.html.erb
1024
716
  - previews/primer/alpha/action_menu_preview/single_select_form.html.erb
717
+ - previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb
1025
718
  - previews/primer/alpha/action_menu_preview/submitting_forms.html.erb
1026
719
  - previews/primer/alpha/action_menu_preview/two_menus.html.erb
1027
720
  - previews/primer/alpha/action_menu_preview/with_actions.html.erb
@@ -1033,6 +726,7 @@ files:
1033
726
  - previews/primer/alpha/check_box_group_preview.rb
1034
727
  - previews/primer/alpha/check_box_preview.rb
1035
728
  - previews/primer/alpha/dialog_preview.rb
729
+ - previews/primer/alpha/dialog_preview/autofocus_element.html.erb
1036
730
  - previews/primer/alpha/dialog_preview/body_has_scrollbar_overflow.html.erb
1037
731
  - previews/primer/alpha/dialog_preview/custom_header.html.erb
1038
732
  - previews/primer/alpha/dialog_preview/nested_dialog.html.erb
@@ -1075,6 +769,7 @@ files:
1075
769
  - previews/primer/alpha/toggle_switch_preview.rb
1076
770
  - previews/primer/alpha/tooltip_preview.rb
1077
771
  - previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
772
+ - previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb
1078
773
  - previews/primer/alpha/tooltip_preview/with_multiple_on_a_page.html.erb
1079
774
  - previews/primer/alpha/tooltip_preview/with_right_most_position.html.erb
1080
775
  - previews/primer/alpha/underline_nav_preview.rb