primer_view_components 0.0.94 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -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/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/dialog.rb +3 -3
  8. data/app/components/primer/alpha/toggle_switch.js +3 -0
  9. data/app/components/primer/alpha/toggle_switch.ts +3 -0
  10. data/app/components/primer/alpha/tool_tip.js +17 -2
  11. data/app/components/primer/alpha/tool_tip.ts +14 -2
  12. data/app/components/primer/beta/button.pcss +27 -15
  13. data/app/components/primer/beta/button.rb +11 -16
  14. data/app/components/primer/beta/icon_button.html.erb +1 -1
  15. data/app/components/primer/beta/icon_button.rb +5 -3
  16. data/app/components/primer/button_component.rb +1 -1
  17. data/app/components/primer/experimental/action_bar.d.ts +14 -0
  18. data/app/components/primer/experimental/action_bar.js +141 -0
  19. data/app/components/primer/icon_button.rb +1 -1
  20. data/app/components/primer/octicon_component.rb +0 -4
  21. data/app/components/primer/octicon_symbols_component.rb +0 -4
  22. data/app/lib/primer/fetch_or_fallback_helper.rb +1 -1
  23. data/lib/primer/deprecations.rb +2 -2
  24. data/lib/primer/forms/builder.rb +2 -2
  25. data/lib/primer/forms/check_box.html.erb +5 -1
  26. data/lib/primer/forms/check_box.rb +11 -0
  27. data/lib/primer/forms/dsl/check_box_group_input.rb +17 -4
  28. data/lib/primer/forms/dsl/check_box_input.rb +21 -2
  29. data/lib/primer/view_components/engine.rb +2 -1
  30. data/lib/primer/view_components/version.rb +1 -1
  31. data/lib/tasks/coverage.rake +1 -1
  32. data/lib/tasks/docs.rake +19 -15
  33. data/lib/tasks/static.rake +1 -1
  34. data/lib/tasks/test.rake +54 -0
  35. data/lib/tasks/utilities.rake +1 -0
  36. data/static/arguments.json +2042 -0
  37. data/static/audited_at.json +0 -2
  38. data/static/constants.json +1 -8
  39. data/static/statuses.json +2 -4
  40. metadata +6 -6
  41. data/app/components/primer/base_button.rb +0 -7
  42. data/app/components/primer/button_group.rb +0 -7
  43. data/lib/tasks/deprecated.rake +0 -27
  44. data/static/arguments.yml +0 -1358
@@ -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": "",
@@ -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",
@@ -386,22 +384,19 @@
386
384
  "DEFAULT_ALIGN_CONTENT": "center",
387
385
  "DEFAULT_SCHEME": "default",
388
386
  "DEFAULT_SIZE": "medium",
389
- "LINK_SCHEME": "link",
390
387
  "SCHEME_MAPPINGS": {
391
388
  "default": "Button--secondary",
392
389
  "primary": "Button--primary",
393
390
  "secondary": "Button--secondary",
394
391
  "danger": "Button--danger",
395
- "outline": "btn-outline",
396
392
  "invisible": "Button--invisible",
397
- "link": "btn-link"
393
+ "link": "Button--link"
398
394
  },
399
395
  "SCHEME_OPTIONS": [
400
396
  "default",
401
397
  "primary",
402
398
  "secondary",
403
399
  "danger",
404
- "outline",
405
400
  "invisible",
406
401
  "link"
407
402
  ],
@@ -535,8 +530,6 @@
535
530
  "medium"
536
531
  ]
537
532
  },
538
- "Primer::ButtonGroup": {
539
- },
540
533
  "Primer::ClipboardCopy": {
541
534
  },
542
535
  "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": "beta",
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": "beta",
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.94
4
+ version: 0.0.96
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-13 00:00:00.000000000 Z
11
+ date: 2022-09-26 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.yml
704
+ - static/arguments.json
705
705
  - static/assets/view-components.svg
706
706
  - static/audited_at.json
707
707
  - static/constants.json
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Primer
4
- class BaseButton < Primer::Beta::BaseButton
5
- status :deprecated
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Primer
4
- class ButtonGroup < Primer::Beta::ButtonGroup
5
- status :deprecated
6
- end
7
- end
@@ -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