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.
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.71
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-03-31 00:00:00.000000000 Z
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/tooltip.d.ts
393
- - app/components/primer/alpha/tooltip.js
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.2.22
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,11 +0,0 @@
1
- declare class NavigationListElement extends HTMLElement {
2
- #private;
3
- connectedCallback(): void;
4
- handleEvent(event: Event): void;
5
- }
6
- export {};
7
- declare global {
8
- interface Window {
9
- NavigationListElement: typeof NavigationListElement;
10
- }
11
- }
@@ -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 {};