primer_view_components 0.36.1 → 0.36.3
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 +20 -0
- data/app/assets/javascripts/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
- data/app/assets/javascripts/components/primer/primer.d.ts +1 -0
- data/app/assets/javascripts/components/primer/utils.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_list/divider.rb +4 -0
- data/app/components/primer/alpha/action_list/item.html.erb +1 -4
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +2 -6
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +10 -43
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +2 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +31 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +37 -0
- data/app/components/primer/alpha/action_menu.rb +6 -0
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +0 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +0 -5
- data/app/components/primer/alpha/select_panel_element.js +6 -19
- data/app/components/primer/alpha/select_panel_element.ts +9 -21
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +30 -30
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +2 -3
- 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/utils.d.ts +1 -0
- data/app/components/primer/utils.js +16 -0
- data/app/components/primer/utils.ts +16 -0
- data/app/lib/primer/forms/acts_as_component.rb +9 -2
- data/app/lib/primer/forms/base.rb +0 -5
- data/app/lib/primer/forms/base_component.rb +5 -3
- data/app/lib/primer/forms/radio_button_group.html.erb +1 -1
- data/app/lib/primer/forms/utils.rb +16 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_menu_preview/in_scroll_container.html.erb +3 -5
- data/static/classes.json +6 -0
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4211776a14ce12185ed521f1cf0bee864f57a48d051ebd151d5dc7d1b07b140
|
4
|
+
data.tar.gz: f4ce05f566d8556f3c6516ea8a42b567c559374998e6114624ca2b73cb63267e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea69bffeec49bad181790257e40da8f92fad228a2ea9ca04bd754f3dd8fbf8493011f0afa4d297239df5c82f7e4f3fe522d534c5a2144966c24dd7baa28e6db
|
7
|
+
data.tar.gz: a94985fe9f0d2dd1965c52f17df24c46f8138996d161611b989a9c2ac5e6f3db4416b551bd2ab428c9c7460a49c638879314a6639660cf0a5f70eec2927e96ff
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.36.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3254](https://github.com/primer/view_components/pull/3254) [`1bb7ad7`](https://github.com/primer/view_components/commit/1bb7ad71239ee6b6ef158dac7f1aad3bd76ea404) Thanks [@camertron](https://github.com/camertron)! - Fix `NoMethodError` when checking if `ActionList::Divider`s are active
|
8
|
+
|
9
|
+
- [#3253](https://github.com/primer/view_components/pull/3253) [`3a63cf0`](https://github.com/primer/view_components/commit/3a63cf01377ccb71654f69e7840c5bc52fe802b2) Thanks [@joshblack](https://github.com/joshblack)! - Add top spacing to Dialog::Body to avoid it being glued to the divider
|
10
|
+
|
11
|
+
## 0.36.2
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- [#3224](https://github.com/primer/view_components/pull/3224) [`3140ad9`](https://github.com/primer/view_components/commit/3140ad99f59b2345a43774c369bcc35d7ddd04d3) Thanks [@camertron](https://github.com/camertron)! - Update check box styles for ActionList to match the rest of Primer
|
16
|
+
|
17
|
+
- [#3236](https://github.com/primer/view_components/pull/3236) [`eea9da6`](https://github.com/primer/view_components/commit/eea9da6639c3fe81f328e7da8904d89df6b2467b) Thanks [@camertron](https://github.com/camertron)! - Improve template path detection for forms
|
18
|
+
|
19
|
+
- [#3235](https://github.com/primer/view_components/pull/3235) [`c765093`](https://github.com/primer/view_components/commit/c765093790d53940b3d7810085441d3706d17229) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds `role="radiogroup"` on `fieldset` in radio group component
|
20
|
+
|
21
|
+
- [#3207](https://github.com/primer/view_components/pull/3207) [`5880922`](https://github.com/primer/view_components/commit/5880922a563af6d51dc912616861cf3010a1d24a) Thanks [@camertron](https://github.com/camertron)! - Fix ActionMenu position issue when container is scrollable
|
22
|
+
|
3
23
|
## 0.36.1
|
4
24
|
|
5
25
|
### Patch Changes
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import '@oddbird/popover-polyfill';
|
2
2
|
import type { IncludeFragmentElement } from '@github/include-fragment-element';
|
3
|
+
import AnchoredPositionElement from '../../anchored_position';
|
3
4
|
type SelectVariant = 'none' | 'single' | 'multiple' | null;
|
4
5
|
type SelectedItem = {
|
5
6
|
label: string | null | undefined;
|
@@ -9,6 +10,7 @@ type SelectedItem = {
|
|
9
10
|
export declare class ActionMenuElement extends HTMLElement {
|
10
11
|
#private;
|
11
12
|
includeFragment: IncludeFragmentElement;
|
13
|
+
overlay: AnchoredPositionElement;
|
12
14
|
get selectVariant(): SelectVariant;
|
13
15
|
set selectVariant(variant: SelectVariant);
|
14
16
|
get dynamicLabelPrefix(): string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const observeMutationsUntilConditionMet: (element: Element, condition: () => boolean, body: () => void) => void;
|