primer_view_components 0.12.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_bar_element.js +10 -3
  8. data/app/components/primer/alpha/action_bar_element.ts +10 -1
  9. data/app/components/primer/alpha/action_list/form_wrapper.html.erb +4 -2
  10. data/app/components/primer/alpha/action_list/form_wrapper.rb +20 -9
  11. data/app/components/primer/alpha/action_menu/action_menu_element.js +18 -12
  12. data/app/components/primer/alpha/action_menu/action_menu_element.ts +24 -12
  13. data/app/components/primer/alpha/action_menu.rb +120 -3
  14. data/app/components/primer/alpha/modal_dialog.js +10 -13
  15. data/app/components/primer/alpha/modal_dialog.ts +10 -13
  16. data/app/components/primer/alpha/segmented_control.css +1 -1
  17. data/app/components/primer/alpha/segmented_control.css.json +14 -13
  18. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  19. data/app/components/primer/alpha/segmented_control.pcss +75 -68
  20. data/app/components/primer/alpha/segmented_control.rb +10 -0
  21. data/app/components/primer/alpha/text_field.css +1 -1
  22. data/app/components/primer/alpha/tool_tip.js +17 -26
  23. data/app/components/primer/alpha/tool_tip.ts +17 -26
  24. data/lib/primer/static/generate_info_arch.rb +86 -5
  25. data/lib/primer/view_components/version.rb +2 -2
  26. data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +31 -0
  27. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +1 -1
  28. data/previews/primer/alpha/action_menu_preview.rb +8 -2
  29. data/previews/primer/alpha/check_box_preview.rb +0 -2
  30. data/previews/primer/alpha/dialog_preview/autofocus_element.html.erb +8 -0
  31. data/previews/primer/alpha/dialog_preview/with_text_input.html.erb +2 -1
  32. data/previews/primer/alpha/dialog_preview.rb +5 -0
  33. data/previews/primer/alpha/radio_button_preview.rb +0 -2
  34. data/previews/primer/alpha/tooltip_preview.rb +2 -2
  35. data/previews/primer/beta/button_group_preview.rb +6 -6
  36. data/static/classes.json +12 -0
  37. data/static/constants.json +12 -1
  38. data/static/info_arch.json +28 -2
  39. data/static/previews.json +26 -0
  40. metadata +4 -310
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-17 00:00:00.000000000 Z
11
+ date: 2023-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -72,314 +72,6 @@ dependencies:
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '4.0'
75
- - !ruby/object:Gem::Dependency
76
- name: allocation_stats
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '0.1'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '0.1'
89
- - !ruby/object:Gem::Dependency
90
- name: allocation_tracer
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: 0.6.3
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: 0.6.3
103
- - !ruby/object:Gem::Dependency
104
- name: benchmark-ips
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: 2.8.4
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: 2.8.4
117
- - !ruby/object:Gem::Dependency
118
- name: capybara
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: 3.39.2
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: 3.39.2
131
- - !ruby/object:Gem::Dependency
132
- name: cuprite
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: 0.14.3
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: 0.14.3
145
- - !ruby/object:Gem::Dependency
146
- name: erb_lint
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: 0.4.0
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: 0.4.0
159
- - !ruby/object:Gem::Dependency
160
- name: erblint-github
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - '='
164
- - !ruby/object:Gem::Version
165
- version: 0.4.0
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - '='
171
- - !ruby/object:Gem::Version
172
- version: 0.4.0
173
- - !ruby/object:Gem::Dependency
174
- name: listen
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '3.0'
180
- type: :development
181
- prerelease: false
182
- version_requirements: !ruby/object:Gem::Requirement
183
- requirements:
184
- - - "~>"
185
- - !ruby/object:Gem::Version
186
- version: '3.0'
187
- - !ruby/object:Gem::Dependency
188
- name: matrix
189
- requirement: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - "~>"
192
- - !ruby/object:Gem::Version
193
- version: 0.4.2
194
- type: :development
195
- prerelease: false
196
- version_requirements: !ruby/object:Gem::Requirement
197
- requirements:
198
- - - "~>"
199
- - !ruby/object:Gem::Version
200
- version: 0.4.2
201
- - !ruby/object:Gem::Dependency
202
- name: minitest
203
- requirement: !ruby/object:Gem::Requirement
204
- requirements:
205
- - - "~>"
206
- - !ruby/object:Gem::Version
207
- version: '5.0'
208
- type: :development
209
- prerelease: false
210
- version_requirements: !ruby/object:Gem::Requirement
211
- requirements:
212
- - - "~>"
213
- - !ruby/object:Gem::Version
214
- version: '5.0'
215
- - !ruby/object:Gem::Dependency
216
- name: mocha
217
- requirement: !ruby/object:Gem::Requirement
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- type: :development
223
- prerelease: false
224
- version_requirements: !ruby/object:Gem::Requirement
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- version: '0'
229
- - !ruby/object:Gem::Dependency
230
- name: pry
231
- requirement: !ruby/object:Gem::Requirement
232
- requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- version: '0'
236
- type: :development
237
- prerelease: false
238
- version_requirements: !ruby/object:Gem::Requirement
239
- requirements:
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- version: '0'
243
- - !ruby/object:Gem::Dependency
244
- name: rubocop
245
- requirement: !ruby/object:Gem::Requirement
246
- requirements:
247
- - - '='
248
- - !ruby/object:Gem::Version
249
- version: 1.13.0
250
- type: :development
251
- prerelease: false
252
- version_requirements: !ruby/object:Gem::Requirement
253
- requirements:
254
- - - '='
255
- - !ruby/object:Gem::Version
256
- version: 1.13.0
257
- - !ruby/object:Gem::Dependency
258
- name: rubocop-github
259
- requirement: !ruby/object:Gem::Requirement
260
- requirements:
261
- - - "~>"
262
- - !ruby/object:Gem::Version
263
- version: 0.16.0
264
- type: :development
265
- prerelease: false
266
- version_requirements: !ruby/object:Gem::Requirement
267
- requirements:
268
- - - "~>"
269
- - !ruby/object:Gem::Version
270
- version: 0.16.0
271
- - !ruby/object:Gem::Dependency
272
- name: rubocop-performance
273
- requirement: !ruby/object:Gem::Requirement
274
- requirements:
275
- - - "~>"
276
- - !ruby/object:Gem::Version
277
- version: '1.7'
278
- type: :development
279
- prerelease: false
280
- version_requirements: !ruby/object:Gem::Requirement
281
- requirements:
282
- - - "~>"
283
- - !ruby/object:Gem::Version
284
- version: '1.7'
285
- - !ruby/object:Gem::Dependency
286
- name: simplecov
287
- requirement: !ruby/object:Gem::Requirement
288
- requirements:
289
- - - "~>"
290
- - !ruby/object:Gem::Version
291
- version: 0.21.2
292
- type: :development
293
- prerelease: false
294
- version_requirements: !ruby/object:Gem::Requirement
295
- requirements:
296
- - - "~>"
297
- - !ruby/object:Gem::Version
298
- version: 0.21.2
299
- - !ruby/object:Gem::Dependency
300
- name: simplecov-console
301
- requirement: !ruby/object:Gem::Requirement
302
- requirements:
303
- - - "~>"
304
- - !ruby/object:Gem::Version
305
- version: 0.9.1
306
- type: :development
307
- prerelease: false
308
- version_requirements: !ruby/object:Gem::Requirement
309
- requirements:
310
- - - "~>"
311
- - !ruby/object:Gem::Version
312
- version: 0.9.1
313
- - !ruby/object:Gem::Dependency
314
- name: sprockets
315
- requirement: !ruby/object:Gem::Requirement
316
- requirements:
317
- - - ">="
318
- - !ruby/object:Gem::Version
319
- version: '0'
320
- type: :development
321
- prerelease: false
322
- version_requirements: !ruby/object:Gem::Requirement
323
- requirements:
324
- - - ">="
325
- - !ruby/object:Gem::Version
326
- version: '0'
327
- - !ruby/object:Gem::Dependency
328
- name: sprockets-rails
329
- requirement: !ruby/object:Gem::Requirement
330
- requirements:
331
- - - ">="
332
- - !ruby/object:Gem::Version
333
- version: '0'
334
- type: :development
335
- prerelease: false
336
- version_requirements: !ruby/object:Gem::Requirement
337
- requirements:
338
- - - ">="
339
- - !ruby/object:Gem::Version
340
- version: '0'
341
- - !ruby/object:Gem::Dependency
342
- name: thor
343
- requirement: !ruby/object:Gem::Requirement
344
- requirements:
345
- - - ">="
346
- - !ruby/object:Gem::Version
347
- version: '0'
348
- type: :development
349
- prerelease: false
350
- version_requirements: !ruby/object:Gem::Requirement
351
- requirements:
352
- - - ">="
353
- - !ruby/object:Gem::Version
354
- version: '0'
355
- - !ruby/object:Gem::Dependency
356
- name: timecop
357
- requirement: !ruby/object:Gem::Requirement
358
- requirements:
359
- - - ">="
360
- - !ruby/object:Gem::Version
361
- version: '0'
362
- type: :development
363
- prerelease: false
364
- version_requirements: !ruby/object:Gem::Requirement
365
- requirements:
366
- - - ">="
367
- - !ruby/object:Gem::Version
368
- version: '0'
369
- - !ruby/object:Gem::Dependency
370
- name: yard
371
- requirement: !ruby/object:Gem::Requirement
372
- requirements:
373
- - - "~>"
374
- - !ruby/object:Gem::Version
375
- version: 0.9.25
376
- type: :development
377
- prerelease: false
378
- version_requirements: !ruby/object:Gem::Requirement
379
- requirements:
380
- - - "~>"
381
- - !ruby/object:Gem::Version
382
- version: 0.9.25
383
75
  description:
