@underverse-ui/underverse 2.0.19 → 2.0.20
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/api-reference.json +1 -1
- package/dist/index.cjs +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22053,7 +22053,8 @@ function DataTablePagination({
|
|
|
22053
22053
|
setCurPageSize,
|
|
22054
22054
|
size,
|
|
22055
22055
|
align,
|
|
22056
|
-
paginationRange
|
|
22056
|
+
paginationRange,
|
|
22057
|
+
borderMode
|
|
22057
22058
|
}) {
|
|
22058
22059
|
const totalPages = Math.ceil(totalItems / curPageSize);
|
|
22059
22060
|
const pages = React51.useMemo(() => {
|
|
@@ -22069,7 +22070,8 @@ function DataTablePagination({
|
|
|
22069
22070
|
const controlButtonSize = size === "lg" ? "md" : "sm";
|
|
22070
22071
|
const navBtnClass = size === "sm" ? "h-6 w-6 p-0 rounded-full" : size === "lg" ? "h-8 w-8 p-0 rounded-full" : "h-7 w-7 p-0 rounded-full";
|
|
22071
22072
|
const navIconClass = size === "sm" ? "h-3.5 w-3.5" : size === "lg" ? "h-5 w-5" : "h-4 w-4";
|
|
22072
|
-
const
|
|
22073
|
+
const pageBtnRadiusClass = getBorderRadiusClass(borderMode);
|
|
22074
|
+
const pageBtnClass = size === "sm" ? "h-6 min-w-6 px-1.5 text-[11px] font-medium transition-colors" : size === "lg" ? "h-8 min-w-8 px-2.5 text-sm font-medium transition-colors" : "h-7 min-w-7 px-2 text-xs font-medium transition-colors";
|
|
22073
22075
|
const containerTextClass = size === "sm" ? "text-[11px]" : size === "lg" ? "text-sm" : "text-xs";
|
|
22074
22076
|
const pageSizeClass = size === "sm" ? "w-16" : size === "lg" ? "w-24" : "w-20";
|
|
22075
22077
|
return /* @__PURE__ */ jsxs51("div", { className: cn("relative flex items-center gap-2 px-1 pt-3 text-muted-foreground", containerTextClass), children: [
|
|
@@ -22099,7 +22101,7 @@ function DataTablePagination({
|
|
|
22099
22101
|
"div",
|
|
22100
22102
|
{
|
|
22101
22103
|
className: cn(
|
|
22102
|
-
"flex items-center gap-
|
|
22104
|
+
"flex items-center gap-3",
|
|
22103
22105
|
align === "center" && "absolute left-1/2 -translate-x-1/2",
|
|
22104
22106
|
align === "right" && "ml-auto"
|
|
22105
22107
|
),
|
|
@@ -22115,17 +22117,17 @@ function DataTablePagination({
|
|
|
22115
22117
|
children: /* @__PURE__ */ jsx59("svg", { className: navIconClass, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx59("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 19l-7-7 7-7" }) })
|
|
22116
22118
|
}
|
|
22117
22119
|
),
|
|
22118
|
-
pages.map(
|
|
22120
|
+
/* @__PURE__ */ jsx59("div", { className: "flex items-center gap-2", children: pages.map(
|
|
22119
22121
|
(p, i) => p === "..." ? /* @__PURE__ */ jsx59("span", { className: "px-1 text-muted-foreground/60", children: "\u2026" }, `dots-${i}`) : /* @__PURE__ */ jsx59(
|
|
22120
22122
|
"button",
|
|
22121
22123
|
{
|
|
22122
22124
|
onClick: () => setCurPage(p),
|
|
22123
|
-
className: cn(pageBtnClass, curPage === p ? "bg-primary text-primary-foreground" : "hover:bg-accent hover:text-accent-foreground"),
|
|
22125
|
+
className: cn(pageBtnClass, pageBtnRadiusClass, curPage === p ? "bg-primary text-primary-foreground" : "hover:bg-accent hover:text-accent-foreground"),
|
|
22124
22126
|
children: p
|
|
22125
22127
|
},
|
|
22126
22128
|
p
|
|
22127
22129
|
)
|
|
22128
|
-
),
|
|
22130
|
+
) }),
|
|
22129
22131
|
/* @__PURE__ */ jsx59(
|
|
22130
22132
|
Button_default,
|
|
22131
22133
|
{
|
|
@@ -23102,7 +23104,8 @@ function DataTable({
|
|
|
23102
23104
|
setCurPageSize,
|
|
23103
23105
|
size,
|
|
23104
23106
|
align: paginationAlign,
|
|
23105
|
-
paginationRange
|
|
23107
|
+
paginationRange,
|
|
23108
|
+
borderMode: resolvedBorderMode
|
|
23106
23109
|
}
|
|
23107
23110
|
)
|
|
23108
23111
|
] });
|