openproject-primer_view_components 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts +3 -2
  4. data/app/assets/javascripts/app/components/primer/dialog_helper.d.ts +15 -0
  5. data/app/assets/javascripts/app/components/primer/primer.d.ts +2 -0
  6. data/app/assets/javascripts/app/components/primer/scrollable_region.d.ts +13 -0
  7. data/app/assets/javascripts/primer_view_components.js +1 -1
  8. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  9. data/app/assets/styles/primer_view_components.css +1 -1
  10. data/app/assets/styles/primer_view_components.css.map +1 -1
  11. data/app/components/primer/alpha/action_bar.css +1 -1
  12. data/app/components/primer/alpha/action_bar.css.map +1 -1
  13. data/app/components/primer/alpha/action_bar.pcss +8 -6
  14. data/app/components/primer/alpha/action_bar_element.d.ts +3 -2
  15. data/app/components/primer/alpha/action_bar_element.js +80 -97
  16. data/app/components/primer/alpha/action_bar_element.ts +84 -89
  17. data/app/components/primer/alpha/action_list.css +1 -1
  18. data/app/components/primer/alpha/action_list.css.map +1 -1
  19. data/app/components/primer/alpha/action_menu/action_menu_element.js +15 -4
  20. data/app/components/primer/alpha/action_menu/action_menu_element.ts +13 -1
  21. data/app/components/primer/alpha/action_menu.rb +3 -1
  22. data/app/components/primer/alpha/banner.html.erb +1 -1
  23. data/app/components/primer/alpha/banner.rb +11 -3
  24. data/app/components/primer/alpha/dialog.css +1 -1
  25. data/app/components/primer/alpha/dialog.css.json +12 -27
  26. data/app/components/primer/alpha/dialog.css.map +1 -1
  27. data/app/components/primer/alpha/dialog.html.erb +5 -3
  28. data/app/components/primer/alpha/dialog.pcss +78 -143
  29. data/app/components/primer/alpha/dialog.rb +15 -14
  30. data/app/components/primer/alpha/layout.css +1 -1
  31. data/app/components/primer/alpha/layout.css.map +1 -1
  32. data/app/components/primer/alpha/modal_dialog.ts +1 -1
  33. data/app/components/primer/alpha/overlay.css +1 -1
  34. data/app/components/primer/alpha/overlay.css.json +3 -1
  35. data/app/components/primer/alpha/overlay.css.map +1 -1
  36. data/app/components/primer/alpha/overlay.pcss +7 -1
  37. data/app/components/primer/alpha/text_field.css +1 -1
  38. data/app/components/primer/alpha/text_field.css.map +1 -1
  39. data/app/components/primer/alpha/text_field.pcss +4 -3
  40. data/app/components/primer/alpha/tool_tip.js +14 -1
  41. data/app/components/primer/alpha/tool_tip.ts +15 -1
  42. data/app/components/primer/alpha/underline_nav.css +1 -1
  43. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  44. data/app/components/primer/base_component.rb +20 -18
  45. data/app/components/primer/beta/button.css +1 -1
  46. data/app/components/primer/beta/button.css.map +1 -1
  47. data/app/components/primer/dialog_helper.d.ts +15 -0
  48. data/app/components/primer/dialog_helper.js +85 -0
  49. data/app/components/primer/dialog_helper.ts +88 -0
  50. data/app/components/primer/open_project/page_header.rb +3 -3
  51. data/app/components/primer/primer.d.ts +2 -0
  52. data/app/components/primer/primer.js +2 -0
  53. data/app/components/primer/primer.ts +2 -0
  54. data/app/components/primer/scrollable_region.d.ts +13 -0
  55. data/app/components/primer/scrollable_region.js +52 -0
  56. data/app/components/primer/scrollable_region.ts +48 -0
  57. data/lib/primer/classify/utilities.rb +3 -4
  58. data/lib/primer/deprecations.yml +3 -3
  59. data/lib/primer/forms/dsl/button_input.rb +4 -0
  60. data/lib/primer/forms/dsl/check_box_input.rb +6 -0
  61. data/lib/primer/forms/dsl/hidden_input.rb +4 -0
  62. data/lib/primer/forms/dsl/input.rb +7 -3
  63. data/lib/primer/forms/dsl/radio_button_input.rb +6 -0
  64. data/lib/primer/forms/dsl/select_input.rb +3 -1
  65. data/lib/primer/forms/dsl/submit_button_input.rb +4 -0
  66. data/lib/primer/forms/form_control.html.erb +3 -1
  67. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
  68. data/lib/primer/view_components/version.rb +1 -1
  69. data/lib/primer/yard/docs_helper.rb +1 -1
  70. data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +11 -0
  71. data/previews/primer/alpha/action_menu_preview.rb +7 -0
  72. data/previews/primer/alpha/banner_preview.rb +3 -2
  73. data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +1 -1
  74. data/previews/primer/alpha/dialog_preview/scroll_container.html.erb +35 -0
  75. data/previews/primer/alpha/dialog_preview.rb +61 -1
  76. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +2 -3
  77. data/previews/primer/alpha/tooltip_preview.rb +1 -1
  78. data/previews/primer/beta/button_preview/trailing_visual.html.erb +2 -1
  79. data/previews/primer/beta/button_preview.rb +4 -2
  80. data/previews/primer/open_project/page_header_preview.rb +4 -4
  81. data/static/arguments.json +12 -0
  82. data/static/classes.json +5 -20
  83. data/static/constants.json +17 -11
  84. data/static/info_arch.json +67 -3
  85. data/static/previews.json +54 -2
  86. metadata +13 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a440df9756ae23d7db3614b2efad994988c052d3f4ebc343b5f5c5c19ae2bfe2
