primer_view_components 0.29.0 → 0.31.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 +43 -0
- data/app/assets/javascripts/app/components/primer/alpha/select_panel_element.d.ts +0 -1
- data/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +4 -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_list/item.html.erb +1 -5
- data/app/components/primer/alpha/action_list/item.rb +10 -3
- 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_list.pcss +1 -1
- 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 +1 -0
- data/app/components/primer/alpha/select_panel.rb +2 -1
- data/app/components/primer/alpha/select_panel_element.d.ts +0 -1
- data/app/components/primer/alpha/select_panel_element.js +72 -18
- data/app/components/primer/alpha/select_panel_element.ts +77 -22
- data/app/components/primer/alpha/toggle_switch.d.ts +4 -0
- data/app/components/primer/alpha/toggle_switch.js +16 -4
- data/app/components/primer/alpha/toggle_switch.rb +4 -2
- data/app/components/primer/alpha/toggle_switch.ts +19 -4
- data/app/components/primer/alpha/tool_tip.js +2 -2
- data/app/components/primer/alpha/tool_tip.ts +2 -2
- data/app/components/primer/beta/relative_time.rb +4 -4
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/state.pcss +4 -0
- data/lib/primer/view_components/linters/details_menu_migration.rb +30 -1
- data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_list_preview.rb +1 -1
- data/previews/primer/alpha/select_panel_preview/list_of_links.html.erb +16 -0
- data/previews/primer/alpha/select_panel_preview/playground.html.erb +2 -1
- data/previews/primer/alpha/select_panel_preview.rb +12 -1
- data/previews/primer/alpha/toggle_switch_preview.rb +4 -0
- data/static/arguments.json +11 -5
- data/static/info_arch.json +77 -11
- data/static/previews.json +27 -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: ffaebf4672da733bf37dbfd1ef0c18944ccaa81513dcab8ab4f327c97977cdb0
|
4
|
+
data.tar.gz: 77599bb66cc493732365c60cf6708711d7bc40663e5221d2be8961791a428327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9747c444b5cfd1643eb09d9011c95f675819bba724766f5f7de20742322a2eb7dabe4494068b8107963b41a4a4a68fbd5995463da1ab84f33231871b1d497bcc
|
7
|
+
data.tar.gz: 5cfa1e5f8da796ca9055d34cae7f67eb8216dd35e0a4d9420a88177b102736526bb3de95799ac7248aed867470f665c7247db66d67c35103b0a1c6afe9366997
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,48 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.31.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2984](https://github.com/primer/view_components/pull/2984) [`c56f325`](https://github.com/primer/view_components/commit/c56f3254128999ed69cdaeefb5a48cd08636fca0) Thanks [@camertron](https://github.com/camertron)! - Add ability to attach a test selector to ActionList items
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- [#2995](https://github.com/primer/view_components/pull/2995) [`0647fed`](https://github.com/primer/view_components/commit/0647fedd4c0a9c23c5312f8e753a346e3ac42960) Thanks [@camertron](https://github.com/camertron)! - Allow ActionList item content to be supplied by positional arg
|
12
|
+
|
13
|
+
- [#2979](https://github.com/primer/view_components/pull/2979) [`ae6e3d7`](https://github.com/primer/view_components/commit/ae6e3d73d5bc70492a151845e4d35c48f5510fa5) Thanks [@langermank](https://github.com/langermank)! - Prep for high contrast theme updates
|
14
|
+
|
15
|
+
- [#2986](https://github.com/primer/view_components/pull/2986) [`4d8ec0c`](https://github.com/primer/view_components/commit/4d8ec0c67c748d07ff3c2b69d6bdaff408461d8e) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Fixes Alpha::SelectPanel remote loading bug where items from the server were overriding the users selections. Additionally, update the #removeSelectedItem function to grab the data-value from the correct element.
|
16
|
+
|
17
|
+
- [#2987](https://github.com/primer/view_components/pull/2987) [`82f0267`](https://github.com/primer/view_components/commit/82f026711246f6f5409e79e4cffb74cc5145b39c) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Ensure focus is set on SelectPanel item when arrowing down from input
|
18
|
+
|
19
|
+
- [#2997](https://github.com/primer/view_components/pull/2997) [`0d0b5bc`](https://github.com/primer/view_components/commit/0d0b5bcf2d2fd9f328f69545f850d825d2cc435b) Thanks [@camertron](https://github.com/camertron)! - Prevent an empty list of custom regexes in the DetailsMenuMigration linter from reporting false-positives
|
20
|
+
|
21
|
+
- [#2978](https://github.com/primer/view_components/pull/2978) [`fac1ec9`](https://github.com/primer/view_components/commit/fac1ec9aed4c05d1034bb04d24c1380c9ef06c97) Thanks [@camertron](https://github.com/camertron)! - Ensure pressing 'Enter' in SelectPanel filter input causes navigation if first item is link.
|
22
|
+
|
23
|
+
- [#2996](https://github.com/primer/view_components/pull/2996) [`53abaa6`](https://github.com/primer/view_components/commit/53abaa6a14ace48cf5d016edf58cf60930cd764e) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Remove tabindex="-1" from li elements labelled as role="none" since tabindex's remove/negate role presentation
|
24
|
+
|
25
|
+
- [#2989](https://github.com/primer/view_components/pull/2989) [`36a044a`](https://github.com/primer/view_components/commit/36a044a28f6070e422681c8765693d1c21411fea) Thanks [@JoyceZhu](https://github.com/JoyceZhu)! - Add `aria-haspopup` and `aria-expanded` to `SelectPanel` state
|
26
|
+
|
27
|
+
- [#2994](https://github.com/primer/view_components/pull/2994) [`3bf8fd4`](https://github.com/primer/view_components/commit/3bf8fd4142a7647bd4cc2798f7e62bf1046092b4) Thanks [@kendallgassner](https://github.com/kendallgassner)! - Add aria-labelledby on the SelectPanel dialog
|
28
|
+
|
29
|
+
- [#2985](https://github.com/primer/view_components/pull/2985) [`868b49e`](https://github.com/primer/view_components/commit/868b49ee1e8d82066be91a6ffe97d948c1d7dc43) Thanks [@jamieshark](https://github.com/jamieshark)! - Adds custom config for DetailsMenuMigration linter.
|
30
|
+
|
31
|
+
- [#2988](https://github.com/primer/view_components/pull/2988) [`a5eefd9`](https://github.com/primer/view_components/commit/a5eefd9b5c7b8e6463b64ce6f7b3c46f65897759) Thanks [@gjtorikian](https://github.com/gjtorikian)! - Fix documentation comments in relative_time.rb
|
32
|
+
|
33
|
+
## 0.30.0
|
34
|
+
|
35
|
+
### Minor Changes
|
36
|
+
|
37
|
+
- [#2964](https://github.com/primer/view_components/pull/2964) [`91f5a57`](https://github.com/primer/view_components/commit/91f5a57e1b2df25844b96971b08d2a5a8370255f) Thanks [@klaustopher](https://github.com/klaustopher)! - Add `turbo: true` as an parameter for the `ToggleSwitch` component and treat the respoonse (when it has the correct MIME type) as a [Turbo Stream](https://turbo.hotwired.dev/handbook/streams). The new `turbo` paramater defaults to false
|
38
|
+
and with that the HTTP response is simply ignored as is the current behavior.
|
39
|
+
|
40
|
+
- [#2966](https://github.com/primer/view_components/pull/2966) [`05172fa`](https://github.com/primer/view_components/commit/05172fa681df5a65c14e4f4a863c22eef7f28970) Thanks [@camertron](https://github.com/camertron)! - Ensure Down, Home, and End behave as expected when a SelectPanel's input field has focus
|
41
|
+
|
42
|
+
### Patch Changes
|
43
|
+
|
44
|
+
- [#2972](https://github.com/primer/view_components/pull/2972) [`9b675a7`](https://github.com/primer/view_components/commit/9b675a78408e1e262850029ee730ad0cd6ac0d23) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Replace `align-items` with `align-self` and apply it on `ActionList` group headings directly.
|
45
|
+
|
3
46
|
## 0.29.0
|
4
47
|
|
5
48
|
### Minor Changes
|
@@ -6,7 +6,6 @@ type SelectedItem = {
|
|
6
6
|
label: string | null | undefined;
|
7
7
|
value: string | null | undefined;
|
8
8
|
inputName: string | null | undefined;
|
9
|
-
element: SelectPanelItem;
|
10
9
|
};
|
11
10
|
export type SelectPanelItem = HTMLLIElement;
|
12
11
|
export type FilterFn = (item: SelectPanelItem, query: string) => boolean;
|
@@ -2,6 +2,7 @@ declare class ToggleSwitchElement extends HTMLElement {
|
|
2
2
|
switch: HTMLElement;
|
3
3
|
loadingSpinner: HTMLElement;
|
4
4
|
errorIcon: HTMLElement;
|
5
|
+
turbo: boolean;
|
5
6
|
private toggling;
|
6
7
|
get src(): string | null;
|
7
8
|
get csrf(): string | null;
|
@@ -25,6 +26,9 @@ declare class ToggleSwitchElement extends HTMLElement {
|
|
25
26
|
declare global {
|
26
27
|
interface Window {
|
27
28
|
ToggleSwitchElement: typeof ToggleSwitchElement;
|
29
|
+
Turbo: {
|
30
|
+
renderStreamMessage: (message: string) => void;
|
31
|
+
};
|
28
32
|
}
|
29
33
|
}
|
30
34
|
export {};
|