primer_view_components 0.36.0 → 0.36.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
  4. data/app/assets/javascripts/components/primer/primer.d.ts +1 -0
  5. data/app/assets/javascripts/components/primer/utils.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/action_list/item.html.erb +1 -4
  11. data/app/components/primer/alpha/action_list.css +1 -1
  12. data/app/components/primer/alpha/action_list.css.json +2 -6
  13. data/app/components/primer/alpha/action_list.css.map +1 -1
  14. data/app/components/primer/alpha/action_list.pcss +10 -43
  15. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
  16. data/app/components/primer/alpha/action_menu/action_menu_element.js +31 -1
  17. data/app/components/primer/alpha/action_menu/action_menu_element.ts +37 -0
  18. data/app/components/primer/alpha/action_menu.rb +6 -0
  19. data/app/components/primer/alpha/select_panel_element.js +6 -19
  20. data/app/components/primer/alpha/select_panel_element.ts +9 -21
  21. data/app/components/primer/alpha/text_field.css +1 -1
  22. data/app/components/primer/alpha/text_field.css.json +30 -30
  23. data/app/components/primer/alpha/text_field.css.map +1 -1
  24. data/app/components/primer/alpha/text_field.pcss +2 -3
  25. data/app/components/primer/primer.d.ts +1 -0
  26. data/app/components/primer/primer.js +1 -0
  27. data/app/components/primer/primer.ts +1 -0
  28. data/app/components/primer/utils.d.ts +1 -0
  29. data/app/components/primer/utils.js +16 -0
  30. data/app/components/primer/utils.ts +16 -0
  31. data/app/lib/primer/forms/acts_as_component.rb +9 -2
  32. data/app/lib/primer/forms/base.rb +0 -5
  33. data/app/lib/primer/forms/base_component.rb +5 -3
  34. data/app/lib/primer/forms/radio_button_group.html.erb +1 -1
  35. data/app/lib/primer/forms/utils.rb +16 -1
  36. data/lib/primer/classify.rb +1 -1
  37. data/lib/primer/view_components/version.rb +1 -1
  38. data/lib/rubocop/config/default.yml +0 -3
  39. data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +3 -5
  40. data/static/classes.json +6 -0
  41. metadata +10 -7
  42. data/lib/rubocop/cop/primer/system_argument_instead_of_class.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0b0b4fd77e2d1af1c16252a9d51e6119854feca261d5273ecaafdf92163e977
4
- data.tar.gz: f6778ad278e638c50b2aea8f86fcd73617d9822ca167da12a54d7de3710a1c75
3
+ metadata.gz: 1fae7f3f9a0fa0b26891a3a836ad664cbd5300c416808b240072f97aa0d701c8
4
+ data.tar.gz: a9b66383d8f96952f6a2f1a7e559b8f45a6d5ad85326ec41bffbba91789a2615
5
5
  SHA512:
6
- metadata.gz: 041a15920d44bfe62d5de05834b6a1bc2c4a27435b38dc52e6abb3bbb9a47efa13749b751a9c4401f42c8cf37f401743e064433df73a3d779e63ffbbde3117fb
7
- data.tar.gz: badf04216b82031fb70f0902803ef0dd965f57d18ec0af8b48aad9d59390d91a6b5af1079ac29198f9b0cf2c5cba7429bf300a023d46fc8414885878907e9b61
6
+ metadata.gz: 3f733eff341cf4153478a7b9092c29799660445e6f94182175bbd58ecb8c69b8236ae8741988156a60e2ab846c03d40737dc6f2c81fe690ea12b5164d115bd4f
7
+ data.tar.gz: 3f7005441b27345b888809eaa3e9f3b46b4e8441670bfdcfba6af53143ddc872e815aac8978f0b01f167f5f2c8d9aba873593381584e2a8ce2bcc1aeea6b182c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.36.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3224](https://github.com/primer/view_components/pull/3224) [`3140ad9`](https://github.com/primer/view_components/commit/3140ad99f59b2345a43774c369bcc35d7ddd04d3) Thanks [@camertron](https://github.com/camertron)! - Update check box styles for ActionList to match the rest of Primer
8
+
9
+ - [#3236](https://github.com/primer/view_components/pull/3236) [`eea9da6`](https://github.com/primer/view_components/commit/eea9da6639c3fe81f328e7da8904d89df6b2467b) Thanks [@camertron](https://github.com/camertron)! - Improve template path detection for forms
10
+
11
+ - [#3235](https://github.com/primer/view_components/pull/3235) [`c765093`](https://github.com/primer/view_components/commit/c765093790d53940b3d7810085441d3706d17229) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds `role="radiogroup"` on `fieldset` in radio group component
12
+
13
+ - [#3207](https://github.com/primer/view_components/pull/3207) [`5880922`](https://github.com/primer/view_components/commit/5880922a563af6d51dc912616861cf3010a1d24a) Thanks [@camertron](https://github.com/camertron)! - Fix ActionMenu position issue when container is scrollable
14
+
15
+ ## 0.36.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#3220](https://github.com/primer/view_components/pull/3220) [`688a4a2`](https://github.com/primer/view_components/commit/688a4a263deb4be70763b9ba39cae854896b44ce) Thanks [@jonrohan](https://github.com/jonrohan)! - Remove SystemArgumentInsteadOfClass linter and fix bug with whitespace in rendered class
20
+
3
21
  ## 0.36.0
4
22
 
5
23
  ### Minor Changes
@@ -1,5 +1,6 @@
1
1
  import '@oddbird/popover-polyfill';
2
2
  import type { IncludeFragmentElement } from '@github/include-fragment-element';
3
+ import AnchoredPositionElement from '../../anchored_position';
3
4
  type SelectVariant = 'none' | 'single' | 'multiple' | null;
4
5
  type SelectedItem = {
5
6
  label: string | null | undefined;
@@ -9,6 +10,7 @@ type SelectedItem = {
9
10
  export declare class ActionMenuElement extends HTMLElement {
10
11
  #private;
11
12
  includeFragment: IncludeFragmentElement;
13
+ overlay: AnchoredPositionElement;
12
14
  get selectVariant(): SelectVariant;
13
15
  set selectVariant(variant: SelectVariant);
14
16
  get dynamicLabelPrefix(): string;
@@ -8,6 +8,7 @@ import './dialog_helper';
8
8
  import './focus_group';
9
9
  import './scrollable_region';
10
10
  import './shared_events';
11
+ import './utils';
11
12
  import './alpha/modal_dialog';
12
13
  import './beta/nav_list';
13
14
  import './beta/nav_list_group_element';
@@ -0,0 +1 @@
1
+ export declare const observeMutationsUntilConditionMet: (element: Element, condition: () => boolean, body: () => void) => void;