@underverse-ui/underverse 1.0.112 → 1.0.113
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 +35 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7507,6 +7507,7 @@ var Combobox = ({
|
|
|
7507
7507
|
id: `${resolvedId}-listbox`,
|
|
7508
7508
|
role: "listbox",
|
|
7509
7509
|
"aria-labelledby": labelId,
|
|
7510
|
+
"data-os-ignore": virtualized ? "" : void 0,
|
|
7510
7511
|
className: cn("overflow-y-auto overscroll-contain", (!useOverlayScrollbar || virtualized) && comboboxScrollClassName),
|
|
7511
7512
|
style: { maxHeight },
|
|
7512
7513
|
children: /* @__PURE__ */ jsx29("div", { className: cn(size === "sm" ? "p-1" : size === "lg" ? "p-2" : "p-1.5"), children: loading2 ? /* @__PURE__ */ jsx29("div", { className: "px-3 py-10 text-center", children: /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-center gap-3 animate-in fade-in-0 zoom-in-95 duration-300", children: [
|
|
@@ -15763,19 +15764,19 @@ var MultiCombobox = ({
|
|
|
15763
15764
|
},
|
|
15764
15765
|
"data-index": virtualItem?.index,
|
|
15765
15766
|
style: itemStyle,
|
|
15767
|
+
className: cn(virtualItem && "list-none"),
|
|
15766
15768
|
onClick: (e) => {
|
|
15767
15769
|
e.preventDefault();
|
|
15768
15770
|
e.stopPropagation();
|
|
15769
15771
|
if (!isDisabled) toggleSelect(item.value);
|
|
15770
15772
|
inputRef.current?.focus();
|
|
15771
15773
|
},
|
|
15772
|
-
className: cn("dropdown-item", isDisabled && "opacity-50 cursor-not-allowed pointer-events-none"),
|
|
15773
|
-
children: renderOption(item, isSelected)
|
|
15774
|
+
children: /* @__PURE__ */ jsx45("div", { className: cn("dropdown-item", isDisabled && "opacity-50 cursor-not-allowed pointer-events-none"), children: renderOption(item, isSelected) })
|
|
15774
15775
|
},
|
|
15775
15776
|
item.value
|
|
15776
15777
|
);
|
|
15777
15778
|
}
|
|
15778
|
-
return /* @__PURE__ */
|
|
15779
|
+
return /* @__PURE__ */ jsx45(
|
|
15779
15780
|
"li",
|
|
15780
15781
|
{
|
|
15781
15782
|
ref: (node) => {
|
|
@@ -15784,37 +15785,43 @@ var MultiCombobox = ({
|
|
|
15784
15785
|
},
|
|
15785
15786
|
"data-index": virtualItem?.index,
|
|
15786
15787
|
style: itemStyle,
|
|
15788
|
+
className: cn(virtualItem && "list-none"),
|
|
15787
15789
|
onClick: (e) => {
|
|
15788
15790
|
e.preventDefault();
|
|
15789
15791
|
e.stopPropagation();
|
|
15790
15792
|
if (!isDisabled) toggleSelect(item.value);
|
|
15791
15793
|
inputRef.current?.focus();
|
|
15792
15794
|
},
|
|
15793
|
-
|
|
15794
|
-
"
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
"
|
|
15807
|
-
|
|
15795
|
+
children: /* @__PURE__ */ jsxs35(
|
|
15796
|
+
"div",
|
|
15797
|
+
{
|
|
15798
|
+
className: cn(
|
|
15799
|
+
"dropdown-item flex cursor-pointer items-center gap-3 rounded-full transition-all duration-200",
|
|
15800
|
+
sizeStyles8[size].item,
|
|
15801
|
+
"hover:bg-accent/70 hover:shadow-sm",
|
|
15802
|
+
index === activeIndex && "bg-accent/60",
|
|
15803
|
+
isSelected && "bg-primary/10 text-primary font-medium",
|
|
15804
|
+
isDisabled && "opacity-40 cursor-not-allowed pointer-events-none"
|
|
15805
|
+
),
|
|
15806
|
+
children: [
|
|
15807
|
+
/* @__PURE__ */ jsx45(
|
|
15808
|
+
"span",
|
|
15809
|
+
{
|
|
15810
|
+
className: cn(
|
|
15811
|
+
"shrink-0 w-5 h-5 flex items-center justify-center rounded-md border-2 transition-all duration-200",
|
|
15812
|
+
isSelected ? "bg-primary border-primary text-primary-foreground" : "border-muted-foreground/30 bg-transparent"
|
|
15813
|
+
),
|
|
15814
|
+
children: isSelected && /* @__PURE__ */ jsx45(Check6, { className: "w-3 h-3" })
|
|
15815
|
+
}
|
|
15808
15816
|
),
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15817
|
-
]
|
|
15817
|
+
optionIcon && /* @__PURE__ */ jsx45("span", { className: "shrink-0 w-5 h-5 flex items-center justify-center text-muted-foreground", children: optionIcon }),
|
|
15818
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex-1 min-w-0", children: [
|
|
15819
|
+
/* @__PURE__ */ jsx45("div", { className: cn("truncate", isSelected && "font-medium text-primary"), children: item.label }),
|
|
15820
|
+
optionDesc && /* @__PURE__ */ jsx45("div", { className: "text-xs text-muted-foreground truncate mt-0.5", children: optionDesc })
|
|
15821
|
+
] })
|
|
15822
|
+
]
|
|
15823
|
+
}
|
|
15824
|
+
)
|
|
15818
15825
|
},
|
|
15819
15826
|
item.value
|
|
15820
15827
|
);
|
|
@@ -15880,6 +15887,7 @@ var MultiCombobox = ({
|
|
|
15880
15887
|
role: "listbox",
|
|
15881
15888
|
"aria-multiselectable": "true",
|
|
15882
15889
|
ref: optionsListRef,
|
|
15890
|
+
"data-os-ignore": virtualized ? "" : void 0,
|
|
15883
15891
|
style: { maxHeight },
|
|
15884
15892
|
className: cn(
|
|
15885
15893
|
"overflow-y-auto p-1.5",
|