primer_view_components 0.49.0 → 0.50.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +20 -1
  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/item.rb +2 -1
  9. data/app/components/primer/alpha/select_panel.rb +1 -1
  10. data/app/components/primer/alpha/select_panel_element.js +1 -1
  11. data/app/components/primer/alpha/select_panel_element.ts +1 -1
  12. data/app/components/primer/alpha/stack.rb +1 -0
  13. data/app/components/primer/alpha/tab_nav.css +1 -1
  14. data/app/components/primer/alpha/tab_nav.css.json +1 -0
  15. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  16. data/app/components/primer/alpha/tab_nav.pcss +7 -1
  17. data/app/controllers/primer/view_components/toggle_switch_controller.rb +2 -2
  18. data/app/forms/check_box_with_nested_form.rb +9 -5
  19. data/app/lib/primer/forms/check_box.rb +28 -0
  20. data/app/lib/primer/forms/dsl/multi_input.rb +3 -1
  21. data/app/lib/primer/forms/dsl/text_field_input.rb +2 -1
  22. data/app/lib/primer/forms/form_control.html.erb +2 -1
  23. data/app/lib/primer/forms/text_field.html.erb +1 -1
  24. data/lib/primer/accessibility.rb +9 -3
  25. data/lib/primer/view_components/engine.rb +1 -4
  26. data/lib/primer/view_components/version.rb +1 -1
  27. data/previews/primer/alpha/form_control_preview/playground.html.erb +4 -2
  28. data/previews/primer/alpha/octicon_symbols_preview/playground.html.erb +1 -1
  29. data/previews/primer/alpha/overlay_preview.rb +0 -25
  30. data/previews/primer/alpha/text_area_preview.rb +11 -11
  31. data/previews/primer/alpha/text_field_preview.rb +9 -0
  32. data/previews/primer/alpha/toggle_switch_preview.rb +14 -14
  33. data/previews/primer/beta/button_preview/all_schemes.html.erb +1 -1
  34. data/previews/primer/beta/button_preview/invisible_all_visuals.html.erb +1 -1
  35. data/previews/primer/beta/button_preview/summary_as_button.html.erb +10 -1
  36. data/static/arguments.json +1 -1
  37. data/static/info_arch.json +16 -15
  38. data/static/previews.json +15 -14
  39. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7d509e9a9307fdbd82ab00604ce697321ae66150e5a48de692319bf347bedeb
4
- data.tar.gz: 190adebddee0cf2dec941d19b5b90b1b16141381015eac139750cbb9f8890eb6
3
+ metadata.gz: 6793261d9ad3cc3f8ff9bcc36f11b966e31789c97e4004d0fa028baab7d48394
4
+ data.tar.gz: 126c9d0cb2d33d56bb57caaa14aab2b35351ab46960f80e77e6415f7c964623a
5
5
  SHA512:
