openproject-primer_view_components 0.24.0 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +1 -0
  4. data/app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts +9 -0
  5. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  6. data/app/assets/javascripts/primer_view_components.js +1 -1
  7. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  8. data/app/assets/styles/primer_view_components.css +1 -1
  9. data/app/assets/styles/primer_view_components.css.map +1 -1
  10. data/app/components/primer/alpha/banner.css +1 -1
  11. data/app/components/primer/alpha/banner.css.map +1 -1
  12. data/app/components/primer/alpha/banner.pcss +4 -4
  13. data/app/components/primer/alpha/dialog.css +1 -1
  14. data/app/components/primer/alpha/dialog.css.json +1 -2
  15. data/app/components/primer/alpha/dialog.css.map +1 -1
  16. data/app/components/primer/alpha/dialog.pcss +8 -7
  17. data/app/components/primer/alpha/segmented_control.css +1 -1
  18. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  19. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  20. data/app/components/primer/alpha/tool_tip.js +46 -77
  21. data/app/components/primer/alpha/tool_tip.ts +46 -77
  22. data/app/components/primer/beta/button.css +1 -1
  23. data/app/components/primer/beta/button.css.json +2 -0
  24. data/app/components/primer/beta/button.css.map +1 -1
  25. data/app/components/primer/beta/button.pcss +8 -0
  26. data/app/components/primer/beta/button_group.rb +4 -2
  27. data/app/components/primer/beta/flash.css +1 -1
  28. data/app/components/primer/beta/flash.css.map +1 -1
  29. data/app/components/primer/beta/flash.pcss +4 -4
  30. data/app/components/primer/beta/icon_button.rb +2 -0
  31. data/app/components/primer/dialog_helper.js +16 -3
  32. data/app/components/primer/dialog_helper.ts +14 -1
  33. data/app/components/primer/open_project/page_header.css +1 -1
  34. data/app/components/primer/open_project/page_header.css.json +1 -0
  35. data/app/components/primer/open_project/page_header.css.map +1 -1
  36. data/app/components/primer/open_project/page_header.html.erb +6 -7
  37. data/app/components/primer/open_project/page_header.pcss +10 -0
  38. data/app/components/primer/open_project/page_header.rb +152 -34
  39. data/app/components/primer/open_project/page_header_element.d.ts +9 -0
  40. data/app/components/primer/open_project/page_header_element.js +23 -0
  41. data/app/components/primer/open_project/page_header_element.ts +25 -0
  42. data/app/components/primer/primer.d.ts +1 -0
  43. data/app/components/primer/primer.js +1 -0
  44. data/app/components/primer/primer.ts +1 -0
  45. data/lib/primer/view_components/version.rb +2 -2
  46. data/previews/primer/alpha/action_menu_preview.rb +1 -1
  47. data/previews/primer/alpha/dialog_preview.rb +24 -0
  48. data/previews/primer/alpha/tooltip_preview/tooltip_e.html.erb +6 -0
  49. data/previews/primer/alpha/tooltip_preview/tooltip_n.html.erb +6 -0
  50. data/previews/primer/alpha/tooltip_preview/tooltip_ne.html.erb +6 -0
  51. data/previews/primer/alpha/tooltip_preview/tooltip_nw.html.erb +6 -0
  52. data/previews/primer/alpha/tooltip_preview/tooltip_s.html.erb +6 -0
  53. data/previews/primer/alpha/tooltip_preview/tooltip_se.html.erb +6 -0
  54. data/previews/primer/alpha/tooltip_preview/tooltip_sw.html.erb +6 -0
  55. data/previews/primer/alpha/tooltip_preview/tooltip_w.html.erb +6 -0
  56. data/previews/primer/alpha/tooltip_preview.rb +80 -0
  57. data/previews/primer/beta/button_group_preview/with_menu_button.html.erb +1 -1
  58. data/previews/primer/beta/button_group_preview.rb +7 -1
  59. data/previews/primer/beta/icon_button_preview.rb +25 -0
  60. data/previews/primer/open_project/border_grid_preview.rb +2 -2
  61. data/previews/primer/open_project/input_group_preview.rb +5 -5
  62. data/previews/primer/open_project/page_header_preview/actions.html.erb +16 -15
  63. data/previews/primer/open_project/page_header_preview/playground.html.erb +9 -24
  64. data/previews/primer/open_project/page_header_preview.rb +14 -36
  65. data/static/arguments.json +35 -2
  66. data/static/audited_at.json +1 -0
  67. data/static/classes.json +3 -0
  68. data/static/constants.json +13 -5
  69. data/static/info_arch.json +180 -49
  70. data/static/previews.json +130 -26
  71. data/static/statuses.json +1 -0
  72. metadata +16 -5
  73. data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e01f862376137f5e925cd76fa9d1533a43e57766b9f010aec7b8b723411485c
