@farmzone/fz-react-ui 0.0.6 → 0.0.7
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -337,7 +337,7 @@ function Checkbox(props) {
|
|
|
337
337
|
"aria-checked": indeterminate ? "mixed" : checked,
|
|
338
338
|
"aria-disabled": disabled,
|
|
339
339
|
className: cn(
|
|
340
|
-
"size-4 shrink-0 rounded-[3px] border flex-center transition-colors",
|
|
340
|
+
"size-4 shrink-0 rounded-[3px] border flex items-center justify-center transition-colors",
|
|
341
341
|
disabled ? cn("cursor-not-allowed", isActive ? disabledCheckedClassName : disabledUncheckedClassName) : cn("cursor-pointer", isActive ? checkedClassName : uncheckedClassName),
|
|
342
342
|
className
|
|
343
343
|
),
|
|
@@ -352,7 +352,7 @@ function Checkbox(props) {
|
|
|
352
352
|
return /* @__PURE__ */ jsxs(
|
|
353
353
|
"div",
|
|
354
354
|
{
|
|
355
|
-
className: cn("flex-center gap-1.5", wrapperClassName),
|
|
355
|
+
className: cn("flex items-center justify-center gap-1.5", wrapperClassName),
|
|
356
356
|
onClick: (e) => e.stopPropagation(),
|
|
357
357
|
...rest,
|
|
358
358
|
children: [
|
|
@@ -3860,7 +3860,7 @@ function TableHeader(props) {
|
|
|
3860
3860
|
const subTitleClasses = column.key === "subTitle" ? "inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800" : "";
|
|
3861
3861
|
if (column.align === "left") {
|
|
3862
3862
|
return /* @__PURE__ */ jsxs("div", { className: "flex item-center w-full", children: [
|
|
3863
|
-
/* @__PURE__ */ jsx("div", { className: "flex-center", children: /* @__PURE__ */ jsx("span", { className: `pl-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3863
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: `pl-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3864
3864
|
column.sortable && /* @__PURE__ */ jsx(
|
|
3865
3865
|
"div",
|
|
3866
3866
|
{
|
|
@@ -3872,7 +3872,7 @@ function TableHeader(props) {
|
|
|
3872
3872
|
}
|
|
3873
3873
|
if (column.align === "center") {
|
|
3874
3874
|
return /* @__PURE__ */ jsxs("div", { className: "flex justify-center w-full", children: [
|
|
3875
|
-
/* @__PURE__ */ jsx("div", { className: `flex-center ${column.sortable ? "pl-5" : ""}`, children: /* @__PURE__ */ jsx("span", { className: `whitespace-nowrap ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3875
|
+
/* @__PURE__ */ jsx("div", { className: `flex items-center justify-center ${column.sortable ? "pl-5" : ""}`, children: /* @__PURE__ */ jsx("span", { className: `whitespace-nowrap ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3876
3876
|
column.sortable && /* @__PURE__ */ jsx(
|
|
3877
3877
|
"div",
|
|
3878
3878
|
{
|
|
@@ -3891,7 +3891,7 @@ function TableHeader(props) {
|
|
|
3891
3891
|
children: renderSortIcon(column.key)
|
|
3892
3892
|
}
|
|
3893
3893
|
),
|
|
3894
|
-
/* @__PURE__ */ jsx("div", { className: "flex-center", children: /* @__PURE__ */ jsx("span", { className: `pr-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) })
|
|
3894
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: `pr-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) })
|
|
3895
3895
|
] });
|
|
3896
3896
|
}
|
|
3897
3897
|
return /* @__PURE__ */ jsx("span", { className: `px-1.5 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title });
|