@primer/view-components 0.35.0-rc.bb4f3d24 → 0.35.0-rc.bc1c8e86

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 (40) hide show
  1. package/app/assets/javascripts/primer_view_components.js +1 -1
  2. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  3. package/app/assets/styles/primer_view_components.css +1 -1
  4. package/app/assets/styles/primer_view_components.css.map +1 -1
  5. package/app/components/primer/alpha/action_bar_element.d.ts +17 -0
  6. package/app/components/primer/alpha/action_list.d.ts +16 -0
  7. package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +42 -0
  8. package/app/components/primer/alpha/dialog.css +1 -1
  9. package/app/components/primer/alpha/dialog.css.json +2 -1
  10. package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  11. package/app/components/primer/alpha/dropdown.d.ts +1 -0
  12. package/app/components/primer/alpha/image_crop.d.ts +1 -0
  13. package/app/components/primer/alpha/modal_dialog.d.ts +18 -0
  14. package/app/components/primer/alpha/segmented_control.d.ts +12 -0
  15. package/app/components/primer/alpha/select_panel_element.d.ts +63 -0
  16. package/app/components/primer/alpha/tab_container.d.ts +1 -0
  17. package/app/components/primer/alpha/text_field.css +1 -1
  18. package/app/components/primer/alpha/toggle_switch.d.ts +34 -0
  19. package/app/components/primer/alpha/tool_tip.d.ts +27 -0
  20. package/app/components/primer/alpha/x_banner.d.ts +18 -0
  21. package/app/components/primer/anchored_position.d.ts +27 -0
  22. package/app/components/primer/aria_live.d.ts +8 -0
  23. package/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
  24. package/app/components/primer/beta/clipboard_copy.d.ts +1 -0
  25. package/app/components/primer/beta/nav_list.d.ts +20 -0
  26. package/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  27. package/app/components/primer/beta/relative_time.d.ts +1 -0
  28. package/app/components/primer/dialog_helper.d.ts +15 -0
  29. package/app/components/primer/dialog_helper.js +0 -1
  30. package/app/components/primer/focus_group.d.ts +19 -0
  31. package/app/components/primer/primer.d.ts +28 -0
  32. package/app/components/primer/scrollable_region.d.ts +13 -0
  33. package/app/components/primer/shared_events.d.ts +11 -0
  34. package/app/lib/primer/forms/primer_multi_input.d.ts +10 -0
  35. package/app/lib/primer/forms/primer_text_field.d.ts +28 -0
  36. package/app/lib/primer/forms/toggle_switch_input.d.ts +5 -0
  37. package/package.json +1 -1
  38. package/static/arguments.json +6 -0
  39. package/static/info_arch.json +19 -0
  40. package/static/previews.json +13 -0
@@ -0,0 +1,28 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ToggleSwitchInputElement extends HTMLElement {
2
+ validationElement: HTMLElement;
3
+ validationMessageElement: HTMLElement;
4
+ connectedCallback(): void;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.35.0-rc.bb4f3d24",
3
+ "version": "0.35.0-rc.bc1c8e86",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -974,6 +974,12 @@
974
974
  "default": "`false`",
975
975
  "description": "If true will hide the heading title, while still making it available to Screen Readers."
976
976
  },
977
+ {
978
+ "name": "disable_scroll",
979
+ "type": "Boolean",
980
+ "default": "`true`",
981
+ "description": "When true, disables scrolling the page when the dialog is open."
982
+ },
977
983
  {
978
984
  "name": "system_arguments",
979
985
  "type": "Hash",
@@ -3306,6 +3306,12 @@
3306
3306
  "default": "`false`",
3307
3307
  "description": "If true will hide the heading title, while still making it available to Screen Readers."
3308
3308
  },
3309
+ {
3310
+ "name": "disable_scroll",
3311
+ "type": "Boolean",
3312
+ "default": "`true`",
3313
+ "description": "When true, disables scrolling the page when the dialog is open."
3314
+ },
3309
3315
  {
3310
3316
  "name": "system_arguments",
3311
3317
  "type": "Hash",
@@ -8185,6 +8191,19 @@
8185
8191
  "color-contrast"
8186
8192
  ]
8187
8193
  }
8194
+ },
8195
+ {
8196
+ "preview_path": "primer/alpha/select_panel/scroll_container",
8197
+ "name": "scroll_container",
8198
+ "snapshot": "false",
8199
+ "skip_rules": {
8200
+ "wont_fix": [
8201
+ "region"
8202
+ ],
8203
+ "will_fix": [
8204
+ "color-contrast"
8205
+ ]
8206
+ }
8188
8207
  }
8189
8208
  ],
8190
8209
  "subcomponents": [
@@ -6212,6 +6212,19 @@
6212
6212
  "color-contrast"
6213
6213
  ]
6214
6214
  }
6215
+ },
6216
+ {
6217
+ "preview_path": "primer/alpha/select_panel/scroll_container",
6218
+ "name": "scroll_container",
6219
+ "snapshot": "false",
6220
+ "skip_rules": {
6221
+ "wont_fix": [
6222
+ "region"
6223
+ ],
6224
+ "will_fix": [
6225
+ "color-contrast"
6226
+ ]
6227
+ }
6215
6228
  }
6216
6229
  ]
6217
6230
  },