primer_view_components 0.36.1 → 0.36.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -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/divider.rb +4 -0
  11. data/app/components/primer/alpha/action_list/item.html.erb +1 -4
  12. data/app/components/primer/alpha/action_list.css +1 -1
  13. data/app/components/primer/alpha/action_list.css.json +2 -6
  14. data/app/components/primer/alpha/action_list.css.map +1 -1
  15. data/app/components/primer/alpha/action_list.pcss +10 -43
  16. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
  17. data/app/components/primer/alpha/action_menu/action_menu_element.js +31 -1
  18. data/app/components/primer/alpha/action_menu/action_menu_element.ts +37 -0
  19. data/app/components/primer/alpha/action_menu.rb +6 -0
  20. data/app/components/primer/alpha/dialog.css +1 -1
  21. data/app/components/primer/alpha/dialog.css.json +0 -1
  22. data/app/components/primer/alpha/dialog.css.map +1 -1
  23. data/app/components/primer/alpha/dialog.pcss +0 -5
  24. data/app/components/primer/alpha/select_panel_element.js +6 -19
  25. data/app/components/primer/alpha/select_panel_element.ts +9 -21
  26. data/app/components/primer/alpha/text_field.css +1 -1
  27. data/app/components/primer/alpha/text_field.css.json +30 -30
  28. data/app/components/primer/alpha/text_field.css.map +1 -1
  29. data/app/components/primer/alpha/text_field.pcss +2 -3
  30. data/app/components/primer/primer.d.ts +1 -0
  31. data/app/components/primer/primer.js +1 -0
  32. data/app/components/primer/primer.ts +1 -0
  33. data/app/components/primer/utils.d.ts +1 -0
  34. data/app/components/primer/utils.js +16 -0
  35. data/app/components/primer/utils.ts +16 -0
  36. data/app/lib/primer/forms/acts_as_component.rb +9 -2
  37. data/app/lib/primer/forms/base.rb +0 -5
  38. data/app/lib/primer/forms/base_component.rb +5 -3
  39. data/app/lib/primer/forms/radio_button_group.html.erb +1 -1
  40. data/app/lib/primer/forms/utils.rb +16 -1
  41. data/lib/primer/view_components/version.rb +1 -1
  42. data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +3 -5
  43. data/static/classes.json +6 -0
  44. 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: d4211776a14ce12185ed521f1cf0bee864f57a48d051ebd151d5dc7d1b07b140
4
+ data.tar.gz: f4ce05f566d8556f3c6516ea8a42b567c559374998e6114624ca2b73cb63267e
5
5
  SHA512:
6
- metadata.gz: 48b79cf2df6eeef3791186744be2844a51979daff0f7f922af1b05fc6b2577ef293dd203b6f2bc451d959f2e2a3ba19111a79edf7a4d92fe2585ad26d153b5fe
7
- data.tar.gz: cb5df33ba3522d34402d18e2fae5859f6544a1fb471ffd55e3a31af014efb6fb89f4485fcf6088344d410362cefc2cc28bc69a3898ec2b82fa3dd71dda8aa242
6
+ metadata.gz: 3ea69bffeec49bad181790257e40da8f92fad228a2ea9ca04bd754f3dd8fbf8493011f0afa4d297239df5c82f7e4f3fe522d534c5a2144966c24dd7baa28e6db
7
+ data.tar.gz: a94985fe9f0d2dd1965c52f17df24c46f8138996d161611b989a9c2ac5e6f3db4416b551bd2ab428c9c7460a49c638879314a6639660cf0a5f70eec2927e96ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.36.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3254](https://github.com/primer/view_components/pull/3254) [`1bb7ad7`](https://github.com/primer/view_components/commit/1bb7ad71239ee6b6ef158dac7f1aad3bd76ea404) Thanks [@camertron](https://github.com/camertron)! - Fix `NoMethodError` when checking if `ActionList::Divider`s are active
8
+
9
+ - [#3253](https://github.com/primer/view_components/pull/3253) [`3a63cf0`](https://github.com/primer/view_components/commit/3a63cf01377ccb71654f69e7840c5bc52fe802b2) Thanks [@joshblack](https://github.com/joshblack)! - Add top spacing to Dialog::Body to avoid it being glued to the divider
10
+
11
+ ## 0.36.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#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
16
+
17
+ - [#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
18
+
19
+ - [#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
20
+
21
+ - [#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
22
+
3
23
  ## 0.36.1
4
24
 
5
25
  ### 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;