primer_view_components 0.4.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -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/action_bar.css +1 -1
  8. data/app/components/primer/alpha/action_bar.css.map +1 -1
  9. data/app/components/primer/alpha/action_bar.pcss +1 -1
  10. data/app/components/primer/alpha/action_list.css +1 -1
  11. data/app/components/primer/alpha/action_list.css.map +1 -1
  12. data/app/components/primer/alpha/action_list.pcss +42 -42
  13. data/app/components/primer/alpha/action_list.rb +1 -0
  14. data/app/components/primer/alpha/auto_complete.css +1 -1
  15. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  16. data/app/components/primer/alpha/auto_complete.pcss +10 -10
  17. data/app/components/primer/alpha/banner.css +1 -1
  18. data/app/components/primer/alpha/banner.css.map +1 -1
  19. data/app/components/primer/alpha/banner.pcss +16 -16
  20. data/app/components/primer/alpha/button_marketing.css +1 -1
  21. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  22. data/app/components/primer/alpha/button_marketing.pcss +9 -9
  23. data/app/components/primer/alpha/dialog.css +1 -1
  24. data/app/components/primer/alpha/dialog.css.map +1 -1
  25. data/app/components/primer/alpha/dialog.pcss +10 -9
  26. data/app/components/primer/alpha/dropdown.css +1 -1
  27. data/app/components/primer/alpha/dropdown.css.map +1 -1
  28. data/app/components/primer/alpha/dropdown.pcss +16 -16
  29. data/app/components/primer/alpha/layout.css +1 -1
  30. data/app/components/primer/alpha/layout.css.map +1 -1
  31. data/app/components/primer/alpha/layout.pcss +3 -3
  32. data/app/components/primer/alpha/menu.css +1 -1
  33. data/app/components/primer/alpha/menu.css.map +1 -1
  34. data/app/components/primer/alpha/menu.pcss +13 -13
  35. data/app/components/primer/alpha/modal_dialog.js +1 -1
  36. data/app/components/primer/alpha/modal_dialog.ts +1 -1
  37. data/app/components/primer/alpha/nav_list.rb +1 -0
  38. data/app/components/primer/alpha/segmented_control.css +1 -1
  39. data/app/components/primer/alpha/segmented_control.css.json +2 -0
  40. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  41. data/app/components/primer/alpha/segmented_control.pcss +16 -6
  42. data/app/components/primer/alpha/tab_nav.css +1 -1
  43. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  44. data/app/components/primer/alpha/tab_nav.pcss +10 -10
  45. data/app/components/primer/alpha/text_field.css +1 -1
  46. data/app/components/primer/alpha/text_field.css.map +1 -1
  47. data/app/components/primer/alpha/text_field.pcss +38 -38
  48. data/app/components/primer/alpha/toggle_switch.css +1 -1
  49. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  50. data/app/components/primer/alpha/toggle_switch.pcss +23 -23
  51. data/app/components/primer/alpha/underline_nav.css +1 -1
  52. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  53. data/app/components/primer/alpha/underline_nav.pcss +15 -15
  54. data/app/components/primer/beta/avatar.css +1 -1
  55. data/app/components/primer/beta/avatar.css.map +1 -1
  56. data/app/components/primer/beta/avatar.pcss +2 -2
  57. data/app/components/primer/beta/avatar_stack.css +1 -1
  58. data/app/components/primer/beta/avatar_stack.css.map +1 -1
  59. data/app/components/primer/beta/avatar_stack.pcss +10 -10
  60. data/app/components/primer/beta/blankslate.css +1 -1
  61. data/app/components/primer/beta/blankslate.css.map +1 -1
  62. data/app/components/primer/beta/blankslate.pcss +4 -4
  63. data/app/components/primer/beta/border_box.css +1 -1
  64. data/app/components/primer/beta/border_box.css.map +1 -1
  65. data/app/components/primer/beta/border_box.pcss +31 -31
  66. data/app/components/primer/beta/breadcrumbs.css +1 -1
  67. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  68. data/app/components/primer/beta/breadcrumbs.pcss +2 -2
  69. data/app/components/primer/beta/button.css +1 -1
  70. data/app/components/primer/beta/button.css.map +1 -1
  71. data/app/components/primer/beta/button.pcss +70 -70
  72. data/app/components/primer/beta/counter.css +1 -1
  73. data/app/components/primer/beta/counter.css.map +1 -1
  74. data/app/components/primer/beta/counter.pcss +7 -7
  75. data/app/components/primer/beta/flash.css +1 -1
  76. data/app/components/primer/beta/flash.css.map +1 -1
  77. data/app/components/primer/beta/flash.pcss +19 -19
  78. data/app/components/primer/beta/label.css +1 -1
  79. data/app/components/primer/beta/label.css.map +1 -1
  80. data/app/components/primer/beta/label.pcss +23 -23
  81. data/app/components/primer/beta/link.css +1 -1
  82. data/app/components/primer/beta/link.css.map +1 -1
  83. data/app/components/primer/beta/link.pcss +8 -8
  84. data/app/components/primer/beta/popover.css +1 -1
  85. data/app/components/primer/beta/popover.css.map +1 -1
  86. data/app/components/primer/beta/popover.pcss +10 -10
  87. data/app/components/primer/beta/progress_bar.css +1 -1
  88. data/app/components/primer/beta/progress_bar.css.map +1 -1
  89. data/app/components/primer/beta/progress_bar.pcss +1 -1
  90. data/app/components/primer/beta/state.css +1 -1
  91. data/app/components/primer/beta/state.css.map +1 -1
  92. data/app/components/primer/beta/state.pcss +8 -8
  93. data/app/components/primer/beta/subhead.css +1 -1
  94. data/app/components/primer/beta/subhead.css.map +1 -1
  95. data/app/components/primer/beta/subhead.pcss +3 -3
  96. data/app/components/primer/beta/timeline_item.css +1 -1
  97. data/app/components/primer/beta/timeline_item.css.map +1 -1
  98. data/app/components/primer/beta/timeline_item.pcss +13 -13
  99. data/lib/postcss_mixins/activeIndicatorLine.pcss +1 -1
  100. data/lib/postcss_mixins/focusBoxShadowInset.pcss +2 -2
  101. data/lib/postcss_mixins/focusOutline.pcss +1 -1
  102. data/lib/postcss_mixins/focusOutlineOnEmphasis.pcss +2 -2
  103. data/lib/postcss_mixins/targetBoxShadow.pcss +2 -1
  104. data/lib/primer/view_components/linters/accessibility.yml +2 -0
  105. data/lib/primer/view_components/linters/argument_mappers/label.rb +4 -4
  106. data/lib/primer/view_components/linters/details_menu_migration.rb +35 -0
  107. data/lib/primer/view_components/linters/label_component_migration_counter.rb +1 -1
  108. data/lib/primer/view_components/version.rb +2 -2
  109. data/previews/primer/alpha/toggle_switch_preview.rb +11 -11
  110. data/previews/primer/beta/button_preview/all_schemes.html.erb +4 -0
  111. data/previews/primer/beta/button_preview.rb +7 -2
  112. data/static/arguments.json +4 -4
  113. data/static/audited_at.json +4 -4
  114. data/static/info_arch.json +4 -4
  115. metadata +3 -2
