@underverse-ui/underverse 1.0.189 → 1.0.190

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.d.cts CHANGED
@@ -2715,7 +2715,7 @@ type DataTableColumn<T> = {
2715
2715
  render?: (value: any, record: T, index: number) => React__default.ReactNode;
2716
2716
  width?: number | string;
2717
2717
  align?: "left" | "center" | "right";
2718
- /** Vị trí của icon sort/filter: "inline" (ngay sát text) hoặc "end" (cuối dòng) */
2718
+ /** Vị trí của icon sort/filter: "inline" (ngay sát text) hoặc "end" (cuối dòng). Mặc định là "end". */
2719
2719
  iconPosition?: "inline" | "end";
2720
2720
  visible?: boolean;
2721
2721
  /** Cố định cột bên trái hoặc phải khi cuộn ngang */
package/dist/index.d.ts CHANGED
@@ -2715,7 +2715,7 @@ type DataTableColumn<T> = {
2715
2715
  render?: (value: any, record: T, index: number) => React__default.ReactNode;
2716
2716
  width?: number | string;
2717
2717
  align?: "left" | "center" | "right";
2718
- /** Vị trí của icon sort/filter: "inline" (ngay sát text) hoặc "end" (cuối dòng) */
2718
+ /** Vị trí của icon sort/filter: "inline" (ngay sát text) hoặc "end" (cuối dòng). Mặc định là "end". */
2719
2719
  iconPosition?: "inline" | "end";
2720
2720
  visible?: boolean;
2721
2721
  /** Cố định cột bên trái hoặc phải khi cuộn ngang */
package/dist/index.js CHANGED
@@ -25680,7 +25680,7 @@ function DataTableHeader({
25680
25680
  const columnLabel = getColumnLabel(col.title) || col.key;
25681
25681
  const sortByText = sortByLabel ?? gi18n.sortBy ?? "Sort by";
25682
25682
  const sortLabel = `${sortByText} ${columnLabel}`;
25683
- const useEndIcon = col.iconPosition === "end";
25683
+ const useEndIcon = (col.iconPosition ?? "end") === "end";
25684
25684
  const titleContent = /* @__PURE__ */ jsxs55("div", { className: cn("flex items-center gap-1", useEndIcon && "flex-1 justify-between"), children: [
25685
25685
  /* @__PURE__ */ jsx68("span", { className: cn("font-medium whitespace-nowrap select-text", headerTitleClass), children: col.title }),
25686
25686
  col.sortable && /* @__PURE__ */ jsx68(