openproject-primer_view_components 0.49.1 → 0.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/app/assets/javascripts/components/primer/alpha/select_panel_element.d.ts +3 -1
  4. data/app/assets/javascripts/components/primer/primer.d.ts +0 -1
  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_bar.rb +2 -2
  10. data/app/components/primer/alpha/action_bar_element.js +0 -7
  11. data/app/components/primer/alpha/action_bar_element.ts +0 -8
  12. data/app/components/primer/alpha/action_list/item.rb +1 -1
  13. data/app/components/primer/alpha/select_panel.html.erb +1 -1
  14. data/app/components/primer/alpha/select_panel_element.d.ts +3 -1
  15. data/app/components/primer/alpha/select_panel_element.js +10 -12
  16. data/app/components/primer/alpha/select_panel_element.ts +9 -10
  17. data/app/components/primer/base_component.rb +4 -1
  18. data/app/components/primer/beta/auto_complete.rb +1 -0
  19. data/app/components/primer/beta/button.rb +0 -11
  20. data/app/components/primer/beta/link.css +1 -1
  21. data/app/components/primer/beta/link.css.json +2 -1
  22. data/app/components/primer/beta/link.css.map +1 -1
  23. data/app/components/primer/beta/link.html.erb +18 -0
  24. data/app/components/primer/beta/link.pcss +9 -0
  25. data/app/components/primer/beta/link.rb +26 -14
  26. data/app/components/primer/beta/popover.css +1 -1
  27. data/app/components/primer/beta/popover.css.map +1 -1
  28. data/app/components/primer/beta/popover.pcss +4 -0
  29. data/app/components/primer/button_component.rb +0 -11
  30. data/app/components/primer/component.rb +7 -0
  31. data/app/components/primer/conditional_wrapper.rb +5 -2
  32. data/app/components/primer/primer.d.ts +0 -1
  33. data/app/components/primer/primer.js +0 -1
  34. data/app/components/primer/primer.ts +0 -1
  35. data/app/forms/horizontal_form.rb +2 -0
  36. data/app/lib/primer/forms/auto_complete.rb +2 -1
  37. data/app/lib/primer/forms/dsl/hidden_input.rb +4 -0
  38. data/app/lib/primer/forms/group.rb +4 -1
  39. data/lib/primer/classify/utilities.yml +63 -0
  40. data/lib/primer/classify.rb +1 -26
  41. data/lib/primer/forms/primer_multi_input.d.ts +10 -0
  42. data/lib/primer/forms/primer_multi_input.js +44 -0
  43. data/lib/primer/forms/primer_text_field.d.ts +28 -0
  44. data/lib/primer/forms/primer_text_field.js +119 -0
  45. data/lib/primer/forms/toggle_switch_input.d.ts +5 -0
  46. data/lib/primer/forms/toggle_switch_input.js +34 -0
  47. data/lib/primer/static/generate_form_previews.rb +44 -0
  48. data/lib/primer/static.rb +8 -0
  49. data/lib/primer/view_components/version.rb +2 -2
  50. data/lib/tasks/custom_utilities.yml +63 -0
  51. data/previews/primer/beta/link_preview.rb +24 -2
  52. data/previews/primer/forms_preview.rb +21 -0
  53. data/static/classes.json +3 -0
  54. data/static/form_previews.json +113 -0
  55. metadata +11 -6
  56. data/app/assets/javascripts/components/primer/aria_live.d.ts +0 -8
  57. data/app/components/primer/aria_live.d.ts +0 -8
  58. data/app/components/primer/aria_live.js +0 -38
  59. data/app/components/primer/aria_live.ts +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f984469d4ddf44225371effff2febbe1fa1fd9e6b2d3fd96d37a6265d8614c04
4
- data.tar.gz: 65d5dae2b8daae1024fc8d62553e1647cae83c70a18828bd98c91b403198bf3d
3
+ metadata.gz: f8125e5833c77a58f2ce85f8781ad48954a0c8669105d3bf8e55c74f2c360c12
4
+ data.tar.gz: 0d501ea896daa1a624c75747219e0a188cf2c74887476a9335fbf3ed9961fbe8
5
5
  SHA512:
