@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.cjs +25 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -35
- package/dist/index.js.map +1 -1
- package/dist/tw.css +30 -1
- package/package.json +2 -2
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
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
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
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
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
|
),
|