@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.js CHANGED
@@ -9041,7 +9041,19 @@ function ResourceRowCell(props) {
9041
9041
  import * as React29 from "react";
9042
9042
  import { jsx as jsx36, jsxs as jsxs31 } from "react/jsx-runtime";
9043
9043
  var CalendarTimelineGridOverlay = React29.memo(function CalendarTimelineGridOverlay2(props) {
9044
- const { gridWidth, height, slotLefts, slotWidths, activeView, todaySlotIdx, dayAnchor, weekendSlotIdxs, visibleStartIdx, visibleEndIdx, className } = props;
9044
+ const {
9045
+ gridWidth,
9046
+ height,
9047
+ slotLefts,
9048
+ slotWidths,
9049
+ activeView,
9050
+ todaySlotIdx,
9051
+ dayAnchor,
9052
+ weekendSlotIdxs,
9053
+ visibleStartIdx,
9054
+ visibleEndIdx,
9055
+ className
9056
+ } = props;
9045
9057
  const startIdx = Math.max(0, visibleStartIdx ?? 0);
9046
9058
  const endIdx = Math.min(slotWidths.length, visibleEndIdx ?? slotWidths.length);
9047
9059
  const showToday = activeView !== "day" && todaySlotIdx >= 0 && todaySlotIdx < slotWidths.length;
@@ -9053,7 +9065,7 @@ var CalendarTimelineGridOverlay = React29.memo(function CalendarTimelineGridOver
9053
9065
  if (showToday && idx === todaySlotIdx) return null;
9054
9066
  const left = slotLefts[idx] ?? 0;
9055
9067
  const width = slotWidths[idx] ?? 0;
9056
- return /* @__PURE__ */ jsx36("div", { className: "absolute top-0 h-full bg-muted/10", style: { left, width }, "aria-hidden": true }, `we_${idx}`);
9068
+ return /* @__PURE__ */ jsx36("div", { className: "absolute top-0 h-full bg-destructive/5", style: { left, width }, "aria-hidden": true }, `we_${idx}`);
9057
9069
  }) : null,
9058
9070
  showToday ? /* @__PURE__ */ jsx36(
9059
9071
  "div",
@@ -10284,7 +10296,7 @@ function CalendarTimeline({
10284
10296
  className: cn(
10285
10297
  sizeConfig.slotHeaderClass,
10286
10298
  activeView !== "day" && s.isToday && "bg-primary/8 border-l-primary/40",
10287
- activeView !== "day" && !s.isToday && s.isWeekend && "bg-muted/15"
10299
+ activeView !== "day" && !s.isToday && s.isWeekend && "bg-destructive/8 text-destructive-foreground"
10288
10300
  ),
10289
10301
  dayHeaderMarks
10290
10302
  },
@@ -10397,28 +10409,21 @@ function CalendarTimeline({
10397
10409
  onPointerLeave: () => setHoverCell(null),
10398
10410
  children: [
10399
10411
  /* @__PURE__ */ jsx38("div", { style: { height: topSpacer } }),
10400
- gridWidth > 0 && renderedRowsHeight > 0 ? /* @__PURE__ */ jsx38(
10401
- "div",
10412
+ gridWidth > 0 && renderedRowsHeight > 0 ? /* @__PURE__ */ jsx38("div", { className: "pointer-events-none absolute left-0 z-0", style: { top: topSpacer, width: gridWidth, height: renderedRowsHeight }, children: /* @__PURE__ */ jsx38(
10413
+ CalendarTimelineGridOverlay,
10402
10414
  {
10403
- className: "pointer-events-none absolute left-0 z-0",
10404
- style: { top: topSpacer, width: gridWidth, height: renderedRowsHeight },
10405
- children: /* @__PURE__ */ jsx38(
10406
- CalendarTimelineGridOverlay,
10407
- {
10408
- gridWidth,
10409
- height: renderedRowsHeight,
10410
- slotLefts,
10411
- slotWidths,
10412
- activeView,
10413
- todaySlotIdx,
10414
- dayAnchor: activeView === "day" ? dayHeaderMarks?.anchor : null,
10415
- weekendSlotIdxs,
10416
- visibleStartIdx: colVirtEnabled ? visibleSlots.startIdx : void 0,
10417
- visibleEndIdx: colVirtEnabled ? visibleSlots.endIdx : void 0
10418
- }
10419
- )
10415
+ gridWidth,
10416
+ height: renderedRowsHeight,
10417
+ slotLefts,
10418
+ slotWidths,
10419
+ activeView,
10420
+ todaySlotIdx,
10421
+ dayAnchor: activeView === "day" ? dayHeaderMarks?.anchor : null,
10422
+ weekendSlotIdxs,
10423
+ visibleStartIdx: colVirtEnabled ? visibleSlots.startIdx : void 0,
10424
+ visibleEndIdx: colVirtEnabled ? visibleSlots.endIdx : void 0
10420
10425
  }
10421
- ) : null,
10426
+ ) }) : null,
10422
10427
  rows.slice(startRow, endRow).map((row, idx) => {
10423
10428
  const rowIndex = startRow + idx;
10424
10429
  const h = rowHeightsArray[rowIndex] ?? effectiveRowHeight;