6
- metadata.gz: d969e41904ea4ed090d1639e9713e8fdac92e84b52ead84f5450b56572bd7d8777d7e54a65893c8cd758bb844ae60365daf0f5c9529e463e74c13df7a81fa6c2
7
- data.tar.gz: 36a98aa21fb1152f8b37ec889a2be7da79b3e39b57d754d5393cdf51ce8938336299aec36eb76cd313790abdeb6024745439e22d509d4e6c24bcee0f0e63861a
6
+ metadata.gz: 4e17df484d35909bcf040b50187384550a4ffea360250b3aa4f7555a7b2b792eb24ea441846b66ae931c32ff2cf781c7aa2ad5b089b62a979b1c585a5d8092c6
7
+ data.tar.gz: 84ec5382d94997acc7acd6a0f47e2ba06a51670590c81709d2d42a127d8451638be204c7b94f0c34b88ead697e97443713e00ad4f694bb2c09dd1ab3abd2675e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.50.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3041](https://github.com/primer/view_components/pull/3041) [`14dd0d3`](https://github.com/opf/primer_view_components/commit/14dd0d3c4cbf2e6ce46f4d80ed94ccc06374299e) Thanks [@HDinger](https://github.com/HDinger)! - Support leading and trailing icons for Links
8
+
9
+ - [#3219](https://github.com/primer/view_components/pull/3219) [`633bd05`](https://github.com/opf/primer_view_components/commit/633bd05ea6675e2b54b1cd025d86462a810e6e94) Thanks [@camertron](https://github.com/camertron)! - Removing the validate classname check that forces system arguments instead of utility classes
10
+
11
+ ### Patch Changes
12
+
13
+ - [#3217](https://github.com/primer/view_components/pull/3217) [`0bbb076`](https://github.com/opf/primer_view_components/commit/0bbb076a978f1029d3f1724bda821ee136be408b) Thanks [@camertron](https://github.com/camertron)! - Fix issue causing AutoComplete elements to overflow their container
14
+
15
+ - [#3205](https://github.com/primer/view_components/pull/3205) [`79ca4f9`](https://github.com/opf/primer_view_components/commit/79ca4f91a67ac79623584a89d4afe5931ae0bbd6) Thanks [@camertron](https://github.com/camertron)! - Ensure `full_width:` option is respected by the auto_complete input
16
+
17
+ - [#3202](https://github.com/primer/view_components/pull/3202) [`a574b0e`](https://github.com/opf/primer_view_components/commit/a574b0e2becdc057c23aa6e26230851f90976605) Thanks [@camertron](https://github.com/camertron)! - Prevent hidden inputs from taking up space on the page
18
+
19
+ - [#3216](https://github.com/primer/view_components/pull/3216) [`23dd4fa`](https://github.com/opf/primer_view_components/commit/23dd4fa4308c91abef13e8e23876ab12ea79db2e) Thanks [@keithamus](https://github.com/keithamus)! - Remove redundant code for better performance.
20
+
21
+ ## 0.49.2
22
+
23
+ ### Patch Changes
24
+
25
+ - [#3204](https://github.com/primer/view_components/pull/3204) [`f24feab`](https://github.com/opf/primer_view_components/commit/f24feab6546fe1ae6be5938fbd42fb1daebf3951) Thanks [@joshblack](https://github.com/joshblack)! - Update caret styles for Popover to correctly position caret in different orientations
26
+
27
+ - [#3187](https://github.com/primer/view_components/pull/3187) [`a91aa93`](https://github.com/opf/primer_view_components/commit/a91aa93f0c75171e6f469b355c2ef747698d2280) Thanks [@camertron](https://github.com/camertron)! - [SelectPanel] Fix result count in screen reader announcements
28
+
3
29
  ## 0.49.1
4
30
 
5
31
  ### Patch Changes
@@ -1,5 +1,7 @@
1
1
  import { IncludeFragmentElement } from '@github/include-fragment-element';
2
2
  import type { AnchorAlignment, AnchorSide } from '@primer/behaviors';
3
+ import type { LiveRegionElement } from '@primer/live-region-element';
4
+ import '@primer/live-region-element';
3
5
  import '@oddbird/popover-polyfill';
4
6
  type SelectVariant = 'none' | 'single' | 'multiple' | null;
5
7
  type SelectedItem = {
@@ -16,11 +18,11 @@ export declare class SelectPanelElement extends HTMLElement {
16
18
  filterInputTextField: HTMLInputElement;
17
19
  remoteInput: HTMLElement;
18
20
  list: HTMLElement;
19
- ariaLiveContainer: HTMLElement;
20
21
  noResults: HTMLElement;
21
22
  fragmentErrorElement: HTMLElement;
22
23
  bannerErrorElement: HTMLElement;
23
24
  bodySpinner: HTMLElement;
25
+ liveRegion: LiveRegionElement;
24
26
  filterFn?: FilterFn;
25
27
  get open(): boolean;
26
28
  get selectVariant(): SelectVariant;
@@ -7,7 +7,6 @@ import './anchored_position';
7
7
  import './dialog_helper';
8
8
  import './focus_group';
9
9
  import './scrollable_region';
10
- import './aria_live';
11
10
  import './shared_events';
12
11
  import './alpha/modal_dialog';
13
12
  import './beta/nav_list';