@primer/view-components 0.33.1-rc.dbcdacde → 0.34.0-rc.56027daf
Sign up to get free protection for your applications and to get access to all the features.
- 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/select_panel.css +1 -0
- package/app/components/primer/alpha/select_panel.css.json +7 -0
- package/app/components/primer/alpha/select_panel_element.js +3 -0
- package/lib/primer/forms/primer_text_field.js +1 -0
- package/package.json +1 -1
- package/static/classes.json +6 -0
- package/static/constants.json +2 -1
@@ -0,0 +1 @@
|
|
1
|
+
.SelectPanel-emptyPanel,.SelectPanel-loadingPanel{min-height:min(var(--overlay-height) - 10rem,100vh - 2rem)}
|
@@ -841,6 +841,9 @@ _SelectPanelElement_handleItemActivated = function _SelectPanelElement_handleIte
|
|
841
841
|
return;
|
842
842
|
const itemContent = __classPrivateFieldGet(this, _SelectPanelElement_instances, "m", _SelectPanelElement_getItemContent).call(this, item);
|
843
843
|
if (this.selectVariant === 'single') {
|
844
|
+
// Don't check anything if we have an href
|
845
|
+
if (itemContent?.getAttribute('href'))
|
846
|
+
return;
|
844
847
|
// disallow unchecking checked item in single-select mode
|
845
848
|
if (!currentlyChecked) {
|
846
849
|
for (const el of this.items) {
|
@@ -47,6 +47,7 @@ let PrimerTextFieldElement = class PrimerTextFieldElement extends HTMLElement {
|
|
47
47
|
clearContents() {
|
48
48
|
this.inputElement.value = '';
|
49
49
|
this.inputElement.focus();
|
50
|
+
this.inputElement.dispatchEvent(new Event('input', { bubbles: true, cancelable: false }));
|
50
51
|
}
|
51
52
|
clearError() {
|
52
53
|
this.inputElement.removeAttribute('invalid');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.34.0-rc.56027daf",
|
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/classes.json
CHANGED
@@ -495,6 +495,12 @@
|
|
495
495
|
"SegmentedControl-item": [
|
496
496
|
"Primer::Alpha::SegmentedControl"
|
497
497
|
],
|
498
|
+
"SelectPanel-emptyPanel": [
|
499
|
+
"Primer::Alpha::SelectPanel"
|
500
|
+
],
|
501
|
+
"SelectPanel-loadingPanel": [
|
502
|
+
"Primer::Alpha::SelectPanel"
|
503
|
+
],
|
498
504
|
"State": [
|
499
505
|
"Primer::Beta::State"
|
500
506
|
],
|