6
- metadata.gz: e19c2477a87cdc1636ade610c2bf05e772c9538b5eb0b0ee9b55876f66c1a184cbc9e416ba40d41660540d023ca58327fcaa4c2a64f72a26225f138d7aa620a2
7
- data.tar.gz: 97ca0e52e8941bbd9c27b4f2ac707edc476a139053e8a4abcf6a0fc74ffc071cfab300a6b7f0f1ad659d732d0623310608485333112f3ce869641ecc8124abbe
6
+ metadata.gz: 0d7a9236238448fe6ac4da6c2eac39469738e1350f91b821efeaff3f033b7fcc97bdfa19226f614aacb3dfdb7b01652dfd996afc162c2bd3b7690f797072b79b
7
+ data.tar.gz: 686b6bf9a9045bebff42ce34e7576f8b55e4d8164c89e3560d647885f5ee8af98793e2f77b77e08d4adb916fd6176c4c1864ca4ed7b8a23f9113682d7f59d338
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.50.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3864](https://github.com/primer/view_components/pull/3864) [`5d6e909`](https://github.com/primer/view_components/commit/5d6e9091133d6937c77377e63fe0715a8f87575f) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add `none` gap option to Stack component for parity with Primer React
8
+
9
+ - [#3879](https://github.com/primer/view_components/pull/3879) [`c0db703`](https://github.com/primer/view_components/commit/c0db7037adcafb04e5642703f049874be3083531) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Allow localization of TextField clear button aria-label
10
+
11
+ ### Patch Changes
12
+
13
+ - [#3878](https://github.com/primer/view_components/pull/3878) [`4e702c8`](https://github.com/primer/view_components/commit/4e702c871ed1af3d5eb6236028ad97704996800d) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Fix generated field ids to remove brackets
14
+
15
+ - [#3898](https://github.com/primer/view_components/pull/3898) [`f9fd6c8`](https://github.com/primer/view_components/commit/f9fd6c83c98ea95d79ae2d4857865e26d2b32667) Thanks [@joelhawksley](https://github.com/joelhawksley)! - Fix deprecation warning for Rails 9
16
+
17
+ - [#3881](https://github.com/primer/view_components/pull/3881) [`536345e`](https://github.com/primer/view_components/commit/536345e4569ca0ff89b32600470257fccadd60b0) Thanks [@llastflowers](https://github.com/llastflowers)! - Add unique ids on each textarea to fix announcement issues
18
+
19
+ - [#3874](https://github.com/primer/view_components/pull/3874) [`5c2982d`](https://github.com/primer/view_components/commit/5c2982d09e13c327d3c8face322f3185a827be45) Thanks [@llastflowers](https://github.com/llastflowers)! - Give inputs unique ids so that SR doesn't skip Label announcement
20
+
21
+ - [#3892](https://github.com/primer/view_components/pull/3892) [`e187c55`](https://github.com/primer/view_components/commit/e187c55eaf6b37d840bcc34446254b23c439e7fd) Thanks [@llastflowers](https://github.com/llastflowers)! - Add group label for checkboxes in CheckBoxWithNestedForm Lookbook story
22
+
23
+ - [#3880](https://github.com/primer/view_components/pull/3880) [`2001888`](https://github.com/primer/view_components/commit/2001888f9464a7d599252d8495ddcb812c0305e3) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Fix overlapping issue in TabNav at narrow viewports.
24
+
25
+ - [#3877](https://github.com/primer/view_components/pull/3877) [`f51244e`](https://github.com/primer/view_components/commit/f51244eef26f70545cc4b4a6ec8d8ee3fba3c51a) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Fix Primer::FormHelper compatibility with Rails 7+ config
26
+
27
+ - [#3875](https://github.com/primer/view_components/pull/3875) [`6971d77`](https://github.com/primer/view_components/commit/6971d773e3f0f574fd94d50a6bf7efa957a4bc7c) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Fixed SelectPanel multiselect accessibility: Use `aria-selected` instead of `aria-checked` for listbox option items.
28
+
29
+ - [#3866](https://github.com/primer/view_components/pull/3866) [`391e438`](https://github.com/primer/view_components/commit/391e438715514c41c24648c7abeb27f18f72ed35) Thanks [@llastflowers](https://github.com/llastflowers)! - Make link distinguishable from surrounding text with underline styling
30
+
31
+ - [#3899](https://github.com/primer/view_components/pull/3899) [`8d9ceef`](https://github.com/primer/view_components/commit/8d9ceefe28d1ced522056e1f03475fb28ec48b91) Thanks [@llastflowers](https://github.com/llastflowers)! - Generate unique labels for all form control inputs in previews
32
+
33
+ - [#3893](https://github.com/primer/view_components/pull/3893) [`024dc7e`](https://github.com/primer/view_components/commit/024dc7e3647ec37253fde72d0d8c09caab512de6) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Always use `aria-selected` for ActionList items with role="option".
34
+
35
+ - [#3867](https://github.com/primer/view_components/pull/3867) [`453041c`](https://github.com/primer/view_components/commit/453041c579bb90e54e5075951b345d8f2037f4ef) Thanks [@llastflowers](https://github.com/llastflowers)! - Add SR announcement in Summary As Button story
36
+
3
37
  ## 0.49.0
4
38
 
5
39
  ### Minor Changes
data/README.md CHANGED
@@ -6,12 +6,31 @@
6
6
 
7
7
  <p align="center">ViewComponents for the Primer Design System.</p>
8
8
 
9
- _Note: This library is under active pre-1.0 development. Breaking changes are likely in patch releases._
9
+ > [!WARNING]
10
+ > As part of GitHub’s move to React-based interfaces, Primer ViewComponents is in maintenance mode as of February 2026.
11
+ >
12
+ > Maintenance mode means:
13
+ >
14
+ > * this project is **not accepting new features, components, or significant enhancements.**
15
+ > * the Primer team at GitHub will continue providing:
16
+ > * Security updates
17
+ > * Dependency bumps
18
+ > * Critical/P0 bug fixes
19
+ > * issues, PRs, and discussions / community Q&A remain open, but maintainer response is not guaranteed
20
+ The Primer team continues to focus its resources on strategic investments that help GitHub and its customers to be successful, while making developers’ lives easier. The Primer design system remains a part of this vision through [guidance](https://primer.style/product/ui-patterns/), [tooling](https://primer.style/product/getting-started/react/), and ready-to-use [React](https://primer.style/product/components/) and [web components](https://github.com/github/github-elements).
21
+ >
22
+ > We encourage internal GitHub consumers to plan to migrate from Primer ViewComponents to [Primer React](https://github.com/primer/react).
23
+ >
24
+ > Non-GitHub consumers should consider forking and maintaining a copy of this repo.
25
+ >
26
+ > Questions may be posted on the [maintenance mode announcement](https://github.com/primer/view_components/discussions/3908). Thank you for your support and interest!
10
27
 
11
28
  ## Documentation
12
29
 
13
30
  Visit [https://primer.style/components/](https://primer.style/components/) to view documentation.
14
31
 
32
+ _Note: This library is under active pre-1.0 development. Breaking changes are likely in patch releases._
33
+
15
34
  ## License
16
35
 
17
36
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).