@underverse-ui/underverse 0.2.115 → 0.2.117
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 +29 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -28
- 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",
|
|
@@ -9218,7 +9216,19 @@ function ResourceRowCell(props) {
|
|
|
9218
9216
|
var React29 = __toESM(require("react"), 1);
|
|
9219
9217
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
9220
9218
|
var CalendarTimelineGridOverlay = React29.memo(function CalendarTimelineGridOverlay2(props) {
|
|
9221
|
-
const {
|
|
9219
|
+
const {
|
|
9220
|
+
gridWidth,
|
|
9221
|
+
height,
|
|
9222
|
+
slotLefts,
|
|
9223
|
+
slotWidths,
|
|
9224
|
+
activeView,
|
|
9225
|
+
todaySlotIdx,
|
|
9226
|
+
dayAnchor,
|
|
9227
|
+
weekendSlotIdxs,
|
|
9228
|
+
visibleStartIdx,
|
|
9229
|
+
visibleEndIdx,
|
|
9230
|
+
className
|
|
9231
|
+
} = props;
|
|
9222
9232
|
const startIdx = Math.max(0, visibleStartIdx ?? 0);
|
|
9223
9233
|
const endIdx = Math.min(slotWidths.length, visibleEndIdx ?? slotWidths.length);
|
|
9224
9234
|
const showToday = activeView !== "day" && todaySlotIdx >= 0 && todaySlotIdx < slotWidths.length;
|
|
@@ -9230,7 +9240,7 @@ var CalendarTimelineGridOverlay = React29.memo(function CalendarTimelineGridOver
|
|
|
9230
9240
|
if (showToday && idx === todaySlotIdx) return null;
|
|
9231
9241
|
const left = slotLefts[idx] ?? 0;
|
|
9232
9242
|
const width = slotWidths[idx] ?? 0;
|
|
9233
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "absolute top-0 h-full bg-
|
|
9243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "absolute top-0 h-full bg-destructive/5", style: { left, width }, "aria-hidden": true }, `we_${idx}`);
|
|
9234
9244
|
}) : null,
|
|
9235
9245
|
showToday ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9236
9246
|
"div",
|
|
@@ -10461,7 +10471,7 @@ function CalendarTimeline({
|
|
|
10461
10471
|
className: cn(
|
|
10462
10472
|
sizeConfig.slotHeaderClass,
|
|
10463
10473
|
activeView !== "day" && s.isToday && "bg-primary/8 border-l-primary/40",
|
|
10464
|
-
activeView !== "day" && !s.isToday && s.isWeekend && "bg-
|
|
10474
|
+
activeView !== "day" && !s.isToday && s.isWeekend && "bg-destructive/8 text-destructive-foreground"
|
|
10465
10475
|
),
|
|
10466
10476
|
dayHeaderMarks
|
|
10467
10477
|
},
|
|
@@ -10574,28 +10584,21 @@ function CalendarTimeline({
|
|
|
10574
10584
|
onPointerLeave: () => setHoverCell(null),
|
|
10575
10585
|
children: [
|
|
10576
10586
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { style: { height: topSpacer } }),
|
|
10577
|
-
gridWidth > 0 && renderedRowsHeight > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10578
|
-
|
|
10587
|
+
gridWidth > 0 && renderedRowsHeight > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "pointer-events-none absolute left-0 z-0", style: { top: topSpacer, width: gridWidth, height: renderedRowsHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10588
|
+
CalendarTimelineGridOverlay,
|
|
10579
10589
|
{
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
todaySlotIdx,
|
|
10591
|
-
dayAnchor: activeView === "day" ? dayHeaderMarks?.anchor : null,
|
|
10592
|
-
weekendSlotIdxs,
|
|
10593
|
-
visibleStartIdx: colVirtEnabled ? visibleSlots.startIdx : void 0,
|
|
10594
|
-
visibleEndIdx: colVirtEnabled ? visibleSlots.endIdx : void 0
|
|
10595
|
-
}
|
|
10596
|
-
)
|
|
10590
|
+
gridWidth,
|
|
10591
|
+
height: renderedRowsHeight,
|
|
10592
|
+
slotLefts,
|
|
10593
|
+
slotWidths,
|
|
10594
|
+
activeView,
|
|
10595
|
+
todaySlotIdx,
|
|
10596
|
+
dayAnchor: activeView === "day" ? dayHeaderMarks?.anchor : null,
|
|
10597
|
+
weekendSlotIdxs,
|
|
10598
|
+
visibleStartIdx: colVirtEnabled ? visibleSlots.startIdx : void 0,
|
|
10599
|
+
visibleEndIdx: colVirtEnabled ? visibleSlots.endIdx : void 0
|
|
10597
10600
|
}
|
|
10598
|
-
) : null,
|
|
10601
|
+
) }) : null,
|
|
10599
10602
|
rows.slice(startRow, endRow).map((row, idx) => {
|
|
10600
10603
|
const rowIndex = startRow + idx;
|
|
10601
10604
|
const h = rowHeightsArray[rowIndex] ?? effectiveRowHeight;
|
|
@@ -11043,7 +11046,6 @@ var MultiCombobox = ({
|
|
|
11043
11046
|
const isDisabled = item.disabled || disabledOptions.includes(item.value);
|
|
11044
11047
|
const optionIcon = item.icon;
|
|
11045
11048
|
const optionDesc = item.description;
|
|
11046
|
-
const isEven = index % 2 === 0;
|
|
11047
11049
|
if (renderOption) {
|
|
11048
11050
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
11049
11051
|
"li",
|
|
@@ -11058,7 +11060,7 @@ var MultiCombobox = ({
|
|
|
11058
11060
|
inputRef.current?.focus();
|
|
11059
11061
|
},
|
|
11060
11062
|
style: { animationDelay: open ? `${Math.min(index * 20, 200)}ms` : "0ms" },
|
|
11061
|
-
className: cn("dropdown-item",
|
|
11063
|
+
className: cn("dropdown-item", isDisabled && "opacity-50 cursor-not-allowed pointer-events-none"),
|
|
11062
11064
|
children: renderOption(item, isSelected)
|
|
11063
11065
|
},
|
|
11064
11066
|
item.value
|
|
@@ -11080,7 +11082,6 @@ var MultiCombobox = ({
|
|
|
11080
11082
|
className: cn(
|
|
11081
11083
|
"dropdown-item flex cursor-pointer items-center gap-3 rounded-lg transition-all duration-200",
|
|
11082
11084
|
sizeStyles8[size].item,
|
|
11083
|
-
isEven && "bg-muted/25",
|
|
11084
11085
|
"hover:bg-accent/70 hover:shadow-sm",
|
|
11085
11086
|
index === activeIndex && "bg-accent/60",
|
|
11086
11087
|
isSelected && "bg-primary/10 text-primary font-medium",
|