primer_view_components 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +3 -2
  4. data/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +3 -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_list/item.rb +17 -6
  10. data/app/components/primer/alpha/action_list.css +1 -1
  11. data/app/components/primer/alpha/action_list.css.json +2 -0
  12. data/app/components/primer/alpha/action_list.css.map +1 -1
  13. data/app/components/primer/alpha/action_list.pcss +4 -2
  14. data/app/components/primer/alpha/action_list.rb +61 -6
  15. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +3 -2
  16. data/app/components/primer/alpha/action_menu/action_menu_element.js +9 -2
  17. data/app/components/primer/alpha/action_menu/action_menu_element.ts +10 -5
  18. data/app/components/primer/alpha/action_menu/list.rb +63 -34
  19. data/app/components/primer/alpha/action_menu.rb +12 -0
  20. data/app/components/primer/alpha/banner.html.erb +1 -1
  21. data/app/components/primer/alpha/banner.rb +13 -9
  22. data/app/components/primer/alpha/dialog.css +1 -1
  23. data/app/components/primer/alpha/dialog.css.map +1 -1
  24. data/app/components/primer/alpha/dialog.pcss +1 -1
  25. data/app/components/primer/alpha/nav_list/group.rb +12 -3
  26. data/app/components/primer/alpha/nav_list.rb +80 -16
  27. data/app/components/primer/alpha/tool_tip.js +3 -3
  28. data/app/components/primer/alpha/tool_tip.ts +3 -3
  29. data/app/components/primer/alpha/x_banner.d.ts +3 -1
  30. data/app/components/primer/alpha/x_banner.js +24 -10
  31. data/app/components/primer/alpha/x_banner.ts +14 -12
  32. data/app/components/primer/base_component.rb +1 -1
  33. data/app/components/primer/beta/avatar.rb +1 -1
  34. data/app/components/primer/beta/button.css +1 -1
  35. data/app/components/primer/beta/button.css.map +1 -1
  36. data/app/components/primer/beta/button.pcss +1 -1
  37. data/app/forms/submit_button_form.rb +1 -1
  38. data/lib/primer/classify/utilities.yml +2 -0
  39. data/lib/primer/forms/button.rb +0 -5
  40. data/lib/primer/forms/dsl/input.rb +2 -0
  41. data/lib/primer/view_components/version.rb +2 -2
  42. data/lib/primer/yard/lookbook_pages_backend.rb +31 -0
  43. data/lib/tasks/custom_utilities.yml +2 -0
  44. data/previews/primer/alpha/action_list_preview.rb +89 -17
  45. data/previews/primer/alpha/action_menu_preview.rb +79 -37
  46. data/previews/primer/alpha/banner_preview/with_action_button.html.erb +1 -1
  47. data/previews/primer/alpha/banner_preview/with_action_content.html.erb +1 -1
  48. data/previews/primer/alpha/banner_preview.rb +11 -14
  49. data/previews/primer/alpha/nav_list_preview.rb +17 -0
  50. data/static/arguments.json +6 -12
  51. data/static/constants.json +6 -0
  52. data/static/info_arch.json +371 -22
  53. data/static/previews.json +15 -2
  54. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c56da5d8c87afc356d7126bd8bc00db2dca3f16bfa39bef54f6d74a4b6656af3
4
- data.tar.gz: 624b20fb84352a134330e339823f777353798a013ad901242581c59912e7a0ae
3
+ metadata.gz: 6ea70ee1199d0c3256a063fdbc2c0ab8d30408529d870f2b5b1c812687b574e6
4
+ data.tar.gz: 2c894a64f86bb2e567762a7329a01e74f5ff9aae5d7c71ecb4176e51e1c510aa
5
5
  SHA512:
6
- metadata.gz: 65597735adb8bf2c9154d7813dc23d9465db1ef8e31dfda679610f8173f4ecad57c1688e722595d63f3c71361a2f4c99f8cc5ab973814748b094ea199189b19c
7
- data.tar.gz: ca0c947fa808d4a79c47ea05789dd7f094cada17f86226ae462fece7d1ce9a0cf20ac07355399fb7c692849c34159e02f1ea58de1ce63a3facbeca2b10b7e710
6
+ metadata.gz: dd1897ecd67a98a2dab818988a1f261359ef1462d8b3756250490e168b734b6a3765cd7ac04804edb06bd0b852b0bcf91d01b413b245d58c61722f40511099c3
7
+ data.tar.gz: 4dad5ab32e03829abdcaf66ac57ef562a6ec9cda79830ef86855d7d01f0f428bb9d2fe408fc87694e3f7880410ce8b1c5c52f957ac08114cc3349ec61bb97892
data/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2187](https://github.com/primer/view_components/pull/2187) [`ce2011e6`](https://github.com/primer/view_components/commit/ce2011e615325b2e18d0974b5a08831ef442681f) Thanks [@camertron](https://github.com/camertron)! - Expose ActionList's #build_item and #build_avatar_item externally to facilitate parent-less item construction
8
+
9
+ <!-- Changed components: Primer::Alpha::ActionList, Primer::Alpha::ActionMenu, Primer::Alpha::NavList -->
10
+
11
+ - [#2188](https://github.com/primer/view_components/pull/2188) [`5950afea`](https://github.com/primer/view_components/commit/5950afea48dca275df11603ffab6f8689777e08d) Thanks [@camertron](https://github.com/camertron)! - Allow disabling submit buttons
12
+
13
+ <!-- Changed components: Primer::Alpha::FormButton, Primer::Alpha::SubmitButton -->
14
+
15
+ - [#2165](https://github.com/primer/view_components/pull/2165) [`1b8ff1b7`](https://github.com/primer/view_components/commit/1b8ff1b7883b9870dfc09c6b59f26d17b8d2be92) Thanks [@camertron](https://github.com/camertron)! - Add an accessible avatar item to ActionList, NavList, and ActionMenu
16
+
17
+ <!-- Changed components: Primer::Alpha::ActionList, Primer::Alpha::ActionMenu, Primer::Alpha::NavList -->
18
+
19
+ - [#2186](https://github.com/primer/view_components/pull/2186) [`eab82c07`](https://github.com/primer/view_components/commit/eab82c0780b219f1d3a118cc912561f33ac49e7e) Thanks [@camertron](https://github.com/camertron)! - On dismiss, allow banners to be hidden instead of removed from DOM
20
+
21
+ <!-- Changed components: Primer::Alpha::Banner -->
22
+
23
+ ### Patch Changes
24
+
25
+ - [#2164](https://github.com/primer/view_components/pull/2164) [`93344455`](https://github.com/primer/view_components/commit/93344455a3fc7666dd459eeb06843e2a9c7a7806) Thanks [@camertron](https://github.com/camertron)! - Allow form buttons to be disabled on click with data-disable-with
26
+
27
+ <!-- Changed components: Primer::Alpha::FormButton -->
28
+
29
+ - [#2158](https://github.com/primer/view_components/pull/2158) [`0afaecc6`](https://github.com/primer/view_components/commit/0afaecc6051ff5f85f804db3ac3494d208ed4999) Thanks [@jonrohan](https://github.com/jonrohan)! - Fix bug in ActionMenu button where return doesn't trigger menu
30
+
31
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
32
+
33
+ - [#2168](https://github.com/primer/view_components/pull/2168) [`45822328`](https://github.com/primer/view_components/commit/4582232870286d9cc2d6ae8bea6c6fd9da9659a6) Thanks [@keithamus](https://github.com/keithamus)! - Guard tooltip popover calls from `Failed to execute 'showPopover' on 'HTMLElement': Not supported on elements that do not have a valid value for the 'popover' attribute.`
34
+
35
+ <!-- Changed components: Primer::Alpha::Tooltip -->
36
+
37
+ - [#2160](https://github.com/primer/view_components/pull/2160) [`8464823b`](https://github.com/primer/view_components/commit/8464823b7cb1d27cea9e4ead25014f1518e6bd26) Thanks [@langermank](https://github.com/langermank)! - Fix Dialog backdrop color fallback
38
+
39
+ <!-- Changed components: _none_ -->
40
+
41
+ - [#2163](https://github.com/primer/view_components/pull/2163) [`e3aeda1f`](https://github.com/primer/view_components/commit/e3aeda1f567f3a8d08a252ab98e0aeae880d1eaf) Thanks [@langermank](https://github.com/langermank)! - Add fallbacks for primary Button
42
+
43
+ <!-- Changed components: _none_ -->
44
+
45
+ - [#2170](https://github.com/primer/view_components/pull/2170) [`4391873d`](https://github.com/primer/view_components/commit/4391873d9970ef981e22d1b7360343037683c1d1) Thanks [@Tonkpils](https://github.com/Tonkpils)! - Add support for capitalize to text-transform
46
+
47
+ <!-- Changed components: Primer::BaseComponent -->
48
+
49
+ - [#2169](https://github.com/primer/view_components/pull/2169) [`4f11f5e3`](https://github.com/primer/view_components/commit/4f11f5e32d0d108bce6fb688156b21704a75785f) Thanks [@camertron](https://github.com/camertron)! - Fix color contrast issues for action list hover state (danger style)
50
+
51
+ <!-- Changed components: Primer::Alpha::ActionList, Primer::Alpha::ActionMenu -->
52
+
3
53
  ## 0.5.1
4
54
 
5
55
  ### Patch Changes
@@ -1,4 +1,5 @@
1
- import IncludeFragmentElement from '@github/include-fragment-element';
1
+ import '@oddbird/popover-polyfill';
2
+ import type { IncludeFragmentElement } from '@github/include-fragment-element';
2
3
  type SelectVariant = 'none' | 'single' | 'multiple' | null;
3
4
  type SelectedItem = {
4
5
  label: string | null | undefined;
@@ -15,7 +16,7 @@ export declare class ActionMenuElement extends HTMLElement {
15
16
  get dynamicLabel(): boolean;
16
17
  set dynamicLabel(value: boolean);
17
18
  get popoverElement(): HTMLElement | null;
18
- get invokerElement(): HTMLElement | null;
19
+ get invokerElement(): HTMLButtonElement | null;
19
20
  get invokerLabel(): HTMLElement | null;
20
21
  get selectedItems(): SelectedItem[];
21
22
  connectedCallback(): void;
@@ -1,7 +1,9 @@
1
1
  declare class XBannerElement extends HTMLElement {
2
+ #private;
2
3
  titleText: HTMLElement;
3
4
  dismiss(): void;
4
- private shouldReappear;
5
+ show(): void;
6
+ hide(): void;
5
7
  }
6
8
  declare global {
7
9
  interface Window {