primer_view_components 0.10.0 → 0.12.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 +36 -0
- data/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +1 -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/item.rb +7 -4
- data/app/components/primer/alpha/action_bar.rb +2 -2
- data/app/components/primer/alpha/action_bar_element.js +2 -2
- data/app/components/primer/alpha/action_bar_element.ts +2 -2
- data/app/components/primer/alpha/action_menu/action_menu_element.js +168 -84
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +204 -79
- data/app/components/primer/alpha/action_menu/list.rb +0 -2
- data/app/components/primer/alpha/segmented_control/item.html.erb +1 -8
- data/app/components/primer/alpha/segmented_control/item.rb +38 -4
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +3 -1
- data/app/components/primer/alpha/tool_tip.d.ts +1 -0
- data/app/components/primer/alpha/tool_tip.js +17 -2
- data/app/components/primer/alpha/tool_tip.ts +16 -0
- data/app/components/primer/beta/base_button.rb +4 -0
- 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 +6 -2
- data/app/components/primer/focus_group.js +28 -3
- data/app/components/primer/focus_group.ts +27 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +5 -4
- data/previews/primer/alpha/action_menu_preview.rb +4 -1
- data/previews/primer/alpha/segmented_control_preview.rb +35 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +23 -0
- data/previews/primer/alpha/tooltip_preview.rb +5 -0
- data/previews/primer/beta/button_preview.rb +20 -2
- data/previews/primer/beta/icon_button_preview.rb +3 -0
- data/static/arguments.json +18 -1
- data/static/info_arch.json +107 -3
- data/static/previews.json +65 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b294b273d321d94b44273ea687ea758b1e1859d5755504e81bf4762c8cdb0a7b
|
4
|
+
data.tar.gz: 8513c0ad0d28cf4d6f1d4988e5a411edbe3465ec07e9784a4ab9401a9dfafada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61d049223096cb39f37b0859145009b5a3f921917655ca9b56b5f1a335c07faaeb4dc5b15bf332d0cbe5833db59cecf23bf879deae22efb19a8f48f7981de0bb
|
7
|
+
data.tar.gz: f135e11c4cbaec662a3b729fc15fe67361e9fddd033580955d849b750e054fe7a876975a5a37a3087a494f86b93d854eaf54e37151d3f3ec9fbc3a2dd5465073
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,41 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.12.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2283](https://github.com/primer/view_components/pull/2283) [`da3bdb26`](https://github.com/primer/view_components/commit/da3bdb267e5753942d24e578a8aa2c6d339e5c83) Thanks [@mperrotti](https://github.com/mperrotti)! - Adds an 'inactive' state to buttons. An inactive button looks disabled and has aria-disabled, but it can still be clicked and focused. This was added to support buttons that are broken due to availability issues, but can't be removed from the page.
|
8
|
+
|
9
|
+
<!-- Changed components: Primer::Beta::Button, Primer::Beta::BaseButton, Primer::Beta::IconButton -->
|
10
|
+
|
11
|
+
- [#2278](https://github.com/primer/view_components/pull/2278) [`83b70dd7`](https://github.com/primer/view_components/commit/83b70dd73ad970388a3fa6b107d4ca8e4c94a986) Thanks [@gwwar](https://github.com/gwwar)! - Add optional with_trailing_visual_label slot to Primer::Alpha::SegmentedControl::Item. Filling the slot will add a Primer::Beta::Label to the right of the item.
|
12
|
+
<!-- Changed components: Primer::Alpha::SegmentedControl -->
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- [#2281](https://github.com/primer/view_components/pull/2281) [`46d5d9cb`](https://github.com/primer/view_components/commit/46d5d9cb5b624eee147f67cabcfa8034c7e1668c) Thanks [@keithamus](https://github.com/keithamus)! - Fix tooltips opening when focus is removed while displaying
|
17
|
+
|
18
|
+
## 0.11.0
|
19
|
+
|
20
|
+
### Minor Changes
|
21
|
+
|
22
|
+
- [#2276](https://github.com/primer/view_components/pull/2276) [`7184d76e`](https://github.com/primer/view_components/commit/7184d76edbe94b008158940d15909b1778c9ed8c) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding option item_arguments hash argument to ActionBar::Item that will control the item system arguments
|
23
|
+
|
24
|
+
<!-- Changed components: Primer::Alpha::ActionBar -->
|
25
|
+
|
26
|
+
- [#2259](https://github.com/primer/view_components/pull/2259) [`a2fe6134`](https://github.com/primer/view_components/commit/a2fe61342b2f3527533902d845f5a9d500d6910c) Thanks [@TylerJDev](https://github.com/TylerJDev)! - \* Includes ActionMenu in ActionBar focus trap when present.
|
27
|
+
|
28
|
+
- Adjusts `focus_group.ts` to set `tabindex="0"` back to invoker if it is non-focusable.
|
29
|
+
- Prevents popover invokers from being triggered with 'left' and 'right' arrow keys.
|
30
|
+
|
31
|
+
<!-- Changed components: Primer::Alpha::ActionBar, Primer::Alpha::ActionMenu -->
|
32
|
+
|
33
|
+
### Patch Changes
|
34
|
+
|
35
|
+
- [#2260](https://github.com/primer/view_components/pull/2260) [`b584a6b5`](https://github.com/primer/view_components/commit/b584a6b57e07b4def45bd30e90bf31203e7b7010) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: hide the menu when focus leaves the component; focus the first list item when the menu is activated with the mouse; allow disabling list items while still permitting them to be focused with the keyboard
|
36
|
+
|
37
|
+
<!-- Changed components: Primer::Alpha::ActionMenu -->
|
38
|
+
|
3
39
|
## 0.10.0
|
4
40
|
|
5
41
|
### Minor Changes
|
@@ -3,6 +3,7 @@ type Direction = 'n' | 's' | 'e' | 'w' | 'ne' | 'se' | 'nw' | 'sw';
|
|
3
3
|
declare class ToolTipElement extends HTMLElement {
|
4
4
|
#private;
|
5
5
|
styles(): string;
|
6
|
+
get showReason(): "focus" | "mouse";
|
6
7
|
get htmlFor(): string;
|
7
8
|
set htmlFor(value: string);
|
8
9
|
get type(): 'description' | 'label';
|