primer_view_components 0.0.93 → 0.0.94
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 +10 -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/{modal-dialog-element.d.ts → modal_dialog.d.ts} +0 -0
- data/app/components/primer/alpha/{modal-dialog-element.js → modal_dialog.js} +0 -0
- data/app/components/primer/alpha/{modal-dialog-element.ts → modal_dialog.ts} +0 -0
- data/app/components/primer/alpha/{toggle-switch-element.d.ts → toggle_switch.d.ts} +0 -0
- data/app/components/primer/alpha/{toggle-switch-element.js → toggle_switch.js} +4 -2
- data/app/components/primer/alpha/{toggle-switch-element.ts → toggle_switch.ts} +5 -3
- data/app/components/primer/alpha/{tool-tip-element.d.ts → tool_tip.d.ts} +0 -0
- data/app/components/primer/alpha/{tool-tip-element.js → tool_tip.js} +0 -0
- data/app/components/primer/alpha/{tool-tip-element.ts → tool_tip.ts} +0 -0
- data/app/components/primer/base_button.rb +7 -0
- data/app/components/primer/beta/avatar_stack.rb +1 -1
- data/app/components/primer/beta/base_button.rb +0 -2
- data/app/components/primer/button_group.rb +7 -0
- data/app/components/primer/{clipboard_copy_component.d.ts → clipboard_copy.d.ts} +0 -0
- data/app/components/primer/{clipboard_copy_component.js → clipboard_copy.js} +1 -1
- data/app/components/primer/{clipboard_copy_component.ts → clipboard_copy.ts} +1 -1
- data/app/components/primer/primer.d.ts +7 -7
- data/app/components/primer/primer.js +7 -7
- data/app/components/primer/primer.ts +7 -7
- data/app/lib/primer/status/dsl.rb +2 -1
- data/lib/primer/deprecations.rb +37 -0
- data/lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb +8 -18
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/cop/primer/component_name_migration.rb +7 -15
- data/lib/tasks/deprecated.rake +7 -2
- data/lib/tasks/docs.rake +2 -1
- data/static/arguments.yml +34 -0
- data/static/audited_at.json +2 -0
- data/static/constants.json +4 -0
- data/static/statuses.json +2 -0
- metadata +17 -20
- data/app/components/primer/experimental/action-bar-element.d.ts +0 -14
- data/app/components/primer/experimental/action-bar-element.js +0 -139
- data/app/components/primer/experimental/action-menu-element.d.ts +0 -31
- data/app/components/primer/experimental/action-menu-element.js +0 -334
- data/app/components/primer/experimental/overflow-menu-element.d.ts +0 -13
- data/app/components/primer/experimental/overflow-menu-element.js +0 -113
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,5 +1,3 @@
|
|
1
|
-
/* eslint-disable custom-elements/expose-class-on-global */
|
2
|
-
/* eslint-disable custom-elements/define-tag-after-class-definition */
|
3
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
4
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
5
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -135,3 +133,7 @@ ToggleSwitchElement = __decorate([
|
|
135
133
|
controller
|
136
134
|
], ToggleSwitchElement);
|
137
135
|
export { ToggleSwitchElement };
|
136
|
+
if (!window.customElements.get('toggle-switch')) {
|
137
|
+
window.ToggleSwitchElement = ToggleSwitchElement;
|
138
|
+
window.customElements.define('toggle-switch', ToggleSwitchElement);
|
139
|
+
}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
/* eslint-disable custom-elements/expose-class-on-global */
|
2
|
-
/* eslint-disable custom-elements/define-tag-after-class-definition */
|
3
|
-
|
4
1
|
import {controller, target} from '@github/catalyst'
|
5
2
|
import {debounce} from '@github/mini-throttle/decorators'
|
6
3
|
|
@@ -146,3 +143,8 @@ declare global {
|
|
146
143
|
ToggleSwitchElement: typeof ToggleSwitchElement
|
147
144
|
}
|
148
145
|
}
|
146
|
+
|
147
|
+
if (!window.customElements.get('toggle-switch')) {
|
148
|
+
window.ToggleSwitchElement = ToggleSwitchElement
|
149
|
+
window.customElements.define('toggle-switch', ToggleSwitchElement)
|
150
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,7 +23,7 @@ function showCheck(button) {
|
|
23
23
|
showSVG(checkIcon);
|
24
24
|
}
|
25
25
|
const clipboardCopyElementTimers = new WeakMap();
|
26
|
-
document.addEventListener('clipboard-copy',
|
26
|
+
document.addEventListener('clipboard-copy', ({ target }) => {
|
27
27
|
if (!(target instanceof HTMLElement))
|
28
28
|
return;
|
29
29
|
if (!target.hasAttribute('data-view-component'))
|
@@ -32,7 +32,7 @@ function showCheck(button: HTMLElement) {
|
|
32
32
|
|
33
33
|
const clipboardCopyElementTimers = new WeakMap<HTMLElement, number>()
|
34
34
|
|
35
|
-
document.addEventListener('clipboard-copy',
|
35
|
+
document.addEventListener('clipboard-copy', ({target}) => {
|
36
36
|
if (!(target instanceof HTMLElement)) return
|
37
37
|
if (!target.hasAttribute('data-view-component')) return
|
38
38
|
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import './alpha/modal_dialog';
|
2
|
+
import './alpha/toggle_switch';
|
3
|
+
import './alpha/tool_tip';
|
1
4
|
import './beta/auto_complete/auto_complete';
|
2
|
-
import './
|
5
|
+
import './clipboard_copy';
|
6
|
+
import './dropdown';
|
7
|
+
import './image_crop';
|
8
|
+
import './local_time';
|
3
9
|
import './tab_container_component';
|
4
10
|
import './time_ago_component';
|
5
|
-
import './local_time';
|
6
|
-
import './image_crop';
|
7
|
-
import './dropdown';
|
8
|
-
import './alpha/toggle-switch-element';
|
9
|
-
import './alpha/tool-tip-element';
|
10
|
-
import './alpha/modal-dialog-element';
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import './alpha/modal_dialog';
|
2
|
+
import './alpha/toggle_switch';
|
3
|
+
import './alpha/tool_tip';
|
1
4
|
import './beta/auto_complete/auto_complete';
|
2
|
-
import './
|
5
|
+
import './clipboard_copy';
|
6
|
+
import './dropdown';
|
7
|
+
import './image_crop';
|
8
|
+
import './local_time';
|
3
9
|
import './tab_container_component';
|
4
10
|
import './time_ago_component';
|
5
|
-
import './local_time';
|
6
|
-
import './image_crop';
|
7
|
-
import './dropdown';
|
8
|
-
import './alpha/toggle-switch-element';
|
9
|
-
import './alpha/tool-tip-element';
|
10
|
-
import './alpha/modal-dialog-element';
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import './alpha/modal_dialog'
|
2
|
+
import './alpha/toggle_switch'
|
3
|
+
import './alpha/tool_tip'
|
1
4
|
import './beta/auto_complete/auto_complete'
|
2
|
-
import './
|
5
|
+
import './clipboard_copy'
|
6
|
+
import './dropdown'
|
7
|
+
import './image_crop'
|
8
|
+
import './local_time'
|
3
9
|
import './tab_container_component'
|
4
10
|
import './time_ago_component'
|
5
|
-
import './local_time'
|
6
|
-
import './image_crop'
|
7
|
-
import './dropdown'
|
8
|
-
import './alpha/toggle-switch-element'
|
9
|
-
import './alpha/tool-tip-element'
|
10
|
-
import './alpha/modal-dialog-element'
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
# :nodoc:
|
5
|
+
module Deprecations
|
6
|
+
# If there is no alternative to suggest, set the value to nil
|
7
|
+
DEPRECATED_COMPONENTS = {
|
8
|
+
"Primer::Alpha::AutoComplete" => "Primer::Beta::AutoComplete",
|
9
|
+
"Primer::Alpha::AutoComplete::Item" => "Primer::Beta::AutoComplete::Item",
|
10
|
+
"Primer::BaseButton" => "Primer::Beta::BaseButton",
|
11
|
+
"Primer::BlankslateComponent" => "Primer::Beta::Blankslate",
|
12
|
+
"Primer::BoxComponent" => "Primer::Box",
|
13
|
+
"Primer::ButtonGroup" => "Primer::Beta::ButtonGroup",
|
14
|
+
"Primer::CloseButton" => "Primer::Beta::CloseButton",
|
15
|
+
"Primer::CounterComponent" => "Primer::Beta::Counter",
|
16
|
+
"Primer::DetailsComponent" => "Primer::Beta::Details",
|
17
|
+
"Primer::DropdownMenuComponent" => nil,
|
18
|
+
"Primer::FlexComponent" => nil,
|
19
|
+
"Primer::FlexItemComponent" => nil,
|
20
|
+
"Primer::HeadingComponent" => "Primer::Beta::Heading",
|
21
|
+
"Primer::HiddenTextExpander" => "Primer::Alpha::HiddenTextExpander",
|
22
|
+
"Primer::Tooltip" => "Primer::Alpha::Tooltip"
|
23
|
+
}.freeze
|
24
|
+
|
25
|
+
def self.deprecated?(name)
|
26
|
+
DEPRECATED_COMPONENTS.key?(name)
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.suggested_component(name)
|
30
|
+
DEPRECATED_COMPONENTS[name]
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.correctable?(name)
|
34
|
+
!suggested_component(name).nil?
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,30 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "primer/deprecations"
|
4
|
+
|
3
5
|
module ERBLint
|
4
6
|
module Linters
|
5
7
|
module Helpers
|
6
8
|
# Helpers to share between DeprecatedComponents ERB lint and Rubocop cop
|
7
9
|
module DeprecatedComponentsHelpers
|
8
|
-
# If there is no alternative to suggest, set the value to nil
|
9
|
-
COMPONENT_TO_USE_INSTEAD = {
|
10
|
-
"Primer::HiddenTextExpander" => "Primer::Alpha::HiddenTextExpander",
|
11
|
-
"Primer::HeadingComponent" => "Primer::Beta::Heading",
|
12
|
-
"Primer::CloseButton" => "Primer::Beta::CloseButton",
|
13
|
-
"Primer::CounterComponent" => "Primer::Beta::Counter",
|
14
|
-
"Primer::DetailsComponent" => "Primer::Beta::Details",
|
15
|
-
"Primer::Alpha::AutoComplete::Item" => "Primer::Beta::AutoComplete::Item",
|
16
|
-
"Primer::Alpha::AutoComplete" => "Primer::Beta::AutoComplete",
|
17
|
-
"Primer::BlankslateComponent" => "Primer::Beta::Blankslate",
|
18
|
-
"Primer::BoxComponent" => "Primer::Box",
|
19
|
-
"Primer::DropdownMenuComponent" => nil,
|
20
|
-
"Primer::Tooltip" => "Primer::Alpha::Tooltip",
|
21
|
-
"Primer::FlexComponent" => nil,
|
22
|
-
"Primer::FlexItemComponent" => nil
|
23
|
-
}.freeze
|
24
|
-
|
25
10
|
def message(component)
|
26
11
|
message = "#{component} has been deprecated and should not be used."
|
27
|
-
|
12
|
+
|
13
|
+
if Primer::Deprecations.correctable?(component)
|
14
|
+
suggested_component = Primer::Deprecations.suggested_component(component)
|
15
|
+
message += " Try #{suggested_component} instead."
|
16
|
+
end
|
17
|
+
|
28
18
|
message
|
29
19
|
end
|
30
20
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "rubocop"
|
4
|
+
require "primer/deprecations"
|
4
5
|
|
5
6
|
# :nocov:
|
6
7
|
module RuboCop
|
@@ -14,28 +15,19 @@ module RuboCop
|
|
14
15
|
# good
|
15
16
|
# Primer::Beta::ComponentName.new()
|
16
17
|
class ComponentNameMigration < BaseCop
|
17
|
-
DEPRECATIONS = {
|
18
|
-
"Primer::HiddenTextExpander" => "Primer::Alpha::HiddenTextExpander",
|
19
|
-
"Primer::DetailsComponent" => "Primer::Beta::Details",
|
20
|
-
"Primer::HeadingComponent" => "Primer::Beta::Heading",
|
21
|
-
"Primer::BoxComponent" => "Primer::Box",
|
22
|
-
"Primer::ButtonGroup" => "Primer::Beta::ButtonGroup",
|
23
|
-
"Primer::CloseButton" => "Primer::Beta::CloseButton",
|
24
|
-
"Primer::CounterComponent" => "Primer::Beta::Counter",
|
25
|
-
"Primer::BlankslateComponent" => "Primer::Beta::Blankslate",
|
26
|
-
"Primer::BaseButton" => "Primer::Beta::BaseButton",
|
27
|
-
"Primer::TestComponent" => "Primer::Beta::Test"
|
28
|
-
}.freeze
|
29
|
-
|
30
18
|
def on_send(node)
|
31
|
-
return unless node.method_name == :new && !node.receiver.nil? &&
|
19
|
+
return unless node.method_name == :new && !node.receiver.nil? && ::Primer::Deprecations.deprecated?(node.receiver.const_name)
|
32
20
|
|
33
21
|
add_offense(node.receiver, message: "Don't use deprecated names")
|
34
22
|
end
|
35
23
|
|
36
24
|
def autocorrect(node)
|
37
25
|
lambda do |corrector|
|
38
|
-
|
26
|
+
component_name = node.const_name
|
27
|
+
return unless ::Primer::Deprecations.correctable?(component_name)
|
28
|
+
|
29
|
+
suggested_component = ::Primer::Deprecations.suggested_component(component_name)
|
30
|
+
corrector.replace(node, suggested_component) if suggested_component.present?
|
39
31
|
end
|
40
32
|
end
|
41
33
|
end
|
data/lib/tasks/deprecated.rake
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "primer/deprecations"
|
4
|
+
|
3
5
|
namespace :deprecated do
|
4
6
|
task :check do
|
5
7
|
require_relative "./../primer/view_components/linters/helpers/deprecated_components_helpers"
|
@@ -7,11 +9,14 @@ namespace :deprecated do
|
|
7
9
|
|
8
10
|
puts "Checking that officially deprecated components are linted by `DeprecatedComponents` linter...."
|
9
11
|
|
10
|
-
|
12
|
+
deprecated_by_status = Primer::ViewComponents::STATUSES.select { |_, value| value == "deprecated" }.keys.sort
|
13
|
+
deprecated_by_list = ::Primer::Deprecations::DEPRECATED_COMPONENTS.keys.sort
|
14
|
+
|
15
|
+
if deprecated_by_status != deprecated_by_list
|
11
16
|
puts "\n**************************************************************************************************************************"
|
12
17
|
raise "Please make sure that components are officially deprecated by setting the `status :deprecated` within the component file.\n"\
|
13
18
|
"Run `bundle exec rake static:dump` so the deprecated status is reflected in `statuses.json`.\n"\
|
14
|
-
"Make sure to provide an alternative component for each deprecated component in `
|
19
|
+
"Make sure to provide an alternative component for each deprecated component in `Primer::Deprecations::DEPRECATED_COMPONENTS` (lib/primer/deprecations.rb).\n"\
|
15
20
|
"If there is no alternative to suggest, set the value to nil."
|
16
21
|
end
|
17
22
|
|
data/lib/tasks/docs.rake
CHANGED
data/static/arguments.yml
CHANGED
@@ -236,6 +236,40 @@
|
|
236
236
|
type: Proc
|
237
237
|
default: N/A
|
238
238
|
description: Unused.
|
239
|
+
- component: ToggleSwitch
|
240
|
+
source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/toggle_switch.rb
|
241
|
+
parameters:
|
242
|
+
- name: src
|
243
|
+
type: String
|
244
|
+
default: "`nil`"
|
245
|
+
description: The URL to POST to when the toggle switch is toggled. If `nil`, the
|
246
|
+
toggle switch will not make any requests.
|
247
|
+
- name: csrf_token
|
248
|
+
type: String
|
249
|
+
default: "`nil`"
|
250
|
+
description: A CSRF token that will be sent to the server as "authenticity_token"
|
251
|
+
when the toggle switch is toggled. Unused if `src` is `nil`.
|
252
|
+
- name: checked
|
253
|
+
type: Boolean
|
254
|
+
default: "`false`"
|
255
|
+
description: Whether the toggle switch is on or off.
|
256
|
+
- name: enabled
|
257
|
+
type: Boolean
|
258
|
+
default: "`true`"
|
259
|
+
description: Whether or not the toggle switch responds to user input.
|
260
|
+
- name: size
|
261
|
+
type: Symbol
|
262
|
+
default: "`:medium`"
|
263
|
+
description: What size toggle switch to render. One of `:end` or `:start`.
|
264
|
+
- name: status_label_position
|
265
|
+
type: Symbol
|
266
|
+
default: "`:start`"
|
267
|
+
description: Which side of the toggle switch to render the status label. One of
|
268
|
+
`:medium` or `:small`.
|
269
|
+
- name: system_arguments
|
270
|
+
type: Hash
|
271
|
+
default: N/A
|
272
|
+
description: "[System arguments](/system-arguments)"
|
239
273
|
- component: Tooltip
|
240
274
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/tooltip.rb
|
241
275
|
parameters:
|
data/static/audited_at.json
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
"Primer::Alpha::Tooltip": "",
|
18
18
|
"Primer::Alpha::UnderlineNav": "",
|
19
19
|
"Primer::Alpha::UnderlinePanels": "",
|
20
|
+
"Primer::BaseButton": "",
|
20
21
|
"Primer::BaseComponent": "",
|
21
22
|
"Primer::Beta::AutoComplete": "",
|
22
23
|
"Primer::Beta::AutoComplete::Item": "",
|
@@ -43,6 +44,7 @@
|
|
43
44
|
"Primer::Box": "",
|
44
45
|
"Primer::BoxComponent": "",
|
45
46
|
"Primer::ButtonComponent": "",
|
47
|
+
"Primer::ButtonGroup": "",
|
46
48
|
"Primer::ClipboardCopy": "",
|
47
49
|
"Primer::CloseButton": "",
|
48
50
|
"Primer::ConditionalWrapper": "",
|
data/static/constants.json
CHANGED
@@ -236,6 +236,8 @@
|
|
236
236
|
},
|
237
237
|
"Primer::Alpha::UnderlinePanels": {
|
238
238
|
},
|
239
|
+
"Primer::BaseButton": {
|
240
|
+
},
|
239
241
|
"Primer::BaseComponent": {
|
240
242
|
"SELF_CLOSING_TAGS": [
|
241
243
|
"area",
|
@@ -533,6 +535,8 @@
|
|
533
535
|
"medium"
|
534
536
|
]
|
535
537
|
},
|
538
|
+
"Primer::ButtonGroup": {
|
539
|
+
},
|
536
540
|
"Primer::ClipboardCopy": {
|
537
541
|
},
|
538
542
|
"Primer::CloseButton": {
|
data/static/statuses.json
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
"Primer::Alpha::Tooltip": "alpha",
|
18
18
|
"Primer::Alpha::UnderlineNav": "alpha",
|
19
19
|
"Primer::Alpha::UnderlinePanels": "alpha",
|
20
|
+
"Primer::BaseButton": "deprecated",
|
20
21
|
"Primer::BaseComponent": "beta",
|
21
22
|
"Primer::Beta::AutoComplete": "beta",
|
22
23
|
"Primer::Beta::AutoComplete::Item": "beta",
|
@@ -43,6 +44,7 @@
|
|
43
44
|
"Primer::Box": "stable",
|
44
45
|
"Primer::BoxComponent": "deprecated",
|
45
46
|
"Primer::ButtonComponent": "beta",
|
47
|
+
"Primer::ButtonGroup": "deprecated",
|
46
48
|
"Primer::ClipboardCopy": "beta",
|
47
49
|
"Primer::CloseButton": "deprecated",
|
48
50
|
"Primer::ConditionalWrapper": "alpha",
|
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.94
|
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-09-
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -421,27 +421,28 @@ files:
|
|
421
421
|
- app/components/primer/alpha/hidden_text_expander.rb
|
422
422
|
- app/components/primer/alpha/layout.html.erb
|
423
423
|
- app/components/primer/alpha/layout.rb
|
424
|
-
- app/components/primer/alpha/
|
425
|
-
- app/components/primer/alpha/
|
426
|
-
- app/components/primer/alpha/
|
424
|
+
- app/components/primer/alpha/modal_dialog.d.ts
|
425
|
+
- app/components/primer/alpha/modal_dialog.js
|
426
|
+
- app/components/primer/alpha/modal_dialog.ts
|
427
427
|
- app/components/primer/alpha/tab_nav.html.erb
|
428
428
|
- app/components/primer/alpha/tab_nav.rb
|
429
429
|
- app/components/primer/alpha/tab_panels.html.erb
|
430
430
|
- app/components/primer/alpha/tab_panels.rb
|
431
431
|
- app/components/primer/alpha/text_field.rb
|
432
|
-
- app/components/primer/alpha/
|
433
|
-
- app/components/primer/alpha/toggle-switch-element.js
|
434
|
-
- app/components/primer/alpha/toggle-switch-element.ts
|
432
|
+
- app/components/primer/alpha/toggle_switch.d.ts
|
435
433
|
- app/components/primer/alpha/toggle_switch.html.erb
|
434
|
+
- app/components/primer/alpha/toggle_switch.js
|
436
435
|
- app/components/primer/alpha/toggle_switch.rb
|
437
|
-
- app/components/primer/alpha/
|
438
|
-
- app/components/primer/alpha/
|
439
|
-
- app/components/primer/alpha/
|
436
|
+
- app/components/primer/alpha/toggle_switch.ts
|
437
|
+
- app/components/primer/alpha/tool_tip.d.ts
|
438
|
+
- app/components/primer/alpha/tool_tip.js
|
439
|
+
- app/components/primer/alpha/tool_tip.ts
|
440
440
|
- app/components/primer/alpha/tooltip.rb
|
441
441
|
- app/components/primer/alpha/underline_nav.html.erb
|
442
442
|
- app/components/primer/alpha/underline_nav.rb
|
443
443
|
- app/components/primer/alpha/underline_panels.html.erb
|
444
444
|
- app/components/primer/alpha/underline_panels.rb
|
445
|
+
- app/components/primer/base_button.rb
|
445
446
|
- app/components/primer/base_component.rb
|
446
447
|
- app/components/primer/beta/auto_complete.rb
|
447
448
|
- app/components/primer/beta/auto_complete/auto_complete.d.ts
|
@@ -485,11 +486,12 @@ files:
|
|
485
486
|
- app/components/primer/box_component.rb
|
486
487
|
- app/components/primer/button_component.html.erb
|
487
488
|
- app/components/primer/button_component.rb
|
489
|
+
- app/components/primer/button_group.rb
|
490
|
+
- app/components/primer/clipboard_copy.d.ts
|
488
491
|
- app/components/primer/clipboard_copy.html.erb
|
492
|
+
- app/components/primer/clipboard_copy.js
|
489
493
|
- app/components/primer/clipboard_copy.rb
|
490
|
-
- app/components/primer/
|
491
|
-
- app/components/primer/clipboard_copy_component.js
|
492
|
-
- app/components/primer/clipboard_copy_component.ts
|
494
|
+
- app/components/primer/clipboard_copy.ts
|
493
495
|
- app/components/primer/close_button.rb
|
494
496
|
- app/components/primer/component.rb
|
495
497
|
- app/components/primer/conditional_wrapper.rb
|
@@ -508,12 +510,6 @@ files:
|
|
508
510
|
- app/components/primer/dropdown/menu.ts
|
509
511
|
- app/components/primer/dropdown_menu_component.html.erb
|
510
512
|
- app/components/primer/dropdown_menu_component.rb
|
511
|
-
- app/components/primer/experimental/action-bar-element.d.ts
|
512
|
-
- app/components/primer/experimental/action-bar-element.js
|
513
|
-
- app/components/primer/experimental/action-menu-element.d.ts
|
514
|
-
- app/components/primer/experimental/action-menu-element.js
|
515
|
-
- app/components/primer/experimental/overflow-menu-element.d.ts
|
516
|
-
- app/components/primer/experimental/overflow-menu-element.js
|
517
513
|
- app/components/primer/flex_component.rb
|
518
514
|
- app/components/primer/flex_item_component.rb
|
519
515
|
- app/components/primer/heading_component.rb
|
@@ -590,6 +586,7 @@ files:
|
|
590
586
|
- lib/primer/classify/utilities.rb
|
591
587
|
- lib/primer/classify/utilities.yml
|
592
588
|
- lib/primer/classify/validation.rb
|
589
|
+
- lib/primer/deprecations.rb
|
593
590
|
- lib/primer/form_components.rb
|
594
591
|
- lib/primer/forms/acts_as_component.rb
|
595
592
|
- lib/primer/forms/base.html.erb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { ActionMenuElement } from './action-menu-element';
|
2
|
-
export declare class ActionBarElement extends HTMLElement {
|
3
|
-
#private;
|
4
|
-
items: HTMLElement[];
|
5
|
-
menuItems: HTMLElement[];
|
6
|
-
moreMenu: ActionMenuElement;
|
7
|
-
connectedCallback(): void;
|
8
|
-
disconnectedCallback(): void;
|
9
|
-
}
|
10
|
-
declare global {
|
11
|
-
interface Window {
|
12
|
-
ActionBarElement: typeof ActionBarElement;
|
13
|
-
}
|
14
|
-
}
|