primer_view_components 0.15.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts +3 -2
- data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
- data/app/assets/javascripts/app/components/primer/scrollable_region.d.ts +13 -0
- 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_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_bar.pcss +8 -6
- data/app/components/primer/alpha/action_bar_element.d.ts +3 -2
- data/app/components/primer/alpha/action_bar_element.js +76 -99
- data/app/components/primer/alpha/action_bar_element.ts +80 -91
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.js +7 -4
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +5 -1
- data/app/components/primer/alpha/banner.html.erb +1 -1
- data/app/components/primer/alpha/banner.rb +5 -1
- data/app/components/primer/alpha/dialog.html.erb +3 -1
- data/app/components/primer/alpha/dialog.rb +5 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/modal_dialog.ts +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +2 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +6 -0
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +4 -3
- data/app/components/primer/alpha/tool_tip.js +14 -1
- data/app/components/primer/alpha/tool_tip.ts +15 -1
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/base_component.rb +20 -18
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/scrollable_region.d.ts +13 -0
- data/app/components/primer/scrollable_region.js +52 -0
- data/app/components/primer/scrollable_region.ts +48 -0
- data/lib/primer/classify/utilities.rb +3 -4
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +11 -0
- data/previews/primer/alpha/action_menu_preview.rb +7 -0
- data/previews/primer/alpha/banner_preview.rb +3 -2
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 149173d363a760193f2728ab550efabe6037eba0ec8e530d5576435dfa49e0d0
|
4
|
+
data.tar.gz: 9c04878c888993b6168be6def933029b0bf1c304e11f1eb335c7bad48d0de7de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05f846d4ad9b730ae7b46d5820e3ea9ca4236abb4fbfe728cc6772e3b1fb45d4cba6092dd3307f34fac4a5f6b2f154b6e26f0a72979d1b5319c6c4ae8c4476c3
|
7
|
+
data.tar.gz: 522257e894688e540f3bc50442afe52ca54f600d3279f92889afd9f1c9db6afffdf2257579144a866e6998e2678ee8132934c773dd5c4ec9e1960a3f000b439e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.16.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2445](https://github.com/primer/view_components/pull/2445) [`da60c73`](https://github.com/primer/view_components/commit/da60c7370104a7edd8713d271210e2c9cb3eeb96) Thanks [@camertron](https://github.com/camertron)! - Always convert CSS classes to system arguments in linters
|
8
|
+
|
9
|
+
- [#2447](https://github.com/primer/view_components/pull/2447) [`08a8e01`](https://github.com/primer/view_components/commit/08a8e012572bb5d2248f89acdaf7329747fd3108) Thanks [@kenyonj](https://github.com/kenyonj)! - Support font_size and border_radius in classify/utilities
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [#2452](https://github.com/primer/view_components/pull/2452) [`87e03ea`](https://github.com/primer/view_components/commit/87e03ea4dd41822454c72ddb7e55b0aa9294c69c) Thanks [@nicolleromero](https://github.com/nicolleromero)! - Ensure tooltip does not reopen errantly unless focus is visible
|
14
|
+
|
15
|
+
- [#2456](https://github.com/primer/view_components/pull/2456) [`fd38b17`](https://github.com/primer/view_components/commit/fd38b170014cfadbd8ecc78814f70a5323fda3ee) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds visible outlines to `Overlay` and `Tooltip` in high contrast mode.
|
16
|
+
|
17
|
+
- [#2432](https://github.com/primer/view_components/pull/2432) [`c162880`](https://github.com/primer/view_components/commit/c162880a5a57b86fd6f640d0dd5c9a4548335f09) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - Remove `user-select: none` to allow users to select form label text
|
18
|
+
|
19
|
+
- [#2428](https://github.com/primer/view_components/pull/2428) [`4cb9a57`](https://github.com/primer/view_components/commit/4cb9a57de1d507e7c22d7c3cdb39b20e73bc36bc) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Fix an accessibility issue where the Dialog body could not be reached via keyboard navigation
|
20
|
+
|
21
|
+
- [#2411](https://github.com/primer/view_components/pull/2411) [`58e700a`](https://github.com/primer/view_components/commit/58e700ab9222054bc803541d9eccc4877254b1c1) Thanks [@keithamus](https://github.com/keithamus)! - Ensure scroll position does not change when opening ActionMenus
|
22
|
+
|
23
|
+
- [#2425](https://github.com/primer/view_components/pull/2425) [`65f418f`](https://github.com/primer/view_components/commit/65f418f8f191768b0fc0b92ffd2a681631594631) Thanks [@camertron](https://github.com/camertron)! - Use floats to hide ActionBar items to address Android Chrome overflow issue
|
24
|
+
|
25
|
+
- [#2455](https://github.com/primer/view_components/pull/2455) [`6ca4ac4`](https://github.com/primer/view_components/commit/6ca4ac4476b00be4f5561ae3ad452c4609dd2928) Thanks [@HDinger](https://github.com/HDinger)! - Make dismiss action on Banner translatable
|
26
|
+
|
27
|
+
- [#2434](https://github.com/primer/view_components/pull/2434) [`dc87edf`](https://github.com/primer/view_components/commit/dc87edf407d98cdefc32d095fea99909c066a2fc) Thanks [@langermank](https://github.com/langermank)! - Add missing `box-shadow` to text field
|
28
|
+
|
3
29
|
## 0.15.1
|
4
30
|
|
5
31
|
### Patch Changes
|
@@ -1,12 +1,13 @@
|
|
1
|
+
import { ActionMenuElement } from './action_menu/action_menu_element';
|
1
2
|
declare class ActionBarElement extends HTMLElement {
|
2
3
|
#private;
|
3
4
|
items: HTMLElement[];
|
4
5
|
itemContainer: HTMLElement;
|
5
|
-
moreMenu:
|
6
|
+
moreMenu: ActionMenuElement;
|
6
7
|
connectedCallback(): void;
|
7
8
|
disconnectedCallback(): void;
|
8
9
|
menuItemClick(event: Event): void;
|
9
|
-
update(
|
10
|
+
update(): void;
|
10
11
|
}
|
11
12
|
declare global {
|
12
13
|
interface Window {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class ScrollableRegionElement extends HTMLElement {
|
2
|
+
hasOverflow: boolean;
|
3
|
+
labelledBy: string;
|
4
|
+
observer: ResizeObserver;
|
5
|
+
connectedCallback(): void;
|
6
|
+
disconnectedCallback(): void;
|
7
|
+
attributeChangedCallback(name: string): void;
|
8
|
+
}
|
9
|
+
declare global {
|
10
|
+
interface Window {
|
11
|
+
ScrollableRegionElement: typeof ScrollableRegionElement;
|
12
|
+
}
|
13
|
+
}
|