openproject-primer_view_components 0.25.1 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/app/assets/javascripts/app/components/primer/open_project/zen_mode_button.d.ts +13 -0
  4. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  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/action_list/item.rb +1 -1
  10. data/app/components/primer/alpha/action_list.js +15 -12
  11. data/app/components/primer/alpha/action_list.ts +12 -9
  12. data/app/components/primer/alpha/dialog.css +1 -1
  13. data/app/components/primer/alpha/dialog.css.json +1 -0
  14. data/app/components/primer/alpha/dialog.css.map +1 -1
  15. data/app/components/primer/alpha/dialog.pcss +4 -0
  16. data/app/components/primer/alpha/overlay/header.html.erb +1 -0
  17. data/app/components/primer/alpha/overlay/header.rb +12 -0
  18. data/app/components/primer/alpha/tool_tip.js +1 -1
  19. data/app/components/primer/alpha/tool_tip.ts +1 -1
  20. data/app/components/primer/open_project/page_header/dialog.rb +38 -0
  21. data/app/components/primer/open_project/page_header/menu.rb +38 -0
  22. data/app/components/primer/open_project/page_header.rb +16 -27
  23. data/app/components/primer/open_project/zen_mode_button.d.ts +13 -0
  24. data/app/components/primer/open_project/zen_mode_button.html.erb +11 -0
  25. data/app/components/primer/open_project/zen_mode_button.js +45 -0
  26. data/app/components/primer/open_project/zen_mode_button.rb +23 -0
  27. data/app/components/primer/open_project/zen_mode_button.ts +42 -0
  28. data/app/components/primer/primer.d.ts +1 -0
  29. data/app/components/primer/primer.js +1 -0
  30. data/app/components/primer/primer.ts +1 -0
  31. data/lib/primer/view_components/version.rb +2 -2
  32. data/previews/primer/alpha/action_list_preview.rb +19 -1
  33. data/previews/primer/alpha/overlay_preview/overlay_with_header_filter.html.erb +16 -0
  34. data/previews/primer/alpha/overlay_preview.rb +4 -0
  35. data/previews/primer/alpha/tab_nav_preview.rb +1 -1
  36. data/previews/primer/alpha/tab_panels_preview.rb +2 -2
  37. data/previews/primer/alpha/underline_nav_preview.rb +3 -3
  38. data/previews/primer/alpha/underline_panels_preview.rb +38 -0
  39. data/previews/primer/beta/avatar_stack_preview.rb +1 -1
  40. data/previews/primer/beta/breadcrumbs_preview.rb +2 -2
  41. data/previews/primer/beta/nav_list_preview.rb +9 -3
  42. data/previews/primer/open_project/page_header_preview/actions.html.erb +0 -8
  43. data/previews/primer/open_project/page_header_preview.rb +48 -0
  44. data/previews/primer/open_project/zen_mode_button_preview.rb +22 -0
  45. data/static/arguments.json +42 -4
  46. data/static/audited_at.json +3 -1
  47. data/static/classes.json +3 -0
  48. data/static/constants.json +7 -2
  49. data/static/info_arch.json +183 -8
  50. data/static/previews.json +99 -0
  51. data/static/statuses.json +3 -1
  52. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23dc546496d164d704a249c4d0ead3fb71a7ea3905245c6efee13ed8f701044d
4
- data.tar.gz: 60ad45e23104513ca720e97ac7b567cc2c063ed39e66d9b93f2f6e2cee1743ab
3
+ metadata.gz: 625ef28c9bb40b00a14026f72eeb9fb7627c446a69c6735528f8ce5ced1b7ab7
4
+ data.tar.gz: 34ef12fb54dde389edc3607367977b6f344341e6f04f98007b8b1abe97d71716
5
5
  SHA512:
