primer_view_components 0.0.71 → 0.0.72
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 +52 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/components/primer/alpha/{tooltip.d.ts → tool-tip-element.d.ts} +2 -3
- data/app/components/primer/alpha/{tooltip.js → tool-tip-element.js} +60 -93
- data/app/components/primer/alpha/{tooltip.ts → tool-tip-element.ts} +27 -63
- data/app/components/primer/link_component.erb +1 -4
- data/app/components/primer/primer.d.ts +1 -1
- data/app/components/primer/primer.js +1 -1
- data/app/components/primer/primer.ts +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/config/default.yml +3 -0
- data/lib/rubocop/cop/primer/deprecated_components.rb +80 -0
- metadata +11 -12
- data/app/components/primer/alpha/navigation_list_element.d.ts +0 -11
- data/app/components/primer/alpha/navigation_list_element.js +0 -42
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.72
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -366,7 +366,7 @@ dependencies:
|
|
366
366
|
- - "~>"
|
367
367
|
- !ruby/object:Gem::Version
|
368
368
|
version: 0.9.25
|
369
|
-
description:
|
369
|
+
description:
|
370
370
|
email:
|
371
371
|
- opensource+primer_view_components@github.com
|
372
372
|
executables: []
|
@@ -383,16 +383,14 @@ files:
|
|
383
383
|
- app/components/primer/alpha/button_marketing.rb
|
384
384
|
- app/components/primer/alpha/layout.html.erb
|
385
385
|
- app/components/primer/alpha/layout.rb
|
386
|
-
- app/components/primer/alpha/navigation_list_element.d.ts
|
387
|
-
- app/components/primer/alpha/navigation_list_element.js
|
388
386
|
- app/components/primer/alpha/tab_nav.html.erb
|
389
387
|
- app/components/primer/alpha/tab_nav.rb
|
390
388
|
- app/components/primer/alpha/tab_panels.html.erb
|
391
389
|
- app/components/primer/alpha/tab_panels.rb
|
392
|
-
- app/components/primer/alpha/
|
393
|
-
- app/components/primer/alpha/
|
390
|
+
- app/components/primer/alpha/tool-tip-element.d.ts
|
391
|
+
- app/components/primer/alpha/tool-tip-element.js
|
392
|
+
- app/components/primer/alpha/tool-tip-element.ts
|
394
393
|
- app/components/primer/alpha/tooltip.rb
|
395
|
-
- app/components/primer/alpha/tooltip.ts
|
396
394
|
- app/components/primer/alpha/underline_nav.html.erb
|
397
395
|
- app/components/primer/alpha/underline_nav.rb
|
398
396
|
- app/components/primer/alpha/underline_panels.html.erb
|
@@ -553,6 +551,7 @@ files:
|
|
553
551
|
- lib/rubocop/cop/primer/component_name_migration.rb
|
554
552
|
- lib/rubocop/cop/primer/deprecated_arguments.rb
|
555
553
|
- lib/rubocop/cop/primer/deprecated_button_arguments.rb
|
554
|
+
- lib/rubocop/cop/primer/deprecated_components.rb
|
556
555
|
- lib/rubocop/cop/primer/deprecated_label_schemes.rb
|
557
556
|
- lib/rubocop/cop/primer/deprecated_layout_component.rb
|
558
557
|
- lib/rubocop/cop/primer/no_tag_memoize.rb
|
@@ -580,7 +579,7 @@ licenses:
|
|
580
579
|
- MIT
|
581
580
|
metadata:
|
582
581
|
allowed_push_host: https://rubygems.org
|
583
|
-
post_install_message:
|
582
|
+
post_install_message:
|
584
583
|
rdoc_options: []
|
585
584
|
require_paths:
|
586
585
|
- lib
|
@@ -595,8 +594,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
595
594
|
- !ruby/object:Gem::Version
|
596
595
|
version: '0'
|
597
596
|
requirements: []
|
598
|
-
rubygems_version: 3.
|
599
|
-
signing_key:
|
597
|
+
rubygems_version: 3.1.6
|
598
|
+
signing_key:
|
600
599
|
specification_version: 4
|
601
600
|
summary: ViewComponents for the Primer Design System
|
602
601
|
test_files: []
|
@@ -1,42 +0,0 @@
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
5
|
-
};
|
6
|
-
var _NavigationListElement_instances, _NavigationListElement_handleClick;
|
7
|
-
class NavigationListElement extends HTMLElement {
|
8
|
-
constructor() {
|
9
|
-
super(...arguments);
|
10
|
-
_NavigationListElement_instances.add(this);
|
11
|
-
}
|
12
|
-
connectedCallback() {
|
13
|
-
this.addEventListener('click', this);
|
14
|
-
}
|
15
|
-
handleEvent(event) {
|
16
|
-
var _a;
|
17
|
-
if (!(event.target instanceof HTMLElement))
|
18
|
-
return;
|
19
|
-
const item = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('button');
|
20
|
-
if ((item === null || item === void 0 ? void 0 : item.closest(this.tagName)) !== this)
|
21
|
-
return;
|
22
|
-
if (event.type === 'click') {
|
23
|
-
__classPrivateFieldGet(this, _NavigationListElement_instances, "m", _NavigationListElement_handleClick).call(this, item, event);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
_NavigationListElement_instances = new WeakSet(), _NavigationListElement_handleClick = function _NavigationListElement_handleClick(item, e) {
|
28
|
-
if (item.getAttribute('aria-expanded') !== null) {
|
29
|
-
if (item.getAttribute('aria-expanded') === 'true') {
|
30
|
-
item.setAttribute('aria-expanded', 'false');
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
item.setAttribute('aria-expanded', 'true');
|
34
|
-
}
|
35
|
-
}
|
36
|
-
e.stopPropagation();
|
37
|
-
};
|
38
|
-
if (!window.customElements.get('navigation-list')) {
|
39
|
-
window.NavigationListElement = NavigationListElement;
|
40
|
-
window.customElements.define('navigation-list', NavigationListElement);
|
41
|
-
}
|
42
|
-
export {};
|