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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f48107c8d70bf5013cb17f594e7aacf039b6ee04511de34aba3a1dd536a09cd9
4
- data.tar.gz: 7b5774525d9a69246b0aad997cb03ac9c413c10071f8583341ead8ffe0b4188a
3
+ metadata.gz: b294b273d321d94b44273ea687ea758b1e1859d5755504e81bf4762c8cdb0a7b
4
+ data.tar.gz: 8513c0ad0d28cf4d6f1d4988e5a411edbe3465ec07e9784a4ab9401a9dfafada
5
5
  SHA512:
6
- metadata.gz: 593249fcdf817fd9df568a8aa97ea00fec9e901fbfebdb6411de1d521a11b549e6f91bb0314512e644af86618276197326befaa6f2a227cb84c986c666e3ae8e
7
- data.tar.gz: 96c27005ca0e11bb53edc19ab6821b8d54e8137dd24efce0f7340ca88cee67ba1b5ab037d5708c4766390024b68b087890913856645b57dad4fd7b39562d736e
6
+ metadata.gz: 61d049223096cb39f37b0859145009b5a3f921917655ca9b56b5f1a335c07faaeb4dc5b15bf332d0cbe5833db59cecf23bf879deae22efb19a8f48f7981de0bb
7
+ data.tar.gz: f135e11c4cbaec662a3b729fc15fe67361e9fddd033580955d849b750e054fe7a876975a5a37a3087a494f86b93d854eaf54e37151d3f3ec9fbc3a2dd5465073
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2283](https://github.com/primer/view_components/pull/2283) [`da3bdb26`](https://github.com/primer/view_components/commit/da3bdb267e5753942d24e578a8aa2c6d339e5c83) Thanks [@mperrotti](https://github.com/mperrotti)! - Adds an 'inactive' state to buttons. An inactive button looks disabled and has aria-disabled, but it can still be clicked and focused. This was added to support buttons that are broken due to availability issues, but can't be removed from the page.
8
+
9
+ <!-- Changed components: Primer::Beta::Button, Primer::Beta::BaseButton, Primer::Beta::IconButton -->
10
+
11
+ - [#2278](https://github.com/primer/view_components/pull/2278) [`83b70dd7`](https://github.com/primer/view_components/commit/83b70dd73ad970388a3fa6b107d4ca8e4c94a986) Thanks [@gwwar](https://github.com/gwwar)! - Add optional with_trailing_visual_label slot to Primer::Alpha::SegmentedControl::Item. Filling the slot will add a Primer::Beta::Label to the right of the item.
12
+ <!-- Changed components: Primer::Alpha::SegmentedControl -->
13
+
14
+ ### Patch Changes
15
+
16
+ - [#2281](https://github.com/primer/view_components/pull/2281) [`46d5d9cb`](https://github.com/primer/view_components/commit/46d5d9cb5b624eee147f67cabcfa8034c7e1668c) Thanks [@keithamus](https://github.com/keithamus)! - Fix tooltips opening when focus is removed while displaying
17
+
3
18
  ## 0.11.0
4
19
 
5
20
  ### Minor Changes
@@ -3,6 +3,7 @@ type Direction = 'n' | 's' | 'e' | 'w' | 'ne' | 'se' | 'nw' | 'sw';
3
3
  declare class ToolTipElement extends HTMLElement {
4
4
  #private;
5
5
  styles(): string;
6
+ get showReason(): "focus" | "mouse";
6
7
  get htmlFor(): string;
7
8
  set htmlFor(value: string);
8
9
  get type(): 'description' | 'label';