6
- metadata.gz: ed3e610bc03ddd3764109d43df3ba0b0e5236630d06b973c9861658e4ca2969650e0126629e6c4ab8c1aab6101d29e4d423c7aa3596bf29b7adbb0068244ae51
7
- data.tar.gz: 0f73519a8c39be05f1bc429f73a8ee3acf780a65669d6d1a3a212dcdceddf57128e6b76595e6752a17d6b8123e2073b374846f1f8c719e6a07a154e2ddc285ef
6
+ metadata.gz: b471b62da42a63ba9df30cb2eafe51fb39a841c2b7e2bf504c758f168bda857529b2d9ace734790d07c65e35a3e83f1bbfad1dcb9cf29e106a38d49b1ab3db8e
7
+ data.tar.gz: c72334e36b1107f8f6c2ac9b06026de4d8954d9d3d69413c25e80f24f799cdca0be0c1e4a9b1bd7329455a0d3a2c185dc80fff84f0b0a42b25242e490c52dad4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#96](https://github.com/opf/primer_view_components/pull/96) [`f52bbfa`](https://github.com/opf/primer_view_components/commit/f52bbfafcba707bd24e76495e84dc9e5128b0284) Thanks [@HDinger](https://github.com/HDinger)! - \* Add support for Dialogs inside the Primer::OpenProject::PageHeader component
8
+
9
+ - Limit the number of allowed actions to 5
10
+
11
+ - [#69](https://github.com/opf/primer_view_components/pull/69) [`81bb4b7`](https://github.com/opf/primer_view_components/commit/81bb4b7f746da1e076d085387a4ef2000067b946) Thanks [@bsatarnejad](https://github.com/bsatarnejad)! - Add `Primer::OpenProject::ZenModeButton` component. By clicking on the button, screen will be in full-mode or back in normal-mode.
12
+
13
+ ## 0.26.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#2729](https://github.com/primer/view_components/pull/2729) [`2b0a7bf`](https://github.com/opf/primer_view_components/commit/2b0a7bf7d82a837156df3794fe25bef435c66147) Thanks [@thesnowrose](https://github.com/thesnowrose)! - Fixes a bug where a tooltip was being shown in the navlist even when the text wasn't truncated for certain items.
18
+
19
+ - [#2651](https://github.com/primer/view_components/pull/2651) [`e1f3434`](https://github.com/opf/primer_view_components/commit/e1f34344d237505fb3cbe2a4d0b68300f244752c) Thanks [@jonrohan](https://github.com/jonrohan)! - Add a slot to `Overlay::Header` called `filter` for a filter input.
20
+
21
+ ### Patch Changes
22
+
23
+ - [#2735](https://github.com/primer/view_components/pull/2735) [`507a743`](https://github.com/opf/primer_view_components/commit/507a743a7e4e018330765cd1273344bb55829bb6) Thanks [@antn](https://github.com/antn)! - Explicitly convert params to integers where needed for several previews
24
+
25
+ - [#2731](https://github.com/primer/view_components/pull/2731) [`8123aee`](https://github.com/opf/primer_view_components/commit/8123aeeb616f0ed34c96f9517666a28031c948ac) Thanks [@jonrohan](https://github.com/jonrohan)! - Remove old primitives color themes imports and only use V8 on the demo lookbook
26
+
27
+ - [#2733](https://github.com/primer/view_components/pull/2733) [`6fe410b`](https://github.com/opf/primer_view_components/commit/6fe410b1a306ecc5a43507de9b0fb9bea76abb26) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Tooltip: Update the threshold value to match with the offset
28
+
3
29
  ## 0.25.1
4
30
 
5
31
  ### Patch Changes
@@ -0,0 +1,13 @@
1
+ declare class ZenModeButtonElement extends HTMLElement {
2
+ button: HTMLElement;
3
+ inZenMode: boolean;
4
+ private deactivateZenMode;
5
+ private activateZenMode;
6
+ performAction(): void;
7
+ }
8
+ declare global {
9
+ interface Window {
10
+ ZenModeButtonElement: typeof ZenModeButtonElement;
11
+ }
12
+ }
13
+ export {};
@@ -23,3 +23,4 @@ import '../../../lib/primer/forms/primer_text_field';
23
23
  import '../../../lib/primer/forms/toggle_switch_input';
24
24
  import './alpha/action_menu/action_menu_element';
25
25
  import './open_project/page_header_element';
26
+ import './open_project/zen_mode_button';