primer_view_components 0.0.67 → 0.0.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +133 -2
  3. data/README.md +1 -1
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/components/primer/alpha/tooltip.d.ts +24 -0
  7. data/app/components/primer/alpha/tooltip.js +381 -0
  8. data/app/components/primer/alpha/tooltip.rb +103 -0
  9. data/app/components/primer/alpha/tooltip.ts +383 -0
  10. data/app/components/primer/base_component.rb +2 -2
  11. data/app/components/primer/beta/auto_complete/auto_complete.html.erb +22 -4
  12. data/app/components/primer/beta/auto_complete.rb +86 -99
  13. data/app/components/primer/beta/blankslate.html.erb +6 -2
  14. data/app/components/primer/beta/blankslate.rb +4 -9
  15. data/app/components/primer/beta/truncate.rb +1 -0
  16. data/app/components/primer/button_component.html.erb +1 -0
  17. data/app/components/primer/button_component.rb +29 -0
  18. data/app/components/primer/component.rb +9 -2
  19. data/app/components/primer/details_component.rb +1 -1
  20. data/app/components/primer/icon_button.rb +1 -1
  21. data/app/components/primer/link_component.erb +4 -0
  22. data/app/components/primer/link_component.rb +29 -4
  23. data/app/components/primer/markdown.rb +1 -1
  24. data/app/components/primer/popover_component.rb +5 -9
  25. data/app/components/primer/primer.d.ts +1 -0
  26. data/app/components/primer/primer.js +1 -0
  27. data/app/components/primer/primer.ts +1 -0
  28. data/app/components/primer/subhead_component.html.erb +1 -1
  29. data/app/components/primer/subhead_component.rb +1 -1
  30. data/app/components/primer/tooltip.rb +1 -1
  31. data/app/lib/primer/test_selector_helper.rb +1 -1
  32. data/lib/primer/classify/utilities.yml +28 -0
  33. data/lib/primer/view_components/linters/button_component_migration_counter.rb +1 -1
  34. data/lib/primer/view_components/version.rb +1 -1
  35. data/lib/rubocop/cop/primer/component_name_migration.rb +35 -0
  36. data/lib/rubocop/cop/primer/primer_octicon.rb +1 -1
  37. data/lib/tasks/docs.rake +12 -7
  38. data/lib/tasks/utilities.rake +1 -1
  39. data/static/arguments.yml +52 -1
  40. data/static/audited_at.json +1 -1
  41. data/static/classes.yml +9 -4
  42. data/static/constants.json +18 -8
  43. data/static/statuses.json +2 -2
  44. metadata +13 -9
  45. data/app/components/primer/auto_complete/auto_complete.d.ts +0 -1
  46. data/app/components/primer/auto_complete/auto_complete.js +0 -1
data/static/classes.yml CHANGED
@@ -82,13 +82,20 @@
82
82
  - ".UnderlineNav-item"
83
83
  - ".UnderlineNav-octicon"
84
84
  - ".anim-rotate"
85
+ - ".autocomplete-body"
86
+ - ".autocomplete-embedded-icon-wrap"
85
87
  - ".autocomplete-item"
88
+ - ".autocomplete-label-inline"
89
+ - ".autocomplete-label-stacked"
86
90
  - ".autocomplete-results"
87
91
  - ".avatar"
88
92
  - ".avatar-more"
89
93
  - ".avatar-small"
90
94
  - ".blankslate"
95
+ - ".blankslate-action"
96
+ - ".blankslate-heading"
91
97
  - ".blankslate-icon"
98
+ - ".blankslate-image"
92
99
  - ".blankslate-narrow"
93
100
  - ".blankslate-spacious"
94
101
  - ".border"
@@ -163,17 +170,15 @@
163
170
  - ".form-control"
164
171
  - ".gutter-condensed"
165
172
  - ".gutter-lg"
166
- - ".h2"
167
173
  - ".hidden-text-expander"
168
174
  - ".inline"
169
175
  - ".left-0"
170
176
  - ".lh-0"
171
177
  - ".list-style-none"
178
+ - ".m-2"
172
179
  - ".markdown-body"
173
180
  - ".mb-0"
174
- - ".mb-1"
175
181
  - ".mb-2"
176
- - ".mb-3"
177
182
  - ".menu"
178
183
  - ".menu-heading"
179
184
  - ".menu-item"
@@ -181,7 +186,6 @@
181
186
  - ".mr-2"
182
187
  - ".mr-n1"
183
188
  - ".mt-2"
184
- - ".mt-3"
185
189
  - ".mt-5"
186
190
  - ".mx-auto"
187
191
  - ".no-underline"
@@ -194,6 +198,7 @@
194
198
  - ".pr-2"
195
199
  - ".pt-5"
196
200
  - ".right-0"
201
+ - ".sr-only"
197
202
  - ".tabnav"
198
203
  - ".tabnav-tab"
199
204
  - ".tabnav-tabs"
@@ -138,6 +138,24 @@
138
138
  "div"
139
139
  ]
140
140
  },
