@primer/view-components 0.33.1-rc.dbcdacde → 0.34.0-rc.0af1ef00

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.
@@ -0,0 +1 @@
1
+ .SelectPanel-emptyPanel,.SelectPanel-loadingPanel{min-height:min(var(--overlay-height) - 10rem,100vh - 2rem)}
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "alpha/select_panel",
3
+ "selectors": [
4
+ ".SelectPanel-emptyPanel",
5
+ ".SelectPanel-loadingPanel"
6
+ ]
7
+ }
@@ -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.33.1-rc.dbcdacde",
3
+ "version": "0.34.0-rc.0af1ef00",
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",
@@ -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
  ],
@@ -611,7 +611,8 @@
611
611
  "single",
612
612
  "multiple",
613
613
  "none"
614
- ]
614
+ ],
615
+ "Utils": "Primer::Alpha::SelectPanel::Utils"
615
616
  },
616
617
  "Primer::Alpha::SelectPanel::ItemList": {
617
618
  },