primer_view_components 0.43.2 → 0.43.3

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts +4 -3
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_list.js +0 -2
  9. data/app/components/primer/alpha/action_list.ts +0 -2
  10. data/app/components/primer/alpha/toggle_switch.js +1 -0
  11. data/app/components/primer/alpha/toggle_switch.ts +1 -0
  12. data/app/components/primer/beta/breadcrumbs.css +1 -1
  13. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  14. data/app/components/primer/beta/breadcrumbs.pcss +1 -0
  15. data/app/components/primer/beta/details.rb +22 -12
  16. data/app/components/primer/beta/details_toggle_element.d.ts +4 -3
  17. data/app/components/primer/beta/details_toggle_element.js +12 -7
  18. data/app/components/primer/beta/details_toggle_element.ts +12 -7
  19. data/app/components/primer/beta/nav_list.js +0 -1
  20. data/app/components/primer/beta/nav_list.ts +0 -1
  21. data/app/components/primer/beta/nav_list_group_element.js +1 -0
  22. data/app/components/primer/beta/nav_list_group_element.ts +1 -0
  23. data/app/lib/primer/forms/acts_as_component.rb +0 -2
  24. data/config/routes.rb +27 -0
  25. data/lib/primer/accessibility.rb +3 -0
  26. data/lib/primer/view_components/linters/autocorrectable.rb +1 -1
  27. data/lib/primer/view_components/linters/migrations/iconbutton_component.rb +4 -7
  28. data/lib/primer/view_components/linters/migrations/truncate_component.rb +4 -7
  29. data/lib/primer/view_components/version.rb +1 -1
  30. data/lib/rubocop/cop/primer/base_cop.rb +1 -1
  31. data/lib/rubocop/cop/primer/component_name_migration.rb +7 -8
  32. data/lib/rubocop/cop/primer/deprecated_arguments.rb +7 -8
  33. data/lib/rubocop/cop/primer/deprecated_button_arguments.rb +5 -6
  34. data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +6 -7
  35. data/lib/rubocop/cop/primer/deprecated_label_variants.rb +7 -14
  36. data/lib/rubocop/cop/primer/no_tag_memoize.rb +1 -1
  37. data/lib/rubocop/cop/primer/primer_octicon.rb +5 -6
  38. data/previews/primer/beta/breadcrumbs_preview/with_long_items.html.erb +13 -0
  39. data/previews/primer/beta/breadcrumbs_preview.rb +6 -0
  40. data/previews/primer/beta/details_preview.rb +16 -0
  41. data/static/arguments.json +67 -37
  42. data/static/audited_at.json +1 -0
  43. data/static/constants.json +13 -2
  44. data/static/info_arch.json +638 -1407
  45. data/static/previews.json +112 -0
  46. data/static/statuses.json +1 -0
  47. metadata +4 -2
data/static/previews.json CHANGED
@@ -1556,6 +1556,19 @@
1556
1556
  ]
1557
1557
  }
1558
1558
  },
1559
+ {
1560
+ "preview_path": "primer/alpha/banner/scheme_upsell",
1561
+ "name": "scheme_upsell",
1562
+ "snapshot": "true",
1563
+ "skip_rules": {
1564
+ "wont_fix": [
1565
+ "region"
1566
+ ],
1567
+ "will_fix": [
1568
+ "color-contrast"
1569
+ ]
1570
+ }
1571
+ },
1559
1572
  {
1560
1573
  "preview_path": "primer/alpha/banner/dismissible",
1561
1574
  "name": "dismissible",
@@ -2076,6 +2089,19 @@
2076
2089
  "color-contrast"
2077
2090
  ]
2078
2091
  }
2092
+ },
2093
+ {
2094
+ "preview_path": "primer/beta/breadcrumbs/with_long_items",
2095
+ "name": "with_long_items",
2096
+ "snapshot": "true",
2097
+ "skip_rules": {
2098
+ "wont_fix": [
2099
+ "region"
2100
+ ],
2101
+ "will_fix": [
2102
+ "color-contrast"
2103
+ ]
2104
+ }
2079
2105
  }
2080
2106
  ]
2081
2107
  },
@@ -3144,6 +3170,19 @@
3144
3170
  "color-contrast"
3145
3171
  ]
3146
3172
  }
3173
+ },
3174
+ {
3175
+ "preview_path": "primer/beta/details/with_aria_labels",
3176
+ "name": "with_aria_labels",
3177
+ "snapshot": "false",
3178
+ "skip_rules": {
3179
+ "wont_fix": [
3180
+ "region"
3181
+ ],
3182
+ "will_fix": [
3183
+ "color-contrast"
3184
+ ]
3185
+ }
3147
3186
  }
3148
3187
  ]
3149
3188
  },
