najm-kit 2.1.41 → 2.1.42
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.mjs +7 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2018,7 +2018,12 @@ function useNajmScrollViewport({
|
|
|
2018
2018
|
{ target, elements: { viewport } },
|
|
2019
2019
|
najmScrollOptions(axis, autoHide, options)
|
|
2020
2020
|
);
|
|
2021
|
-
|
|
2021
|
+
const containWheel = (event) => event.stopPropagation();
|
|
2022
|
+
viewport.addEventListener("wheel", containWheel, { passive: true });
|
|
2023
|
+
return () => {
|
|
2024
|
+
viewport.removeEventListener("wheel", containWheel);
|
|
2025
|
+
instance.destroy();
|
|
2026
|
+
};
|
|
2022
2027
|
}, [axis, autoHide, options]);
|
|
2023
2028
|
return { hostRef, viewportRef };
|
|
2024
2029
|
}
|
|
@@ -10477,7 +10482,7 @@ function Combobox({
|
|
|
10477
10482
|
}
|
|
10478
10483
|
)
|
|
10479
10484
|
] }),
|
|
10480
|
-
/* @__PURE__ */ jsx(NajmScroll, { className: "max-h-64", children: /* @__PURE__ */ jsx("div", { className: "py-1", children: filtered.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-3 py-6 text-center text-sm text-muted-foreground", children: allowFreeText && query.trim() ? `Press Enter to use "${query.trim()}"` : emptyText }) : filtered.map((opt, i) => /* @__PURE__ */ jsxs(
|
|
10485
|
+
/* @__PURE__ */ jsx(NajmScroll, { className: "max-h-64", onWheel: (event) => event.stopPropagation(), children: /* @__PURE__ */ jsx("div", { className: "py-1", children: filtered.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-3 py-6 text-center text-sm text-muted-foreground", children: allowFreeText && query.trim() ? `Press Enter to use "${query.trim()}"` : emptyText }) : filtered.map((opt, i) => /* @__PURE__ */ jsxs(
|
|
10481
10486
|
"button",
|
|
10482
10487
|
{
|
|
10483
10488
|
type: "button",
|