@jsenv/navi 0.27.21 → 0.27.22
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 +4 -8
- package/dist/jsenv_navi.js.map +6 -5
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -33465,7 +33465,8 @@ const PickerArray = props => {
|
|
|
33465
33465
|
const PickerArrayUI = () => {
|
|
33466
33466
|
const {
|
|
33467
33467
|
value,
|
|
33468
|
-
placeholder
|
|
33468
|
+
placeholder,
|
|
33469
|
+
maxRows
|
|
33469
33470
|
} = useContext(PickerContext);
|
|
33470
33471
|
if (!value || value.length === 0) {
|
|
33471
33472
|
if (!placeholder) {
|
|
@@ -33476,6 +33477,8 @@ const PickerArrayUI = () => {
|
|
|
33476
33477
|
return jsx(Text, {
|
|
33477
33478
|
spacing: ", ",
|
|
33478
33479
|
shrinkWrap: true,
|
|
33480
|
+
lineClamp: maxRows > 1 ? maxRows : undefined,
|
|
33481
|
+
overflowEllipsis: maxRows === 1 ? true : undefined,
|
|
33479
33482
|
children: value.map(item => {
|
|
33480
33483
|
return jsx("span", {
|
|
33481
33484
|
children: item
|
|
@@ -36480,13 +36483,6 @@ installImportMetaCssBuild(import.meta);const css$k = /* css */`
|
|
|
36480
36483
|
&[navi-placeholder] {
|
|
36481
36484
|
color: var(--picker-placeholder-color);
|
|
36482
36485
|
}
|
|
36483
|
-
|
|
36484
|
-
.navi_text:not(.navi_more_badge) {
|
|
36485
|
-
max-width: 100%;
|
|
36486
|
-
text-overflow: inherit;
|
|
36487
|
-
vertical-align: middle; /* For some reason it's required to disminish inline-block height */
|
|
36488
|
-
overflow: inherit;
|
|
36489
|
-
}
|
|
36490
36486
|
}
|
|
36491
36487
|
.navi_picker_right_slot {
|
|
36492
36488
|
display: inline-flex;
|