@cystackapp/ui 2.0.4 → 2.0.5
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.
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { SearchLg as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { SearchLg as m } from "@untitled-ui/icons-react";
|
|
3
3
|
import { cn as d } from "../../utils/cn.js";
|
|
4
4
|
import f from "../../assets/background-pattern-grid.svg.js";
|
|
5
5
|
import x from "../../assets/background-pattern-circles-md.svg.js";
|
|
6
6
|
import p from "../../assets/empty-cloud.svg.js";
|
|
7
|
-
const
|
|
8
|
-
description:
|
|
9
|
-
title:
|
|
7
|
+
const y = ({
|
|
8
|
+
description: a,
|
|
9
|
+
title: s,
|
|
10
10
|
supportingText: i,
|
|
11
|
-
type:
|
|
12
|
-
buttons:
|
|
13
|
-
className:
|
|
11
|
+
type: r = "illustration",
|
|
12
|
+
buttons: l,
|
|
13
|
+
className: n,
|
|
14
14
|
icon: o
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
const c = a ?? s ?? i;
|
|
17
|
+
return /* @__PURE__ */ t(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
className: d(
|
|
21
|
-
"relative flex flex-1 flex-col items-center justify-center gap-8 overflow-hidden pb-6 pt-12",
|
|
22
|
-
|
|
21
|
+
"relative isolate flex flex-1 flex-col items-center justify-center gap-8 overflow-hidden pb-6 pt-12",
|
|
22
|
+
n
|
|
23
23
|
),
|
|
24
24
|
children: [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-5", children: [
|
|
26
|
+
/* @__PURE__ */ t("div", { className: "relative flex items-center justify-center", children: [
|
|
27
|
+
r === "illustration" ? /* @__PURE__ */ e(f, { className: "pointer-events-none absolute left-1/2 top-1/2 -z-10 h-120 w-120 -translate-x-1/2 -translate-y-1/2" }) : /* @__PURE__ */ e(x, { className: "pointer-events-none absolute left-1/2 top-1/2 -z-10 h-120 w-120 -translate-x-1/2 -translate-y-1/2" }),
|
|
28
|
+
r === "illustration" ? /* @__PURE__ */ e(p, { className: "h-32 w-43" }) : /* @__PURE__ */ e("div", { className: "flex h-12 w-12 items-center justify-center rounded-lg border border-gray-v2-200 bg-white shadow-xs", children: o ?? /* @__PURE__ */ e(m, { className: "h-6 w-6" }) })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col items-center px-3 text-center", children: /* @__PURE__ */ e("span", { className: "text-sm text-gray-v2", children: c }) })
|
|
29
31
|
] }),
|
|
30
|
-
|
|
32
|
+
l ? /* @__PURE__ */ e("div", { className: "flex gap-3", children: l }) : null
|
|
31
33
|
]
|
|
32
34
|
}
|
|
33
35
|
);
|
|
34
36
|
};
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
y as EmptyState
|
|
37
39
|
};
|