openproject-primer_view_components 0.69.4 → 0.70.0

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts +4 -3
  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_list.js +0 -2
  9. data/app/components/primer/alpha/action_list.ts +0 -2
  10. data/app/components/primer/alpha/toggle_switch.js +1 -0
  11. data/app/components/primer/alpha/toggle_switch.ts +1 -0
  12. data/app/components/primer/beta/breadcrumbs.css +1 -1
  13. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  14. data/app/components/primer/beta/breadcrumbs.pcss +1 -0
  15. data/app/components/primer/beta/details.rb +22 -12
  16. data/app/components/primer/beta/details_toggle_element.d.ts +4 -3
  17. data/app/components/primer/beta/details_toggle_element.js +12 -7
  18. data/app/components/primer/beta/details_toggle_element.ts +12 -7
  19. data/app/components/primer/beta/nav_list.js +0 -1
  20. data/app/components/primer/beta/nav_list.ts +0 -1
  21. data/app/components/primer/beta/nav_list_group_element.js +1 -0
  22. data/app/components/primer/beta/nav_list_group_element.ts +1 -0
  23. data/app/components/primer/open_project/sub_header/menu.rb +1 -1
  24. data/app/lib/primer/forms/acts_as_component.rb +0 -2
  25. data/lib/primer/accessibility.rb +3 -0
  26. data/lib/primer/view_components/linters/autocorrectable.rb +1 -1
  27. data/lib/primer/view_components/linters/migrations/iconbutton_component.rb +4 -7
  28. data/lib/primer/view_components/linters/migrations/truncate_component.rb +4 -7
  29. data/lib/primer/view_components/version.rb +2 -2
  30. data/lib/rubocop/cop/primer/base_cop.rb +1 -1
  31. data/lib/rubocop/cop/primer/component_name_migration.rb +7 -8
  32. data/lib/rubocop/cop/primer/deprecated_arguments.rb +7 -8
  33. data/lib/rubocop/cop/primer/deprecated_button_arguments.rb +5 -6
  34. data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +6 -7
  35. data/lib/rubocop/cop/primer/deprecated_label_variants.rb +7 -14
  36. data/lib/rubocop/cop/primer/no_tag_memoize.rb +1 -1
  37. data/lib/rubocop/cop/primer/primer_octicon.rb +5 -6
  38. data/previews/primer/beta/breadcrumbs_preview/with_long_items.html.erb +13 -0
  39. data/previews/primer/beta/breadcrumbs_preview.rb +6 -0
  40. data/previews/primer/beta/details_preview.rb +16 -0
  41. data/static/info_arch.json +26 -0
  42. data/static/previews.json +26 -0
  43. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc38d25caa537e4ba1aff4e6563da605f09cd256d011e474770bb9e30e69cfc9
4
- data.tar.gz: 7c3070bebc662c82168a593899c2eefca11fed35b189305b14b4c6e2d993c430
3
+ metadata.gz: 6a1b5df639ba3b9fe3dee88dc7ef73fc23ea3389e843254945049158fbe6b208
4
+ data.tar.gz: 2dd544ec6c5a8c2f2bf113f71be7717009ada57c6e5d0aea35a186f268beaa1d
5
5
  SHA512:
6
- metadata.gz: 76599ca43402dd29f6df00ab5cacb47ed6df4250bb016a22bdc06bb0241d85b46573d0804fcbd516acb533a8c56046f49f863708acb55cb35212cbb37dca2c4a
7
- data.tar.gz: b53cd6bd0dfa0241d5b5a759b1929d36a7cece0e6240385401ef01dac8d9be5022f75fbb399d45239304e8299097eb3fec3ee7107d1fd96a8a3fd3946908b1ab
6
+ metadata.gz: a8fbeb10835afff27f76f861b95c559a4ac4ce576d28fc84ccc32634c5a475353ef9c89830eecc509e17c6f8dde950ff6deea3fa12ae9568c0b94ae38f200f17
7
+ data.tar.gz: a02aedd78f766cd485293ee34dc37ef542242c7703c464a9890feb3f2e86967fe36c25d480b07b8de9170a6d2d88e5137834dadd1cb89d0ef8b6fc1bac229b09
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.70.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#325](https://github.com/opf/primer_view_components/pull/325) [`fe09d8b`](https://github.com/opf/primer_view_components/commit/fe09d8b6814fc830fc69f43e047f605a695b8378) Thanks [@ulferts](https://github.com/ulferts)! - Enable sub menus in sub header action menus
8
+
9
+ ## 0.69.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#3521](https://github.com/primer/view_components/pull/3521) [`72a68d7`](https://github.com/opf/primer_view_components/commit/72a68d7832a079c8ed7af5dbed9ad53d6c973281) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Rename .erb-linters folder to .erb_linters
14
+
15
+ - [#3518](https://github.com/primer/view_components/pull/3518) [`c25c43c`](https://github.com/opf/primer_view_components/commit/c25c43cd9f1646943154a3c501fadba569353488) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Replace deprecated lookbook helper define_param_input with add_input_type
16
+
17
+ - [#3512](https://github.com/primer/view_components/pull/3512) [`b606322`](https://github.com/opf/primer_view_components/commit/b606322653c6109797fe9933fdb7fcbfb09f8235) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Upgrade RuboCop cops to v1 API
18
+
19
+ - [#3534](https://github.com/primer/view_components/pull/3534) [`b8ebe04`](https://github.com/opf/primer_view_components/commit/b8ebe0461245075db80e00aff9af5647766440f4) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Remove unnecessary aria-label from the Details component
20
+
21
+ - [#3540](https://github.com/primer/view_components/pull/3540) [`c94037e`](https://github.com/opf/primer_view_components/commit/c94037ebc88b3d959aba99fdef47388ea16d3e3e) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Fix breadcrumb overflow by adding max-width constraint to prevent page overflow
22
+
23
+ - [#3522](https://github.com/primer/view_components/pull/3522) [`223a4c6`](https://github.com/opf/primer_view_components/commit/223a4c69262aafb0dad3d8a502272a48a1be3875) Thanks [@camertron](https://github.com/camertron)! - Publish config folder in packaged gem
24
+
3
25
  ## 0.69.4
4
26
 
5
27
  ### Patch Changes
@@ -3,9 +3,10 @@
3
3
  * ensures the <details> and <summary> elements markup is properly accessible by
4
4
  * updating the aria-label and aria-expanded attributes on click.
5
5
  *
6
- * aria-label values default to "Expand" and "Collapse". To override those
7
- * values, use the `data-aria-label-open` and `data-aria-label-closed`
8
- * attributes on the summary target.
6
+ * aria-label values are only set if provided via the `data-aria-label-open` and
7
+ * `data-aria-label-closed` attributes on the summary target. If these attributes
8
+ * are not present, no aria-label will be set, allowing screen readers to use
9
+ * the visible text content.
9
10
  *
10
11
  * @example
11
12
  * ```html