@primer/view-components 0.35.0-rc.4b3abdbe → 0.35.0-rc.5479efc8

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 (47) 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.css +1 -1
  8. package/app/components/primer/alpha/action_list.d.ts +16 -0
  9. package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +42 -0
  10. package/app/components/primer/alpha/dialog.css +1 -1
  11. package/app/components/primer/alpha/dialog.css.json +2 -1
  12. package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
  13. package/app/components/primer/alpha/dropdown.d.ts +1 -0
  14. package/app/components/primer/alpha/modal_dialog.d.ts +18 -0
  15. package/app/components/primer/alpha/segmented_control.d.ts +12 -0
  16. package/app/components/primer/alpha/select_panel_element.d.ts +63 -0
  17. package/app/components/primer/alpha/tab_container.d.ts +1 -0
  18. package/app/components/primer/alpha/text_field.css +1 -1
  19. package/app/components/primer/alpha/toggle_switch.d.ts +34 -0
  20. package/app/components/primer/alpha/tool_tip.d.ts +27 -0
  21. package/app/components/primer/alpha/x_banner.d.ts +18 -0
  22. package/app/components/primer/anchored_position.d.ts +27 -0
  23. package/app/components/primer/aria_live.d.ts +8 -0
  24. package/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
  25. package/app/components/primer/beta/clipboard_copy.d.ts +1 -0
  26. package/app/components/primer/beta/nav_list.d.ts +20 -0
  27. package/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  28. package/app/components/primer/beta/relative_time.d.ts +1 -0
  29. package/app/components/primer/dialog_helper.d.ts +15 -0
  30. package/app/components/primer/dialog_helper.js +0 -1
  31. package/app/components/primer/focus_group.d.ts +19 -0
  32. package/app/components/primer/primer.d.ts +27 -0
  33. package/app/components/primer/primer.js +0 -1
  34. package/app/components/primer/scrollable_region.d.ts +13 -0
  35. package/app/components/primer/shared_events.d.ts +11 -0
  36. package/package.json +6 -8
  37. package/static/arguments.json +6 -28
  38. package/static/audited_at.json +0 -1
  39. package/static/constants.json +124 -7
  40. package/static/info_arch.json +19 -95
  41. package/static/previews.json +13 -47
  42. package/static/statuses.json +0 -1
  43. package/app/assets/javascripts/components/primer/alpha/image_crop.d.ts +0 -1
  44. package/app/components/primer/alpha/image_crop.js +0 -1
  45. package/lib/primer/forms/primer_multi_input.d.ts +0 -10
  46. package/lib/primer/forms/primer_text_field.d.ts +0 -28
  47. package/lib/primer/forms/toggle_switch_input.d.ts +0 -5
@@ -0,0 +1,27 @@
1
+ import '@github/include-fragment-element';
2
+ import '@github/remote-input-element';
3
+ import './alpha/action_list';
4
+ import './alpha/action_bar_element';
5
+ import './alpha/dropdown';
6
+ import './anchored_position';
7
+ import './dialog_helper';
8
+ import './focus_group';
9
+ import './scrollable_region';
10
+ import './aria_live';
11
+ import './shared_events';
12
+ import './alpha/modal_dialog';
13
+ import './beta/nav_list';
14
+ import './beta/nav_list_group_element';
15
+ import './alpha/segmented_control';
16
+ import './alpha/toggle_switch';
17
+ import './alpha/tool_tip';
18
+ import './alpha/x_banner';
19
+ import './beta/auto_complete/auto_complete';
20
+ import './beta/clipboard_copy';
21
+ import './beta/relative_time';
22
+ import './alpha/tab_container';
23
+ import '../../lib/primer/forms/primer_multi_input';
24
+ import '../../lib/primer/forms/primer_text_field';
25
+ import '../../lib/primer/forms/toggle_switch_input';
26
+ import './alpha/action_menu/action_menu_element';
27
+ import './alpha/select_panel_element';
@@ -9,7 +9,6 @@ import './focus_group';
9
9
  import './scrollable_region';
10
10
  import './aria_live';
11
11
  import './shared_events';
12
- import './alpha/image_crop';
13
12
  import './alpha/modal_dialog';
14
13
  import './beta/nav_list';
15
14
  import './beta/nav_list_group_element';
@@ -0,0 +1,13 @@
1
+ export declare class ScrollableRegionElement extends HTMLElement {
2
+ hasOverflow: boolean;
3
+ labelledBy: string;
4
+ observer: ResizeObserver;
5
+ connectedCallback(): void;
6
+ disconnectedCallback(): void;
7
+ attributeChangedCallback(name: string): void;
8
+ }
9
+ declare global {
10
+ interface Window {
11
+ ScrollableRegionElement: typeof ScrollableRegionElement;
12
+ }
13
+ }
@@ -0,0 +1,11 @@
1
+ export type ItemActivatedEvent = {
2
+ item: Element;
3
+ checked: boolean;
4
+ value: string | null;
5
+ };
6
+ declare global {
7
+ interface HTMLElementEventMap {
8
+ itemActivated: CustomEvent<ItemActivatedEvent>;
9
+ beforeItemActivated: CustomEvent<ItemActivatedEvent>;
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.35.0-rc.4b3abdbe",
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",
@@ -27,16 +27,14 @@
27
27
  "app/components/primer/**/*.css.json",
28
28
  "app/components/primer/**/*.d.ts",
29
29
  "app/lib/primer/forms/**/*.js",
30
- "app/lib/primer/forms/**/*.d.ts",
31
- "lib/primer/forms/**/*.js",
32
- "lib/primer/forms/**/*.d.ts"
30
+ "app/lib/primer/forms/**/*.d.ts"
33
31
  ],
34
32
  "scripts": {
35
33
  "clean": "git clean -fdX -- app/",
36
34
  "prepare": "script/build-assets",
37
35
  "lint": "npm run lint:stylelint && npm run lint:eslint",
38
- "lint:stylelint": "stylelint 'app/components/**/*.pcss'",
39
- "lint:stylelint:fix": "stylelint 'app/components/**/*.pcss' --fix",
36
+ "lint:stylelint": "stylelint --rd -q 'app/components/**/*.pcss'",
37
+ "lint:stylelint:fix": "npm run lint:stylelint -- --fix",
40
38
  "lint:eslint": "eslint 'app/components/**/*.ts'",
41
39
  "lint:eslint:fix": "eslint 'app/components/**/*.ts' --fix",
42
40
  "changeset:version": "changeset version && script/version",
@@ -66,9 +64,9 @@
66
64
  "@github/markdownlint-github": "^0.6.0",
67
65
  "@github/prettier-config": "0.0.6",
68
66
  "@playwright/test": "^1.35.1",
69
- "@primer/css": "21.3.6",
67
+ "@primer/css": "21.5.0",
70
68
  "@primer/primitives": "^9.0.2",
71
- "@primer/stylelint-config": "^13.0.1",
69
+ "@primer/stylelint-config": "^13.1.1",
72
70
  "@rollup/plugin-node-resolve": "^15.2.3",
73
71
  "@rollup/plugin-typescript": "^8.3.3",
74
72
  "@typescript-eslint/eslint-plugin": "^7.0.1",
@@ -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": "",