primer_view_components 0.32.0 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +5 -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/banner.rb +6 -0
  9. data/app/components/primer/alpha/overlay.css +1 -1
  10. data/app/components/primer/alpha/overlay.css.json +1 -0
  11. data/app/components/primer/alpha/overlay.css.map +1 -1
  12. data/app/components/primer/alpha/overlay.pcss +4 -0
  13. data/app/components/primer/alpha/select_panel.css +1 -0
  14. data/app/components/primer/alpha/select_panel.css.json +7 -0
  15. data/app/components/primer/alpha/select_panel.css.map +1 -0
  16. data/app/components/primer/alpha/select_panel.html.erb +15 -14
  17. data/app/components/primer/alpha/select_panel.pcss +7 -0
  18. data/app/components/primer/alpha/select_panel.rb +43 -4
  19. data/app/components/primer/alpha/select_panel_element.js +12 -10
  20. data/app/components/primer/alpha/select_panel_element.ts +12 -10
  21. data/app/components/primer/alpha/x_banner.d.ts +5 -0
  22. data/app/components/primer/alpha/x_banner.js +4 -3
  23. data/app/components/primer/alpha/x_banner.ts +11 -3
  24. data/app/components/primer/beta/button.css +1 -1
  25. data/app/components/primer/beta/button.css.map +1 -1
  26. data/app/components/primer/beta/button.pcss +1 -1
  27. data/app/components/primer/beta/label.css +1 -1
  28. data/app/components/primer/beta/label.css.map +1 -1
  29. data/app/components/primer/beta/label.pcss +3 -4
  30. data/app/components/primer/beta/spinner.html.erb +8 -6
  31. data/app/components/primer/beta/spinner.rb +3 -0
  32. data/app/components/primer/component.rb +4 -0
  33. data/app/components/primer/primer.pcss +1 -0
  34. data/app/lib/primer/attributes_helper.rb +10 -0
  35. data/lib/primer/forms/primer_text_field.js +1 -3
  36. data/lib/primer/forms/primer_text_field.ts +1 -3
  37. data/lib/primer/view_components/linters/base_linter.rb +4 -2
  38. data/lib/primer/view_components/linters/blankslate_component_migration_counter.rb +1 -1
  39. data/lib/primer/view_components/linters/select_menu_migration_counter.rb +14 -0
  40. data/lib/primer/view_components/version.rb +1 -1
  41. data/lib/rubocop/cop/primer/primer_octicon.rb +1 -1
  42. data/previews/primer/alpha/select_panel_preview/eventually_local_fetch.html.erb +2 -1
  43. data/previews/primer/alpha/select_panel_preview/list_of_links.html.erb +1 -1
  44. data/previews/primer/alpha/select_panel_preview/local_fetch.html.erb +2 -1
  45. data/previews/primer/alpha/select_panel_preview.rb +10 -9
  46. data/static/classes.json +6 -0
  47. data/static/constants.json +2 -1
  48. data/static/info_arch.json +1 -1
  49. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1610cdfe75fea880531dfa774fc5f9089468cfd87ede0579fc540fcc06e1576
4
- data.tar.gz: 297bfe3ccfdf56378a935945af1dfb8ce42a38652d805ae544d5ce8b49712e7e
3
+ metadata.gz: b1c8549e168aeaa2381a049111519d9df9feee3900ff222bb83a786f6bd0b7eb
4
+ data.tar.gz: dbcf1120acd555c8d3f14096a8e0a4cdfcf63dc29e0b9a060a99a10849d33ed4
5
5
  SHA512:
