@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.cjs CHANGED
@@ -10496,7 +10496,7 @@ function useTimelineSlots(args) {
10496
10496
  return React32.createElement(
10497
10497
  "span",
10498
10498
  { className: "inline-flex flex-col items-center leading-tight" },
10499
- React32.createElement("span", { className: "text-[11px] font-semibold text-foreground truncate max-w-[8rem]" }, match.title),
10499
+ React32.createElement("span", { className: "text-[11px] font-semibold text-foreground truncate max-w-32" }, match.title),
10500
10500
  React32.createElement("span", { className: "text-[10px] font-medium text-muted-foreground/70" }, rangeText)
10501
10501
  );
10502
10502
  }
@@ -11961,7 +11961,7 @@ function CalendarTimeline({
11961
11961
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11962
11962
  "div",
11963
11963
  {
11964
- className: cn("text-xs font-semibold leading-snug min-w-0 overflow-hidden", isPlainTitle ? "break-words" : ""),
11964
+ className: cn("text-xs font-semibold leading-snug min-w-0 overflow-hidden", isPlainTitle ? "wrap-break-word" : ""),
11965
11965
  style: isPlainTitle ? {
11966
11966
  display: "-webkit-box",
11967
11967
  WebkitBoxOrient: "vertical",
@@ -19445,8 +19445,8 @@ function useStickyColumns(columns, visibleKeys) {
19445
19445
  if (!col.fixed) return "";
19446
19446
  return cn(
19447
19447
  "sticky",
19448
- col.fixed === "left" && "left-0 shadow-[2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19449
- col.fixed === "right" && "right-0 shadow-[-2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19448
+ col.fixed === "left" && "left-0 shadow-[2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19449
+ col.fixed === "right" && "right-0 shadow-[-2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19450
19450
  "z-50 bg-muted!"
19451
19451
  );
19452
19452
  }, []);
@@ -19454,9 +19454,9 @@ function useStickyColumns(columns, visibleKeys) {
19454
19454
  if (!col.fixed) return "";
19455
19455
  return cn(
19456
19456
  "sticky z-10",
19457
- col.fixed === "left" && "left-0 shadow-[2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19458
- col.fixed === "right" && "right-0 shadow-[-2px_0_5px_-2px_rgba(0,0,0,0.15)]",
19459
- isStripedRow ? "bg-muted/50!" : "bg-card!"
19457
+ col.fixed === "left" && "left-0 shadow-[2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19458
+ col.fixed === "right" && "right-0 shadow-[-2px_0_6px_-3px_rgba(0,0,0,0.08)]",
19459
+ isStripedRow ? "bg-(--surface-1)!" : "bg-(--surface-0)!"
19460
19460
  );
19461
19461
  }, []);
19462
19462
  const getStickyHeaderCellStyle = import_react36.default.useCallback(
@@ -19955,17 +19955,17 @@ function DataTable({
19955
19955
  "\u2026"
19956
19956
  ] })
19957
19957
  ] }) }) }) : !displayedData || displayedData.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TableCell, { colSpan: leafColumns.length, className: "text-center py-6 text-muted-foreground", children: t("noData") }) }) : displayedData.map((row, idx) => {
19958
+ const isStripedRow = striped && idx % 2 === 0;
19958
19959
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
19959
19960
  TableRow,
19960
19961
  {
19961
- className: cn(densityRowClass),
19962
+ className: cn(densityRowClass, isStripedRow ? "bg-surface-1" : "bg-surface-0"),
19962
19963
  style: {
19963
19964
  contentVisibility: "auto",
19964
19965
  containIntrinsicSize: density === "compact" ? "0 36px" : density === "comfortable" ? "0 56px" : "0 48px"
19965
19966
  },
19966
19967
  children: leafColumns.map((col, colIdx) => {
19967
19968
  const value = col.dataIndex ? row[col.dataIndex] : void 0;
19968
- const isStripedRow = striped && idx % 2 === 0;
19969
19969
  const prevCol = colIdx > 0 ? leafColumns[colIdx - 1] : null;
19970
19970
  const isAfterFixedLeft = prevCol?.fixed === "left";
19971
19971
  const showBorderLeft = columnDividers && colIdx > 0 && !isAfterFixedLeft && !col.fixed;
@@ -19978,8 +19978,7 @@ function DataTable({
19978
19978
  col.align === "right" && "text-right",
19979
19979
  col.align === "center" && "text-center",
19980
19980
  showBorderLeft && "border-l border-border/60",
19981
- getStickyCellClass(col, isStripedRow),
19982
- !col.fixed && isStripedRow && "bg-muted/50"
19981
+ getStickyCellClass(col, isStripedRow)
19983
19982
  ),
19984
19983
  children: col.render ? col.render(value, row, idx) : String(value ?? "")
19985
19984
  },