@primer/view-components 0.1.9-rc.c91f6e8b → 0.1.9-rc.ca2fbe65
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.
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/modal_dialog.js +4 -0
- package/app/components/primer/alpha/overlay.css +1 -1
- package/app/components/primer/alpha/overlay.css.json +1 -1
- package/app/components/primer/focus_group.js +4 -6
- package/package.json +4 -3
- package/static/arguments.json +7 -1
- package/static/info_arch.json +524 -213
- package/static/previews.json +5 -0
|
@@ -31,6 +31,10 @@ function clickHandler(event) {
|
|
|
31
31
|
if (dialog instanceof ModalDialogElement) {
|
|
32
32
|
dialog.openButton = button;
|
|
33
33
|
dialog.show();
|
|
34
|
+
// A buttons default behaviour in some browsers it to send a pointer event
|
|
35
|
+
// If the behaviour is allowed through the dialog will be shown but then
|
|
36
|
+
// quickly hidden- as if it were never shown. This prevents that.
|
|
37
|
+
event.preventDefault();
|
|
34
38
|
return;
|
|
35
39
|
}
|
|
36
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Overlay[popover]{border-width:0;min-width:192px;padding:0;position:absolute}.Overlay[popover]:not(:open){display:none}anchored-position{display:block}
|
|
1
|
+
.Overlay[popover]{border-width:0;min-width:192px;padding:0;position:absolute}.Overlay[popover]:not(:popover-open){display:none}anchored-position{display:block}
|
|
@@ -14,11 +14,11 @@ import '@oddbird/popover-polyfill';
|
|
|
14
14
|
const menuItemSelector = '[role="menuitem"],[role="menuitemcheckbox"],[role="menuitemradio"]';
|
|
15
15
|
const popoverSelector = (() => {
|
|
16
16
|
try {
|
|
17
|
-
document.querySelector(':open');
|
|
18
|
-
return ':open';
|
|
17
|
+
document.querySelector(':popover-open');
|
|
18
|
+
return ':popover-open';
|
|
19
19
|
}
|
|
20
20
|
catch (_a) {
|
|
21
|
-
return '.\\:open';
|
|
21
|
+
return '.\\:popover-open';
|
|
22
22
|
}
|
|
23
23
|
})();
|
|
24
24
|
const getMnemonicFor = (item) => { var _a; return (_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()[0].toLowerCase(); };
|
|
@@ -132,9 +132,7 @@ export default class FocusGroupElement extends HTMLElement {
|
|
|
132
132
|
if ((el === null || el === void 0 ? void 0 : el.popover) === 'auto') {
|
|
133
133
|
el.showPopover();
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
el = (el === null || el === void 0 ? void 0 : el.parentElement) || null;
|
|
137
|
-
}
|
|
135
|
+
el = (el === null || el === void 0 ? void 0 : el.parentElement) || null;
|
|
138
136
|
} while (el);
|
|
139
137
|
}
|
|
140
138
|
focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.1.9-rc.
|
|
3
|
+
"version": "0.1.9-rc.ca2fbe65",
|
|
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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@github/relative-time-element": "^4.0.0",
|
|
56
56
|
"@github/tab-container-element": "^3.1.2",
|
|
57
57
|
"@oddbird/popover-polyfill": "^0.1.1",
|
|
58
|
-
"@primer/behaviors": "^1.
|
|
58
|
+
"@primer/behaviors": "^1.3.4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@changesets/changelog-github": "^0.4.6",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@github/prettier-config": "0.0.4",
|
|
66
66
|
"@playwright/test": "^1.27.1",
|
|
67
67
|
"@primer/css": "21.0.1",
|
|
68
|
-
"@primer/primitives": "^7.11.
|
|
68
|
+
"@primer/primitives": "^7.11.10",
|
|
69
69
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
70
70
|
"@rollup/plugin-typescript": "^8.3.3",
|
|
71
71
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"playwright": "^1.27.1",
|
|
83
83
|
"postcss": "^8.4.16",
|
|
84
84
|
"postcss-cli": "^10.0.0",
|
|
85
|
+
"postcss-custom-properties-fallback": "^1.0.2",
|
|
85
86
|
"postcss-import": "^14.1.0",
|
|
86
87
|
"postcss-mixins": "^9.0.3",
|
|
87
88
|
"postcss-preset-env": "^7.8.0",
|
package/static/arguments.json
CHANGED
|
@@ -1692,7 +1692,13 @@
|
|
|
1692
1692
|
"name": "subtitle",
|
|
1693
1693
|
"type": "String",
|
|
1694
1694
|
"default": "`nil`",
|
|
1695
|
-
"description": "Provides
|
|
1695
|
+
"description": "Provides additional context for the Overlay, also setting the `aria-describedby` attribute."
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"name": "overlay_id",
|
|
1699
|
+
"type": "String",
|
|
1700
|
+
"default": "`nil`",
|
|
1701
|
+
"description": "Provides the id of the overlay element so the close button can close it"
|
|
1696
1702
|
},
|
|
1697
1703
|
{
|
|
1698
1704
|
"name": "size",
|