4
- data.tar.gz: c500a5dada1c608667e8f272d9054bb645a1386ed694227bd45a7ca0b66901e7
3
+ metadata.gz: 23dc546496d164d704a249c4d0ead3fb71a7ea3905245c6efee13ed8f701044d
4
+ data.tar.gz: 60ad45e23104513ca720e97ac7b567cc2c063ed39e66d9b93f2f6e2cee1743ab
5
5
  SHA512:
6
- metadata.gz: c8309b01ce25449e99c6580a7417a4d647893a4f09bef54cea961fd6f2ae0e3b7cfeca31d16c3cfbe3ac7dd156c095b43e20c0e9be9486aeddeb8c34296684b2
7
- data.tar.gz: bca5107dc093c088264490e28c6126675e3d0984d0a3dd0b6dd61c3daf3fb6112ddb9f210d78c900c0c02f551eceddc80961bf6a89e24ad37a2fd6fb493f6094
6
+ metadata.gz: ed3e610bc03ddd3764109d43df3ba0b0e5236630d06b973c9861658e4ca2969650e0126629e6c4ab8c1aab6101d29e4d423c7aa3596bf29b7adbb0068244ae51
7
+ data.tar.gz: 0f73519a8c39be05f1bc429f73a8ee3acf780a65669d6d1a3a212dcdceddf57128e6b76595e6752a17d6b8123e2073b374846f1f8c719e6a07a154e2ddc285ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.25.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2707](https://github.com/primer/view_components/pull/2707) [`1c73539`](https://github.com/opf/primer_view_components/commit/1c7353976a09b8722dd0609ff3239ed02799a5ff) Thanks [@jonrohan](https://github.com/jonrohan)! - Add `:primary` and `:secondary` scheme to IconButton and Match scheme for ButtonGroup menu
8
+
9
+ - [#2582](https://github.com/primer/view_components/pull/2582) [`74c4cc0`](https://github.com/opf/primer_view_components/commit/74c4cc037fede70f8859614d7efab8934eeb80e7) Thanks [@keithamus](https://github.com/keithamus)! - Ensure Alpha::Dialog is always opened as modal
10
+
11
+ ## 0.25.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#2603](https://github.com/primer/view_components/pull/2603) [`bbc1776`](https://github.com/opf/primer_view_components/commit/bbc1776b44e089516658aa76d2fec3724a4dccfc) Thanks [@langermank](https://github.com/langermank)! - Tooltip visual refresh to match Primer React
16
+
17
+ - [#89](https://github.com/opf/primer_view_components/pull/89) [`0d06bec`](https://github.com/opf/primer_view_components/commit/0d06bec7224ad70c071586f5884b2ef8692237dc) Thanks [@HDinger](https://github.com/HDinger)! - Changes `Primer::OpenProject::PageHeader`:
18
+
19
+ - Remove the `context_bar_actions` slot
20
+ - Make `breadcrumbs` required
21
+ - Remove the `parent_link` slot (will be derived automatically from the breadcrumb)
22
+ - Change the slot definition for `actions` to be type specific (allowed types are: icon_button, button, link, text and menu)
23
+ - On mobile, the actions collapse into a single action menu which is placed in the context_bar
24
+
25
+ ### Patch Changes
26
+
27
+ - [#2706](https://github.com/primer/view_components/pull/2706) [`60c5f01`](https://github.com/opf/primer_view_components/commit/60c5f014e60c6f2e5e5e1bcfb8702fdf48d26fa7) Thanks [@camertron](https://github.com/camertron)! - Fix dialog CSS to prevent tooltip issues
28
+
29
+ - [#2705](https://github.com/primer/view_components/pull/2705) [`90192bb`](https://github.com/opf/primer_view_components/commit/90192bb652992cc47672a571aa8fb03b866703c5) Thanks [@langermank](https://github.com/langermank)! - Revert "Swap bg-gradient with bg-color for Banner/Flash"
30
+
3
31
  ## 0.24.0
4
32
 
5
33
  ### Minor Changes
data/README.md CHANGED
@@ -11,6 +11,7 @@ Please have a look at our [Contribution docs](./docs/contributors/README.md) to
11
11
  * [Getting started](./docs/contributors/setup.md)
12
12
  * [Adding a component](./docs/contributors/adding-components.md)
13
13
  * [Releasing](./docs/contributors/releasing.md)
14
+ * [Updating the fork](./docs/contributors/updating-fork.md)
14
15
  * ...
15
16
 
16
17
  ## CI & Automation
@@ -0,0 +1,9 @@
1
+ declare class PageHeaderElement extends HTMLElement {
2
+ menuItemClick(event: Event): void;
3
+ }
4
+ declare global {
5
+ interface Window {
6
+ PageHeaderElement: typeof PageHeaderElement;
7
+ }
8
+ }
9
+ export {};
@@ -22,3 +22,4 @@ import '../../../lib/primer/forms/primer_multi_input';
22
22
  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
+ import './open_project/page_header_element';