@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.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
|
-
|
|
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: `
|
|
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(
|
|
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 = () => {
|