@underverse-ui/underverse 0.2.116 → 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 +28 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9216,7 +9216,19 @@ function ResourceRowCell(props) {
|
|
|
9216
9216
|
var React29 = __toESM(require("react"), 1);
|
|
9217
9217
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
9218
9218
|
var CalendarTimelineGridOverlay = React29.memo(function CalendarTimelineGridOverlay2(props) {
|
|
9219
|
-
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;
|
|
9220
9232
|
const startIdx = Math.max(0, visibleStartIdx ?? 0);
|
|
9221
9233
|
const endIdx = Math.min(slotWidths.length, visibleEndIdx ?? slotWidths.length);
|
|
9222
9234
|
const showToday = activeView !== "day" && todaySlotIdx >= 0 && todaySlotIdx < slotWidths.length;
|
|
@@ -9228,7 +9240,7 @@ var CalendarTimelineGridOverlay = React29.memo(function CalendarTimelineGridOver
|
|
|
9228
9240
|
if (showToday && idx === todaySlotIdx) return null;
|
|
9229
9241
|
const left = slotLefts[idx] ?? 0;
|
|
9230
9242
|
const width = slotWidths[idx] ?? 0;
|
|
9231
|
-
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}`);
|
|
9232
9244
|
}) : null,
|
|
9233
9245
|
showToday ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
9234
9246
|
"div",
|
|
@@ -10459,7 +10471,7 @@ function CalendarTimeline({
|
|
|
10459
10471
|
className: cn(
|
|
10460
10472
|
sizeConfig.slotHeaderClass,
|
|
10461
10473
|
activeView !== "day" && s.isToday && "bg-primary/8 border-l-primary/40",
|
|
10462
|
-
activeView !== "day" && !s.isToday && s.isWeekend && "bg-
|
|
10474
|
+
activeView !== "day" && !s.isToday && s.isWeekend && "bg-destructive/8 text-destructive-foreground"
|
|
10463
10475
|
),
|
|
10464
10476
|
dayHeaderMarks
|
|
10465
10477
|
},
|
|
@@ -10572,28 +10584,21 @@ function CalendarTimeline({
|
|
|
10572
10584
|
onPointerLeave: () => setHoverCell(null),
|
|
10573
10585
|
children: [
|
|
10574
10586
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { style: { height: topSpacer } }),
|
|
10575
|
-
gridWidth > 0 && renderedRowsHeight > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10576
|
-
|
|
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,
|
|
10577
10589
|
{
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
todaySlotIdx,
|
|
10589
|
-
dayAnchor: activeView === "day" ? dayHeaderMarks?.anchor : null,
|
|
10590
|
-
weekendSlotIdxs,
|
|
10591
|
-
visibleStartIdx: colVirtEnabled ? visibleSlots.startIdx : void 0,
|
|
10592
|
-
visibleEndIdx: colVirtEnabled ? visibleSlots.endIdx : void 0
|
|
10593
|
-
}
|
|
10594
|
-
)
|
|
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
|
|
10595
10600
|
}
|
|
10596
|
-
) : null,
|
|
10601
|
+
) }) : null,
|
|
10597
10602
|
rows.slice(startRow, endRow).map((row, idx) => {
|
|
10598
10603
|
const rowIndex = startRow + idx;
|
|
10599
10604
|
const h = rowHeightsArray[rowIndex] ?? effectiveRowHeight;
|