@farmzone/fz-react-ui 0.0.6 → 0.0.8

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.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: [
@@ -3060,46 +3060,36 @@ function EmptyContent(props) {
3060
3060
  const hasHeader = icon || title || description;
3061
3061
  const isPage = layout === "page";
3062
3062
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3063
- hasHeader && /* @__PURE__ */ jsxs(
3064
- "div",
3065
- {
3066
- className: cn(
3067
- "flex flex-col items-center gap-2",
3068
- isPage && "mt-14 mb-10 gap-3",
3069
- !isPage && "max-w-sm"
3070
- ),
3071
- children: [
3072
- icon && /* @__PURE__ */ jsx("div", { className: cn(emptyIconVariants({ iconVariant }), iconClassName), children: icon }),
3073
- title && /* @__PURE__ */ jsx(
3074
- "div",
3075
- {
3076
- className: cn(
3077
- isPage && "text-2xl font-bold",
3078
- !isPage && "text-lg font-medium tracking-tight text-foreground",
3079
- titleClassName
3080
- ),
3081
- children: title
3082
- }
3063
+ hasHeader && /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-center gap-2", isPage && "mt-14 mb-10 gap-3", !isPage && "max-w-sm"), children: [
3064
+ icon && /* @__PURE__ */ jsx("div", { className: cn(emptyIconVariants({ iconVariant }), iconClassName), children: icon }),
3065
+ title && /* @__PURE__ */ jsx(
3066
+ "div",
3067
+ {
3068
+ className: cn(
3069
+ isPage && "text-2xl font-bold",
3070
+ !isPage && "text-lg font-medium tracking-tight text-foreground",
3071
+ titleClassName
3083
3072
  ),
3084
- description && /* @__PURE__ */ jsx(
3085
- "p",
3086
- {
3087
- className: cn(
3088
- isPage && "text-lg text-gray-500",
3089
- !isPage && "text-sm leading-relaxed text-muted-foreground",
3090
- descriptionClassName
3091
- ),
3092
- children: description
3093
- }
3094
- )
3095
- ]
3096
- }
3097
- ),
3073
+ children: title
3074
+ }
3075
+ ),
3076
+ description && /* @__PURE__ */ jsx(
3077
+ "p",
3078
+ {
3079
+ className: cn(
3080
+ isPage && "text-lg text-gray-500",
3081
+ !isPage && "text-sm leading-relaxed text-muted-foreground",
3082
+ descriptionClassName
3083
+ ),
3084
+ children: description
3085
+ }
3086
+ )
3087
+ ] }),
3098
3088
  action && /* @__PURE__ */ jsx(
3099
3089
  "div",
3100
3090
  {
3101
3091
  className: cn(
3102
- isPage && "flex-center w-full",
3092
+ isPage && "flex items-center justify-center w-full",
3103
3093
  !isPage && "flex w-full max-w-sm flex-col items-center gap-3",
3104
3094
  actionClassName
3105
3095
  ),
@@ -3860,7 +3850,7 @@ function TableHeader(props) {
3860
3850
  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
3851
  if (column.align === "left") {
3862
3852
  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 }) }),
3853
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: `pl-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) }),
3864
3854
  column.sortable && /* @__PURE__ */ jsx(
3865
3855
  "div",
3866
3856
  {
@@ -3872,7 +3862,7 @@ function TableHeader(props) {
3872
3862
  }
3873
3863
  if (column.align === "center") {
3874
3864
  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 }) }),
3865
+ /* @__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
3866
  column.sortable && /* @__PURE__ */ jsx(
3877
3867
  "div",
3878
3868
  {
@@ -3891,7 +3881,7 @@ function TableHeader(props) {
3891
3881
  children: renderSortIcon(column.key)
3892
3882
  }
3893
3883
  ),
3894
- /* @__PURE__ */ jsx("div", { className: "flex-center", children: /* @__PURE__ */ jsx("span", { className: `pr-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) })
3884
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: `pr-2 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title }) })
3895
3885
  ] });
3896
3886
  }
3897
3887
  return /* @__PURE__ */ jsx("span", { className: `px-1.5 truncate ${baseClasses} ${isClickableHead} ${subTitleClasses}`, children: column.title });