primer_view_components 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +1 -0
  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/segmented_control/item.html.erb +1 -8
  9. data/app/components/primer/alpha/segmented_control/item.rb +38 -4
  10. data/app/components/primer/alpha/segmented_control.css +1 -1
  11. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  12. data/app/components/primer/alpha/segmented_control.pcss +3 -1
  13. data/app/components/primer/alpha/tool_tip.d.ts +1 -0
  14. data/app/components/primer/alpha/tool_tip.js +17 -2
  15. data/app/components/primer/alpha/tool_tip.ts +16 -0
  16. data/app/components/primer/beta/base_button.rb +4 -0
  17. data/app/components/primer/beta/button.css +1 -1
  18. data/app/components/primer/beta/button.css.map +1 -1
  19. data/app/components/primer/beta/button.pcss +6 -2
  20. data/lib/primer/view_components/version.rb +1 -1
  21. data/previews/primer/alpha/segmented_control_preview.rb +35 -0
  22. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +23 -0
  23. data/previews/primer/alpha/tooltip_preview.rb +5 -0
  24. data/previews/primer/beta/button_preview.rb +20 -2
  25. data/previews/primer/beta/icon_button_preview.rb +3 -0
  26. data/static/arguments.json +6 -0
  27. data/static/info_arch.json +95 -2
  28. data/static/previews.json +65 -0
  29. metadata +3 -2
@@ -6409,6 +6409,45 @@
6409
6409
  ]
6410
6410
  }
6411
6411
  },
6412
+ {
6413
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_small",
6414
+ "name": "trailing_label_width_small",
6415
+ "snapshot": "true",
6416
+ "skip_rules": {
6417
+ "wont_fix": [
6418
+ "region"
6419
+ ],
6420
+ "will_fix": [
6421
+ "color-contrast"
6422
+ ]
6423
+ }
6424
+ },
6425
+ {
6426
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_medium",
6427
+ "name": "trailing_label_width_medium",
6428
+ "snapshot": "true",
6429
+ "skip_rules": {
6430
+ "wont_fix": [
6431
+ "region"
6432
+ ],
6433
+ "will_fix": [
6434
+ "color-contrast"
6435
+ ]
6436
+ }
6437
+ },
6438
+ {
6439
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_large",
6440
+ "name": "trailing_label_width_large",
6441
+ "snapshot": "true",
6442
+ "skip_rules": {
6443
+ "wont_fix": [
6444
+ "region"
6445
+ ],
6446
+ "will_fix": [
6447
+ "color-contrast"
6448
+ ]
6449
+ }
6450
+ },
6412
6451
  {
6413
6452
  "preview_path": "primer/alpha/segmented_control/icon_only_small",
6414
6453
  "name": "icon_only_small",
@@ -6568,10 +6607,32 @@
6568
6607
  }
6569
6608
  ],
6570
6609
  "slots": [
6571
-
6610
+ {
6611
+ "name": "trailing_visual_label",
6612
+ "description": "Optional trailing Label",
6613
+ "parameters": [
6614
+ {
6615
+ "name": "system_arguments",
6616
+ "type": "Hash",
6617
+ "default": "N/A",
6618
+ "description": "The arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}'s `with_trailing_visual_label` slot."
6619
+ }
6620
+ ]
6621
+ }
6572
6622
  ],
6573
6623
  "methods": [
6574
-
6624
+ {
6625
+ "name": "with_trailing_visual_label",
6626
+ "description": "Optional trailing label.",
6627
+ "parameters": [
6628
+ {
6629
+ "name": "system_arguments",
6630
+ "type": "Hash",
6631
+ "default": "N/A",
6632
+ "description": "The arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}'s `with_trailing_visual_label` slot."
6633
+ }
6634
+ ]
6635
+ }
6575
6636
  ],
6576
6637
  "previews": [
6577
6638
 
@@ -8352,6 +8413,19 @@
8352
8413
  "color-contrast"
8353
8414
  ]
8354
8415
  }
8416
+ },
8417
+ {
8418
+ "preview_path": "primer/alpha/tooltip/tooltip_with_dialog_moving_focus_to_input",
8419
+ "name": "tooltip_with_dialog_moving_focus_to_input",
8420
+ "snapshot": "false",
8421
+ "skip_rules": {
8422
+ "wont_fix": [
8423
+ "region"
8424
+ ],
8425
+ "will_fix": [
8426
+ "color-contrast"
8427
+ ]
8428
+ }
8355
8429
  }
