UNPKG

@copilotkit/a2ui-renderer

Version:

A2UI Renderer for CopilotKit - render A2UI surfaces in React applications

1 lines 1.15 kB
{"version":3,"file":"column.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/column.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { ColumnApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { renderChildList } from \"../children\";\nimport { mapAlign, mapJustify } from \"./utils\";\n\nexport const Column = createLitComponent(\n ColumnApi,\n ({ props, buildChild }) => html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: mapJustify(props.justify),\n alignItems: mapAlign(props.align),\n width: \"100%\",\n margin: \"0\",\n padding: \"0\",\n })}\n >\n ${renderChildList(props.children, buildChild)}\n </div>\n `,\n);\n"],"mappings":";;;;;;;;AAOA,MAAa,SAAS,mBACpB,YACC,EAAE,OAAO,iBAAiB,IAAI;;cAEnB,SAAS;CACf,SAAS;CACT,eAAe;CACf,gBAAgB,WAAW,MAAM,QAAQ;CACzC,YAAY,SAAS,MAAM,MAAM;CACjC,OAAO;CACP,QAAQ;CACR,SAAS;CACV,CAAC,CAAC;;QAED,gBAAgB,MAAM,UAAU,WAAW,CAAC;;IAGnD"}