openproject-primer_view_components 0.44.3 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +5 -0
  4. data/app/assets/javascripts/app/components/primer/open_project/sub_header_element.d.ts +5 -1
  5. data/app/assets/javascripts/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/assets/styles/primer_view_components.css +1 -1
  8. data/app/assets/styles/primer_view_components.css.map +1 -1
  9. data/app/components/primer/alpha/banner.rb +6 -0
  10. data/app/components/primer/alpha/overlay.css +1 -1
  11. data/app/components/primer/alpha/overlay.css.json +1 -0
  12. data/app/components/primer/alpha/overlay.css.map +1 -1
  13. data/app/components/primer/alpha/overlay.pcss +4 -0
  14. data/app/components/primer/alpha/select_panel_element.js +6 -4
  15. data/app/components/primer/alpha/select_panel_element.ts +6 -5
  16. data/app/components/primer/alpha/x_banner.d.ts +5 -0
  17. data/app/components/primer/alpha/x_banner.js +4 -3
  18. data/app/components/primer/alpha/x_banner.ts +11 -3
  19. data/app/components/primer/beta/button.css +1 -1
  20. data/app/components/primer/beta/button.css.map +1 -1
  21. data/app/components/primer/beta/button.pcss +1 -1
  22. data/app/components/primer/beta/spinner.html.erb +8 -6
  23. data/app/components/primer/beta/spinner.rb +3 -0
  24. data/app/components/primer/open_project/sub_header.css +1 -1
  25. data/app/components/primer/open_project/sub_header.css.json +3 -1
  26. data/app/components/primer/open_project/sub_header.css.map +1 -1
  27. data/app/components/primer/open_project/sub_header.pcss +12 -0
  28. data/app/components/primer/open_project/sub_header.rb +19 -2
  29. data/app/components/primer/open_project/sub_header_element.d.ts +5 -1
  30. data/app/components/primer/open_project/sub_header_element.js +32 -0
  31. data/app/components/primer/open_project/sub_header_element.ts +39 -1
  32. data/app/lib/primer/attributes_helper.rb +10 -0
  33. data/lib/primer/forms/primer_text_field.js +0 -3
  34. data/lib/primer/forms/primer_text_field.ts +0 -3
  35. data/lib/primer/view_components/linters/base_linter.rb +4 -2
  36. data/lib/primer/view_components/linters/blankslate_component_migration_counter.rb +1 -1
  37. data/lib/primer/view_components/linters/select_menu_migration_counter.rb +14 -0
  38. data/lib/primer/view_components/version.rb +2 -2
  39. data/previews/primer/alpha/select_panel_preview/eventually_local_fetch.html.erb +2 -1
  40. data/previews/primer/alpha/select_panel_preview.rb +3 -2
  41. data/previews/primer/open_project/sub_header_preview.rb +15 -2
  42. data/static/classes.json +3 -0
  43. data/static/info_arch.json +1 -1
  44. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73a4696100a12779bd22f474145dabb70cf5e961951308ff0c31f171910f8844
4
- data.tar.gz: 5689ce9147a4aafdfacdcf7a2d92e03d8402f28fd8af7fdf67078da3abb8c85e
3
+ metadata.gz: 6b709c407f6608c68093b59a4a9b86efe18c9d0f733c9e691abff9beb127b867
4
+ data.tar.gz: 77c2f77d4b45c3e5caf1f07e64fcf6dfa0330d7b44c3960992f30039a791ed91
5
5
  SHA512:
