primer_view_components 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -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 +2 -1
  25. data/app/components/primer/alpha/modal_dialog.js +1 -1
  26. data/app/components/primer/alpha/modal_dialog.ts +1 -1
  27. data/app/components/primer/alpha/nav_list/group.rb +12 -3
  28. data/app/components/primer/alpha/nav_list.rb +80 -16
  29. data/app/components/primer/alpha/tool_tip.js +3 -3
  30. data/app/components/primer/alpha/tool_tip.ts +3 -3
  31. data/app/components/primer/alpha/x_banner.d.ts +3 -1
  32. data/app/components/primer/alpha/x_banner.js +24 -10
  33. data/app/components/primer/alpha/x_banner.ts +14 -12
  34. data/app/components/primer/base_component.rb +1 -1
  35. data/app/components/primer/beta/avatar.rb +1 -1
  36. data/app/components/primer/beta/button.css +1 -1
  37. data/app/components/primer/beta/button.css.map +1 -1
  38. data/app/components/primer/beta/button.pcss +1 -1
  39. data/app/components/primer/beta/counter.css +1 -1
  40. data/app/components/primer/beta/counter.css.map +1 -1
  41. data/app/components/primer/beta/counter.pcss +1 -1
  42. data/app/components/primer/beta/state.css +1 -1
  43. data/app/components/primer/beta/state.css.map +1 -1
  44. data/app/components/primer/beta/state.pcss +3 -3
  45. data/app/forms/submit_button_form.rb +1 -1
  46. data/lib/primer/classify/utilities.yml +2 -0
  47. data/lib/primer/forms/button.rb +0 -5
  48. data/lib/primer/forms/dsl/input.rb +2 -0
  49. data/lib/primer/view_components/version.rb +1 -1
  50. data/lib/primer/yard/lookbook_pages_backend.rb +31 -0
  51. data/lib/tasks/custom_utilities.yml +2 -0
  52. data/previews/primer/alpha/action_list_preview.rb +89 -17
  53. data/previews/primer/alpha/action_menu_preview.rb +79 -37
  54. data/previews/primer/alpha/banner_preview/with_action_button.html.erb +1 -1
  55. data/previews/primer/alpha/banner_preview/with_action_content.html.erb +1 -1
  56. data/previews/primer/alpha/banner_preview.rb +11 -14
  57. data/previews/primer/alpha/nav_list_preview.rb +17 -0
  58. data/static/arguments.json +6 -12
  59. data/static/constants.json +6 -0
  60. data/static/info_arch.json +371 -22
  61. data/static/previews.json +15 -2
  62. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4761e0e70cdbd279de615f5042340c42339c625d0b85cf87a54824701ec4c8c2
4
- data.tar.gz: f7078c747b8ceafd62b5296f9eb14740fe105ca822c6d158956aa7917541e3d3
3
+ metadata.gz: 6ea70ee1199d0c3256a063fdbc2c0ab8d30408529d870f2b5b1c812687b574e6
4
+ data.tar.gz: 2c894a64f86bb2e567762a7329a01e74f5ff9aae5d7c71ecb4176e51e1c510aa
5
5
  SHA512:
6
- metadata.gz: e7cdaa73c356c6381a7bab523d1bf788ea3fe0974c770f827193a402e858481e84e3fbec80ee4b534c8abe3193e5abe30f4bd593cd02e057348e6c589ff19517
7
- data.tar.gz: fbfd2a145ab1384b00453b6eef655d691bae3e5a2ae9e78898825fe650af2e5f78bca9d63e928f7b023482da75b13dc924360e88c3ed7bee4c4d376f065def1e
6
+ metadata.gz: dd1897ecd67a98a2dab818988a1f261359ef1462d8b3756250490e168b734b6a3765cd7ac04804edb06bd0b852b0bcf91d01b413b245d58c61722f40511099c3
7
+ data.tar.gz: 4dad5ab32e03829abdcaf66ac57ef562a6ec9cda79830ef86855d7d01f0f428bb9d2fe408fc87694e3f7880410ce8b1c5c52f957ac08114cc3349ec61bb97892
data/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
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
+
53
+ ## 0.5.1
54
+
55
+ ### Patch Changes
56
+
57
+ - [#2156](https://github.com/primer/view_components/pull/2156) [`5f809724`](https://github.com/primer/view_components/commit/5f8097241df130e5b54cd5a1bcfda0ca11258cda) Thanks [@langermank](https://github.com/langermank)! - Add correct fallbacks to `State` label
58
+
59
+ <!-- Changed components: _none_ -->
60
+
61
+ - [#2151](https://github.com/primer/view_components/pull/2151) [`78e0d175`](https://github.com/primer/view_components/commit/78e0d175d266534ab9042b671057bed3e6dfb7c5) Thanks [@jdrush89](https://github.com/jdrush89)! - Checking document scrollbar width before making dialog backdrop visible to fix issue with document padding on mobile screens.
62
+
63
+ <!-- Changed components: Primer::Alpha::Dialog -->
64
+
65
+ - [#2154](https://github.com/primer/view_components/pull/2154) [`9005b5cd`](https://github.com/primer/view_components/commit/9005b5cdb00a628f4f9efe93066dab5413b181e5) Thanks [@langermank](https://github.com/langermank)! - Add color declaration for Dialog `title`
66
+
67
+ <!-- Changed components: _none_ -->
68
+
3
69
  ## 0.5.0
4
70
 
5
71
  ### Minor 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 {