@underverse-ui/underverse 1.0.188 → 1.0.189

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.188",
3
+ "version": "1.0.189",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 248,
6
6
  "exports": [
package/dist/index.cjs CHANGED
@@ -25859,7 +25859,8 @@ function DataTableHeader({
25859
25859
  const columnLabel = getColumnLabel(col.title) || col.key;
25860
25860
  const sortByText = sortByLabel ?? gi18n.sortBy ?? "Sort by";
25861
25861
  const sortLabel = `${sortByText} ${columnLabel}`;
25862
- const titleContent = /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center gap-1", children: [
25862
+ const useEndIcon = col.iconPosition === "end";
25863
+ const titleContent = /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: cn("flex items-center gap-1", useEndIcon && "flex-1 justify-between"), children: [
25863
25864
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: cn("font-medium whitespace-nowrap select-text", headerTitleClass), children: col.title }),
25864
25865
  col.sortable && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
25865
25866
  Tooltip,
@@ -25872,8 +25873,8 @@ function DataTableHeader({
25872
25873
  type: "button",
25873
25874
  title: sortLabel,
25874
25875
  className: cn(
25875
- "p-1 rounded-lg transition-all duration-200 hover:bg-accent",
25876
- sort?.key === col.key ? "opacity-100 bg-accent" : "opacity-60 hover:opacity-100"
25876
+ "p-1 rounded-lg transition-all duration-200 hover:bg-foreground/10",
25877
+ sort?.key === col.key ? "opacity-100 bg-foreground/10" : "opacity-60 hover:opacity-100"
25877
25878
  ),
25878
25879
  onClick: () => {
25879
25880
  setCurPage(1);
@@ -25888,7 +25889,7 @@ function DataTableHeader({
25888
25889
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
25889
25890
  "path",
25890
25891
  {
25891
- d: "M7 8l3-3 3 3",
25892
+ d: "M5 7.5l5-5 5 5",
25892
25893
  stroke: "currentColor",
25893
25894
  strokeWidth: "1.5",
25894
25895
  strokeLinecap: "round",
@@ -25899,7 +25900,7 @@ function DataTableHeader({
25899
25900
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
25900
25901
  "path",
25901
25902
  {
25902
- d: "M7 12l3 3 3-3",
25903
+ d: "M5 12.5l5 5 5-5",
25903
25904
  stroke: "currentColor",
25904
25905
  strokeWidth: "1.5",
25905
25906
  strokeLinecap: "round",
@@ -25928,8 +25929,8 @@ function DataTableHeader({
25928
25929
  type: "button",
25929
25930
  title: gi18n.filterByColumn ? gi18n.filterByColumn(columnLabel) : `Filter by ${columnLabel}`,
25930
25931
  className: cn(
25931
- "p-1.5 rounded-lg transition-all duration-200 hover:bg-accent",
25932
- filters[col.key] ? "bg-accent opacity-100" : "opacity-60 hover:opacity-100"
25932
+ "p-1.5 rounded-lg transition-all duration-200 hover:bg-foreground/10",
25933
+ filters[col.key] ? "bg-foreground/10 opacity-100" : "opacity-60 hover:opacity-100"
25933
25934
  ),
25934
25935
  "aria-label": gi18n.filterByColumn ? gi18n.filterByColumn(columnLabel) : `Filter by ${columnLabel}`,
25935
25936
  children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_lucide_react38.Filter, { className: "w-4 h-4" })
@@ -25964,7 +25965,8 @@ function DataTableHeader({
25964
25965
  headerMinHeightClass,
25965
25966
  isRightAlign && "justify-end",
25966
25967
  isCenterAlign && "justify-center",
25967
- !isRightAlign && !isCenterAlign && "justify-start"
25968
+ !isRightAlign && !isCenterAlign && "justify-start",
25969
+ useEndIcon && "w-full"
25968
25970
  ),
25969
25971
  children: isRightAlign ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
25970
25972
  filterContent,