@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 +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4149,18 +4149,22 @@ function TableHeader(props) {
|
|
|
4149
4149
|
idx > 0 && /* @__PURE__ */ jsx("wbr", {}),
|
|
4150
4150
|
/* @__PURE__ */ jsx("span", { style: { whiteSpace: "nowrap" }, children: part })
|
|
4151
4151
|
] }, idx)) : column.title;
|
|
4152
|
-
|
|
4153
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center w-full", children: [
|
|
4154
|
-
hasSortIcon && column.align === "center" && !column.isWrap && /* @__PURE__ */ jsx("div", { className: "w-5 shrink-0" }),
|
|
4152
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative flex items-center w-full", children: [
|
|
4155
4153
|
/* @__PURE__ */ jsx(
|
|
4156
4154
|
"span",
|
|
4157
4155
|
{
|
|
4158
|
-
className: `
|
|
4156
|
+
className: `w-full px-3 ${hasSortIcon && column.align !== "center" ? "pr-6" : ""} ${textAlignClass} ${baseClasses} ${isClickableHead} ${subTitleClasses}`,
|
|
4159
4157
|
style: hasWrapParts ? { wordBreak: "keep-all" } : void 0,
|
|
4160
4158
|
children: titleContent
|
|
4161
4159
|
}
|
|
4162
4160
|
),
|
|
4163
|
-
hasSortIcon && /* @__PURE__ */ jsx(
|
|
4161
|
+
hasSortIcon && /* @__PURE__ */ jsx(
|
|
4162
|
+
"div",
|
|
4163
|
+
{
|
|
4164
|
+
className: `absolute right-0 top-1/2 -translate-y-1/2 w-5 flex items-center justify-start cursor-pointer ${isClickableHead}`,
|
|
4165
|
+
children: renderSortIcon(column.key)
|
|
4166
|
+
}
|
|
4167
|
+
)
|
|
4164
4168
|
] });
|
|
4165
4169
|
};
|
|
4166
4170
|
const createGroupHeaders = () => {
|