@leavepulse/ui 0.15.3 → 0.15.4
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.
|
@@ -5,11 +5,11 @@ import { _ as _sfc_main$3 } from "./LpFileTreeNode-DFg4PhOK.js";
|
|
|
5
5
|
import { _ as _sfc_main$2 } from "./LpScrollArea-De9DLpa1.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "flex flex-col gap-1"
|
|
8
|
+
class: "flex h-full w-full min-w-0 flex-col gap-1 overflow-hidden"
|
|
9
9
|
};
|
|
10
10
|
const _hoisted_2 = {
|
|
11
11
|
key: 2,
|
|
12
|
-
class: "flex h-full min-
|
|
12
|
+
class: "flex h-full w-full min-w-0 flex-col"
|
|
13
13
|
};
|
|
14
14
|
const _hoisted_3 = ["aria-multiselectable"];
|
|
15
15
|
const _hoisted_4 = {
|
|
@@ -331,7 +331,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
331
331
|
title: __props.emptyLabel,
|
|
332
332
|
description: __props.emptyDescription
|
|
333
333
|
}, null, 8, ["title", "description"])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
334
|
-
createVNode(_sfc_main$2, { class: "min-h-0 flex-1" }, {
|
|
334
|
+
createVNode(_sfc_main$2, { class: "min-h-0 w-full min-w-0 flex-1" }, {
|
|
335
335
|
default: withCtx(() => [
|
|
336
336
|
createElementVNode("ul", {
|
|
337
337
|
ref_key: "root",
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import { _ as _17 } from "./chunks/LpDivider-CUX46KR0.js";
|
|
|
19
19
|
import { _ as _18 } from "./chunks/LpDrawer-BHzCy-Aa.js";
|
|
20
20
|
import { _ as _19 } from "./chunks/LpDropdownMenu-DJpoqRCb.js";
|
|
21
21
|
import { _ as _20 } from "./chunks/LpEmptyState-CrfyRJUG.js";
|
|
22
|
-
import { _ as _21 } from "./chunks/LpFileTree-
|
|
22
|
+
import { _ as _21 } from "./chunks/LpFileTree-YOJCuIjJ.js";
|
|
23
23
|
import { ancestorIds, checkStateOf, checkedCount, computeStats, fileIcon, formatModified, formatSize, sortNodes, subtreeIds, subtreeSize } from "./components/fileTree.js";
|
|
24
24
|
import { _ as _22 } from "./chunks/LpFormField-Bn-ZwC6z.js";
|
|
25
25
|
import { _ as _23 } from "./chunks/LpIcon-CCnX5_2j.js";
|
package/package.json
CHANGED
|
@@ -477,7 +477,7 @@ defineExpose({ reveal, expandAll, collapseAll, checkAll, clearChecked, summary }
|
|
|
477
477
|
</script>
|
|
478
478
|
|
|
479
479
|
<template>
|
|
480
|
-
<div v-if="loading" class="flex flex-col gap-1">
|
|
480
|
+
<div v-if="loading" class="flex h-full w-full min-w-0 flex-col gap-1 overflow-hidden">
|
|
481
481
|
<div
|
|
482
482
|
v-for="n in skeletonRows"
|
|
483
483
|
:key="n"
|
|
@@ -495,9 +495,10 @@ defineExpose({ reveal, expandAll, collapseAll, checkAll, clearChecked, summary }
|
|
|
495
495
|
|
|
496
496
|
<!-- h-full so the tree fills whatever box the caller gave it and the scroll
|
|
497
497
|
area below gets a bounded height; without it the rows just grow past the
|
|
498
|
-
container and nothing ever scrolls.
|
|
499
|
-
|
|
500
|
-
|
|
498
|
+
container and nothing ever scrolls. min-w-0/w-full for the same reason
|
|
499
|
+
sideways: a long path must truncate inside the box rather than widen it. -->
|
|
500
|
+
<div v-else class="flex h-full w-full min-w-0 flex-col">
|
|
501
|
+
<LpScrollArea class="min-h-0 w-full min-w-0 flex-1">
|
|
501
502
|
<ul
|
|
502
503
|
ref="root"
|
|
503
504
|
role="tree"
|