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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +3 -2
- data/app/assets/javascripts/app/components/primer/alpha/x_banner.d.ts +3 -1
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +17 -6
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +2 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +4 -2
- data/app/components/primer/alpha/action_list.rb +61 -6
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +3 -2
- data/app/components/primer/alpha/action_menu/action_menu_element.js +9 -2
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +10 -5
- data/app/components/primer/alpha/action_menu/list.rb +63 -34
- data/app/components/primer/alpha/action_menu.rb +12 -0
- data/app/components/primer/alpha/banner.html.erb +1 -1
- data/app/components/primer/alpha/banner.rb +13 -9
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +1 -1
- data/app/components/primer/alpha/nav_list/group.rb +12 -3
- data/app/components/primer/alpha/nav_list.rb +80 -16
- data/app/components/primer/alpha/tool_tip.js +3 -3
- data/app/components/primer/alpha/tool_tip.ts +3 -3
- data/app/components/primer/alpha/x_banner.d.ts +3 -1
- data/app/components/primer/alpha/x_banner.js +24 -10
- data/app/components/primer/alpha/x_banner.ts +14 -12
- data/app/components/primer/base_component.rb +1 -1
- data/app/components/primer/beta/avatar.rb +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +1 -1
- data/app/forms/submit_button_form.rb +1 -1
- data/lib/primer/classify/utilities.yml +2 -0
- data/lib/primer/forms/button.rb +0 -5
- data/lib/primer/forms/dsl/input.rb +2 -0
- data/lib/primer/view_components/version.rb +2 -2
- data/lib/primer/yard/lookbook_pages_backend.rb +31 -0
- data/lib/tasks/custom_utilities.yml +2 -0
- data/previews/primer/alpha/action_list_preview.rb +89 -17
- data/previews/primer/alpha/action_menu_preview.rb +79 -37
- data/previews/primer/alpha/banner_preview/with_action_button.html.erb +1 -1
- data/previews/primer/alpha/banner_preview/with_action_content.html.erb +1 -1
- data/previews/primer/alpha/banner_preview.rb +11 -14
- data/previews/primer/alpha/nav_list_preview.rb +17 -0
- data/static/arguments.json +6 -12
- data/static/constants.json +6 -0
- data/static/info_arch.json +371 -22
- data/static/previews.json +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea70ee1199d0c3256a063fdbc2c0ab8d30408529d870f2b5b1c812687b574e6
|
4
|
+
data.tar.gz: 2c894a64f86bb2e567762a7329a01e74f5ff9aae5d7c71ecb4176e51e1c510aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
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():
|
19
|
+
get invokerElement(): HTMLButtonElement | null;
|
19
20
|
get invokerLabel(): HTMLElement | null;
|
20
21
|
get selectedItems(): SelectedItem[];
|
21
22
|
connectedCallback(): void;
|