@@ -2,24 +2,28 @@
2
2
  <%= render(Primer::Beta::Button.new(
3
3
  scheme: :secondary,
4
4
  size: :medium,
5
+ disabled: disabled
5
6
  )) do %>
6
7
  Button
7
8
  <% end %>
8
9
  <%= render(Primer::Beta::Button.new(
9
10
  scheme: :primary,
10
11
  size: :medium,
12
+ disabled: disabled
11
13
  )) do %>
12
14
  Button
13
15
  <% end %>
14
16
  <%= render(Primer::Beta::Button.new(
15
17
  scheme: :invisible,
16
18
  size: :medium,
19
+ disabled: disabled
17
20
  )) do %>
18
21
  Button
19
22
  <% end %>
20
23
  <%= render(Primer::Beta::Button.new(
21
24
  scheme: :danger,
22
25
  size: :medium,
26
+ disabled: disabled
23
27
  )) do %>
24
28
  Button
25
29
  <% end %>
@@ -161,8 +161,13 @@ module Primer
161
161
 
162
162
  # @label All schemes
163
163
  # @snapshot
164
- def all_schemes
165
- render_with_template(locals: {})
164
+ # @param disabled toggle
165
+ def all_schemes(
166
+ disabled: false
167
+ )
168
+ render_with_template(locals: {
169
+ disabled: disabled,
170
+ })
166
171
  end
167
172
 
168
173
  # @label Full width
