openproject-primer_view_components 0.41.1 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/select_panel_element.d.ts +0 -1
  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/action_list/item.html.erb +1 -5
  9. data/app/components/primer/alpha/action_list/item.rb +10 -3
  10. data/app/components/primer/alpha/segmented_control.css +1 -1
  11. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  12. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  13. data/app/components/primer/alpha/select_panel.rb +2 -1
  14. data/app/components/primer/alpha/select_panel_element.d.ts +0 -1
  15. data/app/components/primer/alpha/select_panel_element.js +38 -19
  16. data/app/components/primer/alpha/select_panel_element.ts +36 -22
  17. data/app/components/primer/alpha/tool_tip.js +2 -2
  18. data/app/components/primer/alpha/tool_tip.ts +2 -2
  19. data/app/components/primer/beta/relative_time.rb +4 -4
  20. data/app/components/primer/beta/state.css +1 -1
  21. data/app/components/primer/beta/state.css.map +1 -1
  22. data/app/components/primer/beta/state.pcss +4 -0
  23. data/lib/primer/view_components/linters/details_menu_migration.rb +30 -1
  24. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
  25. data/lib/primer/view_components/version.rb +2 -2
  26. data/previews/primer/alpha/action_list_preview.rb +1 -1
  27. data/previews/primer/alpha/select_panel_preview/list_of_links.html.erb +16 -0
  28. data/previews/primer/alpha/select_panel_preview/playground.html.erb +2 -1
  29. data/previews/primer/alpha/select_panel_preview.rb +12 -1
  30. data/static/arguments.json +5 -5
  31. data/static/info_arch.json +57 -11
  32. data/static/previews.json +13 -0
  33. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a378c7a5a9aa4f33d427d21fddb301b0dbe46e538447ee4376907a43a0c8a235
4
- data.tar.gz: 13380df59b216e1a5cb953ef4c68e4101e03d1b99f3f2b81c0f0d727e90db3b2
3
+ metadata.gz: c24adb88cebcd1df1b262a8f8e84fbcd0bafd0ffd4c738ae5c5690d9c4d9a12e
4
+ data.tar.gz: e8b232c1a506338ae44cc8bd1765a0b688b2326c75f4ca0808d1a4244c306066
5
5
  SHA512:
6
- metadata.gz: 420aa7dd1d778a2769be9ca66c2741b736154d55b1d8ebdddc3d1dac2f58e3285d78ad8593397de3d405a3adf714390c48392732176ee5165585db1ab1bfc73f
7
- data.tar.gz: 176fb4d46710b64a9fcef77cb53cb7d3934267298b9a2219c38a84f9d16d11717a43b9efb96344a0f2db3225811faf3853edda2a427d7e34648e5b280507d330
6
+ metadata.gz: 11c10c3d64e86546879d6d10caca91956ae1fb5b2abda0adf1ceab7be1463794d8b8bc24b7e31beee5bc24bafe619cd21af70860cfd40f153ae7b35212fd65ec
7
+ data.tar.gz: cfbe774602808faff36ce38918c9ad2befc7f1ececabae1b0fed2aab809bc9dd9632e9e2db7b6847a8a3dde2e83744e0fc3481faefb540e8f935566a36657e05
data/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.42.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2984](https://github.com/primer/view_components/pull/2984) [`c56f325`](https://github.com/opf/primer_view_components/commit/c56f3254128999ed69cdaeefb5a48cd08636fca0) Thanks [@camertron](https://github.com/camertron)! - Add ability to attach a test selector to ActionList items
8
+
9
+ ### Patch Changes
10
+
11
+ - [#2995](https://github.com/primer/view_components/pull/2995) [`0647fed`](https://github.com/opf/primer_view_components/commit/0647fedd4c0a9c23c5312f8e753a346e3ac42960) Thanks [@camertron](https://github.com/camertron)! - Allow ActionList item content to be supplied by positional arg
12
+
13
+ - [#2979](https://github.com/primer/view_components/pull/2979) [`ae6e3d7`](https://github.com/opf/primer_view_components/commit/ae6e3d73d5bc70492a151845e4d35c48f5510fa5) Thanks [@langermank](https://github.com/langermank)! - Prep for high contrast theme updates
14
+
15
+ - [#2986](https://github.com/primer/view_components/pull/2986) [`4d8ec0c`](https://github.com/opf/primer_view_components/commit/4d8ec0c67c748d07ff3c2b69d6bdaff408461d8e) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Fixes Alpha::SelectPanel remote loading bug where items from the server were overriding the users selections. Additionally, update the #removeSelectedItem function to grab the data-value from the correct element.
16
+
17
+ - [#2987](https://github.com/primer/view_components/pull/2987) [`82f0267`](https://github.com/opf/primer_view_components/commit/82f026711246f6f5409e79e4cffb74cc5145b39c) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Ensure focus is set on SelectPanel item when arrowing down from input
18
+
19
+ - [#2997](https://github.com/primer/view_components/pull/2997) [`0d0b5bc`](https://github.com/opf/primer_view_components/commit/0d0b5bcf2d2fd9f328f69545f850d825d2cc435b) Thanks [@camertron](https://github.com/camertron)! - Prevent an empty list of custom regexes in the DetailsMenuMigration linter from reporting false-positives
20
+
21
+ - [#2978](https://github.com/primer/view_components/pull/2978) [`fac1ec9`](https://github.com/opf/primer_view_components/commit/fac1ec9aed4c05d1034bb04d24c1380c9ef06c97) Thanks [@camertron](https://github.com/camertron)! - Ensure pressing 'Enter' in SelectPanel filter input causes navigation if first item is link.
22
+
23
+ - [#2996](https://github.com/primer/view_components/pull/2996) [`53abaa6`](https://github.com/opf/primer_view_components/commit/53abaa6a14ace48cf5d016edf58cf60930cd764e) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Remove tabindex="-1" from li elements labelled as role="none" since tabindex's remove/negate role presentation
24
+
25
+ - [#2989](https://github.com/primer/view_components/pull/2989) [`36a044a`](https://github.com/opf/primer_view_components/commit/36a044a28f6070e422681c8765693d1c21411fea) Thanks [@JoyceZhu](https://github.com/JoyceZhu)! - Add `aria-haspopup` and `aria-expanded` to `SelectPanel` state
26
+
27
+ - [#2994](https://github.com/primer/view_components/pull/2994) [`3bf8fd4`](https://github.com/opf/primer_view_components/commit/3bf8fd4142a7647bd4cc2798f7e62bf1046092b4) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Add aria-labelledby on the SelectPanel dialog
28
+
29
+ - [#2985](https://github.com/primer/view_components/pull/2985) [`868b49e`](https://github.com/opf/primer_view_components/commit/868b49ee1e8d82066be91a6ffe97d948c1d7dc43) Thanks [@jamieshark](https://github.com/jamieshark)! - Adds custom config for DetailsMenuMigration linter.
30
+
31
+ - [#2988](https://github.com/primer/view_components/pull/2988) [`a5eefd9`](https://github.com/opf/primer_view_components/commit/a5eefd9b5c7b8e6463b64ce6f7b3c46f65897759) Thanks [@gjtorikian](https://github.com/gjtorikian)! - Fix documentation comments in relative_time.rb
32
+
3
33
  ## 0.41.1
4
34
 
5
35
  ### Patch Changes
@@ -6,7 +6,6 @@ type SelectedItem = {
6
6
  label: string | null | undefined;
7
7
  value: string | null | undefined;
8
8
  inputName: string | null | undefined;
9
- element: SelectPanelItem;
10
9
  };
11
10
  export type SelectPanelItem = HTMLLIElement;
12
11
  export type FilterFn = (item: SelectPanelItem, query: string) => boolean;