primer_view_components 0.0.93 → 0.0.94

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/components/primer/alpha/{modal-dialog-element.d.ts → modal_dialog.d.ts} +0 -0
  6. data/app/components/primer/alpha/{modal-dialog-element.js → modal_dialog.js} +0 -0
  7. data/app/components/primer/alpha/{modal-dialog-element.ts → modal_dialog.ts} +0 -0
  8. data/app/components/primer/alpha/{toggle-switch-element.d.ts → toggle_switch.d.ts} +0 -0
  9. data/app/components/primer/alpha/{toggle-switch-element.js → toggle_switch.js} +4 -2
  10. data/app/components/primer/alpha/{toggle-switch-element.ts → toggle_switch.ts} +5 -3
  11. data/app/components/primer/alpha/{tool-tip-element.d.ts → tool_tip.d.ts} +0 -0
  12. data/app/components/primer/alpha/{tool-tip-element.js → tool_tip.js} +0 -0
  13. data/app/components/primer/alpha/{tool-tip-element.ts → tool_tip.ts} +0 -0
  14. data/app/components/primer/base_button.rb +7 -0
  15. data/app/components/primer/beta/avatar_stack.rb +1 -1
  16. data/app/components/primer/beta/base_button.rb +0 -2
  17. data/app/components/primer/button_group.rb +7 -0
  18. data/app/components/primer/{clipboard_copy_component.d.ts → clipboard_copy.d.ts} +0 -0
  19. data/app/components/primer/{clipboard_copy_component.js → clipboard_copy.js} +1 -1
  20. data/app/components/primer/{clipboard_copy_component.ts → clipboard_copy.ts} +1 -1
  21. data/app/components/primer/primer.d.ts +7 -7
  22. data/app/components/primer/primer.js +7 -7
  23. data/app/components/primer/primer.ts +7 -7
  24. data/app/lib/primer/status/dsl.rb +2 -1
  25. data/lib/primer/deprecations.rb +37 -0
  26. data/lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb +8 -18
  27. data/lib/primer/view_components/version.rb +1 -1
  28. data/lib/rubocop/cop/primer/component_name_migration.rb +7 -15
  29. data/lib/tasks/deprecated.rake +7 -2
  30. data/lib/tasks/docs.rake +2 -1
  31. data/static/arguments.yml +34 -0
  32. data/static/audited_at.json +2 -0
  33. data/static/constants.json +4 -0
  34. data/static/statuses.json +2 -0
  35. metadata +17 -20
  36. data/app/components/primer/experimental/action-bar-element.d.ts +0 -14
  37. data/app/components/primer/experimental/action-bar-element.js +0 -139
  38. data/app/components/primer/experimental/action-menu-element.d.ts +0 -31
  39. data/app/components/primer/experimental/action-menu-element.js +0 -334
  40. data/app/components/primer/experimental/overflow-menu-element.d.ts +0 -13
  41. data/app/components/primer/experimental/overflow-menu-element.js +0 -113
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Primer
4
+ class BaseButton < Primer::Beta::BaseButton
5
+ status :deprecated
6
+ end
7
+ end
@@ -70,7 +70,7 @@ module Primer
70
70
 
71
71
  def body_component
72
72
  if @tooltipped
73
- Primer::Tooltip.new(**@body_arguments)
73
+ Primer::Tooltip.new(**@body_arguments) # rubocop:disable Primer/ComponentNameMigration
74
74
  else
75
75
  Primer::BaseComponent.new(**@body_arguments)
76
76
  end
@@ -43,5 +43,3 @@ module Primer
43
43
  end
44
44
  end
45
45
  end
46
-
47
- Primer::BaseButton = Primer::Beta::BaseButton
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Primer
4
+ class ButtonGroup < Primer::Beta::ButtonGroup
5
+ status :deprecated
6
+ end
7
+ end
@@ -23,7 +23,7 @@ function showCheck(button) {
23
23
  showSVG(checkIcon);
24
24
  }
25
25
  const clipboardCopyElementTimers = new WeakMap();
26
- document.addEventListener('clipboard-copy', function ({ target }) {
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', function ({target}) {
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 './clipboard_copy_component';
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 './clipboard_copy_component';
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 './clipboard_copy_component'
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'
@@ -20,7 +20,8 @@ module Primer
20
20
  alpha: :alpha,
21
21
  beta: :beta,
22
22
  stable: :stable,
23
- deprecated: :deprecated
23
+ deprecated: :deprecated,
24
+ experimental: :experimental
24
25
  }.freeze
25
26
 
26
27
  class UnknownStatusError < StandardError; end
@@ -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
- message += " Try #{COMPONENT_TO_USE_INSTEAD[component]} instead." if COMPONENT_TO_USE_INSTEAD.fetch(component).present?
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
 
@@ -5,7 +5,7 @@ module Primer
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 93
8
+ PATCH = 94
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
@@ -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? && DEPRECATIONS.key?(node.receiver.const_name)
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
- corrector.replace(node, DEPRECATIONS[node.const_name])
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
@@ -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
- if Primer::ViewComponents::STATUSES.select { |_, value| value == "deprecated" }.keys.sort != ERBLint::Linters::Helpers::DeprecatedComponentsHelpers::COMPONENT_TO_USE_INSTEAD.keys.sort
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 `ERBLint::Linters::Helpers::DeprecatedComponentsHelpers::COMPONENT_TO_USE_INSTEAD`.\n"\
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
@@ -87,7 +87,8 @@ namespace :docs do
87
87
  Primer::Alpha::UnderlinePanels,
88
88
  Primer::Alpha::TabNav,
89
89
  Primer::Alpha::TabPanels,
90
- Primer::Alpha::Tooltip
90
+ Primer::Alpha::Tooltip,
91
+ Primer::Alpha::ToggleSwitch
91
92
  ]
92
93
 
93
94
  js_components = [
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:
@@ -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": "",
@@ -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.93
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-01 00:00:00.000000000 Z
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/modal-dialog-element.d.ts
425
- - app/components/primer/alpha/modal-dialog-element.js
426
- - app/components/primer/alpha/modal-dialog-element.ts
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/toggle-switch-element.d.ts
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/tool-tip-element.d.ts
438
- - app/components/primer/alpha/tool-tip-element.js
439
- - app/components/primer/alpha/tool-tip-element.ts
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/clipboard_copy_component.d.ts
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
- }