primer_view_components 0.36.1 → 0.36.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -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/view_components/version.rb +1 -1
  37. data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +3 -5
  38. data/static/classes.json +6 -0
  39. metadata +10 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c94fae989b4359c72f7dfeeb678b4fafc93240645a4ff14d55ed16fdf0998cd8
4
- data.tar.gz: 4ea33c5d1b3f88eb6033b99f368cdccf19ce9ff986c79b29b02bdb3c447e5bb2
3
+ metadata.gz: 1fae7f3f9a0fa0b26891a3a836ad664cbd5300c416808b240072f97aa0d701c8
4
+ data.tar.gz: a9b66383d8f96952f6a2f1a7e559b8f45a6d5ad85326ec41bffbba91789a2615
5
5
  SHA512:
6
- metadata.gz: 48b79cf2df6eeef3791186744be2844a51979daff0f7f922af1b05fc6b2577ef293dd203b6f2bc451d959f2e2a3ba19111a79edf7a4d92fe2585ad26d153b5fe
7
- data.tar.gz: cb5df33ba3522d34402d18e2fae5859f6544a1fb471ffd55e3a31af014efb6fb89f4485fcf6088344d410362cefc2cc28bc69a3898ec2b82fa3dd71dda8aa242
6
+ metadata.gz: 3f733eff341cf4153478a7b9092c29799660445e6f94182175bbd58ecb8c69b8236ae8741988156a60e2ab846c03d40737dc6f2c81fe690ea12b5164d115bd4f
7
+ data.tar.gz: 3f7005441b27345b888809eaa3e9f3b46b4e8441670bfdcfba6af53143ddc872e815aac8978f0b01f167f5f2c8d9aba873593381584e2a8ce2bcc1aeea6b182c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## 0.36.1
4
16
 
5
17
  ### Patch 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;