primer_view_components 0.0.94 → 0.0.95
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 +26 -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/dialog.rb +3 -3
- data/app/components/primer/alpha/toggle_switch.js +3 -0
- data/app/components/primer/alpha/toggle_switch.ts +3 -0
- data/app/components/primer/alpha/tool_tip.js +17 -2
- data/app/components/primer/alpha/tool_tip.ts +14 -2
- data/app/components/primer/beta/icon_button.html.erb +1 -1
- data/app/components/primer/beta/icon_button.rb +5 -3
- data/app/components/primer/button_component.rb +1 -1
- data/app/components/primer/experimental/action_bar.d.ts +14 -0
- data/app/components/primer/experimental/action_bar.js +141 -0
- data/app/components/primer/icon_button.rb +1 -1
- data/app/lib/primer/fetch_or_fallback_helper.rb +1 -1
- data/lib/primer/deprecations.rb +2 -2
- data/lib/primer/forms/builder.rb +2 -2
- data/lib/primer/forms/check_box.html.erb +5 -1
- data/lib/primer/forms/check_box.rb +11 -0
- data/lib/primer/forms/dsl/check_box_group_input.rb +17 -4
- data/lib/primer/forms/dsl/check_box_input.rb +21 -2
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/tasks/coverage.rake +1 -1
- data/lib/tasks/docs.rake +19 -15
- data/lib/tasks/static.rake +1 -1
- data/lib/tasks/test.rake +54 -0
- data/lib/tasks/utilities.rake +1 -0
- data/static/arguments.json +2042 -0
- data/static/audited_at.json +0 -2
- data/static/constants.json +0 -4
- data/static/statuses.json +2 -4
- metadata +6 -6
- data/app/components/primer/base_button.rb +0 -7
- data/app/components/primer/button_group.rb +0 -7
- data/lib/tasks/deprecated.rake +0 -27
- data/static/arguments.yml +0 -1358
data/static/audited_at.json
CHANGED
@@ -17,7 +17,6 @@
|
|
17
17
|
"Primer::Alpha::Tooltip": "",
|
18
18
|
"Primer::Alpha::UnderlineNav": "",
|
19
19
|
"Primer::Alpha::UnderlinePanels": "",
|
20
|
-
"Primer::BaseButton": "",
|
21
20
|
"Primer::BaseComponent": "",
|
22
21
|
"Primer::Beta::AutoComplete": "",
|
23
22
|
"Primer::Beta::AutoComplete::Item": "",
|
@@ -44,7 +43,6 @@
|
|
44
43
|
"Primer::Box": "",
|
45
44
|
"Primer::BoxComponent": "",
|
46
45
|
"Primer::ButtonComponent": "",
|
47
|
-
"Primer::ButtonGroup": "",
|
48
46
|
"Primer::ClipboardCopy": "",
|
49
47
|
"Primer::CloseButton": "",
|
50
48
|
"Primer::ConditionalWrapper": "",
|
data/static/constants.json
CHANGED
@@ -236,8 +236,6 @@
|
|
236
236
|
},
|
237
237
|
"Primer::Alpha::UnderlinePanels": {
|
238
238
|
},
|
239
|
-
"Primer::BaseButton": {
|
240
|
-
},
|
241
239
|
"Primer::BaseComponent": {
|
242
240
|
"SELF_CLOSING_TAGS": [
|
243
241
|
"area",
|
@@ -535,8 +533,6 @@
|
|
535
533
|
"medium"
|
536
534
|
]
|
537
535
|
},
|
538
|
-
"Primer::ButtonGroup": {
|
539
|
-
},
|
540
536
|
"Primer::ClipboardCopy": {
|
541
537
|
},
|
542
538
|
"Primer::CloseButton": {
|
data/static/statuses.json
CHANGED
@@ -17,7 +17,6 @@
|
|
17
17
|
"Primer::Alpha::Tooltip": "alpha",
|
18
18
|
"Primer::Alpha::UnderlineNav": "alpha",
|
19
19
|
"Primer::Alpha::UnderlinePanels": "alpha",
|
20
|
-
"Primer::BaseButton": "deprecated",
|
21
20
|
"Primer::BaseComponent": "beta",
|
22
21
|
"Primer::Beta::AutoComplete": "beta",
|
23
22
|
"Primer::Beta::AutoComplete::Item": "beta",
|
@@ -43,8 +42,7 @@
|
|
43
42
|
"Primer::BlankslateComponent": "deprecated",
|
44
43
|
"Primer::Box": "stable",
|
45
44
|
"Primer::BoxComponent": "deprecated",
|
46
|
-
"Primer::ButtonComponent": "
|
47
|
-
"Primer::ButtonGroup": "deprecated",
|
45
|
+
"Primer::ButtonComponent": "deprecated",
|
48
46
|
"Primer::ClipboardCopy": "beta",
|
49
47
|
"Primer::CloseButton": "deprecated",
|
50
48
|
"Primer::ConditionalWrapper": "alpha",
|
@@ -60,7 +58,7 @@
|
|
60
58
|
"Primer::HeadingComponent": "deprecated",
|
61
59
|
"Primer::HellipButton": "alpha",
|
62
60
|
"Primer::HiddenTextExpander": "deprecated",
|
63
|
-
"Primer::IconButton": "
|
61
|
+
"Primer::IconButton": "deprecated",
|
64
62
|
"Primer::Image": "alpha",
|
65
63
|
"Primer::ImageCrop": "alpha",
|
66
64
|
"Primer::LabelComponent": "beta",
|
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.95
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -442,7 +442,6 @@ files:
|
|
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
|
446
445
|
- app/components/primer/base_component.rb
|
447
446
|
- app/components/primer/beta/auto_complete.rb
|
448
447
|
- app/components/primer/beta/auto_complete/auto_complete.d.ts
|
@@ -486,7 +485,6 @@ files:
|
|
486
485
|
- app/components/primer/box_component.rb
|
487
486
|
- app/components/primer/button_component.html.erb
|
488
487
|
- app/components/primer/button_component.rb
|
489
|
-
- app/components/primer/button_group.rb
|
490
488
|
- app/components/primer/clipboard_copy.d.ts
|
491
489
|
- app/components/primer/clipboard_copy.html.erb
|
492
490
|
- app/components/primer/clipboard_copy.js
|
@@ -510,6 +508,8 @@ files:
|
|
510
508
|
- app/components/primer/dropdown/menu.ts
|
511
509
|
- app/components/primer/dropdown_menu_component.html.erb
|
512
510
|
- app/components/primer/dropdown_menu_component.rb
|
511
|
+
- app/components/primer/experimental/action_bar.d.ts
|
512
|
+
- app/components/primer/experimental/action_bar.js
|
513
513
|
- app/components/primer/flex_component.rb
|
514
514
|
- app/components/primer/flex_item_component.rb
|
515
515
|
- app/components/primer/heading_component.rb
|
@@ -691,17 +691,17 @@ files:
|
|
691
691
|
- lib/rubocop/cop/primer/system_argument_instead_of_class.rb
|
692
692
|
- lib/tasks/coverage.rake
|
693
693
|
- lib/tasks/custom_utilities.yml
|
694
|
-
- lib/tasks/deprecated.rake
|
695
694
|
- lib/tasks/docs.rake
|
696
695
|
- lib/tasks/helpers/ast_processor.rb
|
697
696
|
- lib/tasks/helpers/ast_traverser.rb
|
698
697
|
- lib/tasks/primer_view_components.rake
|
699
698
|
- lib/tasks/static.rake
|
699
|
+
- lib/tasks/test.rake
|
700
700
|
- lib/tasks/utilities.rake
|
701
701
|
- lib/yard/docs_helper.rb
|
702
702
|
- lib/yard/renders_many_handler.rb
|
703
703
|
- lib/yard/renders_one_handler.rb
|
704
|
-
- static/arguments.
|
704
|
+
- static/arguments.json
|
705
705
|
- static/assets/view-components.svg
|
706
706
|
- static/audited_at.json
|
707
707
|
- static/constants.json
|
data/lib/tasks/deprecated.rake
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "primer/deprecations"
|
4
|
-
|
5
|
-
namespace :deprecated do
|
6
|
-
task :check do
|
7
|
-
require_relative "./../primer/view_components/linters/helpers/deprecated_components_helpers"
|
8
|
-
require_relative "../primer/view_components/statuses"
|
9
|
-
|
10
|
-
puts "Checking that officially deprecated components are linted by `DeprecatedComponents` linter...."
|
11
|
-
|
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
|
16
|
-
puts "\n**************************************************************************************************************************"
|
17
|
-
raise "Please make sure that components are officially deprecated by setting the `status :deprecated` within the component file.\n"\
|
18
|
-
"Run `bundle exec rake static:dump` so the deprecated status is reflected in `statuses.json`.\n"\
|
19
|
-
"Make sure to provide an alternative component for each deprecated component in `Primer::Deprecations::DEPRECATED_COMPONENTS` (lib/primer/deprecations.rb).\n"\
|
20
|
-
"If there is no alternative to suggest, set the value to nil."
|
21
|
-
end
|
22
|
-
|
23
|
-
puts "\n============================================================================="
|
24
|
-
puts "All good!"
|
25
|
-
puts "============================================================================="
|
26
|
-
end
|
27
|
-
end
|