@anoki/fse-ui
Version:
FSE UI components library
3 lines (2 loc) • 2.06 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/CardBanner/CardBanner.css');const e=require("./index.cjs237.js"),o=require("./index.cjs61.js");require("./index.cjs.js");const m=require("./index.cjs72.js");;/* empty css */const j=require("./index.cjs18.js"),r=require("./index.cjs116.js"),c=require("./index.cjs25.js"),l=({actions:s,description:d,title:p,link:x,firstStatusLabel:t,secondStatusLabel:i,personalStatusLabel:n})=>e.jsxRuntimeExports.jsxs(o.Col,{className:"ui-card-banner",py:"x24",children:[e.jsxRuntimeExports.jsxs(r.Row,{gap:"x16",px:"x24",flexWrap:"wrap",children:[n&&e.jsxRuntimeExports.jsx("div",{className:"px-x16 py-x4 bg-status-secondary rounded text-white ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-semibold fs-7",children:n})}),t&&e.jsxRuntimeExports.jsx("div",{className:"px-x16 py-x4 bg-primary rounded text-white ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-semibold fs-7",children:t})}),i&&e.jsxRuntimeExports.jsx("div",{className:"px-x16 py-x4 bg-status-warning rounded text-white ",children:e.jsxRuntimeExports.jsx("span",{className:"text-white fs-7 fw-semibold fs-7",children:i})})]}),e.jsxRuntimeExports.jsxs(o.Col,{px:"x24",gap:"x16",children:[e.jsxRuntimeExports.jsx("h1",{className:"title",children:p}),e.jsxRuntimeExports.jsx("div",{className:"description",children:d}),!!x&&e.jsxRuntimeExports.jsx(r.Row,{justifyContent:"flex-end ",children:e.jsxRuntimeExports.jsx(c.ArrowLink,{href:x.link,isExternal:x.isExternal,children:x.title})})]}),!!s&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(m.Divider,{bg:"border-divider",className:"my-x24"}),e.jsxRuntimeExports.jsx(r.Row,{justifyContent:"flex-end",gap:"x16",px:"x24",flexWrap:"wrap",className:"ui-actions-wrapper",children:s==null?void 0:s.map(a=>e.jsxRuntimeExports.jsx(j.ActionIconText,{classNameComponent:"action-icon-text",...a}))})]})]});exports.CardBanner=l;
//# sourceMappingURL=index.cjs35.js.map