@primer/view-components 0.33.1-rc.60fe846c → 0.33.1-rc.70fd6982

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {
@@ -1 +1 @@
1
- .labels{position:relative}.Label,.label{border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:2em;display:inline-block;font-size:var(--text-body-size-small);font-weight:var(--base-text-weight-medium);line-height:18px;padding:0 7px;white-space:nowrap}:is(.label,.Label):hover{-webkit-text-decoration:none;text-decoration:none}.Label--large{line-height:22px;padding-left:10px;padding-right:10px}.Label--inline{display:inline;font-size:85%;padding:.12em .5em}.Label--primary{border-color:var(--borderColor-neutral-emphasis);color:var(--fgColor-default)}.Label--secondary{border-color:var(--borderColor-default);color:var(--fgColor-muted)}.Label--accent,.Label--info{border-color:var(--borderColor-accent-emphasis);color:var(--fgColor-accent)}.Label--success{border-color:var(--borderColor-success-emphasis);color:var(--fgColor-success)}.Label--attention,.Label--warning{border-color:var(--borderColor-attention-emphasis);color:var(--fgColor-attention)}.Label--severe{border-color:var(--borderColor-severe-emphasis);color:var(--fgColor-severe)}.Label--danger{border-color:var(--borderColor-danger-emphasis);color:var(--fgColor-danger)}.Label--open{border-color:var(--borderColor-open-emphasis);color:var(--fgColor-open)}.Label--closed{border-color:var(--borderColor-closed-emphasis);color:var(--fgColor-closed)}.Label--done{border-color:var(--borderColor-done-emphasis);color:var(--fgColor-done)}.Label--sponsors{border-color:var(--borderColor-sponsors-emphasis);color:var(--fgColor-sponsors)}
1
+ .labels{position:relative}.Label,.label{border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:var(--borderRadius-full);display:inline-block;font-size:var(--text-body-size-small);font-weight:var(--base-text-weight-medium);line-height:18px;padding:0 var(--base-size-6);white-space:nowrap}:is(.label,.Label):hover{-webkit-text-decoration:none;text-decoration:none}.Label--large{line-height:22px;padding:0 var(--base-size-8)}.Label--inline{display:inline;font-size:85%;padding:.12em .5em}.Label--primary{border-color:var(--borderColor-neutral-emphasis);color:var(--fgColor-default)}.Label--secondary{border-color:var(--borderColor-default);color:var(--fgColor-muted)}.Label--accent,.Label--info{border-color:var(--borderColor-accent-emphasis);color:var(--fgColor-accent)}.Label--success{border-color:var(--borderColor-success-emphasis);color:var(--fgColor-success)}.Label--attention,.Label--warning{border-color:var(--borderColor-attention-emphasis);color:var(--fgColor-attention)}.Label--severe{border-color:var(--borderColor-severe-emphasis);color:var(--fgColor-severe)}.Label--danger{border-color:var(--borderColor-danger-emphasis);color:var(--fgColor-danger)}.Label--open{border-color:var(--borderColor-open-emphasis);color:var(--fgColor-open)}.Label--closed{border-color:var(--borderColor-closed-emphasis);color:var(--fgColor-closed)}.Label--done{border-color:var(--borderColor-done-emphasis);color:var(--fgColor-done)}.Label--sponsors{border-color:var(--borderColor-sponsors-emphasis);color:var(--fgColor-sponsors)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.33.1-rc.60fe846c",
3
+ "version": "0.33.1-rc.70fd6982",
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
  },