@underverse-ui/underverse 1.0.105 → 1.0.106
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 +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -21630,6 +21630,7 @@ function DataTableHeader({
|
|
|
21630
21630
|
enableHeaderAutoFit,
|
|
21631
21631
|
getStickyHeaderClass,
|
|
21632
21632
|
getStickyHeaderCellStyle,
|
|
21633
|
+
sortByLabel,
|
|
21633
21634
|
t
|
|
21634
21635
|
}) {
|
|
21635
21636
|
const renderFilterControl = import_react30.default.useCallback(
|
|
@@ -21706,18 +21707,20 @@ function DataTableHeader({
|
|
|
21706
21707
|
const isRightAlign = col.align === "right" || !col.align && headerAlign === "right";
|
|
21707
21708
|
const isCenterAlign = col.align === "center" || !col.align && headerAlign === "center";
|
|
21708
21709
|
const columnLabel = getColumnLabel(col.title) || col.key;
|
|
21710
|
+
const sortByText = sortByLabel ?? "Sort by";
|
|
21711
|
+
const sortLabel = `${sortByText} ${columnLabel}`;
|
|
21709
21712
|
const titleContent = /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
21710
21713
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: cn("font-medium whitespace-nowrap select-text", headerTitleClass), children: col.title }),
|
|
21711
21714
|
col.sortable && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
21712
21715
|
Tooltip,
|
|
21713
21716
|
{
|
|
21714
21717
|
placement: "top",
|
|
21715
|
-
content: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-xs font-medium", children:
|
|
21718
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-xs font-medium", children: sortLabel }),
|
|
21716
21719
|
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
21717
21720
|
"button",
|
|
21718
21721
|
{
|
|
21719
21722
|
type: "button",
|
|
21720
|
-
title:
|
|
21723
|
+
title: sortLabel,
|
|
21721
21724
|
className: cn(
|
|
21722
21725
|
"p-1 rounded-lg transition-all duration-200 hover:bg-accent",
|
|
21723
21726
|
sort?.key === col.key ? "opacity-100 bg-accent" : "opacity-60 hover:opacity-100"
|
|
@@ -21730,7 +21733,7 @@ function DataTableHeader({
|
|
|
21730
21733
|
return null;
|
|
21731
21734
|
});
|
|
21732
21735
|
},
|
|
21733
|
-
"aria-label":
|
|
21736
|
+
"aria-label": sortLabel,
|
|
21734
21737
|
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("svg", { viewBox: "0 0 20 20", fill: "none", className: cn("inline-block", sortIconClass), children: [
|
|
21735
21738
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
21736
21739
|
"path",
|
|
@@ -22837,6 +22840,7 @@ function DataTable({
|
|
|
22837
22840
|
enableHeaderAutoFit,
|
|
22838
22841
|
getStickyHeaderClass,
|
|
22839
22842
|
getStickyHeaderCellStyle,
|
|
22843
|
+
sortByLabel: labels?.sortBy,
|
|
22840
22844
|
t
|
|
22841
22845
|
}
|
|
22842
22846
|
) }),
|