4
- data.tar.gz: d66f14a39edc3d157650b424c5aaf028e2bea48ead29ac64249a94dacae949ac
3
+ metadata.gz: a64e8205ea27dd24c4335446b73c8add35e66f68c1ee79fd0852cbd7b073eef3
4
+ data.tar.gz: 339f9b1469d8bc2a3ed7f2888e0767aaab8506915654dc297516bbc55786770d
5
5
  SHA512:
6
- metadata.gz: 8bbe2134e705abc56607092f56865ae9d8d2714c3b972405a625497d557d7aff799e408a26bcc2623968c67d42c8a07a67833aba5597e42a93bc77f83c63ed9d
7
- data.tar.gz: 1f215934bbabd68f14e7a0fc6156ec5e5579274b1462eb063fbaf7f26e9a0703bc135dd795f62bf7a0c41c92f03aeb30ae892fb928d87f86cded94407c50c3ce
6
+ metadata.gz: 6ed7791bae3a4ff65699cb827631222bdcb0bd9b17e975bf59217f7eba416af9a53eaf0f81d58fc8bfc96a4dd0d157266371e24ff836f0c5a15d6175a4405d22
7
+ data.tar.gz: 2294015e2bcec6e9c079008b08c546aaec6b73b3b80b2aae0a08b0d6fffcf3aff20007513ba2878688a5dddb3df4631c59bdc213607ffa94fa0df34b1719dbc9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2539](https://github.com/primer/view_components/pull/2539) [`9985fc0`](https://github.com/opf/primer_view_components/commit/9985fc01ef4a343a7c455ec114a68a249a01ed3e) Thanks [@camertron](https://github.com/camertron)! - Use latest version of @primer/primitives
8
+
9
+ - [#2496](https://github.com/primer/view_components/pull/2496) [`983e3a5`](https://github.com/opf/primer_view_components/commit/983e3a5fbf885c46d5bde0c749b0f9298ab2b53f) Thanks [@keithamus](https://github.com/keithamus)! - Primer::Alpha::Dialog uses <dialog> internally
10
+
11
+ ### Patch Changes
12
+
13
+ - [#2495](https://github.com/primer/view_components/pull/2495) [`fbaea76`](https://github.com/opf/primer_view_components/commit/fbaea76c3209a7c4e92d18b3b80bb347f971c448) Thanks [@antn](https://github.com/antn)! - Allow setting `test_selector` on select list options
14
+
15
+ - [#2538](https://github.com/primer/view_components/pull/2538) [`35e5d06`](https://github.com/opf/primer_view_components/commit/35e5d0696f503bf2bac14329dc455cc6245f6ba9) Thanks [@camertron](https://github.com/camertron)! - Prevent ActionMenu's show_button slot from rendering its content more than once
16
+
17
+ - [#67](https://github.com/opf/primer_view_components/pull/67) [`a465b9e`](https://github.com/opf/primer_view_components/commit/a465b9e50b73a402cb0a3f66668358b4d7c40563) Thanks [@HDinger](https://github.com/HDinger)! - Make the large header variant the default for OpenProject::PageHeader
18
+
19
+ - [#2541](https://github.com/primer/view_components/pull/2541) [`116a343`](https://github.com/opf/primer_view_components/commit/116a3438d0f9404483b638ef3f13a656609415cb) Thanks [@khiga8](https://github.com/khiga8)! - Allow `Banner` to be rendered as a section
20
+
21
+ - [#2530](https://github.com/primer/view_components/pull/2530) [`1d14d5c`](https://github.com/opf/primer_view_components/commit/1d14d5c03a528930ac59bb8ec30fbec2ea92883e) Thanks [@camertron](https://github.com/camertron)! - Update @oddbird/popover-polyfill to v0.3.8
22
+
23
+ - [#2491](https://github.com/primer/view_components/pull/2491) [`11b1eec`](https://github.com/opf/primer_view_components/commit/11b1eecc817c7013ed56c84f7050e642b098db41) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixing the utilities build not matching properly for `font_size`
24
+
25
+ - [#2511](https://github.com/primer/view_components/pull/2511) [`15a090a`](https://github.com/opf/primer_view_components/commit/15a090a999e69056d78ba099671ff1f68d61c610) Thanks [@camertron](https://github.com/camertron)! - Only attach validation IDs to form elements that support validation
26
+
27
+ ## 0.20.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#2445](https://github.com/primer/view_components/pull/2445) [`da60c73`](https://github.com/opf/primer_view_components/commit/da60c7370104a7edd8713d271210e2c9cb3eeb96) Thanks [@camertron](https://github.com/camertron)! - Always convert CSS classes to system arguments in linters
32
+
33
+ - [#2447](https://github.com/primer/view_components/pull/2447) [`08a8e01`](https://github.com/opf/primer_view_components/commit/08a8e012572bb5d2248f89acdaf7329747fd3108) Thanks [@kenyonj](https://github.com/kenyonj)! - Support font_size and border_radius in classify/utilities
34
+
35
+ ### Patch Changes
36
+
37
+ - [#2452](https://github.com/primer/view_components/pull/2452) [`87e03ea`](https://github.com/opf/primer_view_components/commit/87e03ea4dd41822454c72ddb7e55b0aa9294c69c) Thanks [@nicolleromero](https://github.com/nicolleromero)! - Ensure tooltip does not reopen errantly unless focus is visible
38
+
39
+ - [#2456](https://github.com/primer/view_components/pull/2456) [`fd38b17`](https://github.com/opf/primer_view_components/commit/fd38b170014cfadbd8ecc78814f70a5323fda3ee) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds visible outlines to `Overlay` and `Tooltip` in high contrast mode.
40
+
41
+ - [#2432](https://github.com/primer/view_components/pull/2432) [`c162880`](https://github.com/opf/primer_view_components/commit/c162880a5a57b86fd6f640d0dd5c9a4548335f09) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - Remove `user-select: none` to allow users to select form label text
42
+
43
+ - [#2428](https://github.com/primer/view_components/pull/2428) [`4cb9a57`](https://github.com/opf/primer_view_components/commit/4cb9a57de1d507e7c22d7c3cdb39b20e73bc36bc) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Fix an accessibility issue where the Dialog body could not be reached via keyboard navigation
44
+
45
+ - [#2426](https://github.com/primer/view_components/pull/2426) [`78dd9dd`](https://github.com/opf/primer_view_components/commit/78dd9ddb70ee5ade30e243968c87364a80ff1325) Thanks [@camertron](https://github.com/camertron)! - Fix typo in argument passed to event listener in ToolTip
46
+
47
+ - [#2478](https://github.com/primer/view_components/pull/2478) [`6e7b7c2`](https://github.com/opf/primer_view_components/commit/6e7b7c2340339a15b21857ee1fbc734a5760135d) Thanks [@jonrohan](https://github.com/jonrohan)! - Bug fix in ActionBar: When collapsed the menu and tooltips aren't visible in Firefox
48
+
49
+ - [#2411](https://github.com/primer/view_components/pull/2411) [`58e700a`](https://github.com/opf/primer_view_components/commit/58e700ab9222054bc803541d9eccc4877254b1c1) Thanks [@keithamus](https://github.com/keithamus)! - Ensure scroll position does not change when opening ActionMenus
50
+
51
+ - [#2425](https://github.com/primer/view_components/pull/2425) [`65f418f`](https://github.com/opf/primer_view_components/commit/65f418f8f191768b0fc0b92ffd2a681631594631) Thanks [@camertron](https://github.com/camertron)! - Use floats to hide ActionBar items to address Android Chrome overflow issue
52
+
53
+ - [#2455](https://github.com/primer/view_components/pull/2455) [`6ca4ac4`](https://github.com/opf/primer_view_components/commit/6ca4ac4476b00be4f5561ae3ad452c4609dd2928) Thanks [@HDinger](https://github.com/HDinger)! - Make dismiss action on Banner translatable
54
+
55
+ - [#2434](https://github.com/primer/view_components/pull/2434) [`dc87edf`](https://github.com/opf/primer_view_components/commit/dc87edf407d98cdefc32d095fea99909c066a2fc) Thanks [@langermank](https://github.com/langermank)! - Add missing `box-shadow` to text field
56
+
3
57
  ## 0.19.0
4
58
 
5
59
  ### Minor Changes
@@ -1,12 +1,13 @@
1
+ import { ActionMenuElement } from './action_menu/action_menu_element';
1
2
  declare class ActionBarElement extends HTMLElement {
2
3
  #private;
3
4
  items: HTMLElement[];
4
5
  itemContainer: HTMLElement;
5
- moreMenu: HTMLElement;
6
+ moreMenu: ActionMenuElement;
6
7
  connectedCallback(): void;
7
8
  disconnectedCallback(): void;
8
9
  menuItemClick(event: Event): void;
9
- update(rect?: DOMRect): void;
10
+ update(): void;
10
11
  }
11
12
  declare global {
12
13
  interface Window {
@@ -0,0 +1,15 @@
1
+ export declare class DialogHelperElement extends HTMLElement {
2
+ #private;
3
+ get dialog(): HTMLDialogElement | null;
4
+ connectedCallback(): void;
5
+ disconnectedCallback(): void;
6
+ handleEvent(event: MouseEvent): void;
7
+ }
8
+ declare global {
9
+ interface Window {
10
+ DialogHelperElement: typeof DialogHelperElement;
11
+ }
12
+ interface HTMLElementTagNameMap {
13
+ 'dialog-helper': DialogHelperElement;
14
+ }
15
+ }
@@ -2,7 +2,9 @@ import '@github/include-fragment-element';
2
2
  import './alpha/action_bar_element';
3
3
  import './alpha/dropdown';
4
4
  import './anchored_position';
5
+ import './dialog_helper';
5
6
  import './focus_group';
7
+ import './scrollable_region';
6
8
  import './alpha/image_crop';
7
9
  import './alpha/modal_dialog';
8
10
  import './beta/nav_list';
@@ -0,0 +1,13 @@
1
+ export declare class ScrollableRegionElement extends HTMLElement {
2
+ hasOverflow: boolean;
3
+ labelledBy: string;
4
+ observer: ResizeObserver;
5
+ connectedCallback(): void;
6
+ disconnectedCallback(): void;
7
+ attributeChangedCallback(name: string): void;
8
+ }
9
+ declare global {
10
+ interface Window {
11
+ ScrollableRegionElement: typeof ScrollableRegionElement;
12
+ }
13
+ }