384
76
  email:
385
77
  - opensource+primer_view_components@github.com
@@ -997,6 +689,7 @@ files:
997
689
  - previews/primer/alpha/action_menu_preview/multiple_select_form.html.erb
998
690
  - previews/primer/alpha/action_menu_preview/opens_dialog.html.erb
999
691
  - previews/primer/alpha/action_menu_preview/single_select_form.html.erb
692
+ - previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb
1000
693
  - previews/primer/alpha/action_menu_preview/submitting_forms.html.erb
1001
694
  - previews/primer/alpha/action_menu_preview/two_menus.html.erb
1002
695
  - previews/primer/alpha/action_menu_preview/with_actions.html.erb
@@ -1008,6 +701,7 @@ files:
1008
701
  - previews/primer/alpha/check_box_group_preview.rb
1009
702
  - previews/primer/alpha/check_box_preview.rb
1010
703
  - previews/primer/alpha/dialog_preview.rb
704
+ - previews/primer/alpha/dialog_preview/autofocus_element.html.erb
1011
705
  - previews/primer/alpha/dialog_preview/body_has_scrollbar_overflow.html.erb
1012
706
  - previews/primer/alpha/dialog_preview/custom_header.html.erb
1013
707
  - previews/primer/alpha/dialog_preview/nested_dialog.html.erb