6
- metadata.gz: 5af328feb8f98e3a35fb551b038c3932d49c36d70fc3217ed759060b3212b3b1b9d05fc39c88c0ad6d1f7a7193b5aba5b2bc3254e5feabff5040d3230e2fe095
7
- data.tar.gz: 9c3c36edc613e20b81b096800fd92d046afd8a3fb670fe4f21e3cdfc8989d1d879ff168a184be641aec170d0aab5a16630e27dc87f12c9cc5f82990495416967
6
+ metadata.gz: fd4bfcf93830c4d2ed80a39be1762c0113e7d64551079b6704febbcce6a7d1909ef611545de289d73d6138cab37c0b5254f6e419f8de5c3281a01793914f8fc7
7
+ data.tar.gz: b09e0dd6d2c93b0c497c5ac281248f549758152d5ff9e4e19310f3e46446cddb0f71da41068bc14686b4b143855d0bb7aafa3ee284f2a5b673656129a4add897
data/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3062](https://github.com/primer/view_components/pull/3062) [`b45ef04`](https://github.com/primer/view_components/commit/b45ef044eb08788c7abff7cbd962da6d0ca56aa5) Thanks [@dombesz](https://github.com/dombesz)! - Trigger an input event when the primer-text-field clear button is pressed.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#3054](https://github.com/primer/view_components/pull/3054) [`4434ec0`](https://github.com/primer/view_components/commit/4434ec03af760a950060f58549243aa2842be045) Thanks [@camertron](https://github.com/camertron)! - [SelectPanel] Disallow passing `role:` argument
12
+
13
+ - [#3077](https://github.com/primer/view_components/pull/3077) [`66488a3`](https://github.com/primer/view_components/commit/66488a30da6cccdf58367d0b20262af5afa597a1) Thanks [@camertron](https://github.com/camertron)! - [SelectPanel] Fix tab index issue in multi-select mode
14
+
15
+ - [#3044](https://github.com/primer/view_components/pull/3044) [`b57b63a`](https://github.com/primer/view_components/commit/b57b63ab909a3afebd291f91d8e59db5ee9c0998) Thanks [@jamieshark](https://github.com/jamieshark)! - SelectPanel - design bug fixes. Adds a divider below the filter, adjusts min height for loading and error states, moves banner error above input filter."
16
+
17
+ - [#3053](https://github.com/primer/view_components/pull/3053) [`871c818`](https://github.com/primer/view_components/commit/871c8184c8d3b70565052b419eec04ead2a894e0) Thanks [@camertron](https://github.com/camertron)! - [SelectPanel] Raise an error when remote fetch + hidden filter argument combo
18
+
19
+ - [#3058](https://github.com/primer/view_components/pull/3058) [`269b02f`](https://github.com/primer/view_components/commit/269b02f221145af4acfb6fa8b4e15ef66c781b4c) Thanks [@langermank](https://github.com/langermank)! - `Label` padding updates to match PRC
20
+
21
+ - [#3055](https://github.com/primer/view_components/pull/3055) [`ca4eae5`](https://github.com/primer/view_components/commit/ca4eae53c51abcd26b7fbaad78b6722e4c67a7e7) Thanks [@camertron](https://github.com/camertron)! - Remove OpenStruct from primer_octicon cop
22
+
23
+ - [#3057](https://github.com/primer/view_components/pull/3057) [`96b42db`](https://github.com/primer/view_components/commit/96b42db2e0c0402008d2e00851e481d993b1506e) Thanks [@owenniblock](https://github.com/owenniblock)! - Don't select SelectPanel::Item when item is a link
24
+
25
+ ## 0.33.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#3026](https://github.com/primer/view_components/pull/3026) [`5be0a0f`](https://github.com/primer/view_components/commit/5be0a0f1e60e02cb5140e159fd6b68dfd25194fa) Thanks [@camertron](https://github.com/camertron)! - Fire an event when banners are dismissed
30
+
31
+ - [#3023](https://github.com/primer/view_components/pull/3023) [`3fb46ed`](https://github.com/primer/view_components/commit/3fb46ed1130f4a31e238b583de79db9d862c06a7) Thanks [@langermank](https://github.com/langermank)! - Bump `primer/primitives` v9
32
+
33
+ - [#3022](https://github.com/primer/view_components/pull/3022) [`01cbbea`](https://github.com/primer/view_components/commit/01cbbea74f1b102cfffed69b83b464394c8019b9) Thanks [@camertron](https://github.com/camertron)! - Add a linter for migrating from SelectMenu -> SelectPanel
34
+
35
+ ### Patch Changes
36
+
37
+ - [#3027](https://github.com/primer/view_components/pull/3027) [`5a205cd`](https://github.com/primer/view_components/commit/5a205cd63543c119b985e83e2800b8c2548cc051) Thanks [@camertron](https://github.com/camertron)! - Remove SelectPanel's backdrop
38
+
39
+ - [#3021](https://github.com/primer/view_components/pull/3021) [`8a16336`](https://github.com/primer/view_components/commit/8a16336d254321f43969c9ed5b72861dc4c53c2e) Thanks [@camertron](https://github.com/camertron)! - When hiding a `Spinner`, also hide its screen reader text
40
+
41
+ - [#3040](https://github.com/primer/view_components/pull/3040) [`612307d`](https://github.com/primer/view_components/commit/612307dd374352ccd71c8f82dbe7f065db54b9d4) Thanks [@camertron](https://github.com/camertron)! - Revert leading/trailing visuals for link component
42
+
43
+ - [#3038](https://github.com/primer/view_components/pull/3038) [`6b4983e`](https://github.com/primer/view_components/commit/6b4983e1ecc29e7cf80cb68f0d274346882123b7) Thanks [@jamieshark](https://github.com/jamieshark)! - SelectPanel: check for filter input when loading remote items.
44
+
3
45
  ## 0.32.0
4
46
 
5
47
  ### Minor Changes
@@ -1,3 +1,8 @@
1
+ declare global {
2
+ interface HTMLElementEventMap {
3
+ 'banner:dismiss': CustomEvent<void>;
4
+ }
5
+ }
1
6
  declare class XBannerElement extends HTMLElement {
2
7
  #private;
3
8
  titleText: HTMLElement;