6
- metadata.gz: 6b31ea331978ffb53836339bc10571d4e7894f5f24c8a9949b55f3bea4a8116009e4499035da620ee857f2954e06c4688cc863c5ea691df08666da4bd0f963ec
7
- data.tar.gz: df6928a7664073476e4565058b58bdc30a988f630be267c21e03e49b6123b6342fa137a4557d4719d6abd061fb7e4b9378b0abf964ca48ca08968e2c1bf68dea
6
+ metadata.gz: f0121bf228358a9c5045e4598c069363b14f97e5cb2d3d07108376ed8b12e8e58c7dd017ae21c3ec8acd36c3937996cc6c94ddc6198e6dca763adc0b129bbc8a
7
+ data.tar.gz: d8fb908c972817644d14dab0cde00c95b0b9a72abadafb7ab0c4dfb5178d97866f27a3e6a129c0320c0d5e584acec21bfc25ed24c5a0f1b2f3484d18005fa5c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.46.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#174](https://github.com/opf/primer_view_components/pull/174) [`95adbb8`](https://github.com/opf/primer_view_components/commit/95adbb8f59be14e0db515e944b8f9c81f0ea778b) Thanks [@dombesz](https://github.com/dombesz)! - Toggle the visibility of the clear button on the SubHeader component's filter input based on its content.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#184](https://github.com/opf/primer_view_components/pull/184) [`1a72661`](https://github.com/opf/primer_view_components/commit/1a72661224108a9af87644d5e826579a03c8615c) Thanks [@HDinger](https://github.com/HDinger)! - Increase default width of the filter input in the SubHeader
12
+
13
+ ## 0.45.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#3026](https://github.com/primer/view_components/pull/3026) [`5be0a0f`](https://github.com/opf/primer_view_components/commit/5be0a0f1e60e02cb5140e159fd6b68dfd25194fa) Thanks [@camertron](https://github.com/camertron)! - Fire an event when banners are dismissed
18
+
19
+ - [#3023](https://github.com/primer/view_components/pull/3023) [`3fb46ed`](https://github.com/opf/primer_view_components/commit/3fb46ed1130f4a31e238b583de79db9d862c06a7) Thanks [@langermank](https://github.com/langermank)! - Bump `primer/primitives` v9
20
+
21
+ - [#3022](https://github.com/primer/view_components/pull/3022) [`01cbbea`](https://github.com/opf/primer_view_components/commit/01cbbea74f1b102cfffed69b83b464394c8019b9) Thanks [@camertron](https://github.com/camertron)! - Add a linter for migrating from SelectMenu -> SelectPanel
22
+
23
+ ### Patch Changes
24
+
25
+ - [#3027](https://github.com/primer/view_components/pull/3027) [`5a205cd`](https://github.com/opf/primer_view_components/commit/5a205cd63543c119b985e83e2800b8c2548cc051) Thanks [@camertron](https://github.com/camertron)! - Remove SelectPanel's backdrop
26
+
27
+ - [#3021](https://github.com/primer/view_components/pull/3021) [`8a16336`](https://github.com/opf/primer_view_components/commit/8a16336d254321f43969c9ed5b72861dc4c53c2e) Thanks [@camertron](https://github.com/camertron)! - When hiding a `Spinner`, also hide its screen reader text
28
+
29
+ - [#3040](https://github.com/primer/view_components/pull/3040) [`612307d`](https://github.com/opf/primer_view_components/commit/612307dd374352ccd71c8f82dbe7f065db54b9d4) Thanks [@camertron](https://github.com/camertron)! - Revert leading/trailing visuals for link component
30
+
31
+ - [#3038](https://github.com/primer/view_components/pull/3038) [`6b4983e`](https://github.com/opf/primer_view_components/commit/6b4983e1ecc29e7cf80cb68f0d274346882123b7) Thanks [@jamieshark](https://github.com/jamieshark)! - SelectPanel: check for filter input when loading remote items.
32
+
3
33
  ## 0.44.3
4
34
 
5
35
  ### Patch 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;
@@ -1,9 +1,13 @@
1
1
  declare class SubHeaderElement extends HTMLElement {
2
- filterInput: HTMLElement;
2
+ filterInput: HTMLInputElement;
3
3
  hiddenItemsOnExpandedFilter: HTMLElement[];
4
4
  shownItemsOnExpandedFilter: HTMLElement[];
5
+ connectedCallback(): void;
6
+ setupFilterInputClearButton(): void;
7
+ toggleFilterInputClearButton(): void;
5
8
  expandFilterInput(): void;
6
9
  collapseFilterInput(): void;
10
+ private waitForCondition;
7
11
  }
8
12
  declare global {
9
13
  interface Window {