@@ -52,7 +52,7 @@
52
52
  {
53
53
  "component": "ActionList",
54
54
  "status": "alpha",
55
- "a11y_reviewed": false,
55
+ "a11y_reviewed": true,
56
56
  "short_name": "ActionList",
57
57
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list.rb",
58
58
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/default/",
@@ -377,7 +377,7 @@
377
377
  {
378
378
  "component": "ActionMenu::List",
379
379
  "status": "alpha",
380
- "a11y_reviewed": false,
380
+ "a11y_reviewed": true,
381
381
  "short_name": "ActionMenuList",
382
382
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/list.rb",
383
383
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/list/default/",
@@ -1427,7 +1427,7 @@
1427
1427
  {
1428
1428
  "component": "NavList",
1429
1429
  "status": "alpha",
1430
- "a11y_reviewed": false,
1430
+ "a11y_reviewed": true,
1431
1431
  "short_name": "NavList",
1432
1432
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list.rb",
1433
1433
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/default/",
@@ -1471,7 +1471,7 @@
1471
1471
  {
1472
1472
  "component": "NavList::Group",
1473
1473
  "status": "alpha",
1474
- "a11y_reviewed": false,
1474
+ "a11y_reviewed": true,
1475
1475
  "short_name": "NavListGroup",
1476
1476
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/group.rb",
1477
1477
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/group/default/",
@@ -2,13 +2,13 @@
2
2
  "Primer::Alpha::ActionBar": "",
3
3
  "Primer::Alpha::ActionBar::Divider": "",
4
4
  "Primer::Alpha::ActionBar::Item": "",
5
- "Primer::Alpha::ActionList": "",
5
+ "Primer::Alpha::ActionList": "2023-07-10",
6
6
  "Primer::Alpha::ActionList::Divider": "",
7
7
  "Primer::Alpha::ActionList::FormWrapper": "",
8
8
  "Primer::Alpha::ActionList::Heading": "",
9
9
  "Primer::Alpha::ActionList::Item": "",
10
10
  "Primer::Alpha::ActionMenu": "",
11
- "Primer::Alpha::ActionMenu::List": "",
11
+ "Primer::Alpha::ActionMenu::List": "2023-07-10",
12
12
  "Primer::Alpha::AutoComplete": "",
13
13
  "Primer::Alpha::AutoComplete::Item": "",
14
14
  "Primer::Alpha::Banner": "",
@@ -33,9 +33,9 @@
33
33
  "Primer::Alpha::Layout::Sidebar": "",
34
34
  "Primer::Alpha::Menu": "",
35
35
  "Primer::Alpha::MultiInput": "",
36
- "Primer::Alpha::NavList": "",
36
+ "Primer::Alpha::NavList": "2023-07-10",
37
37
  "Primer::Alpha::NavList::Divider": "",
38
- "Primer::Alpha::NavList::Group": "",
38
+ "Primer::Alpha::NavList::Group": "2023-07-10",
39
39
  "Primer::Alpha::NavList::Heading": "",
40
40
  "Primer::Alpha::NavList::Item": "",
41
41
  "Primer::Alpha::Navigation::Tab": "",
@@ -190,7 +190,7 @@
190
190
  "requires_js": true,
191
191
  "component": "ActionList",
192
192
  "status": "alpha",
193
- "a11y_reviewed": false,
193
+ "a11y_reviewed": true,
194
194
  "short_name": "ActionList",
195
195
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list.rb",
196
196
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/default/",
@@ -1475,7 +1475,7 @@
1475
1475
  "requires_js": false,
1476
1476
  "component": "ActionMenu::List",
1477
1477
  "status": "alpha",
1478
- "a11y_reviewed": false,
1478
+ "a11y_reviewed": true,
1479
1479
  "short_name": "ActionMenuList",
1480
1480
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/list.rb",
1481
1481
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/list/default/",
@@ -4600,7 +4600,7 @@
4600
4600
  "requires_js": true,
4601
4601
  "component": "NavList",
4602
4602
  "status": "alpha",
4603
- "a11y_reviewed": false,
4603
+ "a11y_reviewed": true,
4604
4604
  "short_name": "NavList",
4605
4605
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list.rb",
4606
4606
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/default/",
@@ -5013,7 +5013,7 @@
5013
5013
  "requires_js": true,
5014
5014
  "component": "NavList::Group",
5015
5015
  "status": "alpha",
5016
- "a11y_reviewed": false,
5016
+ "a11y_reviewed": true,
5017
5017
  "short_name": "NavListGroup",
5018
5018
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/group.rb",
5019
5019
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/group/default/",
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.4.0
4
+ version: 0.5.1
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: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -926,6 +926,7 @@ files:
926
926
  - lib/primer/view_components/linters/clipboard_copy_component_migration_counter.rb
927
927
  - lib/primer/view_components/linters/close_button_component_migration_counter.rb
928
928
  - lib/primer/view_components/linters/deprecated_components_counter.rb
929
+ - lib/primer/view_components/linters/details_menu_migration.rb
929
930
  - lib/primer/view_components/linters/disallow_action_list.rb
930
931
  - lib/primer/view_components/linters/disallow_component_css_counter.rb
931
932
  - lib/primer/view_components/linters/flash_migration_counter.rb