@jsenv/navi 0.27.6 → 0.27.8
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/dist/jsenv_navi.js +29 -11
- package/dist/jsenv_navi.js.map +5 -5
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -23925,12 +23925,12 @@ const TextOverflow = ({
|
|
|
23925
23925
|
flex: true,
|
|
23926
23926
|
block: true,
|
|
23927
23927
|
as: "div",
|
|
23928
|
-
|
|
23929
|
-
pre: !noWrap
|
|
23928
|
+
pre: noWrap === undefined ? true : undefined
|
|
23930
23929
|
// For paragraph we prefer to keep lines and only hide unbreakable long sections
|
|
23931
23930
|
,
|
|
23932
23931
|
|
|
23933
|
-
preLine: rest.as === "p",
|
|
23932
|
+
preLine: rest.as === "p" ? true : undefined,
|
|
23933
|
+
noWrap: noWrap,
|
|
23934
23934
|
...rest,
|
|
23935
23935
|
overflowEllipsis: undefined,
|
|
23936
23936
|
"data-text-overflow": "",
|
|
@@ -33709,7 +33709,7 @@ const css$m = /* css */`
|
|
|
33709
33709
|
);
|
|
33710
33710
|
|
|
33711
33711
|
display: flex;
|
|
33712
|
-
|
|
33712
|
+
/* fit-content by default, but never wider than the parent */
|
|
33713
33713
|
max-width: 100%;
|
|
33714
33714
|
flex-direction: column;
|
|
33715
33715
|
background-color: var(--x-list-background-color);
|
|
@@ -33760,8 +33760,6 @@ const css$m = /* css */`
|
|
|
33760
33760
|
.navi_list {
|
|
33761
33761
|
display: flex;
|
|
33762
33762
|
box-sizing: border-box;
|
|
33763
|
-
width: max-content;
|
|
33764
|
-
min-width: 100%;
|
|
33765
33763
|
margin: 0;
|
|
33766
33764
|
padding: 0;
|
|
33767
33765
|
flex-direction: column;
|
|
@@ -33783,6 +33781,7 @@ const css$m = /* css */`
|
|
|
33783
33781
|
|
|
33784
33782
|
box-sizing: border-box;
|
|
33785
33783
|
min-width: 100%;
|
|
33784
|
+
max-width: 100%;
|
|
33786
33785
|
padding: var(--list-item-padding);
|
|
33787
33786
|
color: var(--x-list-item-color);
|
|
33788
33787
|
font-weight: var(--x-list-item-font-weight);
|
|
@@ -33874,9 +33873,7 @@ const css$m = /* css */`
|
|
|
33874
33873
|
|
|
33875
33874
|
/* Hide groups that have no rendered items. */
|
|
33876
33875
|
.navi_list_item_group {
|
|
33877
|
-
|
|
33878
|
-
display: none;
|
|
33879
|
-
}
|
|
33876
|
+
min-width: 100%;
|
|
33880
33877
|
|
|
33881
33878
|
.navi_list_item_group_label {
|
|
33882
33879
|
position: sticky;
|
|
@@ -33896,8 +33893,12 @@ const css$m = /* css */`
|
|
|
33896
33893
|
}
|
|
33897
33894
|
}
|
|
33898
33895
|
.navi_list_item_group_list {
|
|
33896
|
+
display: flex;
|
|
33897
|
+
width: max-content;
|
|
33898
|
+
min-width: 100%;
|
|
33899
33899
|
margin: 0;
|
|
33900
33900
|
padding: 0;
|
|
33901
|
+
flex-direction: column;
|
|
33901
33902
|
list-style: none;
|
|
33902
33903
|
|
|
33903
33904
|
/* Items inside a group must account for the sticky group label height
|
|
@@ -33908,6 +33909,10 @@ const css$m = /* css */`
|
|
|
33908
33909
|
);
|
|
33909
33910
|
}
|
|
33910
33911
|
}
|
|
33912
|
+
|
|
33913
|
+
&[data-hidden-while-empty]:not(:has([navi-list-item-real])) {
|
|
33914
|
+
display: none;
|
|
33915
|
+
}
|
|
33911
33916
|
}
|
|
33912
33917
|
`;
|
|
33913
33918
|
|
|
@@ -34561,6 +34566,9 @@ const NoMatchFallback = ({
|
|
|
34561
34566
|
if (noMatchFallback === undefined) {
|
|
34562
34567
|
noMatchFallback = allHidden ? naviI18n("list.no_match") : naviI18n("list.no_match_rest_shown");
|
|
34563
34568
|
}
|
|
34569
|
+
if (!showMatchFallback) {
|
|
34570
|
+
return null;
|
|
34571
|
+
}
|
|
34564
34572
|
return jsx(ListItem, {
|
|
34565
34573
|
role: "presentation",
|
|
34566
34574
|
className: "navi_list_item navi_list_no_match_fallback",
|
|
@@ -34578,6 +34586,9 @@ const Fallback = ({
|
|
|
34578
34586
|
if (fallback === undefined) {
|
|
34579
34587
|
fallback = naviI18n("list.empty");
|
|
34580
34588
|
}
|
|
34589
|
+
if (!showFallback) {
|
|
34590
|
+
return null;
|
|
34591
|
+
}
|
|
34581
34592
|
return jsx(ListItem, {
|
|
34582
34593
|
role: "presentation",
|
|
34583
34594
|
className: "navi_list_item navi_list_fallback",
|
|
@@ -34593,6 +34604,9 @@ const TopFiller = ({
|
|
|
34593
34604
|
const virtualItemHeight = virtualItemHeightSignal.value;
|
|
34594
34605
|
const numberOfItemsAbove = renderWindowStart;
|
|
34595
34606
|
const heightToFillAbove = numberOfItemsAbove * virtualItemHeight;
|
|
34607
|
+
if (!heightToFillAbove) {
|
|
34608
|
+
return null;
|
|
34609
|
+
}
|
|
34596
34610
|
return jsx("li", {
|
|
34597
34611
|
className: "navi_list_virtual_filler"
|
|
34598
34612
|
// eslint-disable-next-line react/no-unknown-property
|
|
@@ -34614,6 +34628,9 @@ const BottomFiller = ({
|
|
|
34614
34628
|
const virtualItemHeight = virtualItemHeightSignal.value;
|
|
34615
34629
|
const numberOfItemsBelow = Math.max(visibleItemCount - renderWindowEnd, 0);
|
|
34616
34630
|
const heightToFillBelow = numberOfItemsBelow * virtualItemHeight;
|
|
34631
|
+
if (!heightToFillBelow) {
|
|
34632
|
+
return null;
|
|
34633
|
+
}
|
|
34617
34634
|
return jsx("li", {
|
|
34618
34635
|
className: "navi_list_virtual_filler"
|
|
34619
34636
|
// eslint-disable-next-line react/no-unknown-property
|
|
@@ -35560,7 +35577,7 @@ installImportMetaCssBuild(import.meta);const css$k = /* css */`
|
|
|
35560
35577
|
transparent
|
|
35561
35578
|
);
|
|
35562
35579
|
--picker-color-dimmed: color-mix(in srgb, currentColor 60%, transparent);
|
|
35563
|
-
--picker-right-slot-size:
|
|
35580
|
+
--picker-right-slot-size: 1em;
|
|
35564
35581
|
/* Hover */
|
|
35565
35582
|
--picker-border-color-hover: color-mix(
|
|
35566
35583
|
in srgb,
|
|
@@ -35688,13 +35705,14 @@ installImportMetaCssBuild(import.meta);const css$k = /* css */`
|
|
|
35688
35705
|
.navi_picker_right_slot {
|
|
35689
35706
|
position: absolute;
|
|
35690
35707
|
top: 0;
|
|
35691
|
-
right:
|
|
35708
|
+
right: var(--x-picker-padding-right-base);
|
|
35692
35709
|
display: inline-flex;
|
|
35693
35710
|
width: var(--picker-right-slot-size);
|
|
35694
35711
|
padding-top: var(--x-picker-padding-top);
|
|
35695
35712
|
flex-shrink: 0;
|
|
35696
35713
|
justify-content: center;
|
|
35697
35714
|
color: var(--x-picker-icon-color, var(--picker-icon-color));
|
|
35715
|
+
transform: translateX(25%);
|
|
35698
35716
|
}
|
|
35699
35717
|
.navi_picker_input {
|
|
35700
35718
|
position: absolute;
|