UNPKG

@stanfordspezi/spezi-web-design-system

Version:

Stanford Biodesign Digital Health Spezi Web Design System

2 lines (1 loc) 1.15 kB
"use strict";const e=require("react/jsx-runtime"),d=require("./index-DwV9MiDB.js"),u=require("./search-x-BVVO3mHB.js"),p=require("./createLucideIcon-DhUaxPPk.js");const a=[["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"}]],r=p.createLucideIcon("list-x",a),h=Object.freeze(Object.defineProperty({__proto__:null,__iconNode:a,default:r},Symbol.toStringTag,{value:"Module"})),m=({entityName:c,textFilter:s,hasFilters:l,className:n,children:o,actions:t,...i})=>e.jsxs("div",{"data-slot":"empty-state",role:"status","aria-live":"polite",className:d.cn("text-muted-foreground flex gap-3",n),...i,children:[s?e.jsx(u.default,{}):e.jsx(r,{}),e.jsxs("span",{className:"flex flex-col gap-3",children:[o??e.jsxs("span",{children:["No ",c??"results"," found",s?e.jsxs(e.Fragment,{children:[" for ",e.jsxs("i",{children:['"',s,'"']})," search"]}):l?e.jsx(e.Fragment,{children:" for your selected filters"}):null,"."]}),t&&e.jsx("div",{className:"flex gap-2",children:t})]})]});exports.EmptyState=m;exports.listX=h;