@underverse-ui/underverse 0.2.69 → 0.2.71

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
@@ -5848,7 +5848,7 @@ var DatePicker = ({
5848
5848
  },
5849
5849
  className: cn(
5850
5850
  size === "sm" ? "w-7 h-7 text-[12px]" : "w-8 h-8 text-sm",
5851
- "datepicker-day rounded-lg focus:outline-none relative",
5851
+ "datepicker-day rounded-lg focus:outline-none relative cursor-pointer",
5852
5852
  "transition-all duration-200 font-medium",
5853
5853
  isPastDate && "opacity-30 cursor-not-allowed text-muted-foreground",
5854
5854
  isSelected ? "bg-linear-to-br from-primary to-primary/80 text-primary-foreground font-bold shadow-lg shadow-primary/30 scale-110 z-10 hover:from-primary hover:to-primary/70" : !isPastDate && "hover:bg-accent/80 hover:text-accent-foreground hover:scale-105 focus:bg-accent focus:text-accent-foreground",
@@ -6285,7 +6285,7 @@ var DateRangePicker = ({ startDate, endDate, onChange, placeholder = "Select dat
6285
6285
  onMouseEnter: () => !isPastDate && tempStart && !tempEnd && setHoveredDate(date),
6286
6286
  onMouseLeave: () => tempStart && !tempEnd && setHoveredDate(null),
6287
6287
  className: cn(
6288
- "transition-all duration-200 focus:outline-none relative font-medium",
6288
+ "transition-all duration-200 focus:outline-none relative font-medium cursor-pointer",
6289
6289
  size === "sm" ? "w-6 h-6 text-xs" : "w-8 h-8 text-sm",
6290
6290
  // Disabled/past date state
6291
6291
  isPastDate && "opacity-30 cursor-not-allowed text-muted-foreground",
@@ -6634,7 +6634,7 @@ function Calendar2({
6634
6634
  onClick: () => handleClickDay(d),
6635
6635
  disabled,
6636
6636
  className: cn(
6637
- "rounded-lg flex items-center justify-center relative",
6637
+ "rounded-lg flex items-center justify-center relative cursor-pointer",
6638
6638
  sz.day,
6639
6639
  !inMonth && "text-muted-foreground/60",
6640
6640
  disabled && "opacity-40 cursor-not-allowed",
@@ -6714,7 +6714,7 @@ function Calendar2({
6714
6714
  onClick: () => handleClickDay(d),
6715
6715
  disabled,
6716
6716
  className: cn(
6717
- "rounded-lg flex items-center justify-center relative",
6717
+ "rounded-lg flex items-center justify-center relative cursor-pointer",
6718
6718
  sz.day,
6719
6719
  disabled && "opacity-40 cursor-not-allowed",
6720
6720
  isToday2 && !selectedDay && "ring-1 ring-primary/50",
@@ -13145,6 +13145,12 @@ function DataTable({
13145
13145
  const cellPadding = density === "compact" ? "py-1.5 px-3" : density === "comfortable" ? "py-3 px-4" : "py-2.5 px-4";
13146
13146
  const visibleColsSet = import_react32.default.useMemo(() => new Set(visibleCols), [visibleCols]);
13147
13147
  const visibleColumns = columns.filter((c) => visibleColsSet.has(c.key));
13148
+ const totalColumnsWidth = import_react32.default.useMemo(() => {
13149
+ return visibleColumns.reduce((sum, col) => {
13150
+ const colWidth = typeof col.width === "number" ? col.width : parseInt(String(col.width) || "150", 10);
13151
+ return sum + colWidth;
13152
+ }, 0);
13153
+ }, [visibleColumns]);
13148
13154
  const stickyPositions = import_react32.default.useMemo(() => {
13149
13155
  const positions = {};
13150
13156
  let leftOffset = 0;
@@ -13500,6 +13506,7 @@ function DataTable({
13500
13506
  "table-fixed",
13501
13507
  stickyHeader && ["[&_thead]:sticky", "[&_thead]:top-0", "[&_thead]:z-20", "[&_thead]:shadow-[0_1px_3px_rgba(0,0,0,0.1)]"]
13502
13508
  ),
13509
+ style: { minWidth: totalColumnsWidth > 0 ? `${totalColumnsWidth}px` : void 0 },
13503
13510
  children: [
13504
13511
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableHeader, { children: renderHeader }),
13505
13512
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableBody, { children: loading2 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableCell, { colSpan: visibleColumns.length, className: "text-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center justify-center gap-2 text-muted-foreground", children: [