openproject-primer_view_components 0.35.2 → 0.36.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -104,6 +104,12 @@
104
104
  "default": "`:none`",
105
105
  "description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
106
106
  },
107
+ {
108
+ "name": "aria_selection_variant",
109
+ "type": "Symbol",
110
+ "default": "`:checked`",
111
+ "description": "Specifies which aria selection to use. <%= one_of(Primer::Alpha::ActionList::ARIA_SELECTION_VARIANT_OPTIONS) %?"
112
+ },
107
113
  {
108
114
  "name": "form_arguments",
109
115
  "type": "Hash",
@@ -383,6 +389,12 @@
383
389
  "default": "`{}`",
384
390
  "description": "Allows an `ActionMenu` to act as a select list in multi- and single-select modes. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission."
385
391
  },
392
+ {
393
+ "name": "overlay_arguments",
394
+ "type": "Hash",
395
+ "default": "`{}`",
396
+ "description": "Arguments to pass to the underlying [Overlay](/components/alpha/overlay)"
397
+ },
386
398
  {
387
399
  "name": "system_arguments",
388
400
  "type": "Hash",
@@ -435,6 +447,12 @@
435
447
  "default": "`:none`",
436
448
  "description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
437
449
  },
450
+ {
451
+ "name": "aria_selection_variant",
452
+ "type": "Symbol",
453
+ "default": "`:checked`",
454
+ "description": "Specifies which aria selection to use. <%= one_of(Primer::Alpha::ActionList::ARIA_SELECTION_VARIANT_OPTIONS) %?"
455
+ },
438
456
  {
439
457
  "name": "form_arguments",
440
458
  "type": "Hash",
@@ -19,6 +19,11 @@
19
19
  "Primer::Alpha::ActionBar::Item": {
20
20
  },
21
21
  "Primer::Alpha::ActionList": {
22
+ "ARIA_SELECTION_VARIANT_OPTIONS": [
23
+ "selected",
24
+ "checked"
25
+ ],
26
+ "DEFAULT_ARIA_SELECTION_VARIANT": "checked",
22
27
  "DEFAULT_MENU_ITEM_ROLE": "menuitem",
23
28
  "DEFAULT_ROLE": "list",
24
29
  "DEFAULT_SCHEME": "full",
@@ -27,6 +32,7 @@
27
32
  "FormWrapper": "Primer::Alpha::ActionList::FormWrapper",
28
33
  "Heading": "Primer::Alpha::ActionList::Heading",
29
34
  "Item": "Primer::Alpha::ActionList::Item",
35
+ "LIST_BOX_ITEM_ROLE": "option",
30
36
  "MENU_ROLE": "menu",
31
37
  "SCHEME_MAPPINGS": {
32
38
  "full": null,
@@ -246,6 +246,12 @@
246
246
  "default": "`:none`",
247
247
  "description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
248
248
  },
249
+ {
250
+ "name": "aria_selection_variant",
251
+ "type": "Symbol",
252
+ "default": "`:checked`",
253
+ "description": "Specifies which aria selection to use. <%= one_of(Primer::Alpha::ActionList::ARIA_SELECTION_VARIANT_OPTIONS) %?"
254
+ },
249
255
  {
250
256
  "name": "form_arguments",
251
257
  "type": "Hash",
@@ -386,6 +392,13 @@
386
392
 
387
393
  ]
388
394
  },
395
+ {
396
+ "name": "aria_selection_variant",
397
+ "description": "Returns the value of attribute aria_selection_variant.",
398
+ "parameters": [
399
+
400
+ ]
401
+ },
389
402
  {
390
403
  "name": "build_item",
391
404
  "description": "Builds a new item but does not add it to the list. Use this method\ninstead of the `#with_item` slot if you need to render an item outside\nthe context of a list, eg. if rendering additional items to append to\nan existing list, perhaps via a separate HTTP request.",
@@ -798,6 +811,19 @@
798
811
  "color-contrast"
799
812
  ]
800
813
  }
