@mixtint/primer-view-components 0.75.1 → 0.78.0
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/assets/styles/primer_view_components.css +14 -10
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/tree_view/tree_view.js +4 -3
- package/app/components/primer/beta/avatar_stack.css +0 -10
- package/app/components/primer/beta/avatar_stack.css.json +0 -1
- package/app/components/primer/open_project/page_header.css +14 -0
- package/app/components/primer/open_project/page_header.css.json +3 -1
- package/package.json +30 -29
- package/static/arguments.json +1 -7
- package/static/classes.json +3 -0
- package/static/constants.json +1 -0
- package/static/info_arch.json +55 -16
- package/static/previews.json +47 -8
|
@@ -117,9 +117,10 @@ let TreeViewElement = class TreeViewElement extends HTMLElement {
|
|
|
117
117
|
}));
|
|
118
118
|
if (!checkSuccess)
|
|
119
119
|
return;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
if (this.getNodeCheckedValue(node) === 'true') {
|
|
121
|
+
this.setNodeCheckedValue(node, 'false');
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
123
124
|
this.checkOnlyAtPath(path);
|
|
124
125
|
}
|
|
125
126
|
this.dispatchEvent(new CustomEvent('treeViewNodeChecked', {
|
|
@@ -38,8 +38,6 @@
|
|
|
38
38
|
/* stylelint-disable-next-line primer/spacing */
|
|
39
39
|
margin-right: -11px;
|
|
40
40
|
background-color: var(--bgColor-default);
|
|
41
|
-
/* stylelint-disable-next-line primer/colors */
|
|
42
|
-
border-right: var(--borderWidth-thin) solid var(--bgColor-default);
|
|
43
41
|
border-radius: var(--borderRadius-small);
|
|
44
42
|
transition: margin 0.1s ease-in-out;
|
|
45
43
|
}
|
|
@@ -50,7 +48,6 @@
|
|
|
50
48
|
|
|
51
49
|
:is(.AvatarStack-body .avatar):last-child {
|
|
52
50
|
z-index: 1;
|
|
53
|
-
border-right: 0;
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
/* stylelint-disable-next-line selector-max-type */
|
|
@@ -117,10 +114,6 @@
|
|
|
117
114
|
margin-left: var(--base-size-4);
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
:is(.AvatarStack--right .AvatarStack-body) .avatar:not(:last-child) {
|
|
121
|
-
border-left: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
117
|
.AvatarStack--right .avatar.avatar-more {
|
|
125
118
|
background: var(--avatarStack-fade-bgColor-default);
|
|
126
119
|
}
|
|
@@ -138,7 +131,4 @@
|
|
|
138
131
|
margin-right: 0;
|
|
139
132
|
/* stylelint-disable-next-line primer/spacing */
|
|
140
133
|
margin-left: -11px;
|
|
141
|
-
border-right: 0;
|
|
142
|
-
/* stylelint-disable-next-line primer/colors */
|
|
143
|
-
border-left: var(--borderWidth-thin) solid var(--bgColor-default);
|
|
144
134
|
}
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
".avatar.avatar-more::after",
|
|
20
20
|
".AvatarStack--right .AvatarStack-body",
|
|
21
21
|
":is(.AvatarStack--right .AvatarStack-body):hover .avatar",
|
|
22
|
-
":is(.AvatarStack--right .AvatarStack-body) .avatar:not(:last-child)",
|
|
23
22
|
".AvatarStack--right .avatar.avatar-more",
|
|
24
23
|
":is(.AvatarStack--right .avatar.avatar-more)::before",
|
|
25
24
|
":is(.AvatarStack--right .avatar.avatar-more)::after",
|
|
@@ -85,3 +85,17 @@
|
|
|
85
85
|
.PageHeader-parentLink {
|
|
86
86
|
flex: 1 1 auto;
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
/* Hide the context bar on desktop when no breadcrumb is visible */
|
|
90
|
+
|
|
91
|
+
@media screen and (min-width: 543.98px) {
|
|
92
|
+
.PageHeader--noBreadcrumb .PageHeader-contextBar {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Match the title bar height with the toggle menu button for proper vertical alignment */
|
|
98
|
+
|
|
99
|
+
.PageHeader--noBreadcrumb .PageHeader-titleBar {
|
|
100
|
+
line-height: var(--control-small-size);
|
|
101
|
+
}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
".PageHeader-actions",
|
|
16
16
|
".PageHeader-breadcrumbs",
|
|
17
17
|
".PageHeader-leadingAction",
|
|
18
|
-
".PageHeader-parentLink"
|
|
18
|
+
".PageHeader-parentLink",
|
|
19
|
+
".PageHeader--noBreadcrumb .PageHeader-contextBar",
|
|
20
|
+
".PageHeader--noBreadcrumb .PageHeader-titleBar"
|
|
19
21
|
]
|
|
20
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mixtint/primer-view-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,55 +48,56 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@github/auto-check-element": "^6.0.0",
|
|
50
50
|
"@github/auto-complete-element": "^3.8.0",
|
|
51
|
-
"@github/catalyst": "^1.
|
|
51
|
+
"@github/catalyst": "^1.7.0",
|
|
52
52
|
"@github/clipboard-copy-element": "^1.3.0",
|
|
53
|
-
"@github/details-menu-element": "^1.0.
|
|
53
|
+
"@github/details-menu-element": "^1.0.13",
|
|
54
54
|
"@github/image-crop-element": "^5.0.0",
|
|
55
|
-
"@github/include-fragment-element": "^6.
|
|
56
|
-
"@github/relative-time-element": "^4.
|
|
55
|
+
"@github/include-fragment-element": "^6.4.1",
|
|
56
|
+
"@github/relative-time-element": "^4.5.0",
|
|
57
57
|
"@github/remote-input-element": "^0.4.0",
|
|
58
|
-
"@github/tab-container-element": "^3.
|
|
58
|
+
"@github/tab-container-element": "^3.4.0",
|
|
59
59
|
"@oddbird/popover-polyfill": "^0.5.2",
|
|
60
|
-
"@primer/behaviors": "^1.
|
|
60
|
+
"@primer/behaviors": "^1.8.4",
|
|
61
61
|
"@primer/live-region-element": "^0.8.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@primer/primitives": "10.x || 11.x"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@changesets/changelog-github": "^0.5.
|
|
68
|
-
"@changesets/cli": "^2.
|
|
67
|
+
"@changesets/changelog-github": "^0.5.1",
|
|
68
|
+
"@changesets/cli": "^2.29.7",
|
|
69
69
|
"@github/axe-github": "^0.7.0",
|
|
70
70
|
"@github/browserslist-config": "^1.0.0",
|
|
71
71
|
"@github/markdownlint-github": "^0.8.0",
|
|
72
72
|
"@github/prettier-config": "0.0.6",
|
|
73
|
-
"@playwright/test": "^1.
|
|
73
|
+
"@playwright/test": "^1.56.1",
|
|
74
74
|
"@primer/css": "22.0.2",
|
|
75
|
-
"@primer/stylelint-config": "^13.
|
|
76
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
77
|
-
"@rollup/plugin-typescript": "^8.
|
|
78
|
-
"axe-core": "^4.
|
|
75
|
+
"@primer/stylelint-config": "^13.4.1",
|
|
76
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
77
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
78
|
+
"axe-core": "^4.11.0",
|
|
79
79
|
"chokidar-cli": "^3.0.0",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
80
|
+
"css-what": "^7.0.0",
|
|
81
|
+
"cssnano": "^7.1.2",
|
|
82
|
+
"eslint": "^9.39.1",
|
|
82
83
|
"eslint-plugin-github": "^6.0.0",
|
|
83
|
-
"glob": "^11.0.
|
|
84
|
+
"glob": "^11.0.3",
|
|
84
85
|
"markdownlint-cli2": "^0.18.1",
|
|
85
|
-
"mocha": "^11.
|
|
86
|
-
"playwright": "^1.
|
|
87
|
-
"postcss": "^8.
|
|
88
|
-
"postcss-cli": "^11.0.
|
|
89
|
-
"postcss-import": "^16.
|
|
86
|
+
"mocha": "^11.7.5",
|
|
87
|
+
"playwright": "^1.56.1",
|
|
88
|
+
"postcss": "^8.5.6",
|
|
89
|
+
"postcss-cli": "^11.0.1",
|
|
90
|
+
"postcss-import": "^16.1.1",
|
|
90
91
|
"postcss-mixins": "^12.1.2",
|
|
91
|
-
"postcss-preset-env": "^10.0
|
|
92
|
-
"prettier": "^3.
|
|
93
|
-
"rollup": "^2.79.
|
|
92
|
+
"postcss-preset-env": "^10.4.0",
|
|
93
|
+
"prettier": "^3.6.2",
|
|
94
|
+
"rollup": "^2.79.2",
|
|
94
95
|
"rollup-plugin-terser": "^7.0.2",
|
|
95
96
|
"stylelint-actions-formatters": "^16.3.1",
|
|
96
|
-
"tslib": "^2.
|
|
97
|
-
"typescript": "^5.
|
|
98
|
-
"vite": "^6.
|
|
99
|
-
"vite-plugin-ruby": "^5.1.
|
|
97
|
+
"tslib": "^2.8.1",
|
|
98
|
+
"typescript": "^5.9.3",
|
|
99
|
+
"vite": "^6.4.1",
|
|
100
|
+
"vite-plugin-ruby": "^5.1.1"
|
|
100
101
|
},
|
|
101
102
|
"prettier": "@github/prettier-config",
|
|
102
103
|
"browserslist": "extends @github/browserslist-config"
|
package/static/arguments.json
CHANGED
|
@@ -2607,13 +2607,7 @@
|
|
|
2607
2607
|
"name": "form_arguments",
|
|
2608
2608
|
"type": "Hash",
|
|
2609
2609
|
"default": "`{}`",
|
|
2610
|
-
"description": "Form arguments. Supported for
|
|
2611
|
-
},
|
|
2612
|
-
{
|
|
2613
|
-
"name": "use_experimental_non_local_form",
|
|
2614
|
-
"type": "Boolean",
|
|
2615
|
-
"default": "`false`",
|
|
2616
|
-
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values. At this time, support is only available for the :single select variant. See: https://github.com/github/primer/issues/4923."
|
|
2610
|
+
"description": "Form arguments. Supported for all fetch strategies."
|
|
2617
2611
|
},
|
|
2618
2612
|
{
|
|
2619
2613
|
"name": "show_filter",
|
package/static/classes.json
CHANGED
package/static/constants.json
CHANGED
package/static/info_arch.json
CHANGED
|
@@ -7854,13 +7854,7 @@
|
|
|
7854
7854
|
"name": "form_arguments",
|
|
7855
7855
|
"type": "Hash",
|
|
7856
7856
|
"default": "`{}`",
|
|
7857
|
-
"description": "Form arguments. Supported for
|
|
7858
|
-
},
|
|
7859
|
-
{
|
|
7860
|
-
"name": "use_experimental_non_local_form",
|
|
7861
|
-
"type": "Boolean",
|
|
7862
|
-
"default": "`false`",
|
|
7863
|
-
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values. At this time, support is only available for the :single select variant. See: https://github.com/github/primer/issues/4923."
|
|
7857
|
+
"description": "Form arguments. Supported for all fetch strategies."
|
|
7864
7858
|
},
|
|
7865
7859
|
{
|
|
7866
7860
|
"name": "show_filter",
|
|
@@ -7940,6 +7934,12 @@
|
|
|
7940
7934
|
"name": "show_button",
|
|
7941
7935
|
"description": "Adds a show button (i.e. a button) that will open the panel when clicked.",
|
|
7942
7936
|
"parameters": [
|
|
7937
|
+
{
|
|
7938
|
+
"name": "icon",
|
|
7939
|
+
"type": "String",
|
|
7940
|
+
"default": "N/A",
|
|
7941
|
+
"description": "Name of {{link_to_octicons}} to use instead of text. If an [icon](https://primer.style/octicons/usage-guidelines/) is provided, a {{#link_to_component}}Primer::Beta::IconButton{{/link_to_component}} will be rendered. Otherwise a {{#link_to_component}}Primer::Beta::Button{{/link_to_component}} will be rendered."
|
|
7942
|
+
},
|
|
7943
7943
|
{
|
|
7944
7944
|
"name": "system_arguments",
|
|
7945
7945
|
"type": "Hash",
|
|
@@ -8263,6 +8263,19 @@
|
|
|
8263
8263
|
]
|
|
8264
8264
|
}
|
|
8265
8265
|
},
|
|
8266
|
+
{
|
|
8267
|
+
"preview_path": "primer/alpha/select_panel/select_panel_with_icon_button",
|
|
8268
|
+
"name": "select_panel_with_icon_button",
|
|
8269
|
+
"snapshot": "interactive",
|
|
8270
|
+
"skip_rules": {
|
|
8271
|
+
"wont_fix": [
|
|
8272
|
+
"region"
|
|
8273
|
+
],
|
|
8274
|
+
"will_fix": [
|
|
8275
|
+
"color-contrast"
|
|
8276
|
+
]
|
|
8277
|
+
}
|
|
8278
|
+
},
|
|
8266
8279
|
{
|
|
8267
8280
|
"preview_path": "primer/alpha/select_panel/with_leading_icons",
|
|
8268
8281
|
"name": "with_leading_icons",
|
|
@@ -20363,7 +20376,7 @@
|
|
|
20363
20376
|
},
|
|
20364
20377
|
{
|
|
20365
20378
|
"name": "breadcrumbs",
|
|
20366
|
-
"description": "
|
|
20379
|
+
"description": "Using PageHeader without breadcrumbs is only recommended in special cases.\nIn doubt, please check the PageHeader component documentation.",
|
|
20367
20380
|
"parameters": [
|
|
20368
20381
|
{
|
|
20369
20382
|
"name": "items",
|
|
@@ -20551,8 +20564,8 @@
|
|
|
20551
20564
|
}
|
|
20552
20565
|
},
|
|
20553
20566
|
{
|
|
20554
|
-
"preview_path": "primer/open_project/page_header/
|
|
20555
|
-
"name": "
|
|
20567
|
+
"preview_path": "primer/open_project/page_header/truncated_breadcrumbs",
|
|
20568
|
+
"name": "truncated_breadcrumbs",
|
|
20556
20569
|
"snapshot": "false",
|
|
20557
20570
|
"skip_rules": {
|
|
20558
20571
|
"wont_fix": [
|
|
@@ -20564,8 +20577,8 @@
|
|
|
20564
20577
|
}
|
|
20565
20578
|
},
|
|
20566
20579
|
{
|
|
20567
|
-
"preview_path": "primer/open_project/page_header/
|
|
20568
|
-
"name": "
|
|
20580
|
+
"preview_path": "primer/open_project/page_header/without_breadcrumbs",
|
|
20581
|
+
"name": "without_breadcrumbs",
|
|
20569
20582
|
"snapshot": "false",
|
|
20570
20583
|
"skip_rules": {
|
|
20571
20584
|
"wont_fix": [
|
|
@@ -20577,8 +20590,8 @@
|
|
|
20577
20590
|
}
|
|
20578
20591
|
},
|
|
20579
20592
|
{
|
|
20580
|
-
"preview_path": "primer/open_project/page_header/
|
|
20581
|
-
"name": "
|
|
20593
|
+
"preview_path": "primer/open_project/page_header/skip_breadcrumb_item",
|
|
20594
|
+
"name": "skip_breadcrumb_item",
|
|
20582
20595
|
"snapshot": "false",
|
|
20583
20596
|
"skip_rules": {
|
|
20584
20597
|
"wont_fix": [
|
|
@@ -20590,8 +20603,34 @@
|
|
|
20590
20603
|
}
|
|
20591
20604
|
},
|
|
20592
20605
|
{
|
|
20593
|
-
"preview_path": "primer/open_project/page_header/
|
|
20594
|
-
"name": "
|
|
20606
|
+
"preview_path": "primer/open_project/page_header/tab_nav",
|
|
20607
|
+
"name": "tab_nav",
|
|
20608
|
+
"snapshot": "false",
|
|
20609
|
+
"skip_rules": {
|
|
20610
|
+
"wont_fix": [
|
|
20611
|
+
"region"
|
|
20612
|
+
],
|
|
20613
|
+
"will_fix": [
|
|
20614
|
+
"color-contrast"
|
|
20615
|
+
]
|
|
20616
|
+
}
|
|
20617
|
+
},
|
|
20618
|
+
{
|
|
20619
|
+
"preview_path": "primer/open_project/page_header/segmented_control",
|
|
20620
|
+
"name": "segmented_control",
|
|
20621
|
+
"snapshot": "false",
|
|
20622
|
+
"skip_rules": {
|
|
20623
|
+
"wont_fix": [
|
|
20624
|
+
"region"
|
|
20625
|
+
],
|
|
20626
|
+
"will_fix": [
|
|
20627
|
+
"color-contrast"
|
|
20628
|
+
]
|
|
20629
|
+
}
|
|
20630
|
+
},
|
|
20631
|
+
{
|
|
20632
|
+
"preview_path": "primer/open_project/page_header/segmented_control_mobile_icons",
|
|
20633
|
+
"name": "segmented_control_mobile_icons",
|
|
20595
20634
|
"snapshot": "false",
|
|
20596
20635
|
"skip_rules": {
|
|
20597
20636
|
"wont_fix": [
|
package/static/previews.json
CHANGED
|
@@ -6184,8 +6184,8 @@
|
|
|
6184
6184
|
}
|
|
6185
6185
|
},
|
|
6186
6186
|
{
|
|
6187
|
-
"preview_path": "primer/open_project/page_header/
|
|
6188
|
-
"name": "
|
|
6187
|
+
"preview_path": "primer/open_project/page_header/truncated_breadcrumbs",
|
|
6188
|
+
"name": "truncated_breadcrumbs",
|
|
6189
6189
|
"snapshot": "false",
|
|
6190
6190
|
"skip_rules": {
|
|
6191
6191
|
"wont_fix": [
|
|
@@ -6197,8 +6197,8 @@
|
|
|
6197
6197
|
}
|
|
6198
6198
|
},
|
|
6199
6199
|
{
|
|
6200
|
-
"preview_path": "primer/open_project/page_header/
|
|
6201
|
-
"name": "
|
|
6200
|
+
"preview_path": "primer/open_project/page_header/without_breadcrumbs",
|
|
6201
|
+
"name": "without_breadcrumbs",
|
|
6202
6202
|
"snapshot": "false",
|
|
6203
6203
|
"skip_rules": {
|
|
6204
6204
|
"wont_fix": [
|
|
@@ -6210,8 +6210,8 @@
|
|
|
6210
6210
|
}
|
|
6211
6211
|
},
|
|
6212
6212
|
{
|
|
6213
|
-
"preview_path": "primer/open_project/page_header/
|
|
6214
|
-
"name": "
|
|
6213
|
+
"preview_path": "primer/open_project/page_header/skip_breadcrumb_item",
|
|
6214
|
+
"name": "skip_breadcrumb_item",
|
|
6215
6215
|
"snapshot": "false",
|
|
6216
6216
|
"skip_rules": {
|
|
6217
6217
|
"wont_fix": [
|
|
@@ -6223,8 +6223,34 @@
|
|
|
6223
6223
|
}
|
|
6224
6224
|
},
|
|
6225
6225
|
{
|
|
6226
|
-
"preview_path": "primer/open_project/page_header/
|
|
6227
|
-
"name": "
|
|
6226
|
+
"preview_path": "primer/open_project/page_header/tab_nav",
|
|
6227
|
+
"name": "tab_nav",
|
|
6228
|
+
"snapshot": "false",
|
|
6229
|
+
"skip_rules": {
|
|
6230
|
+
"wont_fix": [
|
|
6231
|
+
"region"
|
|
6232
|
+
],
|
|
6233
|
+
"will_fix": [
|
|
6234
|
+
"color-contrast"
|
|
6235
|
+
]
|
|
6236
|
+
}
|
|
6237
|
+
},
|
|
6238
|
+
{
|
|
6239
|
+
"preview_path": "primer/open_project/page_header/segmented_control",
|
|
6240
|
+
"name": "segmented_control",
|
|
6241
|
+
"snapshot": "false",
|
|
6242
|
+
"skip_rules": {
|
|
6243
|
+
"wont_fix": [
|
|
6244
|
+
"region"
|
|
6245
|
+
],
|
|
6246
|
+
"will_fix": [
|
|
6247
|
+
"color-contrast"
|
|
6248
|
+
]
|
|
6249
|
+
}
|
|
6250
|
+
},
|
|
6251
|
+
{
|
|
6252
|
+
"preview_path": "primer/open_project/page_header/segmented_control_mobile_icons",
|
|
6253
|
+
"name": "segmented_control_mobile_icons",
|
|
6228
6254
|
"snapshot": "false",
|
|
6229
6255
|
"skip_rules": {
|
|
6230
6256
|
"wont_fix": [
|
|
@@ -7248,6 +7274,19 @@
|
|
|
7248
7274
|
]
|
|
7249
7275
|
}
|
|
7250
7276
|
},
|
|
7277
|
+
{
|
|
7278
|
+
"preview_path": "primer/alpha/select_panel/select_panel_with_icon_button",
|
|
7279
|
+
"name": "select_panel_with_icon_button",
|
|
7280
|
+
"snapshot": "interactive",
|
|
7281
|
+
"skip_rules": {
|
|
7282
|
+
"wont_fix": [
|
|
7283
|
+
"region"
|
|
7284
|
+
],
|
|
7285
|
+
"will_fix": [
|
|
7286
|
+
"color-contrast"
|
|
7287
|
+
]
|
|
7288
|
+
}
|
|
7289
|
+
},
|
|
7251
7290
|
{
|
|
7252
7291
|
"preview_path": "primer/alpha/select_panel/with_leading_icons",
|
|
7253
7292
|
"name": "with_leading_icons",
|