@farmzone/fz-react-ui 0.0.7 → 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
@@ -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
  ),