primer_view_components 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_bar.pcss +1 -1
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +42 -42
- data/app/components/primer/alpha/action_list.rb +1 -0
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/auto_complete.pcss +10 -10
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +16 -16
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.pcss +9 -9
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +9 -9
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/dropdown.pcss +16 -16
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/layout.pcss +3 -3
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/menu.pcss +13 -13
- data/app/components/primer/alpha/nav_list.rb +1 -0
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +2 -0
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +16 -6
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.pcss +10 -10
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +38 -38
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/toggle_switch.pcss +23 -23
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.pcss +15 -15
- data/app/components/primer/beta/avatar.css +1 -1
- data/app/components/primer/beta/avatar.css.map +1 -1
- data/app/components/primer/beta/avatar.pcss +2 -2
- data/app/components/primer/beta/avatar_stack.css +1 -1
- data/app/components/primer/beta/avatar_stack.css.map +1 -1
- data/app/components/primer/beta/avatar_stack.pcss +10 -10
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.pcss +4 -4
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/border_box.pcss +31 -31
- data/app/components/primer/beta/breadcrumbs.css +1 -1
- data/app/components/primer/beta/breadcrumbs.css.map +1 -1
- data/app/components/primer/beta/breadcrumbs.pcss +2 -2
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +70 -70
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/counter.pcss +7 -7
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.pcss +19 -19
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/label.pcss +23 -23
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/link.pcss +8 -8
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/popover.pcss +10 -10
- data/app/components/primer/beta/progress_bar.css +1 -1
- data/app/components/primer/beta/progress_bar.css.map +1 -1
- data/app/components/primer/beta/progress_bar.pcss +1 -1
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/state.pcss +8 -8
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +3 -3
- data/app/components/primer/beta/timeline_item.css +1 -1
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/beta/timeline_item.pcss +13 -13
- data/lib/postcss_mixins/activeIndicatorLine.pcss +1 -1
- data/lib/postcss_mixins/focusBoxShadowInset.pcss +2 -2
- data/lib/postcss_mixins/focusOutline.pcss +1 -1
- data/lib/postcss_mixins/focusOutlineOnEmphasis.pcss +2 -2
- data/lib/postcss_mixins/targetBoxShadow.pcss +2 -1
- data/lib/primer/view_components/linters/accessibility.yml +2 -0
- data/lib/primer/view_components/linters/argument_mappers/label.rb +4 -4
- data/lib/primer/view_components/linters/details_menu_migration.rb +35 -0
- data/lib/primer/view_components/linters/label_component_migration_counter.rb +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/toggle_switch_preview.rb +11 -11
- data/previews/primer/beta/button_preview/all_schemes.html.erb +4 -0
- data/previews/primer/beta/button_preview.rb +7 -2
- data/static/arguments.json +4 -4
- data/static/audited_at.json +4 -4
- data/static/info_arch.json +4 -4
- 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
|
-
|
165
|
-
|
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
|
data/static/arguments.json
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
{
|
53
53
|
"component": "ActionList",
|
54
54
|
"status": "alpha",
|
55
|
-
"a11y_reviewed":
|
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":
|
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":
|
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":
|
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/",
|
data/static/audited_at.json
CHANGED
@@ -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": "",
|
data/static/info_arch.json
CHANGED
@@ -190,7 +190,7 @@
|
|
190
190
|
"requires_js": true,
|
191
191
|
"component": "ActionList",
|
192
192
|
"status": "alpha",
|
193
|
-
"a11y_reviewed":
|
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":
|
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":
|
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":
|
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
|
+
version: 0.5.0
|
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-
|
11
|
+
date: 2023-07-24 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
|