141
+ "Primer::Alpha::Tooltip": {
142
+ "DIRECTION_DEFAULT": "s",
143
+ "DIRECTION_OPTIONS": [
144
+ "s",
145
+ "n",
146
+ "e",
147
+ "w",
148
+ "ne",
149
+ "nw",
150
+ "se",
151
+ "sw"
152
+ ],
153
+ "TYPE_FALLBACK": "description",
154
+ "TYPE_OPTIONS": [
155
+ "label",
156
+ "description"
157
+ ]
158
+ },
141
159
  "Primer::Alpha::UnderlineNav": {
142
160
  "BODY_TAG_DEFAULT": "ul",
143
161
  "TAG_DEFAULT": "nav",
@@ -181,16 +199,8 @@
181
199
  ]
182
200
  },
183
201
  "Primer::Beta::AutoComplete": {
184
- "Input": "Primer::Beta::AutoComplete::Input",
185
202
  "Item": "Primer::Beta::AutoComplete::Item"
186
203
  },
187
- "Primer::Beta::AutoComplete::Input": {
188
- "DEFAULT_TYPE": "text",
189
- "TYPE_OPTIONS": [
190
- "text",
191
- "search"
192
- ]
193
- },
194
204
  "Primer::Beta::AutoComplete::Item": {
195
205
  },
196
206
  "Primer::Beta::Avatar": {
data/static/statuses.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "Primer::Alpha::Layout::Sidebar": "alpha",
7
7
  "Primer::Alpha::TabNav": "alpha",
8
8
  "Primer::Alpha::TabPanels": "alpha",
9
+ "Primer::Alpha::Tooltip": "alpha",
9
10
  "Primer::Alpha::UnderlineNav": "alpha",
10
11
  "Primer::Alpha::UnderlinePanels": "alpha",
11
12
  "Primer::BaseButton": "beta",
12
13
  "Primer::BaseComponent": "beta",
13
14
  "Primer::Beta::AutoComplete": "beta",
14
- "Primer::Beta::AutoComplete::Input": "alpha",
15
15
  "Primer::Beta::AutoComplete::Item": "beta",
16
16
  "Primer::Beta::Avatar": "beta",
17
17
  "Primer::Beta::AvatarStack": "beta",
@@ -62,6 +62,6 @@
62
62
  "Primer::TimeAgoComponent": "beta",
63
63
  "Primer::TimelineItemComponent": "beta",
64
64
  "Primer::TimelineItemComponent::BadgeComponent": "alpha",
65
- "Primer::Tooltip": "beta",
65
+ "Primer::Tooltip": "deprecated",
66
66
  "Primer::Truncate": "beta"
67
67
  }
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.67
4
+ version: 0.0.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: octicons
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '16'
47
+ version: 17.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '16'
54
+ version: 17.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: view_component
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -387,12 +387,14 @@ files:
387
387
  - app/components/primer/alpha/tab_nav.rb
388
388
  - app/components/primer/alpha/tab_panels.html.erb
389
389
  - app/components/primer/alpha/tab_panels.rb
390
+ - app/components/primer/alpha/tooltip.d.ts
391
+ - app/components/primer/alpha/tooltip.js
392
+ - app/components/primer/alpha/tooltip.rb
393
+ - app/components/primer/alpha/tooltip.ts
390
394
  - app/components/primer/alpha/underline_nav.html.erb
391
395
  - app/components/primer/alpha/underline_nav.rb
392
396
  - app/components/primer/alpha/underline_panels.html.erb
393
397
  - app/components/primer/alpha/underline_panels.rb
394
- - app/components/primer/auto_complete/auto_complete.d.ts
395
- - app/components/primer/auto_complete/auto_complete.js
396
398
  - app/components/primer/base_button.rb
397
399
  - app/components/primer/base_component.rb
398
400
  - app/components/primer/beta/auto_complete.rb
@@ -460,6 +462,7 @@ files:
460
462
  - app/components/primer/label_component.rb
461
463
  - app/components/primer/layout_component.html.erb
462
464
  - app/components/primer/layout_component.rb
465
+ - app/components/primer/link_component.erb
463
466
  - app/components/primer/link_component.rb
464
467
  - app/components/primer/local_time.d.ts
465
468
  - app/components/primer/local_time.js
@@ -545,6 +548,7 @@ files:
545
548
  - lib/rubocop/config/default.yml
546
549
  - lib/rubocop/cop/primer.rb
547
550
  - lib/rubocop/cop/primer/base_cop.rb
551
+ - lib/rubocop/cop/primer/component_name_migration.rb
548
552
  - lib/rubocop/cop/primer/deprecated_arguments.rb
549
553
  - lib/rubocop/cop/primer/deprecated_button_arguments.rb
550
554
  - lib/rubocop/cop/primer/deprecated_label_schemes.rb
@@ -589,7 +593,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
589
593
  - !ruby/object:Gem::Version
590
594
  version: '0'
591
595
  requirements: []
592
- rubygems_version: 3.1.2
596
+ rubygems_version: 3.1.6
593
597
  signing_key:
594
598
  specification_version: 4
595
599
  summary: ViewComponents for the Primer Design System
@@ -1 +0,0 @@
1
- import '@github/auto-complete-element';
@@ -1 +0,0 @@
1
- import '@github/auto-complete-element';