@underverse-ui/underverse 1.0.21 → 1.0.22

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
@@ -10316,7 +10316,7 @@ function useTimelineSlots(args) {
10316
10316
  return React32.createElement(
10317
10317
  "span",
10318
10318
  { className: "inline-flex flex-col items-center leading-tight" },
10319
- React32.createElement("span", { className: "text-[11px] font-semibold text-foreground truncate max-w-[8rem]" }, match.title),
10319
+ React32.createElement("span", { className: "text-[11px] font-semibold text-foreground truncate max-w-32" }, match.title),
10320
10320
  React32.createElement("span", { className: "text-[10px] font-medium text-muted-foreground/70" }, rangeText)
10321
10321
  );
10322
10322
  }
@@ -11781,7 +11781,7 @@ function CalendarTimeline({
11781
11781
  /* @__PURE__ */ jsx39(
11782
11782
  "div",
11783
11783
  {
11784
- className: cn("text-xs font-semibold leading-snug min-w-0 overflow-hidden", isPlainTitle ? "break-words" : ""),
11784
+ className: cn("text-xs font-semibold leading-snug min-w-0 overflow-hidden", isPlainTitle ? "wrap-break-word" : ""),
11785
11785
  style: isPlainTitle ? {
11786
11786
  display: "-webkit-box",
11787
11787
  WebkitBoxOrient: "vertical",
@@ -19281,8 +19281,8 @@ function useStickyColumns(columns, visibleKeys) {
19281
19281
  if (!col.fixed) return "";
19282
19282
  return cn(
19283
19283
  "sticky",
19284
- col.fixed === "left" && "left-0 shadow-[2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19285
- col.fixed === "right" && "right-0 shadow-[-2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19284
+ col.fixed === "left" && "left-0 shadow-[2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19285
+ col.fixed === "right" && "right-0 shadow-[-2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19286
19286
  "z-50 bg-muted!"
19287
19287
  );
19288
19288
  }, []);
@@ -19290,9 +19290,9 @@ function useStickyColumns(columns, visibleKeys) {
19290
19290
  if (!col.fixed) return "";
19291
19291
  return cn(
19292
19292
  "sticky z-10",
19293
- col.fixed === "left" && "left-0 shadow-[2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19294
- col.fixed === "right" && "right-0 shadow-[-2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19295
- isStripedRow ? "bg-muted/50!" : "bg-card!"
19293
+ col.fixed === "left" && "left-0 shadow-[2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19294
+ col.fixed === "right" && "right-0 shadow-[-2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19295
+ isStripedRow ? "bg-(--surface-1)!" : "bg-(--surface-0)!"
19296
19296
  );
19297
19297
  }, []);
19298
19298
  const getStickyHeaderCellStyle = React58.useCallback(
@@ -19791,17 +19791,17 @@ function DataTable({
19791
19791
  "\u2026"
19792
19792
  ] })
19793
19793
  ] }) }) }) : !displayedData || displayedData.length === 0 ? /* @__PURE__ */ jsx68(TableRow, { children: /* @__PURE__ */ jsx68(TableCell, { colSpan: leafColumns.length, className: "text-center py-6 text-muted-foreground", children: t("noData") }) }) : displayedData.map((row, idx) => {
19794
+ const isStripedRow = striped && idx % 2 === 0;
19794
19795
  return /* @__PURE__ */ jsx68(
19795
19796
  TableRow,
19796
19797
  {
19797
- className: cn(densityRowClass),
19798
+ className: cn(densityRowClass, isStripedRow ? "bg-surface-1" : "bg-surface-0"),
19798
19799
  style: {
19799
19800
  contentVisibility: "auto",
19800
19801
  containIntrinsicSize: density === "compact" ? "0 36px" : density === "comfortable" ? "0 56px" : "0 48px"
19801
19802
  },
19802
19803
  children: leafColumns.map((col, colIdx) => {
19803
19804
  const value = col.dataIndex ? row[col.dataIndex] : void 0;
19804
- const isStripedRow = striped && idx % 2 === 0;
19805
19805
  const prevCol = colIdx > 0 ? leafColumns[colIdx - 1] : null;
19806
19806
  const isAfterFixedLeft = prevCol?.fixed === "left";
19807
19807
  const showBorderLeft = columnDividers && colIdx > 0 && !isAfterFixedLeft && !col.fixed;
@@ -19814,8 +19814,7 @@ function DataTable({
19814
19814
  col.align === "right" && "text-right",
19815
19815
  col.align === "center" && "text-center",
19816
19816
  showBorderLeft && "border-l border-border/60",
19817
- getStickyCellClass(col, isStripedRow),
19818
- !col.fixed && isStripedRow && "bg-muted/50"
19817
+ getStickyCellClass(col, isStripedRow)
19819
19818
  ),
19820
19819
  children: col.render ? col.render(value, row, idx) : String(value ?? "")
19821
19820
  },