openproject-primer_view_components 0.42.0 → 0.43.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 (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/app/assets/javascripts/app/components/primer/shared_events.d.ts +2 -0
  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.css +1 -1
  9. data/app/components/primer/alpha/action_list.css.json +33 -50
  10. data/app/components/primer/alpha/action_list.css.map +1 -1
  11. data/app/components/primer/alpha/action_menu/action_menu_element.js +20 -7
  12. data/app/components/primer/alpha/action_menu/action_menu_element.ts +20 -7
  13. data/app/components/primer/alpha/auto_complete.css +1 -1
  14. data/app/components/primer/alpha/auto_complete.css.json +3 -5
  15. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  16. data/app/components/primer/alpha/banner.css +1 -1
  17. data/app/components/primer/alpha/banner.css.json +5 -5
  18. data/app/components/primer/alpha/banner.css.map +1 -1
  19. data/app/components/primer/alpha/button_marketing.css +1 -1
  20. data/app/components/primer/alpha/button_marketing.css.json +1 -4
  21. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  22. data/app/components/primer/alpha/dialog.css +1 -1
  23. data/app/components/primer/alpha/dialog.css.json +7 -7
  24. data/app/components/primer/alpha/dialog.css.map +1 -1
  25. data/app/components/primer/alpha/layout.css +1 -1
  26. data/app/components/primer/alpha/layout.css.json +9 -15
  27. data/app/components/primer/alpha/layout.css.map +1 -1
  28. data/app/components/primer/alpha/menu.css +1 -1
  29. data/app/components/primer/alpha/menu.css.json +1 -3
  30. data/app/components/primer/alpha/menu.css.map +1 -1
  31. data/app/components/primer/alpha/segmented_control.css +1 -1
  32. data/app/components/primer/alpha/segmented_control.css.json +5 -5
  33. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  34. data/app/components/primer/alpha/select_panel.rb +3 -3
  35. data/app/components/primer/alpha/select_panel_element.js +25 -15
  36. data/app/components/primer/alpha/select_panel_element.ts +26 -16
  37. data/app/components/primer/alpha/tab_nav.css +1 -1
  38. data/app/components/primer/alpha/tab_nav.css.json +1 -3
  39. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  40. data/app/components/primer/alpha/text_field.css +1 -1
  41. data/app/components/primer/alpha/text_field.css.json +37 -78
  42. data/app/components/primer/alpha/text_field.css.map +1 -1
  43. data/app/components/primer/alpha/toggle_switch.css +1 -1
  44. data/app/components/primer/alpha/toggle_switch.css.json +1 -1
  45. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  46. data/app/components/primer/alpha/toggle_switch.rb +2 -1
  47. data/app/components/primer/alpha/underline_nav.css +1 -1
  48. data/app/components/primer/alpha/underline_nav.css.json +2 -4
  49. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  50. data/app/components/primer/beta/avatar_stack.css +1 -1
  51. data/app/components/primer/beta/avatar_stack.css.json +8 -8
  52. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  53. data/app/components/primer/beta/border_box.css +1 -1
  54. data/app/components/primer/beta/border_box.css.json +4 -4
  55. data/app/components/primer/beta/border_box.css.map +1 -1
  56. data/app/components/primer/beta/breadcrumbs.css +1 -1
  57. data/app/components/primer/beta/breadcrumbs.css.json +1 -2
  58. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  59. data/app/components/primer/beta/button.css +1 -1
  60. data/app/components/primer/beta/button.css.json +6 -8
  61. data/app/components/primer/beta/button.css.map +1 -1
  62. data/app/components/primer/beta/button_group.css +1 -1
  63. data/app/components/primer/beta/button_group.css.json +3 -3
  64. data/app/components/primer/beta/button_group.css.map +1 -1
  65. data/app/components/primer/beta/label.css +1 -1
  66. data/app/components/primer/beta/label.css.json +1 -2
  67. data/app/components/primer/beta/label.css.map +1 -1
  68. data/app/components/primer/beta/link.css +1 -1
  69. data/app/components/primer/beta/link.css.json +1 -3
  70. data/app/components/primer/beta/link.css.map +1 -1
  71. data/app/components/primer/beta/popover.css +1 -1
  72. data/app/components/primer/beta/popover.css.json +16 -22
  73. data/app/components/primer/beta/popover.css.map +1 -1
  74. data/app/components/primer/beta/spinner.html.erb +1 -1
  75. data/app/components/primer/beta/truncate.css +1 -1
  76. data/app/components/primer/beta/truncate.css.json +5 -5
  77. data/app/components/primer/beta/truncate.css.map +1 -1
  78. data/app/components/primer/open_project/side_panel/section.css +1 -1
  79. data/app/components/primer/open_project/side_panel/section.css.json +1 -2
  80. data/app/components/primer/open_project/side_panel/section.css.map +1 -1
  81. data/app/components/primer/shared_events.d.ts +2 -0
  82. data/app/components/primer/shared_events.ts +2 -0
  83. data/lib/primer/forms/primer_text_field.js +3 -0
  84. data/lib/primer/forms/primer_text_field.ts +4 -0
  85. data/lib/primer/view_components/version.rb +1 -1
  86. data/previews/primer/alpha/select_panel_preview/no_values.html.erb +19 -0
  87. data/previews/primer/alpha/select_panel_preview/playground.html.erb +1 -1
  88. data/previews/primer/alpha/select_panel_preview/remote_fetch.html.erb +4 -1
  89. data/previews/primer/alpha/select_panel_preview/single_select.html.erb +4 -4
  90. data/previews/primer/alpha/select_panel_preview.rb +14 -9
  91. data/static/arguments.json +1 -1
  92. data/static/classes.json +39 -21
  93. data/static/info_arch.json +15 -2
  94. data/static/previews.json +13 -0
  95. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c24adb88cebcd1df1b262a8f8e84fbcd0bafd0ffd4c738ae5c5690d9c4d9a12e
4
- data.tar.gz: e8b232c1a506338ae44cc8bd1765a0b688b2326c75f4ca0808d1a4244c306066
3
+ metadata.gz: 0e4de4ccb2d0de0e50fc91cb675ae08817a35d38dd889cca9091ee72b86c46e8
4
+ data.tar.gz: 7a2ddd7e535a7524ac0c5a77ac44dc6ff7241798b8cee92611f6ecfe276333f2
5
5
  SHA512:
6
- metadata.gz: 11c10c3d64e86546879d6d10caca91956ae1fb5b2abda0adf1ceab7be1463794d8b8bc24b7e31beee5bc24bafe619cd21af70860cfd40f153ae7b35212fd65ec
7
- data.tar.gz: cfbe774602808faff36ce38918c9ad2befc7f1ececabae1b0fed2aab809bc9dd9632e9e2db7b6847a8a3dde2e83744e0fc3481faefb540e8f935566a36657e05
6
+ metadata.gz: 03ce091d4b036dd53544f6b4346a9fe935dd09411e03099aa8052b668019332b6212cd93dd9067fbd5c258aa76ec77eb5111d8223e503cffdfb5e2975680fd4c
7
+ data.tar.gz: 0bce6a9e18c08638af9b678f38000f829c69c045b3b8f6838deddb67a85e7c99b7fd2113c9cb55930242e0735fa26965273373fd515955d0af440e0e9024f1b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.43.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3009](https://github.com/primer/view_components/pull/3009) [`8f06f7a`](https://github.com/opf/primer_view_components/commit/8f06f7a61bccf684db56ff8ddd275447db10c409) Thanks [@camertron](https://github.com/camertron)! - Include value in event metadata when SelectPanel items are activated
8
+
9
+ ### Patch Changes
10
+
11
+ - [#2983](https://github.com/primer/view_components/pull/2983) [`5d68193`](https://github.com/opf/primer_view_components/commit/5d681938247c4a957d62b05c2560fef24195ff51) Thanks [@keithamus](https://github.com/keithamus)! - Ensure ActionMenu restores focus on close of a dialog, if a menu item opened that dialog
12
+
13
+ - [#3010](https://github.com/primer/view_components/pull/3010) [`ebab85a`](https://github.com/opf/primer_view_components/commit/ebab85a3a3d2644079aaf495fd1e6689b89f713b) Thanks [@camertron](https://github.com/camertron)! - Fixes several SelectPanel bugs:
14
+
15
+ 1. If multiple server-rendered items are checked, the panel will only show one item checked.
16
+ 2. If no `data-value` attributes are provided, panels in single-select mode will allow multiple items to be checked.
17
+
18
+ - [#3011](https://github.com/primer/view_components/pull/3011) [`9507093`](https://github.com/opf/primer_view_components/commit/9507093d6e9a1f7b04c25d66d51bdbb5da805fdd) Thanks [@JoyceZhu](https://github.com/JoyceZhu)! - Remove "loading" screenreader-only text after Spinner load for
19
+ `eventually_local` SelectPanels
20
+
21
+ - [#3012](https://github.com/primer/view_components/pull/3012) [`adcdddd`](https://github.com/opf/primer_view_components/commit/adcdddd1c1d0524c4d2f6d57980052914d680dc8) Thanks [@orhantoy](https://github.com/orhantoy)! - Fix a bug where all requests from the `ToggleSwitch` view component are being made with a Turbo Accept header.
22
+ This started happening after the change in #2964 because `data-turbo=false` gets interpreted as a truthy value.
23
+
3
24
  ## 0.42.0
4
25
 
5
26
  ### Minor Changes
@@ -1,9 +1,11 @@
1
1
  export type ItemActivatedEvent = {
2
2
  item: Element;
3
3
  checked: boolean;
4
+ value: string | null;
4
5
  };
5
6
  declare global {
6
7
  interface HTMLElementEventMap {
7
8
  itemActivated: CustomEvent<ItemActivatedEvent>;
9
+ beforeItemActivated: CustomEvent<ItemActivatedEvent>;
8
10
  }
9
11
  }