@underverse-ui/underverse 1.0.49 → 1.0.50
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/api-reference.json +1 -1
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -15206,9 +15206,9 @@ function CategoryTreeSelect(props) {
|
|
|
15206
15206
|
category.id
|
|
15207
15207
|
);
|
|
15208
15208
|
};
|
|
15209
|
-
const renderSearch = () => {
|
|
15209
|
+
const renderSearch = ({ sticky = true, className: className2 } = {}) => {
|
|
15210
15210
|
if (!isSearchEnabled) return null;
|
|
15211
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "sticky top-0 z-10 bg-popover/85 backdrop-blur-xl
|
|
15211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: cn(sticky && "sticky top-0 z-10 bg-popover/85 pb-2 backdrop-blur-xl", className2), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "relative", children: [
|
|
15212
15212
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react25.Search, { className: "absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground/60 transition-colors peer-focus:text-primary" }),
|
|
15213
15213
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
15214
15214
|
"input",
|
|
@@ -15384,18 +15384,18 @@ function CategoryTreeSelect(props) {
|
|
|
15384
15384
|
displayText = mergedLabels.selectedText(selectedCount);
|
|
15385
15385
|
}
|
|
15386
15386
|
}
|
|
15387
|
-
const dropdownBody = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
15388
|
-
"
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
renderTreeContent()
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
);
|
|
15387
|
+
const dropdownBody = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex max-h-80 flex-col overflow-hidden", children: [
|
|
15388
|
+
renderSearch({ sticky: false, className: "border-b border-border/30 p-2 pb-2" }),
|
|
15389
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
15390
|
+
"div",
|
|
15391
|
+
{
|
|
15392
|
+
ref: dropdownViewportRef,
|
|
15393
|
+
id: `${resolvedId}-tree`,
|
|
15394
|
+
className: cn("min-h-0 flex-1 overflow-auto overflow-x-hidden p-2 pt-2"),
|
|
15395
|
+
children: renderTreeContent()
|
|
15396
|
+
}
|
|
15397
|
+
)
|
|
15398
|
+
] });
|
|
15399
15399
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: cn("w-full space-y-2", className), children: [
|
|
15400
15400
|
renderLabel(),
|
|
15401
15401
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|