@farmzone/fz-react-ui 0.0.5 → 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.cjs
CHANGED
|
@@ -371,7 +371,7 @@ function Checkbox(props) {
|
|
|
371
371
|
"aria-checked": indeterminate ? "mixed" : checked,
|
|
372
372
|
"aria-disabled": disabled,
|
|
373
373
|
className: cn(
|
|
374
|
-
"size-4 shrink-0 rounded-[3px] border flex-center transition-colors",
|
|
374
|
+
"size-4 shrink-0 rounded-[3px] border flex items-center justify-center transition-colors",
|
|
375
375
|
disabled ? cn("cursor-not-allowed", isActive ? disabledCheckedClassName : disabledUncheckedClassName) : cn("cursor-pointer", isActive ? checkedClassName : uncheckedClassName),
|
|
376
376
|
className
|
|
377
377
|
),
|
|
@@ -386,7 +386,7 @@ function Checkbox(props) {
|
|
|
386
386
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
387
387
|
"div",
|
|
388
388
|
{
|
|
389
|
-
className: cn("flex-center gap-1.5", wrapperClassName),
|
|
389
|
+
className: cn("flex items-center justify-center gap-1.5", wrapperClassName),
|
|
390
390
|
onClick: (e) => e.stopPropagation(),
|
|
391
391
|
...rest,
|
|
392
392
|
children: [
|
|
@@ -3894,7 +3894,7 @@ function TableHeader(props) {
|
|
|
3894
3894
|
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" : "";
|
|
3895
3895
|
if (column.align === "left") {
|
|
3896
3896
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex item-center w-full", children: [
|
|
3897
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `pl-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3897
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `pl-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3898
3898
|
column.sortable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3899
3899
|
"div",
|
|
3900
3900
|
{
|
|
@@ -3906,7 +3906,7 @@ function TableHeader(props) {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
if (column.align === "center") {
|
|
3908
3908
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-center w-full", children: [
|
|
3909
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex-center ${column.sortable ? "pl-5" : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `whitespace-nowrap ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3909
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex items-center justify-center ${column.sortable ? "pl-5" : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `whitespace-nowrap ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
|
|
3910
3910
|
column.sortable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3911
3911
|
"div",
|
|
3912
3912
|
{
|
|
@@ -3925,7 +3925,7 @@ function TableHeader(props) {
|
|
|
3925
3925
|
children: renderSortIcon(column.key)
|
|
3926
3926
|
}
|
|
3927
3927
|
),
|
|
3928
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `pr-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) })
|
|
3928
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `pr-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) })
|
|
3929
3929
|
] });
|
|
3930
3930
|
}
|
|
3931
3931
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: `px-1.5 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title });
|