8356
8430
  ],
8357
8431
  "subcomponents": [
@@ -9545,6 +9619,12 @@
9545
9619
  "default": "`false`",
9546
9620
  "description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
9547
9621
  },
9622
+ {
9623
+ "name": "inactive",
9624
+ "type": "Boolean",
9625
+ "default": "`false`",
9626
+ "description": "Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button."
9627
+ },
9548
9628
  {
9549
9629
  "name": "system_arguments",
9550
9630
  "type": "Hash",
@@ -10610,6 +10690,19 @@
10610
10690
  "color-contrast"
10611
10691
  ]
10612
10692
  }
10693
+ },
10694
+ {
10695
+ "preview_path": "primer/beta/button/inactive",
10696
+ "name": "inactive",
10697
+ "snapshot": "true",
10698
+ "skip_rules": {
10699
+ "wont_fix": [
10700
+ "region"
10701
+ ],
10702
+ "will_fix": [
10703
+ "color-contrast"
10704
+ ]
10705
+ }
10613
10706
  }
10614
10707
  ],
10615
10708
  "subcomponents": [
data/static/previews.json CHANGED
@@ -2097,6 +2097,19 @@
2097
2097
  "color-contrast"
2098
2098
  ]
2099
2099
  }
2100
+ },
2101
+ {
2102
+ "preview_path": "primer/beta/button/inactive",
2103
+ "name": "inactive",
2104
+ "snapshot": "true",
2105
+ "skip_rules": {
2106
+ "wont_fix": [
2107
+ "region"
2108
+ ],
2109
+ "will_fix": [
2110
+ "color-contrast"
2111
+ ]
2112
+ }
2100
2113
  }
2101
2114
  ]
2102
2115
  },
@@ -5011,6 +5024,45 @@
5011
5024
  ]
5012
5025
  }
5013
5026
  },
5027
+ {
5028
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_small",
5029
+ "name": "trailing_label_width_small",
5030
+ "snapshot": "true",
5031
+ "skip_rules": {
5032
+ "wont_fix": [
5033
+ "region"
5034
+ ],
5035
+ "will_fix": [
5036
+ "color-contrast"
5037
+ ]
5038
+ }
5039
+ },
5040
+ {
5041
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_medium",
5042
+ "name": "trailing_label_width_medium",
5043
+ "snapshot": "true",
5044
+ "skip_rules": {
5045
+ "wont_fix": [
5046
+ "region"
5047
+ ],
5048
+ "will_fix": [
5049
+ "color-contrast"
5050
+ ]
5051
+ }
5052
+ },
5053
+ {
5054
+ "preview_path": "primer/alpha/segmented_control/trailing_label_width_large",
5055
+ "name": "trailing_label_width_large",
5056
+ "snapshot": "true",
5057
+ "skip_rules": {
5058
+ "wont_fix": [
5059
+ "region"
5060
+ ],
5061
+ "will_fix": [
5062
+ "color-contrast"
5063
+ ]
5064
+ }
5065
+ },
5014
5066
  {
5015
5067
  "preview_path": "primer/alpha/segmented_control/icon_only_small",
5016
5068
  "name": "icon_only_small",
@@ -6352,6 +6404,19 @@
6352
6404
  "color-contrast"
6353
6405
  ]
6354
6406
  }
6407
+ },
6408
+ {
6409
+ "preview_path": "primer/alpha/tooltip/tooltip_with_dialog_moving_focus_to_input",
6410
+ "name": "tooltip_with_dialog_moving_focus_to_input",
6411
+ "snapshot": "false",
6412
+ "skip_rules": {
6413
+ "wont_fix": [
6414
+ "region"
6415
+ ],
6416
+ "will_fix": [
6417
+ "color-contrast"
6418
+ ]
6419
+ }
6355
6420
  }
6356
6421
  ]
6357
6422
  },
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.11.0
4
+ version: 0.12.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-10-09 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -1050,6 +1050,7 @@ files:
1050
1050
  - previews/primer/alpha/toggle_switch_preview.rb
1051
1051
  - previews/primer/alpha/tooltip_preview.rb
1052
1052
  - previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
1053
+ - previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb
1053
1054
  - previews/primer/alpha/tooltip_preview/with_multiple_on_a_page.html.erb
1054
1055
  - previews/primer/alpha/tooltip_preview/with_right_most_position.html.erb
1055
1056
  - previews/primer/alpha/underline_nav_preview.rb