@primer/view-components 0.33.0 → 0.33.1-rc.19c5d1bd
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/app/components/primer/beta/label.css +1 -1
- package/package.json +3 -3
- 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) {
|
@@ -1 +1 @@
|
|
1
|
-
.labels{position:relative}.Label,.label{border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:
|
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.
|
3
|
+
"version": "0.33.1-rc.19c5d1bd",
|
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",
|
@@ -93,8 +93,8 @@
|
|
93
93
|
"stylelint-config-standard": "^36.0.0",
|
94
94
|
"tslib": "^2.4.0",
|
95
95
|
"typescript": "^5.2.2",
|
96
|
-
"vite": "^5.3
|
97
|
-
"vite-plugin-ruby": "^5.
|
96
|
+
"vite": "^5.4.3",
|
97
|
+
"vite-plugin-ruby": "^5.1.0"
|
98
98
|
},
|
99
99
|
"prettier": "@github/prettier-config",
|
100
100
|
"browserslist": "extends @github/browserslist-config"
|
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
|
],
|