@underverse-ui/underverse 1.0.28 → 1.0.30
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/AGENTS.md +87 -0
- package/README.md +15 -0
- package/agent-recipes.json +42 -0
- package/api-reference.json +1499 -0
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/llms.txt +49 -0
- package/package.json +9 -3
package/dist/index.js
CHANGED
|
@@ -18849,16 +18849,14 @@ var LoadingBar = ({
|
|
|
18849
18849
|
// ../../components/ui/OverlayScrollbarProvider.tsx
|
|
18850
18850
|
import { useEffect as useEffect28 } from "react";
|
|
18851
18851
|
import { OverlayScrollbars } from "overlayscrollbars";
|
|
18852
|
-
var
|
|
18852
|
+
var EXPLICIT_SCROLLABLE_SELECTOR = [".thin-scrollbar", ".scrollbar-thin", ".custom-scrollbar", "[data-os-scrollbar]"].join(", ");
|
|
18853
|
+
var GENERIC_SCROLLABLE_SELECTOR = [
|
|
18853
18854
|
".overflow-auto",
|
|
18854
18855
|
".overflow-x-auto",
|
|
18855
18856
|
".overflow-y-auto",
|
|
18856
18857
|
".overflow-scroll",
|
|
18857
18858
|
".overflow-x-scroll",
|
|
18858
|
-
".overflow-y-scroll"
|
|
18859
|
-
".thin-scrollbar",
|
|
18860
|
-
".scrollbar-thin",
|
|
18861
|
-
".custom-scrollbar"
|
|
18859
|
+
".overflow-y-scroll"
|
|
18862
18860
|
].join(", ");
|
|
18863
18861
|
var SCROLLBAR_OPTIONS = {
|
|
18864
18862
|
scrollbars: {
|
|
@@ -18885,22 +18883,27 @@ function OverlayScrollbarProvider() {
|
|
|
18885
18883
|
if (instances.has(element)) return;
|
|
18886
18884
|
instances.set(element, OverlayScrollbars(element, SCROLLBAR_OPTIONS));
|
|
18887
18885
|
};
|
|
18888
|
-
const collectCandidates = (root) => {
|
|
18886
|
+
const collectCandidates = (root, selector) => {
|
|
18889
18887
|
const candidates = [];
|
|
18890
|
-
if (root instanceof HTMLElement && root.matches(
|
|
18888
|
+
if (root instanceof HTMLElement && root.matches(selector)) {
|
|
18891
18889
|
candidates.push(root);
|
|
18892
18890
|
}
|
|
18893
18891
|
if ("querySelectorAll" in root) {
|
|
18894
|
-
root.querySelectorAll(
|
|
18892
|
+
root.querySelectorAll(selector).forEach((element) => {
|
|
18895
18893
|
candidates.push(element);
|
|
18896
18894
|
});
|
|
18897
18895
|
}
|
|
18898
18896
|
return candidates.filter((element, index) => candidates.indexOf(element) === index);
|
|
18899
18897
|
};
|
|
18900
18898
|
const scan = (root) => {
|
|
18901
|
-
const
|
|
18902
|
-
|
|
18903
|
-
|
|
18899
|
+
const explicitCandidates = collectCandidates(root, EXPLICIT_SCROLLABLE_SELECTOR).filter((element) => !shouldSkip(element));
|
|
18900
|
+
explicitCandidates.forEach(initElement);
|
|
18901
|
+
const genericCandidates = collectCandidates(root, GENERIC_SCROLLABLE_SELECTOR).filter((element) => !shouldSkip(element));
|
|
18902
|
+
const filteredGeneric = genericCandidates.filter(
|
|
18903
|
+
(element) => !explicitCandidates.some((explicit) => explicit === element || explicit.contains(element) || element.contains(explicit))
|
|
18904
|
+
);
|
|
18905
|
+
const leafGeneric = filteredGeneric.filter((element) => !filteredGeneric.some((other) => other !== element && element.contains(other)));
|
|
18906
|
+
leafGeneric.forEach(initElement);
|
|
18904
18907
|
};
|
|
18905
18908
|
const cleanup = () => {
|
|
18906
18909
|
instances.forEach((instance, element) => {
|
|
@@ -19890,7 +19893,8 @@ function DataTable({
|
|
|
19890
19893
|
children: /* @__PURE__ */ jsx68(
|
|
19891
19894
|
"div",
|
|
19892
19895
|
{
|
|
19893
|
-
className: "thin-scrollbar w-full",
|
|
19896
|
+
className: "thin-scrollbar custom-scrollbar w-full",
|
|
19897
|
+
"data-os-scrollbar": true,
|
|
19894
19898
|
style: stickyHeader ? {
|
|
19895
19899
|
maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight,
|
|
19896
19900
|
overflowY: "auto",
|