@primer/view-components 0.35.0-rc.48f894ec → 0.35.0-rc.5479efc8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/app/assets/javascripts/components/primer/primer.d.ts +0 -1
  2. package/app/assets/javascripts/primer_view_components.js +1 -1
  3. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  4. package/app/assets/styles/primer_view_components.css +1 -1
  5. package/app/assets/styles/primer_view_components.css.map +1 -1
  6. package/app/components/primer/alpha/action_bar_element.d.ts +17 -0
  7. package/app/components/primer/alpha/action_list.d.ts +16 -0
  8. package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +42 -0
  9. package/app/components/primer/alpha/dialog.css +1 -1
  10. package/app/components/primer/alpha/dialog.css.json +2 -1
  11. package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  12. package/app/components/primer/alpha/dropdown.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 +27 -0
  32. package/app/components/primer/primer.js +0 -1
  33. package/app/components/primer/scrollable_region.d.ts +13 -0
  34. package/app/components/primer/shared_events.d.ts +11 -0
  35. package/app/lib/primer/forms/primer_multi_input.d.ts +10 -0
  36. package/app/lib/primer/forms/primer_text_field.d.ts +28 -0
  37. package/app/lib/primer/forms/toggle_switch_input.d.ts +5 -0
  38. package/package.json +2 -2
  39. package/static/arguments.json +6 -28
  40. package/static/audited_at.json +0 -1
  41. package/static/constants.json +124 -7
  42. package/static/info_arch.json +19 -95
  43. package/static/previews.json +13 -47
  44. package/static/statuses.json +0 -1
  45. package/app/assets/javascripts/components/primer/alpha/image_crop.d.ts +0 -1
  46. package/app/components/primer/alpha/image_crop.js +0 -1
@@ -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.48f894ec",
3
+ "version": "0.35.0-rc.5479efc8",
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",
@@ -64,7 +64,7 @@
64
64
  "@github/markdownlint-github": "^0.6.0",
65
65
  "@github/prettier-config": "0.0.6",
66
66
  "@playwright/test": "^1.35.1",
67
- "@primer/css": "21.3.6",
67
+ "@primer/css": "21.5.0",
68
68
  "@primer/primitives": "^9.0.2",
69
69
  "@primer/stylelint-config": "^13.1.1",
70
70
  "@rollup/plugin-node-resolve": "^15.2.3",
@@ -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",
@@ -1345,34 +1351,6 @@
1345
1351
  }
1346
1352
  ]
1347
1353
  },
1348
- {
1349
- "component": "ImageCrop",
1350
- "status": "alpha",
1351
- "a11y_reviewed": false,
1352
- "short_name": "ImageCrop",
1353
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/image_crop.rb",
1354
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/image_crop/default/",
1355
- "parameters": [
1356
- {
1357
- "name": "src",
1358
- "type": "String",
1359
- "default": "N/A",
1360
- "description": "The path of the image to crop."
1361
- },
1362
- {
1363
- "name": "rounded",
1364
- "type": "Boolean",
1365
- "default": "`true`",
1366
- "description": "If the crop mask should be a circle. Defaults to true."
1367
- },
1368
- {
1369
- "name": "system_arguments",
1370
- "type": "Hash",
1371
- "default": "N/A",
1372
- "description": "[System arguments](/system-arguments)"
1373
- }
1374
- ]
1375
- },
1376
1354
  {
1377
1355
  "component": "Layout",
1378
1356
  "status": "alpha",
@@ -30,7 +30,6 @@
30
30
  "Primer::Alpha::HellipButton": "",
31
31
  "Primer::Alpha::HiddenTextExpander": "",
32
32
  "Primer::Alpha::Image": "",
33
- "Primer::Alpha::ImageCrop": "",
34
33
  "Primer::Alpha::Layout": "",
35
34
  "Primer::Alpha::Layout::Main": "",
36
35
  "Primer::Alpha::Layout::Sidebar": "",