@underverse-ui/underverse 0.2.115 → 0.2.116
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.cjs +1 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5066,7 +5066,6 @@ var Combobox = ({
|
|
|
5066
5066
|
const itemDescription = getOptionDescription(item);
|
|
5067
5067
|
const itemDisabled = getOptionDisabled(item);
|
|
5068
5068
|
const isSelected = itemValue === value;
|
|
5069
|
-
const isEven = index % 2 === 0;
|
|
5070
5069
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
5071
5070
|
"li",
|
|
5072
5071
|
{
|
|
@@ -5086,7 +5085,6 @@ var Combobox = ({
|
|
|
5086
5085
|
"dropdown-item group flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5087
5086
|
"outline-none focus:outline-none focus-visible:outline-none",
|
|
5088
5087
|
"transition-all duration-150",
|
|
5089
|
-
isEven && "bg-muted/40",
|
|
5090
5088
|
!itemDisabled && "hover:bg-accent/70 hover:shadow-sm",
|
|
5091
5089
|
!itemDisabled && "focus:bg-accent/80 focus:text-accent-foreground",
|
|
5092
5090
|
index === activeIndex && !itemDisabled && "bg-accent/60",
|
|
@@ -11043,7 +11041,6 @@ var MultiCombobox = ({
|
|
|
11043
11041
|
const isDisabled = item.disabled || disabledOptions.includes(item.value);
|
|
11044
11042
|
const optionIcon = item.icon;
|
|
11045
11043
|
const optionDesc = item.description;
|
|
11046
|
-
const isEven = index % 2 === 0;
|
|
11047
11044
|
if (renderOption) {
|
|
11048
11045
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
11049
11046
|
"li",
|
|
@@ -11058,7 +11055,7 @@ var MultiCombobox = ({
|
|
|
11058
11055
|
inputRef.current?.focus();
|
|
11059
11056
|
},
|
|
11060
11057
|
style: { animationDelay: open ? `${Math.min(index * 20, 200)}ms` : "0ms" },
|
|
11061
|
-
className: cn("dropdown-item",
|
|
11058
|
+
className: cn("dropdown-item", isDisabled && "opacity-50 cursor-not-allowed pointer-events-none"),
|
|
11062
11059
|
children: renderOption(item, isSelected)
|
|
11063
11060
|
},
|
|
11064
11061
|
item.value
|
|
@@ -11080,7 +11077,6 @@ var MultiCombobox = ({
|
|
|
11080
11077
|
className: cn(
|
|
11081
11078
|
"dropdown-item flex cursor-pointer items-center gap-3 rounded-lg transition-all duration-200",
|
|
11082
11079
|
sizeStyles8[size].item,
|
|
11083
|
-
isEven && "bg-muted/25",
|
|
11084
11080
|
"hover:bg-accent/70 hover:shadow-sm",
|
|
11085
11081
|
index === activeIndex && "bg-accent/60",
|
|
11086
11082
|
isSelected && "bg-primary/10 text-primary font-medium",
|