@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.cjs
CHANGED
|
@@ -3094,46 +3094,36 @@ function EmptyContent(props) {
|
|
|
3094
3094
|
const hasHeader = icon || title || description;
|
|
3095
3095
|
const isPage = layout === "page";
|
|
3096
3096
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3097
|
-
hasHeader && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3098
|
-
"div",
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(emptyIconVariants({ iconVariant }), iconClassName), children: icon }),
|
|
3107
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3108
|
-
"div",
|
|
3109
|
-
{
|
|
3110
|
-
className: cn(
|
|
3111
|
-
isPage && "text-2xl font-bold",
|
|
3112
|
-
!isPage && "text-lg font-medium tracking-tight text-foreground",
|
|
3113
|
-
titleClassName
|
|
3114
|
-
),
|
|
3115
|
-
children: title
|
|
3116
|
-
}
|
|
3097
|
+
hasHeader && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col items-center gap-2", isPage && "mt-14 mb-10 gap-3", !isPage && "max-w-sm"), children: [
|
|
3098
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(emptyIconVariants({ iconVariant }), iconClassName), children: icon }),
|
|
3099
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3100
|
+
"div",
|
|
3101
|
+
{
|
|
3102
|
+
className: cn(
|
|
3103
|
+
isPage && "text-2xl font-bold",
|
|
3104
|
+
!isPage && "text-lg font-medium tracking-tight text-foreground",
|
|
3105
|
+
titleClassName
|
|
3117
3106
|
),
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
)
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3107
|
+
children: title
|
|
3108
|
+
}
|
|
3109
|
+
),
|
|
3110
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3111
|
+
"p",
|
|
3112
|
+
{
|
|
3113
|
+
className: cn(
|
|
3114
|
+
isPage && "text-lg text-gray-500",
|
|
3115
|
+
!isPage && "text-sm leading-relaxed text-muted-foreground",
|
|
3116
|
+
descriptionClassName
|
|
3117
|
+
),
|
|
3118
|
+
children: description
|
|
3119
|
+
}
|
|
3120
|
+
)
|
|
3121
|
+
] }),
|
|
3132
3122
|
action && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3133
3123
|
"div",
|
|
3134
3124
|
{
|
|
3135
3125
|
className: cn(
|
|
3136
|
-
isPage && "flex-center w-full",
|
|
3126
|
+
isPage && "flex items-center justify-center w-full",
|
|
3137
3127
|
!isPage && "flex w-full max-w-sm flex-col items-center gap-3",
|
|
3138
3128
|
actionClassName
|
|
3139
3129
|
),
|