@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
58 lines (57 loc) • 1.7 kB
JavaScript
import { jsxs as e, jsx as t, Fragment as r } from "react/jsx-runtime";
import { c as m } from "./index-2NvaPZWc.mjs";
import f from "./search-x-CUHvpCMn.mjs";
import { c as h } from "./createLucideIcon-aN4ZJb4q.mjs";
const l = [
["path", { d: "M16 5H3", key: "m91uny" }],
["path", { d: "M11 12H3", key: "51ecnj" }],
["path", { d: "M16 19H3", key: "zzsher" }],
["path", { d: "m15.5 9.5 5 5", key: "ytk86i" }],
["path", { d: "m20.5 9.5-5 5", key: "17o44f" }]
], s = h("list-x", l), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
__iconNode: l,
default: s
}, Symbol.toStringTag, { value: "Module" })), _ = ({
entityName: c,
textFilter: a,
hasFilters: d,
className: n,
children: i,
actions: o,
...p
}) => /* @__PURE__ */ e(
"div",
{
"data-slot": "empty-state",
role: "status",
"aria-live": "polite",
className: m("text-muted-foreground flex gap-3", n),
...p,
children: [
a ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t(s, {}),
/* @__PURE__ */ e("span", { className: "flex flex-col gap-3", children: [
i ?? /* @__PURE__ */ e("span", { children: [
"No ",
c ?? "results",
" found",
a ? /* @__PURE__ */ e(r, { children: [
" for ",
/* @__PURE__ */ e("i", { children: [
'"',
a,
'"'
] }),
" search"
] }) : d ? /* @__PURE__ */ t(r, { children: " for your selected filters" }) : null,
"."
] }),
o && /* @__PURE__ */ t("div", { className: "flex gap-2", children: o })
] })
]
}
);
export {
_ as E,
k as l
};