primer_view_components 0.25.1 → 0.26.0

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +27 -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/action_menu/action_menu_element.js +13 -43
  9. data/app/components/primer/alpha/action_menu/action_menu_element.ts +13 -51
  10. data/app/components/primer/alpha/tab_nav.css +1 -1
  11. data/app/components/primer/alpha/tab_nav.css.json +2 -0
  12. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  13. data/app/components/primer/alpha/tab_nav.pcss +11 -1
  14. data/app/components/primer/alpha/tab_panels.html.erb +5 -9
  15. data/app/components/primer/alpha/tab_panels.rb +4 -13
  16. data/app/components/primer/alpha/text_field.rb +1 -0
  17. data/app/components/primer/alpha/underline_nav.css +1 -1
  18. data/app/components/primer/alpha/underline_nav.css.json +2 -0
  19. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  20. data/app/components/primer/alpha/underline_nav.pcss +7 -1
  21. data/app/components/primer/alpha/underline_panels.css +1 -0
  22. data/app/components/primer/alpha/underline_panels.css.json +6 -0
  23. data/app/components/primer/alpha/underline_panels.css.map +1 -0
  24. data/app/components/primer/alpha/underline_panels.html.erb +6 -8
  25. data/app/components/primer/alpha/underline_panels.pcss +4 -0
  26. data/app/components/primer/alpha/underline_panels.rb +6 -14
  27. data/app/components/primer/beta/breadcrumbs.rb +3 -2
  28. data/app/components/primer/beta/icon_button.rb +5 -0
  29. data/app/components/primer/beta/relative_time.rb +3 -0
  30. data/app/components/primer/beta/spinner.html.erb +3 -0
  31. data/app/components/primer/beta/spinner.rb +15 -1
  32. data/app/components/primer/primer.pcss +1 -0
  33. data/lib/primer/forms/dsl/text_field_input.rb +8 -1
  34. data/lib/primer/forms/primer_text_field.d.ts +27 -0
  35. data/lib/primer/forms/primer_text_field.js +17 -5
  36. data/lib/primer/forms/primer_text_field.ts +24 -5
  37. data/lib/primer/forms/text_field.html.erb +6 -2
  38. data/lib/primer/view_components/version.rb +2 -2
  39. data/previews/primer/alpha/text_field_preview.rb +13 -2
  40. data/previews/primer/beta/breadcrumbs_preview.rb +9 -0
  41. data/previews/primer/beta/icon_button_preview/summary_as_button.html.erb +12 -0
  42. data/previews/primer/beta/icon_button_preview.rb +95 -14
  43. data/previews/primer/beta/relative_time_preview/link_with_tooltip.html.erb +13 -0
  44. data/previews/primer/beta/relative_time_preview.rb +12 -0
  45. data/previews/primer/beta/spinner_preview.rb +2 -2
  46. data/static/arguments.json +12 -12
  47. data/static/constants.json +1 -0
  48. data/static/info_arch.json +78 -13
  49. data/static/previews.json +65 -0
  50. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e94edf2606ba73712526ec1d6550e51af42e58c027d9b6529f45d220b6d0791c
4
- data.tar.gz: 520623f9056742a042d5955b53cec29211e71f7bc3b8de29926860254696c99a
3
+ metadata.gz: ca9c10f7e1499a994c2e0ecaf8ba221861b264666020bea67c783292fefa3759
4
+ data.tar.gz: 36b58e2e00f31196c8d0ece833ec849a1ebd680e2edf947f3f9eb7d3c47f5cbe
5
5
  SHA512:
