@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/dist/index.js CHANGED
@@ -15017,9 +15017,9 @@ function CategoryTreeSelect(props) {
15017
15017
  category.id
15018
15018
  );
15019
15019
  };
15020
- const renderSearch = () => {
15020
+ const renderSearch = ({ sticky = true, className: className2 } = {}) => {
15021
15021
  if (!isSearchEnabled) return null;
15022
- return /* @__PURE__ */ jsx46("div", { className: "sticky top-0 z-10 bg-popover/85 backdrop-blur-xl pb-2", children: /* @__PURE__ */ jsxs38("div", { className: "relative", children: [
15022
+ return /* @__PURE__ */ jsx46("div", { className: cn(sticky && "sticky top-0 z-10 bg-popover/85 pb-2 backdrop-blur-xl", className2), children: /* @__PURE__ */ jsxs38("div", { className: "relative", children: [
15023
15023
  /* @__PURE__ */ jsx46(Search5, { 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" }),
15024
15024
  /* @__PURE__ */ jsx46(
15025
15025
  "input",
@@ -15195,18 +15195,18 @@ function CategoryTreeSelect(props) {
15195
15195
  displayText = mergedLabels.selectedText(selectedCount);
15196
15196
  }
15197
15197
  }
15198
- const dropdownBody = /* @__PURE__ */ jsxs38(
15199
- "div",
15200
- {
15201
- ref: dropdownViewportRef,
15202
- id: `${resolvedId}-tree`,
15203
- className: cn("max-h-80 overflow-auto overflow-x-hidden p-2"),
15204
- children: [
15205
- renderSearch(),
15206
- renderTreeContent()
15207
- ]
15208
- }
15209
- );
15198
+ const dropdownBody = /* @__PURE__ */ jsxs38("div", { className: "flex max-h-80 flex-col overflow-hidden", children: [
15199
+ renderSearch({ sticky: false, className: "border-b border-border/30 p-2 pb-2" }),
15200
+ /* @__PURE__ */ jsx46(
15201
+ "div",
15202
+ {
15203
+ ref: dropdownViewportRef,
15204
+ id: `${resolvedId}-tree`,
15205
+ className: cn("min-h-0 flex-1 overflow-auto overflow-x-hidden p-2 pt-2"),
15206
+ children: renderTreeContent()
15207
+ }
15208
+ )
15209
+ ] });
15210
15210
  return /* @__PURE__ */ jsxs38("div", { className: cn("w-full space-y-2", className), children: [
15211
15211
  renderLabel(),
15212
15212
  /* @__PURE__ */ jsx46(