openproject-primer_view_components 0.19.0 → 0.20.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 +30 -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 +80 -97
- data/app/components/primer/alpha/action_bar_element.ts +84 -89
- 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 +1 -1
- 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: 2e4b0323c06e38ced85cd7397ebe545ccff6a2215dcd969b3a7e281fcf3cb30e
|
4
|
+
data.tar.gz: aec6454c1e351b6836a9124980b7d5cd378bf5b9930f6553f516667c270fcf37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b64d5218076f13536065c168bff9417f052ae151a571995041d33372539d27350a4d55d7e097f33042ea559af1812f37c866c6a447560767ea9248afcd0233b0
|
7
|
+
data.tar.gz: 97d8d9aa7b9b96c2cc38c7a3c40449454cc19877fb46a58edf61917e2baae099c87fe7eb2aa1246991f6c0cf930708d68a6e6e5583c9f0672e9a821961cc909e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,35 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.20.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2445](https://github.com/primer/view_components/pull/2445) [`da60c73`](https://github.com/opf/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/opf/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/opf/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/opf/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/opf/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/opf/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
|
+
- [#2426](https://github.com/primer/view_components/pull/2426) [`78dd9dd`](https://github.com/opf/primer_view_components/commit/78dd9ddb70ee5ade30e243968c87364a80ff1325) Thanks [@camertron](https://github.com/camertron)! - Fix typo in argument passed to event listener in ToolTip
|
22
|
+
|
23
|
+
- [#2478](https://github.com/primer/view_components/pull/2478) [`6e7b7c2`](https://github.com/opf/primer_view_components/commit/6e7b7c2340339a15b21857ee1fbc734a5760135d) Thanks [@jonrohan](https://github.com/jonrohan)! - Bug fix in ActionBar: When collapsed the menu and tooltips aren't visible in Firefox
|
24
|
+
|
25
|
+
- [#2411](https://github.com/primer/view_components/pull/2411) [`58e700a`](https://github.com/opf/primer_view_components/commit/58e700ab9222054bc803541d9eccc4877254b1c1) Thanks [@keithamus](https://github.com/keithamus)! - Ensure scroll position does not change when opening ActionMenus
|
26
|
+
|
27
|
+
- [#2425](https://github.com/primer/view_components/pull/2425) [`65f418f`](https://github.com/opf/primer_view_components/commit/65f418f8f191768b0fc0b92ffd2a681631594631) Thanks [@camertron](https://github.com/camertron)! - Use floats to hide ActionBar items to address Android Chrome overflow issue
|
28
|
+
|
29
|
+
- [#2455](https://github.com/primer/view_components/pull/2455) [`6ca4ac4`](https://github.com/opf/primer_view_components/commit/6ca4ac4476b00be4f5561ae3ad452c4609dd2928) Thanks [@HDinger](https://github.com/HDinger)! - Make dismiss action on Banner translatable
|
30
|
+
|
31
|
+
- [#2434](https://github.com/primer/view_components/pull/2434) [`dc87edf`](https://github.com/opf/primer_view_components/commit/dc87edf407d98cdefc32d095fea99909c066a2fc) Thanks [@langermank](https://github.com/langermank)! - Add missing `box-shadow` to text field
|
32
|
+
|
3
33
|
## 0.19.0
|
4
34
|
|
5
35
|
### Minor 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
|
+
}
|