primer_view_components 0.0.70 → 0.0.71

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 272030b2872276a6709e0970467dafb3ed75e364f67e0a2354234f3ff2f621cf
4
- data.tar.gz: 99bfe8e36812559c4b2a682de3690c190052a59c6ae7493663756451bc06da1a
3
+ metadata.gz: b60c2d720f603739d353d6ea9e99203eb5d57adc7e92fddc0babb4da548a4071
4
+ data.tar.gz: 1e506c6525245110d581c82d440e80c758365871d063caff83bf0f685b530eb7
5
5
  SHA512:
6
- metadata.gz: 33a899486d61b39d926ca555125e37e5b957ad496a70b949ed744f63c74e6aae482f4c9ab77d43b46d79c02ee5c8fa25906f376e2483b24c7870ed69584c8a95
7
- data.tar.gz: 4368527ce8dd8970670d8e6e73ec6d1b0eee8c0dbe7171cccea45bf484a1d609a8bb42105a06e80ee37d8d9784aba1d15aea37ad93cc17daf08abfc90a80abb0
6
+ metadata.gz: 9db1d894eba902dce7203e8ca8e6588afad4339efe83fb63511b062b4c1d488d333c7fd1e734e838a1c21792cb70f380864f3d73be2cffe47b99684f3b534b04
7
+ data.tar.gz: 7fcc30a8c0c7b38273d2d4208fbac73e84517198fa990a66262bbe0a5fd9328af8e0283a74b20a1d8d86b9fd447293ee37d829772aa7a3eec0e7968d7cd729d8
data/CHANGELOG.md CHANGED
@@ -30,6 +30,14 @@ The category for changes related to documentation, testing and tooling. Also, fo
30
30
 
31
31
  ## main
32
32
 
33
+ ## 0.0.71
34
+
35
+ ### Updates
36
+
37
+ - Add responsive values for `text_align` system argument
38
+
39
+ _Lukas Spieß_
40
+
33
41
  ## 0.0.70
34
42
 
35
43
  ### New
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,42 @@
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 {};
@@ -1561,10 +1561,22 @@
1561
1561
  :text_align:
1562
1562
  :right:
1563
1563
  - text-right
1564
+ - text-sm-right
1565
+ - text-md-right
1566
+ - text-lg-right
1567
+ - text-xl-right
1564
1568
  :left:
1565
1569
  - text-left
1570
+ - text-sm-left
1571
+ - text-md-left
1572
+ - text-lg-left
1573
+ - text-xl-left
1566
1574
  :center:
1567
1575
  - text-center
1576
+ - text-sm-center
1577
+ - text-md-center
1578
+ - text-lg-center
1579
+ - text-xl-center
1568
1580
  :font_weight:
1569
1581
  :light:
1570
1582
  - text-light
@@ -5,7 +5,7 @@ module Primer
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 70
8
+ PATCH = 71
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
@@ -54,10 +54,22 @@
54
54
  :text_align:
55
55
  :right:
56
56
  - text-right
57
+ - text-sm-right
58
+ - text-md-right
59
+ - text-lg-right
60
+ - text-xl-right
57
61
  :left:
58
62
  - text-left
63
+ - text-sm-left
64
+ - text-md-left
65
+ - text-lg-left
66
+ - text-xl-left
59
67
  :center:
60
68
  - text-center
69
+ - text-sm-center
70
+ - text-md-center
71
+ - text-lg-center
72
+ - text-xl-center
61
73
  :font_weight:
62
74
  :light:
63
75
  - text-light
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.70
4
+ version: 0.0.71
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-30 00:00:00.000000000 Z
11
+ date: 2022-03-31 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,6 +383,8 @@ 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
386
388
  - app/components/primer/alpha/tab_nav.html.erb
387
389
  - app/components/primer/alpha/tab_nav.rb
388
390
  - app/components/primer/alpha/tab_panels.html.erb
@@ -578,7 +580,7 @@ licenses:
578
580
  - MIT
579
581
  metadata:
580
582
  allowed_push_host: https://rubygems.org
581
- post_install_message:
583
+ post_install_message:
582
584
  rdoc_options: []
583
585
  require_paths:
584
586
  - lib
@@ -593,8 +595,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
593
595
  - !ruby/object:Gem::Version
594
596
  version: '0'
595
597
  requirements: []
596
- rubygems_version: 3.1.6
597
- signing_key:
598
+ rubygems_version: 3.2.22
599
+ signing_key:
598
600
  specification_version: 4
599
601
  summary: ViewComponents for the Primer Design System
600
602
  test_files: []