@underverse-ui/underverse 0.2.17 → 0.2.18
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 +22 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -79
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5074,7 +5074,7 @@ var DatePicker = ({
|
|
|
5074
5074
|
size === "sm" ? "w-7 h-7 text-[12px]" : "w-8 h-8 text-sm",
|
|
5075
5075
|
"datepicker-day rounded-md focus:outline-none",
|
|
5076
5076
|
"transition-colors",
|
|
5077
|
-
isSelected ? "bg-primary text-primary-foreground hover
|
|
5077
|
+
isSelected ? "!bg-primary text-primary-foreground font-bold ring-2 ring-primary-foreground/60 shadow-lg scale-105 z-10 hover:!bg-primary focus:!bg-primary focus:text-primary-foreground" : "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
|
5078
5078
|
isToday2 && !isSelected && "bg-accent text-accent-foreground font-semibold"
|
|
5079
5079
|
),
|
|
5080
5080
|
children: day
|
|
@@ -9989,68 +9989,28 @@ var LoadingBar = ({
|
|
|
9989
9989
|
// ../../components/ui/Table.tsx
|
|
9990
9990
|
var import_react22 = __toESM(require("react"), 1);
|
|
9991
9991
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
9992
|
-
var Table = import_react22.default.forwardRef(
|
|
9993
|
-
|
|
9994
|
-
"div",
|
|
9995
|
-
{
|
|
9996
|
-
className: cn(
|
|
9997
|
-
"relative w-full overflow-auto",
|
|
9998
|
-
"rounded-lg md:rounded-xl border border-border",
|
|
9999
|
-
"bg-card text-card-foreground shadow-sm",
|
|
10000
|
-
"backdrop-blur-sm transition-all duration-300",
|
|
10001
|
-
containerClassName
|
|
10002
|
-
),
|
|
10003
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10004
|
-
"table",
|
|
10005
|
-
{
|
|
10006
|
-
ref,
|
|
10007
|
-
className: cn("w-full caption-bottom text-sm", className),
|
|
10008
|
-
...props
|
|
10009
|
-
}
|
|
10010
|
-
)
|
|
10011
|
-
}
|
|
10012
|
-
)
|
|
10013
|
-
);
|
|
10014
|
-
Table.displayName = "Table";
|
|
10015
|
-
var TableHeader = import_react22.default.forwardRef(
|
|
10016
|
-
({ className, children, filterRow, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
10017
|
-
"thead",
|
|
10018
|
-
{
|
|
10019
|
-
ref,
|
|
10020
|
-
className: cn(
|
|
10021
|
-
"[&_tr]:border-b [&_tr]:border-border",
|
|
10022
|
-
"bg-muted/20",
|
|
10023
|
-
className
|
|
10024
|
-
),
|
|
10025
|
-
...props,
|
|
10026
|
-
children: [
|
|
10027
|
-
children,
|
|
10028
|
-
filterRow
|
|
10029
|
-
]
|
|
10030
|
-
}
|
|
10031
|
-
)
|
|
10032
|
-
);
|
|
10033
|
-
TableHeader.displayName = "TableHeader";
|
|
10034
|
-
var TableBody = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10035
|
-
"tbody",
|
|
10036
|
-
{
|
|
10037
|
-
ref,
|
|
10038
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
10039
|
-
...props
|
|
10040
|
-
}
|
|
10041
|
-
));
|
|
10042
|
-
TableBody.displayName = "TableBody";
|
|
10043
|
-
var TableFooter = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10044
|
-
"tfoot",
|
|
9992
|
+
var Table = import_react22.default.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
9993
|
+
"div",
|
|
10045
9994
|
{
|
|
10046
|
-
ref,
|
|
10047
9995
|
className: cn(
|
|
10048
|
-
"
|
|
10049
|
-
|
|
9996
|
+
"relative w-full overflow-auto",
|
|
9997
|
+
"rounded-lg md:rounded-xl border border-border",
|
|
9998
|
+
"bg-card text-card-foreground shadow-sm",
|
|
9999
|
+
"backdrop-blur-sm transition-all duration-300",
|
|
10000
|
+
containerClassName
|
|
10050
10001
|
),
|
|
10051
|
-
...props
|
|
10002
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props })
|
|
10052
10003
|
}
|
|
10053
10004
|
));
|
|
10005
|
+
Table.displayName = "Table";
|
|
10006
|
+
var TableHeader = import_react22.default.forwardRef(({ className, children, filterRow, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("thead", { ref, className: cn("[&_tr]:border-b [&_tr]:border-border", "bg-muted/50", className), ...props, children: [
|
|
10007
|
+
children,
|
|
10008
|
+
filterRow
|
|
10009
|
+
] }));
|
|
10010
|
+
TableHeader.displayName = "TableHeader";
|
|
10011
|
+
var TableBody = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
10012
|
+
TableBody.displayName = "TableBody";
|
|
10013
|
+
var TableFooter = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props }));
|
|
10054
10014
|
TableFooter.displayName = "TableFooter";
|
|
10055
10015
|
var TableRow = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10056
10016
|
"tr",
|
|
@@ -10070,31 +10030,14 @@ var TableHead = import_react22.default.forwardRef(({ className, ...props }, ref)
|
|
|
10070
10030
|
"th",
|
|
10071
10031
|
{
|
|
10072
10032
|
ref,
|
|
10073
|
-
className: cn(
|
|
10074
|
-
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
10075
|
-
className
|
|
10076
|
-
),
|
|
10033
|
+
className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className),
|
|
10077
10034
|
...props
|
|
10078
10035
|
}
|
|
10079
10036
|
));
|
|
10080
10037
|
TableHead.displayName = "TableHead";
|
|
10081
|
-
var TableCell = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10082
|
-
"td",
|
|
10083
|
-
{
|
|
10084
|
-
ref,
|
|
10085
|
-
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
10086
|
-
...props
|
|
10087
|
-
}
|
|
10088
|
-
));
|
|
10038
|
+
var TableCell = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props }));
|
|
10089
10039
|
TableCell.displayName = "TableCell";
|
|
10090
|
-
var TableCaption = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
10091
|
-
"caption",
|
|
10092
|
-
{
|
|
10093
|
-
ref,
|
|
10094
|
-
className: cn("mt-4 text-sm text-muted-foreground", className),
|
|
10095
|
-
...props
|
|
10096
|
-
}
|
|
10097
|
-
));
|
|
10040
|
+
var TableCaption = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
10098
10041
|
TableCaption.displayName = "TableCaption";
|
|
10099
10042
|
|
|
10100
10043
|
// ../../components/ui/DataTable.tsx
|
|
@@ -10465,7 +10408,7 @@ function DataTable({
|
|
|
10465
10408
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-sm", children: "Loading..." })
|
|
10466
10409
|
] }) }) }) : !displayedData || displayedData.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableCell, { colSpan: visibleColumns.length, className: "text-center py-6 text-muted-foreground", children: "No data" }) }) : displayedData.map((row, idx) => {
|
|
10467
10410
|
const isLastRow = idx === displayedData.length - 1;
|
|
10468
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableRow, { className: cn(densityRowClass, striped && idx % 2 === 0 && "bg-muted/
|
|
10411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableRow, { className: cn(densityRowClass, striped && idx % 2 === 0 && "bg-muted/50"), children: visibleColumns.map((col, colIdx) => {
|
|
10469
10412
|
const value = col.dataIndex ? row[col.dataIndex] : void 0;
|
|
10470
10413
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
10471
10414
|
TableCell,
|