@primer/view-components 0.0.120-rc.c12fec29 → 0.0.120
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/components/primer/alpha/modal_dialog.js +2 -0
- package/package.json +1 -1
- package/static/arguments.json +0 -32
- package/static/audited_at.json +0 -3
- package/static/constants.json +0 -20
- package/static/statuses.json +0 -3
|
@@ -86,6 +86,7 @@ export class ModalDialogElement extends HTMLElement {
|
|
|
86
86
|
return;
|
|
87
87
|
this.setAttribute('open', '');
|
|
88
88
|
(_a = __classPrivateFieldGet(this, _ModalDialogElement_instances, "a", _ModalDialogElement_overlayBackdrop_get)) === null || _a === void 0 ? void 0 : _a.classList.remove('Overlay--hidden');
|
|
89
|
+
document.body.style.paddingRight = `${window.innerWidth - document.body.clientWidth}px`;
|
|
89
90
|
document.body.style.overflow = 'hidden';
|
|
90
91
|
if (__classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").signal.aborted) {
|
|
91
92
|
__classPrivateFieldSet(this, _ModalDialogElement_focusAbortController, new AbortController(), "f");
|
|
@@ -98,6 +99,7 @@ export class ModalDialogElement extends HTMLElement {
|
|
|
98
99
|
return;
|
|
99
100
|
this.removeAttribute('open');
|
|
100
101
|
(_b = __classPrivateFieldGet(this, _ModalDialogElement_instances, "a", _ModalDialogElement_overlayBackdrop_get)) === null || _b === void 0 ? void 0 : _b.classList.add('Overlay--hidden');
|
|
102
|
+
document.body.style.paddingRight = '0';
|
|
101
103
|
document.body.style.overflow = 'initial';
|
|
102
104
|
__classPrivateFieldGet(this, _ModalDialogElement_focusAbortController, "f").abort();
|
|
103
105
|
// if #openButton is a child of a menu, we need to focus a suitable child of the menu
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.0.120
|
|
3
|
+
"version": "0.0.120",
|
|
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",
|
package/static/arguments.json
CHANGED
|
@@ -2231,38 +2231,6 @@
|
|
|
2231
2231
|
}
|
|
2232
2232
|
]
|
|
2233
2233
|
},
|
|
2234
|
-
{
|
|
2235
|
-
"component": "DropdownMenu",
|
|
2236
|
-
"status": "deprecated",
|
|
2237
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/dropdown_menu_component.rb",
|
|
2238
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/dropdown_menu/default/",
|
|
2239
|
-
"parameters": [
|
|
2240
|
-
{
|
|
2241
|
-
"name": "direction",
|
|
2242
|
-
"type": "Symbol",
|
|
2243
|
-
"default": "`:se`",
|
|
2244
|
-
"description": "One of `:e`, `:ne`, `:s`, `:se`, `:sw`, or `:w`."
|
|
2245
|
-
},
|
|
2246
|
-
{
|
|
2247
|
-
"name": "scheme",
|
|
2248
|
-
"type": "Symbol",
|
|
2249
|
-
"default": "`:default`",
|
|
2250
|
-
"description": "Pass `:dark` for dark mode theming"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
"name": "header",
|
|
2254
|
-
"type": "String",
|
|
2255
|
-
"default": "`nil`",
|
|
2256
|
-
"description": "Optional string to display as the header"
|
|
2257
|
-
},
|
|
2258
|
-
{
|
|
2259
|
-
"name": "system_arguments",
|
|
2260
|
-
"type": "Hash",
|
|
2261
|
-
"default": "N/A",
|
|
2262
|
-
"description": "[System arguments](/system-arguments)"
|
|
2263
|
-
}
|
|
2264
|
-
]
|
|
2265
|
-
},
|
|
2266
2234
|
{
|
|
2267
2235
|
"component": "IconButton",
|
|
2268
2236
|
"status": "deprecated",
|
package/static/audited_at.json
CHANGED
|
@@ -73,15 +73,12 @@
|
|
|
73
73
|
"Primer::Beta::Truncate::TruncateText": "",
|
|
74
74
|
"Primer::BlankslateComponent": "",
|
|
75
75
|
"Primer::Box": "",
|
|
76
|
-
"Primer::BoxComponent": "",
|
|
77
76
|
"Primer::ButtonComponent": "",
|
|
78
|
-
"Primer::ClipboardCopy": "",
|
|
79
77
|
"Primer::ConditionalWrapper": "",
|
|
80
78
|
"Primer::Content": "",
|
|
81
79
|
"Primer::Dropdown": "",
|
|
82
80
|
"Primer::Dropdown::Menu": "",
|
|
83
81
|
"Primer::Dropdown::Menu::Item": "",
|
|
84
|
-
"Primer::DropdownMenuComponent": "",
|
|
85
82
|
"Primer::HellipButton": "",
|
|
86
83
|
"Primer::IconButton": "",
|
|
87
84
|
"Primer::LabelComponent": "",
|
package/static/constants.json
CHANGED
|
@@ -1000,8 +1000,6 @@
|
|
|
1000
1000
|
},
|
|
1001
1001
|
"Primer::Box": {
|
|
1002
1002
|
},
|
|
1003
|
-
"Primer::BoxComponent": {
|
|
1004
|
-
},
|
|
1005
1003
|
"Primer::ButtonComponent": {
|
|
1006
1004
|
"DEFAULT_SCHEME": "default",
|
|
1007
1005
|
"DEFAULT_SIZE": "medium",
|
|
@@ -1031,8 +1029,6 @@
|
|
|
1031
1029
|
"medium"
|
|
1032
1030
|
]
|
|
1033
1031
|
},
|
|
1034
|
-
"Primer::ClipboardCopy": {
|
|
1035
|
-
},
|
|
1036
1032
|
"Primer::ConditionalWrapper": {
|
|
1037
1033
|
},
|
|
1038
1034
|
"Primer::Content": {
|
|
@@ -1045,22 +1041,6 @@
|
|
|
1045
1041
|
},
|
|
1046
1042
|
"Primer::Dropdown::Menu::Item": {
|
|
1047
1043
|
},
|
|
1048
|
-
"Primer::DropdownMenuComponent": {
|
|
1049
|
-
"DIRECTION_DEFAULT": "se",
|
|
1050
|
-
"DIRECTION_OPTIONS": [
|
|
1051
|
-
"se",
|
|
1052
|
-
"sw",
|
|
1053
|
-
"w",
|
|
1054
|
-
"e",
|
|
1055
|
-
"ne",
|
|
1056
|
-
"s"
|
|
1057
|
-
],
|
|
1058
|
-
"SCHEME_DEFAULT": "default",
|
|
1059
|
-
"SCHEME_MAPPINGS": {
|
|
1060
|
-
"default": "",
|
|
1061
|
-
"dark": "dropdown-menu-dark"
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
1044
|
"Primer::HellipButton": {
|
|
1065
1045
|
},
|
|
1066
1046
|
"Primer::IconButton": {
|
package/static/statuses.json
CHANGED
|
@@ -73,15 +73,12 @@
|
|
|
73
73
|
"Primer::Beta::Truncate::TruncateText": "alpha",
|
|
74
74
|
"Primer::BlankslateComponent": "deprecated",
|
|
75
75
|
"Primer::Box": "stable",
|
|
76
|
-
"Primer::BoxComponent": "deprecated",
|
|
77
76
|
"Primer::ButtonComponent": "deprecated",
|
|
78
|
-
"Primer::ClipboardCopy": "deprecated",
|
|
79
77
|
"Primer::ConditionalWrapper": "alpha",
|
|
80
78
|
"Primer::Content": "stable",
|
|
81
79
|
"Primer::Dropdown": "deprecated",
|
|
82
80
|
"Primer::Dropdown::Menu": "deprecated",
|
|
83
81
|
"Primer::Dropdown::Menu::Item": "deprecated",
|
|
84
|
-
"Primer::DropdownMenuComponent": "deprecated",
|
|
85
82
|
"Primer::HellipButton": "deprecated",
|
|
86
83
|
"Primer::IconButton": "deprecated",
|
|
87
84
|
"Primer::LabelComponent": "deprecated",
|