@farmzone/fz-react-ui 1.0.22 → 1.0.23

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 CHANGED
@@ -4183,18 +4183,22 @@ function TableHeader(props) {
4183
4183
  idx > 0 && /* @__PURE__ */ jsxRuntime.jsx("wbr", {}),
4184
4184
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: { whiteSpace: "nowrap" }, children: part })
4185
4185
  ] }, idx)) : column.title;
4186
- const paddingClass = hasSortIcon ? column.align === "center" ? "pl-1" : "pl-3" : "px-3";
4187
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center w-full", children: [
4188
- hasSortIcon && column.align === "center" && !column.isWrap && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-5 shrink-0" }),
4186
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex items-center w-full", children: [
4189
4187
  /* @__PURE__ */ jsxRuntime.jsx(
4190
4188
  "span",
4191
4189
  {
4192
- className: `flex-1 min-w-0 ${paddingClass} ${textAlignClass} ${baseClasses} ${isClickableHead} ${subTitleClasses}`,
4190
+ className: `w-full px-3 ${hasSortIcon && column.align !== "center" ? "pr-6" : ""} ${textAlignClass} ${baseClasses} ${isClickableHead} ${subTitleClasses}`,
4193
4191
  style: hasWrapParts ? { wordBreak: "keep-all" } : void 0,
4194
4192
  children: titleContent
4195
4193
  }
4196
4194
  ),
4197
- hasSortIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `w-6 shrink-0 flex items-center justify-center cursor-pointer ${isClickableHead}`, children: renderSortIcon(column.key) })
4195
+ hasSortIcon && /* @__PURE__ */ jsxRuntime.jsx(
4196
+ "div",
4197
+ {
4198
+ className: `absolute right-0 top-1/2 -translate-y-1/2 w-5 flex items-center justify-start cursor-pointer ${isClickableHead}`,
4199
+ children: renderSortIcon(column.key)
4200
+ }
4201
+ )
4198
4202
  ] });
4199
4203
  };
4200
4204
  const createGroupHeaders = () => {