UNPKG

@copilotkit/a2ui-renderer

Version:

A2UI Renderer for CopilotKit - render A2UI surfaces in React applications

1 lines 1.01 kB
{"version":3,"file":"card.cjs","names":["createLitComponent","CardApi","getBaseContainerStyle","nothing"],"sources":["../../../../src/web-components/catalog/basic/card.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { CardApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseContainerStyle } from \"./utils\";\n\nexport const Card = createLitComponent(\n CardApi,\n ({ props, buildChild }) => html`\n <div\n style=${styleMap({\n ...getBaseContainerStyle(),\n backgroundColor: \"#fff\",\n boxShadow: \"0 2px 4px rgba(0,0,0,0.1)\",\n width: \"100%\",\n })}\n >\n ${props.child ? buildChild(props.child) : nothing}\n </div>\n`,\n);\n"],"mappings":";;;;;;;AAMA,MAAa,OAAOA,mCAClBC,4CACC,EAAE,OAAO,iBAAiB,QAAI;;sDAEZ;CACf,GAAGC,qCAAuB;CAC1B,iBAAiB;CACjB,WAAW;CACX,OAAO;CACR,CAAC,CAAC;;MAED,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAGC,YAAQ;;EAGrD"}