@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 +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5675,7 +5675,7 @@ var DatePicker = ({
|
|
|
5675
5675
|
},
|
|
5676
5676
|
className: cn(
|
|
5677
5677
|
size === "sm" ? "w-7 h-7 text-[12px]" : "w-8 h-8 text-sm",
|
|
5678
|
-
"datepicker-day rounded-lg focus:outline-none relative",
|
|
5678
|
+
"datepicker-day rounded-lg focus:outline-none relative cursor-pointer",
|
|
5679
5679
|
"transition-all duration-200 font-medium",
|
|
5680
5680
|
isPastDate && "opacity-30 cursor-not-allowed text-muted-foreground",
|
|
5681
5681
|
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",
|
|
@@ -6112,7 +6112,7 @@ var DateRangePicker = ({ startDate, endDate, onChange, placeholder = "Select dat
|
|
|
6112
6112
|
onMouseEnter: () => !isPastDate && tempStart && !tempEnd && setHoveredDate(date),
|
|
6113
6113
|
onMouseLeave: () => tempStart && !tempEnd && setHoveredDate(null),
|
|
6114
6114
|
className: cn(
|
|
6115
|
-
"transition-all duration-200 focus:outline-none relative font-medium",
|
|
6115
|
+
"transition-all duration-200 focus:outline-none relative font-medium cursor-pointer",
|
|
6116
6116
|
size === "sm" ? "w-6 h-6 text-xs" : "w-8 h-8 text-sm",
|
|
6117
6117
|
// Disabled/past date state
|
|
6118
6118
|
isPastDate && "opacity-30 cursor-not-allowed text-muted-foreground",
|
|
@@ -6461,7 +6461,7 @@ function Calendar2({
|
|
|
6461
6461
|
onClick: () => handleClickDay(d),
|
|
6462
6462
|
disabled,
|
|
6463
6463
|
className: cn(
|
|
6464
|
-
"rounded-lg flex items-center justify-center relative",
|
|
6464
|
+
"rounded-lg flex items-center justify-center relative cursor-pointer",
|
|
6465
6465
|
sz.day,
|
|
6466
6466
|
!inMonth && "text-muted-foreground/60",
|
|
6467
6467
|
disabled && "opacity-40 cursor-not-allowed",
|
|
@@ -6541,7 +6541,7 @@ function Calendar2({
|
|
|
6541
6541
|
onClick: () => handleClickDay(d),
|
|
6542
6542
|
disabled,
|
|
6543
6543
|
className: cn(
|
|
6544
|
-
"rounded-lg flex items-center justify-center relative",
|
|
6544
|
+
"rounded-lg flex items-center justify-center relative cursor-pointer",
|
|
6545
6545
|
sz.day,
|
|
6546
6546
|
disabled && "opacity-40 cursor-not-allowed",
|
|
6547
6547
|
isToday2 && !selectedDay && "ring-1 ring-primary/50",
|
|
@@ -12972,6 +12972,12 @@ function DataTable({
|
|
|
12972
12972
|
const cellPadding = density === "compact" ? "py-1.5 px-3" : density === "comfortable" ? "py-3 px-4" : "py-2.5 px-4";
|
|
12973
12973
|
const visibleColsSet = React48.useMemo(() => new Set(visibleCols), [visibleCols]);
|
|
12974
12974
|
const visibleColumns = columns.filter((c) => visibleColsSet.has(c.key));
|
|
12975
|
+
const totalColumnsWidth = React48.useMemo(() => {
|
|
12976
|
+
return visibleColumns.reduce((sum, col) => {
|
|
12977
|
+
const colWidth = typeof col.width === "number" ? col.width : parseInt(String(col.width) || "150", 10);
|
|
12978
|
+
return sum + colWidth;
|
|
12979
|
+
}, 0);
|
|
12980
|
+
}, [visibleColumns]);
|
|
12975
12981
|
const stickyPositions = React48.useMemo(() => {
|
|
12976
12982
|
const positions = {};
|
|
12977
12983
|
let leftOffset = 0;
|
|
@@ -13327,6 +13333,7 @@ function DataTable({
|
|
|
13327
13333
|
"table-fixed",
|
|
13328
13334
|
stickyHeader && ["[&_thead]:sticky", "[&_thead]:top-0", "[&_thead]:z-20", "[&_thead]:shadow-[0_1px_3px_rgba(0,0,0,0.1)]"]
|
|
13329
13335
|
),
|
|
13336
|
+
style: { minWidth: totalColumnsWidth > 0 ? `${totalColumnsWidth}px` : void 0 },
|
|
13330
13337
|
children: [
|
|
13331
13338
|
/* @__PURE__ */ jsx57(TableHeader, { children: renderHeader }),
|
|
13332
13339
|
/* @__PURE__ */ jsx57(TableBody, { children: loading2 ? /* @__PURE__ */ jsx57(TableRow, { children: /* @__PURE__ */ jsx57(TableCell, { colSpan: visibleColumns.length, className: "text-center py-8", children: /* @__PURE__ */ jsxs51("div", { className: "flex items-center justify-center gap-2 text-muted-foreground", children: [
|