{"version":3,"file":"ReadOnlyTag.mjs","names":[],"sources":["../../../src/read-only-tag/ReadOnlyTag.tsx"],"sourcesContent":["/*!\n *\n *  Copyright (c) \"Neo4j\"\n *  Neo4j Sweden AB [http://neo4j.com]\n *\n *  This file is part of Neo4j.\n *\n *  Neo4j is free software: you can redistribute it and/or modify\n *  it under the terms of the GNU General Public License as published by\n *  the Free Software Foundation, either version 3 of the License, or\n *  (at your option) any later version.\n *\n *  This program is distributed in the hope that it will be useful,\n *  but WITHOUT ANY WARRANTY; without even the implied warranty of\n *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n *  GNU General Public License for more details.\n *\n *  You should have received a copy of the GNU General Public License\n *  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\nimport type React from 'react';\n\nimport { type CommonProps } from '../_common/types';\nimport type { TagColor, TagSize } from '../tag-base';\nimport { TagBase } from '../tag-base';\n\ninterface ReadOnlyTagProps {\n  /** Categorical color for the background */\n  color?: TagColor;\n  /** The content of the tag */\n  children?: React.ReactNode;\n  /** Icon to display before the content */\n  leadingVisual?: React.ReactNode;\n  /** Size of the tag */\n  size?: TagSize;\n}\n\nexport const ReadOnlyTag = ({\n  color,\n  children,\n  htmlAttributes,\n  leadingVisual,\n  size,\n  ...restProps\n}: CommonProps<'div', ReadOnlyTagProps>) => {\n  return (\n    <TagBase\n      color={color}\n      htmlAttributes={htmlAttributes}\n      leadingVisual={leadingVisual}\n      size={size}\n      {...restProps}\n    >\n      {children}\n    </TagBase>\n  );\n};\n"],"mappings":";;;;;;CAsCE;CACA;CACA;CACA;CACA;;;;;;;;;;;;;;;;;;;;;;AALF,MAAa,eAAe,SAOgB;CAPhB,IAAA,EAC1B,OACA,UACA,gBACA,eACA,SAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAEH,OACE,oBAAC,SAAA,eAAA,eAAA;EACQ;EACS;EACD;EACT;CACF,GAAA,SAAA,GAAA,CAAA,GAAA,EAEH,SAAA,CACM,CAAA;AAEb"}