@mixtint/primer-view-components 0.84.5 → 0.86.1
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/components/primer/open_project/sub_header_element.d.ts +1 -1
- 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 +101 -13
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/select_panel_element.js +2 -2
- package/app/components/primer/alpha/tree_view.css +22 -6
- package/app/components/primer/alpha/tree_view.css.json +4 -1
- package/app/components/primer/open_project/filterable_tree_view.css +64 -0
- package/app/components/primer/open_project/filterable_tree_view.css.json +14 -0
- package/app/components/primer/open_project/filterable_tree_view.js +294 -5
- package/app/components/primer/open_project/sub_header.css +14 -7
- package/app/components/primer/open_project/sub_header.css.json +2 -1
- package/app/components/primer/open_project/sub_header_element.d.ts +1 -1
- package/app/components/primer/open_project/sub_header_element.js +6 -6
- package/package.json +11 -11
- package/static/arguments.json +28 -0
- package/static/audited_at.json +1 -0
- package/static/classes.json +9 -0
- package/static/constants.json +10 -1
- package/static/info_arch.json +189 -30
- package/static/previews.json +94 -29
- package/static/statuses.json +1 -0
|
@@ -4522,10 +4522,6 @@ a.tabnav-extra:hover {
|
|
|
4522
4522
|
}
|
|
4523
4523
|
}
|
|
4524
4524
|
|
|
4525
|
-
[data-has-leading-action]:is(.TreeViewRootUlStyles .TreeViewItem) {
|
|
4526
|
-
--has-leading-action: 1;
|
|
4527
|
-
}
|
|
4528
|
-
|
|
4529
4525
|
.TreeViewRootUlStyles .TreeViewItemContainer {
|
|
4530
4526
|
--level: 1;
|
|
4531
4527
|
--toggle-width: 1rem;
|
|
@@ -4537,13 +4533,22 @@ a.tabnav-extra:hover {
|
|
|
4537
4533
|
font-size: var(--text-body-size-medium);
|
|
4538
4534
|
color: var(--fgColor-default);
|
|
4539
4535
|
border-radius: var(--borderRadius-medium);
|
|
4540
|
-
grid-template-columns: var(--spacer-width) var(--leading-action-width) var(--toggle-width) 1fr;
|
|
4541
|
-
grid-template-areas: 'spacer leadingAction toggle content';
|
|
4536
|
+
grid-template-columns: var(--spacer-width) var(--leading-action-width) var(--toggle-width) 1fr var(--trailing-action-width);
|
|
4537
|
+
grid-template-areas: 'spacer leadingAction toggle content trailingAction';
|
|
4542
4538
|
|
|
4543
4539
|
--leading-action-width: calc(var(--has-leading-action, 0) * 1.5rem);
|
|
4540
|
+
--trailing-action-width: calc(var(--has-trailing-action, 0) * 1.5rem);
|
|
4544
4541
|
--spacer-width: calc(calc(var(--level) - 1) * (var(--toggle-width) / 2));
|
|
4545
4542
|
}
|
|
4546
4543
|
|
|
4544
|
+
:is(.TreeViewRootUlStyles .TreeViewItemContainer):has([data-has-leading-action]) {
|
|
4545
|
+
--has-leading-action: 1;
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
:is(.TreeViewRootUlStyles .TreeViewItemContainer):has([data-has-trailing-action]) {
|
|
4549
|
+
--has-trailing-action: 1;
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4547
4552
|
:is(.TreeViewRootUlStyles .TreeViewItemContainer):hover {
|
|
4548
4553
|
background-color: var(--control-transparent-bgColor-hover);
|
|
4549
4554
|
}
|
|
@@ -4655,6 +4660,7 @@ a.tabnav-extra:hover {
|
|
|
4655
4660
|
|
|
4656
4661
|
.TreeViewRootUlStyles .TreeViewItemContent {
|
|
4657
4662
|
display: flex;
|
|
4663
|
+
align-items: center;
|
|
4658
4664
|
height: 100%;
|
|
4659
4665
|
padding: 0 var(--base-size-8);
|
|
4660
4666
|
outline: none;
|
|
@@ -4798,6 +4804,16 @@ a.tabnav-extra:hover {
|
|
|
4798
4804
|
flex-shrink: 1;
|
|
4799
4805
|
}
|
|
4800
4806
|
|
|
4807
|
+
.TreeViewRootUlStyles .TreeViewItemTrailingAction {
|
|
4808
|
+
display: flex;
|
|
4809
|
+
color: var(--fgColor-muted);
|
|
4810
|
+
grid-area: trailingAction;
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
:is(.TreeViewRootUlStyles .TreeViewItemTrailingAction) > button {
|
|
4814
|
+
flex-shrink: 1;
|
|
4815
|
+
}
|
|
4816
|
+
|
|
4801
4817
|
.TreeViewRootUlStyles .TreeViewItemLevelLine {
|
|
4802
4818
|
width: 100%;
|
|
4803
4819
|
height: 100%;
|
|
@@ -7413,14 +7429,10 @@ select-panel dialog::backdrop {
|
|
|
7413
7429
|
display: grid;
|
|
7414
7430
|
grid-template-areas: "left middle right" "bottom bottom bottom";
|
|
7415
7431
|
grid-template-columns: auto 1fr auto;
|
|
7416
|
-
align-items:
|
|
7432
|
+
align-items: baseline;
|
|
7417
7433
|
margin-bottom: var(--base-size-16);
|
|
7418
7434
|
}
|
|
7419
7435
|
|
|
7420
|
-
.SubHeader--expandedSearch {
|
|
7421
|
-
grid-template-areas: "left left left" "bottom bottom bottom";
|
|
7422
|
-
}
|
|
7423
|
-
|
|
7424
7436
|
.SubHeader-rightPane {
|
|
7425
7437
|
grid-area: right;
|
|
7426
7438
|
display: flex;
|
|
@@ -7431,6 +7443,7 @@ select-panel dialog::backdrop {
|
|
|
7431
7443
|
.SubHeader-middlePane {
|
|
7432
7444
|
grid-area: middle;
|
|
7433
7445
|
text-align: center;
|
|
7446
|
+
white-space: nowrap;
|
|
7434
7447
|
}
|
|
7435
7448
|
|
|
7436
7449
|
.SubHeader-bottomPane {
|
|
@@ -7441,6 +7454,8 @@ select-panel dialog::backdrop {
|
|
|
7441
7454
|
grid-area: left;
|
|
7442
7455
|
display: flex;
|
|
7443
7456
|
align-items: center;
|
|
7457
|
+
flex-wrap: wrap;
|
|
7458
|
+
row-gap: var(--base-size-16);
|
|
7444
7459
|
column-gap: 12px;
|
|
7445
7460
|
width: 100%;
|
|
7446
7461
|
|
|
@@ -7463,12 +7478,20 @@ select-panel dialog::backdrop {
|
|
|
7463
7478
|
display: none;
|
|
7464
7479
|
}
|
|
7465
7480
|
|
|
7466
|
-
@media (max-width:
|
|
7481
|
+
@media (max-width: 767.98px) {
|
|
7467
7482
|
.SubHeader {
|
|
7468
7483
|
grid-template-areas: "left right" "middle middle" "bottom bottom";
|
|
7469
7484
|
grid-template-columns: 1fr auto;
|
|
7470
7485
|
}
|
|
7471
7486
|
|
|
7487
|
+
.SubHeader--expandedSearch {
|
|
7488
|
+
grid-template-areas: "left left" "middle middle" "bottom bottom";
|
|
7489
|
+
}
|
|
7490
|
+
|
|
7491
|
+
.SubHeader--expandedSearch .SubHeader-hiddenOnExpand {
|
|
7492
|
+
display: none !important;
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7472
7495
|
.SubHeader--emptyLeftPane {
|
|
7473
7496
|
grid-template-areas: "middle middle right" "bottom bottom bottom";
|
|
7474
7497
|
grid-template-columns: auto 1fr auto;
|
|
@@ -7485,7 +7508,7 @@ select-panel dialog::backdrop {
|
|
|
7485
7508
|
}
|
|
7486
7509
|
|
|
7487
7510
|
.SubHeader-middlePane:has(> *) {
|
|
7488
|
-
margin-top: var(--
|
|
7511
|
+
margin-top: var(--base-size-16);
|
|
7489
7512
|
}
|
|
7490
7513
|
}
|
|
7491
7514
|
|
|
@@ -7694,3 +7717,68 @@ select-panel dialog::backdrop {
|
|
|
7694
7717
|
display: none;
|
|
7695
7718
|
}
|
|
7696
7719
|
}
|
|
7720
|
+
|
|
7721
|
+
/* CSS for FilterableTreeView */
|
|
7722
|
+
|
|
7723
|
+
/* Scroll layout
|
|
7724
|
+
*
|
|
7725
|
+
* The filterable-tree-view element itself acts as a flex column container.
|
|
7726
|
+
* The toolbar (input, segmented control, checkbox) is fixed at the top.
|
|
7727
|
+
* Only the tree area scrolls. The consumer is responsible for setting a
|
|
7728
|
+
* height or max-height on the filterable-tree-view element (or its parent)
|
|
7729
|
+
* to activate scrolling.
|
|
7730
|
+
*/
|
|
7731
|
+
|
|
7732
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
7733
|
+
|
|
7734
|
+
filterable-tree-view {
|
|
7735
|
+
display: flex;
|
|
7736
|
+
flex-direction: column;
|
|
7737
|
+
overflow: hidden;
|
|
7738
|
+
max-height: inherit;
|
|
7739
|
+
}
|
|
7740
|
+
|
|
7741
|
+
.FilterableTreeViewLayout {
|
|
7742
|
+
flex: 1;
|
|
7743
|
+
min-height: 0;
|
|
7744
|
+
}
|
|
7745
|
+
|
|
7746
|
+
.FilterableTreeViewTreeContainer {
|
|
7747
|
+
flex: 1;
|
|
7748
|
+
min-height: 0;
|
|
7749
|
+
overflow-y: auto;
|
|
7750
|
+
}
|
|
7751
|
+
|
|
7752
|
+
/* Highlight style for CSS Custom Highlight API */
|
|
7753
|
+
|
|
7754
|
+
::highlight(primer-filterable-tree-view-search-results) {
|
|
7755
|
+
background-color: var(--bgColor-attention-muted);
|
|
7756
|
+
}
|
|
7757
|
+
|
|
7758
|
+
/* Fallback: <mark> elements used when CSS Custom Highlight API is unavailable */
|
|
7759
|
+
|
|
7760
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
7761
|
+
|
|
7762
|
+
filterable-tree-view mark {
|
|
7763
|
+
background-color: var(--bgColor-attention-muted);
|
|
7764
|
+
color: inherit;
|
|
7765
|
+
}
|
|
7766
|
+
|
|
7767
|
+
/* Loading skeleton */
|
|
7768
|
+
|
|
7769
|
+
.FilterableTreeViewLoadingSkeleton {
|
|
7770
|
+
display: none;
|
|
7771
|
+
}
|
|
7772
|
+
|
|
7773
|
+
/* stylelint-disable selector-no-qualifying-type */
|
|
7774
|
+
|
|
7775
|
+
/* stylelint-disable selector-max-type */
|
|
7776
|
+
|
|
7777
|
+
filterable-tree-view[data-loading] .FilterableTreeViewLoadingSkeleton {
|
|
7778
|
+
display: block;
|
|
7779
|
+
}
|
|
7780
|
+
|
|
7781
|
+
filterable-tree-view[data-loading] tree-view,
|
|
7782
|
+
filterable-tree-view[data-loading] [data-target~="filterable-tree-view.noResultsMessage"] {
|
|
7783
|
+
display: none;
|
|
7784
|
+
}
|