@@ -3386,6 +3425,32 @@
3386
3425
  "color-contrast"
3387
3426
  ]
3388
3427
  }
3428
+ },
3429
+ {
3430
+ "preview_path": "primer/alpha/dialog/with_header_close_button_label",
3431
+ "name": "with_header_close_button_label",
3432
+ "snapshot": "false",
3433
+ "skip_rules": {
3434
+ "wont_fix": [
3435
+ "region"
3436
+ ],
3437
+ "will_fix": [
3438
+ "color-contrast"
3439
+ ]
3440
+ }
3441
+ },
3442
+ {
3443
+ "preview_path": "primer/alpha/dialog/without_header_close_button_label",
3444
+ "name": "without_header_close_button_label",
3445
+ "snapshot": "false",
3446
+ "skip_rules": {
3447
+ "wont_fix": [
3448
+ "region"
3449
+ ],
3450
+ "will_fix": [
3451
+ "color-contrast"
3452
+ ]
3453
+ }
3389
3454
  }
3390
3455
  ]
3391
3456
  },
@@ -4004,6 +4069,40 @@
4004
4069
  }
4005
4070
  ]
4006
4071
  },
4072
+ {
4073
+ "name": "include_fragment",
4074
+ "component": "IncludeFragment",
4075
+ "status": "alpha",
4076
+ "lookup_path": "primer/alpha/include_fragment",
4077
+ "examples": [
4078
+ {
4079
+ "preview_path": "primer/alpha/include_fragment/playground",
4080
+ "name": "playground",
4081
+ "snapshot": "false",
4082
+ "skip_rules": {
4083
+ "wont_fix": [
4084
+ "region"
4085
+ ],
4086
+ "will_fix": [
4087
+ "color-contrast"
4088
+ ]
4089
+ }
4090
+ },
4091
+ {
4092
+ "preview_path": "primer/alpha/include_fragment/default",
4093
+ "name": "default",
4094
+ "snapshot": "false",
4095
+ "skip_rules": {
4096
+ "wont_fix": [
4097
+ "region"
4098
+ ],
4099
+ "will_fix": [
4100
+ "color-contrast"
4101
+ ]
4102
+ }
4103
+ }
4104
+ ]
4105
+ },
4007
4106
  {
4008
4107
  "name": "label",
4009
4108
  "component": "Label",
@@ -6114,6 +6213,19 @@
6114
6213
  ]
6115
6214
  }
6116
6215
  },
6216
+ {
6217
+ "preview_path": "primer/alpha/select_panel/remote_fetch_form",
6218
+ "name": "remote_fetch_form",
6219
+ "snapshot": "interactive",
6220
+ "skip_rules": {
6221
+ "wont_fix": [
6222
+ "region"
6223
+ ],
6224
+ "will_fix": [
6225
+ "color-contrast"
6226
+ ]
6227
+ }
6228
+ },
6117
6229
  {
6118
6230
  "preview_path": "primer/alpha/select_panel/multiselect_form",
6119
6231
  "name": "multiselect_form",
data/static/statuses.json CHANGED
@@ -30,6 +30,7 @@
30
30
  "Primer::Alpha::HellipButton": "alpha",
31
31
  "Primer::Alpha::HiddenTextExpander": "alpha",
32
32
  "Primer::Alpha::Image": "alpha",
33
+ "Primer::Alpha::IncludeFragment": "alpha",
33
34
  "Primer::Alpha::Layout": "alpha",
34
35
  "Primer::Alpha::Layout::Main": "alpha",
35
36
  "Primer::Alpha::Layout::Sidebar": "alpha",
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.43.2
4
+ version: 0.43.3
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: 2025-06-03 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -669,6 +669,7 @@ files:
669
669
  - app/views/primer/view_components/include_fragment/deferred.html.erb
670
670
  - app/views/primer/view_components/nav_list_items/index.html.erb
671
671
  - app/views/primer/view_components/select_panel_items/index.html.erb
672
+ - config/routes.rb
672
673
  - lib/postcss_mixins/activeIndicatorLine.pcss
673
674
  - lib/postcss_mixins/clearfix.pcss
674
675
  - lib/postcss_mixins/focusBoxShadowInset.pcss
@@ -911,6 +912,7 @@ files:
911
912
  - previews/primer/beta/breadcrumbs_preview.rb
912
913
  - previews/primer/beta/breadcrumbs_preview/with_beta_truncate.html.erb
913
914
  - previews/primer/beta/breadcrumbs_preview/with_deprecated_truncate.html.erb
915
+ - previews/primer/beta/breadcrumbs_preview/with_long_items.html.erb
914
916
  - previews/primer/beta/button_group_preview.rb
915
917
  - previews/primer/beta/button_group_preview/with_menu_button.html.erb
916
918
  - previews/primer/beta/button_preview.rb