6
- metadata.gz: 5cb8b70c379fb17bf5f5c1ad8039b1606501fd5f92d6687c0070a037a546bd1176235e1c865257e16c6421fe02761ddd3f2fd2241b924e3fef2ac3dfabe6cdc9
7
- data.tar.gz: dc56228f4d829be9d03a45f8e6099b18202e1715f978b0e47eb818791b239d53dd3fae421ef1454bc58be520965b798ef1cea60fd918319ec18ff8e8905e0cce
6
+ metadata.gz: 8f759e2a8d2b86644e7f3a0c274c3ea539ae9c397edd41c37b7b67b13136f16672a844658e67dd1e535693f16144a0e3b99719312d470964bd2ef4bcb87dadea
7
+ data.tar.gz: ce9df0bf62169adf96203f11ba465109da991bc4696d7b2adc72fd45ec53c528c531925433c44b2ba4214a727a52b68b26905afa07827034ba7610af7a0ea03b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2884](https://github.com/primer/view_components/pull/2884) [`85f6a01`](https://github.com/primer/view_components/commit/85f6a0193e6d7e8f5f1319d7454da16e1dd191ef) Thanks [@owenniblock](https://github.com/owenniblock)! - Adds default sr-only text to spinner component
8
+
9
+ - [#2855](https://github.com/primer/view_components/pull/2855) [`05159ca`](https://github.com/primer/view_components/commit/05159caa06f59bc679ce2dffcd2f7a69ff9871c8) Thanks [@keithamus](https://github.com/keithamus)! - Upgrade @github/tab-container, using shadowdom
10
+
11
+ - [#2887](https://github.com/primer/view_components/pull/2887) [`5589bcf`](https://github.com/primer/view_components/commit/5589bcfb50cf580690b4d8f46eb9f3ff031544ee) Thanks [@HDinger](https://github.com/HDinger)! - Add support for `target` attribute on links of Primer::Beta::Breadcrumbs
12
+
13
+ - [#2895](https://github.com/primer/view_components/pull/2895) [`bb1a15b`](https://github.com/primer/view_components/commit/bb1a15bc5109c76aee0608cdd9a087866df9424e) Thanks [@camertron](https://github.com/camertron)! - Add a leading spinner to the TextField component.
14
+
15
+ ### Patch Changes
16
+
17
+ - [#2872](https://github.com/primer/view_components/pull/2872) [`5445f2e`](https://github.com/primer/view_components/commit/5445f2e89e20326099fbe5d44b1b16a2c5cedcc3) Thanks [@smockle](https://github.com/smockle)! - chore: Update '@github/relative-time-element' from 4.4.0 to 4.4.1
18
+
19
+ - [#2885](https://github.com/primer/view_components/pull/2885) [`37727e3`](https://github.com/primer/view_components/commit/37727e34aabe6ae39450e56815d6efead3a803c4) Thanks [@camertron](https://github.com/camertron)! - Fix ActionMenu item activation by using PointerEvent instead of MouseEvent and KeyboardEvent.
20
+
21
+ - [#2904](https://github.com/primer/view_components/pull/2904) [`96307bf`](https://github.com/primer/view_components/commit/96307bf3c82f1f70d21b95c5a24759fcb1d70d23) Thanks [@camertron](https://github.com/camertron)! - Fix CSS issue causing scrollbars to appear in tabs
22
+
3
23
  ## 0.25.1
4
24
 
5
25
  ### Patch Changes
@@ -1 +1,28 @@
1
1
  import '@github/auto-check-element';
2
+ import type { AutoCheckErrorEvent, AutoCheckSuccessEvent } from '@github/auto-check-element';
3
+ declare global {
4
+ interface HTMLElementEventMap {
5
+ 'auto-check-success': AutoCheckSuccessEvent;
6
+ 'auto-check-error': AutoCheckErrorEvent;
7
+ }
8
+ }
9
+ export declare class PrimerTextFieldElement extends HTMLElement {
10
+ #private;
11
+ inputElement: HTMLInputElement;
12
+ validationElement: HTMLElement;
13
+ validationMessageElement: HTMLElement;
14
+ validationSuccessIcon: HTMLElement;
15
+ validationErrorIcon: HTMLElement;
16
+ leadingVisual: HTMLElement;
17
+ leadingSpinner: HTMLElement;
18
+ connectedCallback(): void;
19
+ disconnectedCallback(): void;
20
+ clearContents(): void;
21
+ clearError(): void;
22
+ setValidationMessage(message: string): void;
23
+ toggleValidationStyling(isError: boolean): void;
24
+ setSuccess(message: string): void;
25
+ setError(message: string): void;
26
+ showLeadingSpinner(): void;
27
+ hideLeadingSpinner(): void;
28
+ }