openproject-primer_view_components 0.34.0 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) 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/icon_button.rb +5 -0
  28. data/app/components/primer/beta/relative_time.rb +3 -0
  29. data/app/components/primer/beta/spinner.html.erb +3 -0
  30. data/app/components/primer/beta/spinner.rb +15 -1
  31. data/app/components/primer/primer.pcss +1 -0
  32. data/lib/primer/forms/dsl/text_field_input.rb +8 -1
  33. data/lib/primer/forms/primer_text_field.d.ts +27 -0
  34. data/lib/primer/forms/primer_text_field.js +17 -5
  35. data/lib/primer/forms/primer_text_field.ts +24 -5
  36. data/lib/primer/forms/text_field.html.erb +6 -2
  37. data/lib/primer/view_components/version.rb +1 -1
  38. data/previews/primer/alpha/text_field_preview.rb +11 -0
  39. data/previews/primer/beta/breadcrumbs_preview.rb +9 -0
  40. data/previews/primer/beta/icon_button_preview/summary_as_button.html.erb +12 -0
  41. data/previews/primer/beta/icon_button_preview.rb +95 -14
  42. data/previews/primer/beta/relative_time_preview/link_with_tooltip.html.erb +13 -0
  43. data/previews/primer/beta/relative_time_preview.rb +12 -0
  44. data/previews/primer/beta/spinner_preview.rb +2 -2
  45. data/static/arguments.json +12 -12
  46. data/static/constants.json +1 -0
  47. data/static/info_arch.json +78 -13
  48. data/static/previews.json +65 -0
  49. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e62a6eaac97e4ba2f5888dcfcd25da23ec74671931265ca171e803ebd88a2010
4
- data.tar.gz: de34a286c13348d3c36db855c4ec280f5fa7e99ed3ac712c2ed583a9e92a9f3a
3
+ metadata.gz: 9b88ceba074c5be82a8ce67ffc9fa8f4cd861ba25503752f85715d3904529729
4
+ data.tar.gz: bb5599d8f3867d0228d00dfb12a59b1585f13f54184ac6efd1e85307f4acb7a2
5
5
  SHA512:
6
- metadata.gz: a72a263f1b73f434c20c5be7d18b23d2af4f2eb9297ecadd2fa4da8430a9cff8fd196742bfc3ab500b874b76f439e63f825bfb18c6aa1f8c1d857c095817d77f
7
- data.tar.gz: 147d78e64ada459d540f42720c72da9d2b8651519d7f2ee3cb2daf8465b98dd245487b59f944bc0cdd0c24e1ad290e98ae9c73bfaf5cc8e3bd2c5921ad84e2d4
6
+ metadata.gz: b0f355de41b0bbe49392e6d2d69e7b8fd97305387951d51809d19d07a6df557b937532e61a1f942cebea1c27dc42c93754f00f1bfec09599ab5f9e950e6e709f
7
+ data.tar.gz: ecbad35458263a187cb9ba67e34cd645ba4832fef4c515c387eb14bbc100842a263b48408b6bc98b1589bf58833a62e703545423fae73e9c40121ef6d7f4a7fe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.35.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2884](https://github.com/primer/view_components/pull/2884) [`85f6a01`](https://github.com/opf/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/opf/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/opf/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/opf/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/opf/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/opf/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/opf/primer_view_components/commit/96307bf3c82f1f70d21b95c5a24759fcb1d70d23) Thanks [@camertron](https://github.com/camertron)! - Fix CSS issue causing scrollbars to appear in tabs
22
+
3
23
  ## 0.34.0
4
24
 
5
25
  ### Minor 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
+ }