{"version":3,"file":"Icon.cjs","names":["createReactComponent","IconApi","getBaseLeafStyle"],"sources":["../../../../../../src/react-renderer/a2ui-react/catalog/basic/components/Icon.tsx"],"sourcesContent":["/**\n * Copyright 2026 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { createReactComponent } from \"../../../adapter\";\nimport { IconApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { getBaseLeafStyle } from \"../utils\";\n\nexport const Icon = createReactComponent(IconApi, ({ props }) => {\n  const iconName =\n    typeof props.name === \"string\"\n      ? props.name\n      : (props.name as { path?: string })?.path;\n  const style: React.CSSProperties = {\n    ...getBaseLeafStyle(),\n    fontSize: \"24px\",\n    width: \"24px\",\n    height: \"24px\",\n    display: \"inline-flex\",\n    alignItems: \"center\",\n    justifyContent: \"center\",\n  };\n\n  return (\n    <span className=\"material-symbols-outlined\" style={style}>\n      {iconName}\n    </span>\n  );\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAa,OAAOA,qCAAqBC,4CAAU,EAAE,YAAY;CAC/D,MAAM,WACJ,OAAO,MAAM,SAAS,WAClB,MAAM,OACL,MAAM,MAA4B;AAWzC,QACE,2CAAC;EAAK,WAAU;EAA4B,OAXX;GACjC,GAAGC,gCAAkB;GACrB,UAAU;GACV,OAAO;GACP,QAAQ;GACR,SAAS;GACT,YAAY;GACZ,gBAAgB;GACjB;YAII;GACI;EAET"}