814
+ },
815
+ {
816
+ "preview_path": "primer/alpha/action_list/listbox",
817
+ "name": "listbox",
818
+ "snapshot": "false",
819
+ "skip_rules": {
820
+ "wont_fix": [
821
+ "region"
822
+ ],
823
+ "will_fix": [
824
+ "color-contrast"
825
+ ]
826
+ }
801
827
  }
802
828
  ],
803
829
  "subcomponents": [
@@ -1271,6 +1297,12 @@
1271
1297
  "default": "`{}`",
1272
1298
  "description": "Allows an `ActionMenu` to act as a select list in multi- and single-select modes. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission."
1273
1299
  },
1300
+ {
1301
+ "name": "overlay_arguments",
1302
+ "type": "Hash",
1303
+ "default": "`{}`",
1304
+ "description": "Arguments to pass to the underlying {{#link_to_component}}Primer::Alpha::Overlay{{/link_to_component}}"
1305
+ },
1274
1306
  {
1275
1307
  "name": "system_arguments",
1276
1308
  "type": "Hash",
@@ -1968,6 +2000,12 @@
1968
2000
  "default": "`:none`",
1969
2001
  "description": "How items may be selected in the list. One of `:multiple`, `:multiple_checkbox`, `:none`, or `:single`."
1970
2002
  },
2003
+ {
2004
+ "name": "aria_selection_variant",
2005
+ "type": "Symbol",
2006
+ "default": "`:checked`",
2007
+ "description": "Specifies which aria selection to use. <%= one_of(Primer::Alpha::ActionList::ARIA_SELECTION_VARIANT_OPTIONS) %?"
2008
+ },
1971
2009
  {
1972
2010
  "name": "form_arguments",
1973
2011
  "type": "Hash",
@@ -16632,6 +16670,13 @@
16632
16670
  "description": "{{link_to_system_arguments_docs}}"
16633
16671
  }
16634
16672
  ]
16673
+ },
16674
+ {
16675
+ "name": "caption",
16676
+ "description": null,
16677
+ "parameters": [
16678
+
16679
+ ]
16635
16680
  }
16636
16681
  ],
16637
16682
  "methods": [
@@ -16689,6 +16734,19 @@
16689
16734
  "color-contrast"
16690
16735
  ]
16691
16736
  }
16737
+ },
16738
+ {
16739
+ "preview_path": "primer/open_project/input_group/with_caption",
16740
+ "name": "with_caption",
16741
+ "snapshot": "false",
16742
+ "skip_rules": {
16743
+ "wont_fix": [
16744
+ "region"
16745
+ ],
16746
+ "will_fix": [
16747
+ "color-contrast"
16748
+ ]
16749
+ }
16692
16750
  }
16693
16751
  ],
16694
16752
  "subcomponents": [
data/static/previews.json CHANGED
@@ -428,6 +428,19 @@
428
428
  "color-contrast"
429
429
  ]
430
430
  }
431
+ },
432
+ {
433
+ "preview_path": "primer/alpha/action_list/listbox",
434
+ "name": "listbox",
435
+ "snapshot": "false",
436
+ "skip_rules": {
437
+ "wont_fix": [
438
+ "region"
439
+ ],
440
+ "will_fix": [
441
+ "color-contrast"
442
+ ]
443
+ }
431
444
  }
432
445
  ]
433
446
  },
@@ -4257,6 +4270,19 @@
4257
4270
  "color-contrast"
4258
4271
  ]
4259
4272
  }
4273
+ },
4274
+ {
4275
+ "preview_path": "primer/open_project/input_group/with_caption",
4276
+ "name": "with_caption",
4277
+ "snapshot": "false",
4278
+ "skip_rules": {
4279
+ "wont_fix": [
4280
+ "region"
4281
+ ],
4282
+ "will_fix": [
4283
+ "color-contrast"
4284
+ ]
4285
+ }
4260
4286
  }
4261
4287
  ]
4262
4288
  },
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.35.2
4
+ version: 0.36.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-06-25 00:00:00.000000000 Z
12
+ date: 2024-07-09 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.12.0
48
+ version: 19.15.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.12.0
55
+ version: 19.15.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: view_component
58
58
  requirement: !ruby/object:Gem::Requirement