primer_view_components 0.29.0 → 0.31.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 +43 -0
- data/app/assets/javascripts/app/components/primer/alpha/select_panel_element.d.ts +0 -1
- data/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +4 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- 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_list/item.html.erb +1 -5
- data/app/components/primer/alpha/action_list/item.rb +10 -3
- 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 +1 -1
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +1 -0
- data/app/components/primer/alpha/select_panel.rb +2 -1
- data/app/components/primer/alpha/select_panel_element.d.ts +0 -1
- data/app/components/primer/alpha/select_panel_element.js +72 -18
- data/app/components/primer/alpha/select_panel_element.ts +77 -22
- data/app/components/primer/alpha/toggle_switch.d.ts +4 -0
- data/app/components/primer/alpha/toggle_switch.js +16 -4
- data/app/components/primer/alpha/toggle_switch.rb +4 -2
- data/app/components/primer/alpha/toggle_switch.ts +19 -4
- data/app/components/primer/alpha/tool_tip.js +2 -2
- data/app/components/primer/alpha/tool_tip.ts +2 -2
- data/app/components/primer/beta/relative_time.rb +4 -4
- 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 +4 -0
- data/lib/primer/view_components/linters/details_menu_migration.rb +30 -1
- data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_list_preview.rb +1 -1
- data/previews/primer/alpha/select_panel_preview/list_of_links.html.erb +16 -0
- data/previews/primer/alpha/select_panel_preview/playground.html.erb +2 -1
- data/previews/primer/alpha/select_panel_preview.rb +12 -1
- data/previews/primer/alpha/toggle_switch_preview.rb +4 -0
- data/static/arguments.json +11 -5
- data/static/info_arch.json +77 -11
- data/static/previews.json +27 -0
- metadata +3 -2
data/static/arguments.json
CHANGED
@@ -2986,6 +2986,12 @@
|
|
2986
2986
|
"default": "`:start`",
|
2987
2987
|
"description": "Which side of the toggle switch to render the status label. One of `:end` or `:start`."
|
2988
2988
|
},
|
2989
|
+
{
|
2990
|
+
"name": "turbo",
|
2991
|
+
"type": "Boolean",
|
2992
|
+
"default": "`false`",
|
2993
|
+
"description": "Whether or not to request a turbo stream and render the response as such."
|
2994
|
+
},
|
2989
2995
|
{
|
2990
2996
|
"name": "system_arguments",
|
2991
2997
|
"type": "Hash",
|
@@ -4330,9 +4336,9 @@
|
|
4330
4336
|
},
|
4331
4337
|
{
|
4332
4338
|
"name": "prefix",
|
4333
|
-
"type": "
|
4339
|
+
"type": "String",
|
4334
4340
|
"default": "`nil`",
|
4335
|
-
"description": "What to prefix the relative
|
4341
|
+
"description": "What to prefix the relative time display with."
|
4336
4342
|
},
|
4337
4343
|
{
|
4338
4344
|
"name": "second",
|
@@ -4384,7 +4390,7 @@
|
|
4384
4390
|
},
|
4385
4391
|
{
|
4386
4392
|
"name": "threshold",
|
4387
|
-
"type": "
|
4393
|
+
"type": "String",
|
4388
4394
|
"default": "`nil`",
|
4389
4395
|
"description": "The threshold, in ISO-8601 'durations' format, at which relative time displays become absolute."
|
4390
4396
|
},
|
@@ -4408,13 +4414,13 @@
|
|
4408
4414
|
},
|
4409
4415
|
{
|
4410
4416
|
"name": "lang",
|
4411
|
-
"type": "
|
4417
|
+
"type": "String",
|
4412
4418
|
"default": "`nil`",
|
4413
4419
|
"description": "The language to use."
|
4414
4420
|
},
|
4415
4421
|
{
|
4416
4422
|
"name": "title",
|
4417
|
-
"type": "
|
4423
|
+
"type": "String",
|
4418
4424
|
"default": "`nil`",
|
4419
4425
|
"description": "Provide a custom title to the element."
|
4420
4426
|
},
|
data/static/info_arch.json
CHANGED
@@ -989,9 +989,20 @@
|
|
989
989
|
"slots": [
|
990
990
|
{
|
991
991
|
"name": "description",
|
992
|
-
"description": "Description content that complements the item's label
|
992
|
+
"description": "Description content that complements the item's label, with optional test_selector.\nSee `ActionList`'s `description_scheme` argument for layout options.",
|
993
993
|
"parameters": [
|
994
|
-
|
994
|
+
{
|
995
|
+
"name": "legacy_content",
|
996
|
+
"type": "String",
|
997
|
+
"default": "N/A",
|
998
|
+
"description": "Slot content, provided for backwards-compatibility. Pass a content block instead, or call `with_content`, eg. `component.with_description { \"My description\" }` or `component.with_description.with_content(\"My description\")`."
|
999
|
+
},
|
1000
|
+
{
|
1001
|
+
"name": "test_selector",
|
1002
|
+
"type": "String",
|
1003
|
+
"default": "N/A",
|
1004
|
+
"description": "The value of this argument is set as the value of a `data-test-selector` HTML attribute on the description element."
|
1005
|
+
}
|
995
1006
|
]
|
996
1007
|
},
|
997
1008
|
{
|
@@ -5547,9 +5558,20 @@
|
|
5547
5558
|
},
|
5548
5559
|
{
|
5549
5560
|
"name": "description",
|
5550
|
-
"description": "Description content that complements the item's label
|
5561
|
+
"description": "Description content that complements the item's label, with optional test_selector.\nSee `ActionList`'s `description_scheme` argument for layout options.",
|
5551
5562
|
"parameters": [
|
5552
|
-
|
5563
|
+
{
|
5564
|
+
"name": "legacy_content",
|
5565
|
+
"type": "String",
|
5566
|
+
"default": "N/A",
|
5567
|
+
"description": "Slot content, provided for backwards-compatibility. Pass a content block instead, or call `with_content`, eg. `component.with_description { \"My description\" }` or `component.with_description.with_content(\"My description\")`."
|
5568
|
+
},
|
5569
|
+
{
|
5570
|
+
"name": "test_selector",
|
5571
|
+
"type": "String",
|
5572
|
+
"default": "N/A",
|
5573
|
+
"description": "The value of this argument is set as the value of a `data-test-selector` HTML attribute on the description element."
|
5574
|
+
}
|
5553
5575
|
]
|
5554
5576
|
},
|
5555
5577
|
{
|
@@ -8083,6 +8105,19 @@
|
|
8083
8105
|
"color-contrast"
|
8084
8106
|
]
|
8085
8107
|
}
|
8108
|
+
},
|
8109
|
+
{
|
8110
|
+
"preview_path": "primer/alpha/select_panel/list_of_links",
|
8111
|
+
"name": "list_of_links",
|
8112
|
+
"snapshot": "interactive",
|
8113
|
+
"skip_rules": {
|
8114
|
+
"wont_fix": [
|
8115
|
+
"region"
|
8116
|
+
],
|
8117
|
+
"will_fix": [
|
8118
|
+
"color-contrast"
|
8119
|
+
]
|
8120
|
+
}
|
8086
8121
|
}
|
8087
8122
|
],
|
8088
8123
|
"subcomponents": [
|
@@ -9334,6 +9369,12 @@
|
|
9334
9369
|
"default": "`:start`",
|
9335
9370
|
"description": "Which side of the toggle switch to render the status label. One of `:end` or `:start`."
|
9336
9371
|
},
|
9372
|
+
{
|
9373
|
+
"name": "turbo",
|
9374
|
+
"type": "Boolean",
|
9375
|
+
"default": "`false`",
|
9376
|
+
"description": "Whether or not to request a turbo stream and render the response as such."
|
9377
|
+
},
|
9337
9378
|
{
|
9338
9379
|
"name": "system_arguments",
|
9339
9380
|
"type": "Hash",
|
@@ -9501,6 +9542,20 @@
|
|
9501
9542
|
"color-contrast"
|
9502
9543
|
]
|
9503
9544
|
}
|
9545
|
+
},
|
9546
|
+
{
|
9547
|
+
"preview_path": "primer/alpha/toggle_switch/with_turbo",
|
9548
|
+
"name": "with_turbo",
|
9549
|
+
"snapshot": "false",
|
9550
|
+
"skip_rules": {
|
9551
|
+
"wont_fix": [
|
9552
|
+
"region",
|
9553
|
+
"button-name"
|
9554
|
+
],
|
9555
|
+
"will_fix": [
|
9556
|
+
"color-contrast"
|
9557
|
+
]
|
9558
|
+
}
|
9504
9559
|
}
|
9505
9560
|
],
|
9506
9561
|
"subcomponents": [
|
@@ -14667,9 +14722,20 @@
|
|
14667
14722
|
},
|
14668
14723
|
{
|
14669
14724
|
"name": "description",
|
14670
|
-
"description": "Description content that complements the item's label
|
14725
|
+
"description": "Description content that complements the item's label, with optional test_selector.\nSee `ActionList`'s `description_scheme` argument for layout options.",
|
14671
14726
|
"parameters": [
|
14672
|
-
|
14727
|
+
{
|
14728
|
+
"name": "legacy_content",
|
14729
|
+
"type": "String",
|
14730
|
+
"default": "N/A",
|
14731
|
+
"description": "Slot content, provided for backwards-compatibility. Pass a content block instead, or call `with_content`, eg. `component.with_description { \"My description\" }` or `component.with_description.with_content(\"My description\")`."
|
14732
|
+
},
|
14733
|
+
{
|
14734
|
+
"name": "test_selector",
|
14735
|
+
"type": "String",
|
14736
|
+
"default": "N/A",
|
14737
|
+
"description": "The value of this argument is set as the value of a `data-test-selector` HTML attribute on the description element."
|
14738
|
+
}
|
14673
14739
|
]
|
14674
14740
|
},
|
14675
14741
|
{
|
@@ -15329,9 +15395,9 @@
|
|
15329
15395
|
},
|
15330
15396
|
{
|
15331
15397
|
"name": "prefix",
|
15332
|
-
"type": "
|
15398
|
+
"type": "String",
|
15333
15399
|
"default": "`nil`",
|
15334
|
-
"description": "What to prefix the relative
|
15400
|
+
"description": "What to prefix the relative time display with."
|
15335
15401
|
},
|
15336
15402
|
{
|
15337
15403
|
"name": "second",
|
@@ -15383,7 +15449,7 @@
|
|
15383
15449
|
},
|
15384
15450
|
{
|
15385
15451
|
"name": "threshold",
|
15386
|
-
"type": "
|
15452
|
+
"type": "String",
|
15387
15453
|
"default": "`nil`",
|
15388
15454
|
"description": "The threshold, in ISO-8601 'durations' format, at which relative time displays become absolute."
|
15389
15455
|
},
|
@@ -15407,13 +15473,13 @@
|
|
15407
15473
|
},
|
15408
15474
|
{
|
15409
15475
|
"name": "lang",
|
15410
|
-
"type": "
|
15476
|
+
"type": "String",
|
15411
15477
|
"default": "`nil`",
|
15412
15478
|
"description": "The language to use."
|
15413
15479
|
},
|
15414
15480
|
{
|
15415
15481
|
"name": "title",
|
15416
|
-
"type": "
|
15482
|
+
"type": "String",
|
15417
15483
|
"default": "`nil`",
|
15418
15484
|
"description": "Provide a custom title to the element."
|
15419
15485
|
},
|
data/static/previews.json
CHANGED
@@ -6160,6 +6160,19 @@
|
|
6160
6160
|
"color-contrast"
|
6161
6161
|
]
|
6162
6162
|
}
|
6163
|
+
},
|
6164
|
+
{
|
6165
|
+
"preview_path": "primer/alpha/select_panel/list_of_links",
|
6166
|
+
"name": "list_of_links",
|
6167
|
+
"snapshot": "interactive",
|
6168
|
+
"skip_rules": {
|
6169
|
+
"wont_fix": [
|
6170
|
+
"region"
|
6171
|
+
],
|
6172
|
+
"will_fix": [
|
6173
|
+
"color-contrast"
|
6174
|
+
]
|
6175
|
+
}
|
6163
6176
|
}
|
6164
6177
|
]
|
6165
6178
|
},
|
@@ -7213,6 +7226,20 @@
|
|
7213
7226
|
"color-contrast"
|
7214
7227
|
]
|
7215
7228
|
}
|
7229
|
+
},
|
7230
|
+
{
|
7231
|
+
"preview_path": "primer/alpha/toggle_switch/with_turbo",
|
7232
|
+
"name": "with_turbo",
|
7233
|
+
"snapshot": "false",
|
7234
|
+
"skip_rules": {
|
7235
|
+
"wont_fix": [
|
7236
|
+
"region",
|
7237
|
+
"button-name"
|
7238
|
+
],
|
7239
|
+
"will_fix": [
|
7240
|
+
"color-contrast"
|
7241
|
+
]
|
7242
|
+
}
|
7216
7243
|
}
|
7217
7244
|
]
|
7218
7245
|
},
|
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.31.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: 2024-07
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -792,6 +792,7 @@ files:
|
|
792
792
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch_initial_failure.html.erb
|
793
793
|
- previews/primer/alpha/select_panel_preview/eventually_local_fetch_no_results.html.erb
|
794
794
|
- previews/primer/alpha/select_panel_preview/footer_buttons.html.erb
|
795
|
+
- previews/primer/alpha/select_panel_preview/list_of_links.html.erb
|
795
796
|
- previews/primer/alpha/select_panel_preview/local_fetch.html.erb
|
796
797
|
- previews/primer/alpha/select_panel_preview/local_fetch_no_results.html.erb
|
797
798
|
- previews/primer/alpha/select_panel_preview/multiselect.html.erb
|