{"version":3,"file":"ChatTitle.mjs","names":[],"sources":["../../../../src/ai/chat-title/ChatTitle.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 */\n\nimport { tokens } from '@neo4j-ndl/base';\n\nimport { type PolymorphicCommonProps } from '../../_common/types';\n\ntype ChatTitleProps = {\n  children?: React.ReactNode;\n};\n\nexport const ChatTitle = ({\n  children,\n  as,\n  ref,\n  style,\n  className,\n  htmlAttributes,\n  ...restProps\n}: PolymorphicCommonProps<'span', ChatTitleProps>) => {\n  const Component = as || 'span';\n\n  return (\n    <Component\n      ref={ref}\n      style={{\n        backgroundClip: 'text',\n        backgroundImage: `linear-gradient(to right, var(--theme-color-neutral-text-default), var(--theme-color-neutral-text-weaker))`,\n        color: 'transparent',\n        fontFamily: tokens.typography.display.fontFamily,\n        fontSize: '1.5rem', // same as title-2\n        fontWeight: tokens.weight.medium, // same as display\n        letterSpacing: '0.016rem', // same as title-2\n        lineHeight: 1.3333, // same as title-2\n        ...style,\n      }}\n      className={className}\n      {...htmlAttributes}\n      {...restProps}\n    >\n      {children}\n    </Component>\n  );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;CA8BE;CACA;CACA;CACA;CACA;CACA;;AANF,MAAa,aAAa,SAQ4B;CAR5B,IAAA,EACxB,UACA,IACA,KACA,OACA,WACA,mBAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAIH,OACE,oBAHgB,MAAM,QAAA,eAAA,eAAA,eAAA;EAIf;EACL,OAAA,eAAA;GACE,gBAAgB;GAChB,iBAAiB;GACjB,OAAO;GACP,YAAY,OAAO,WAAW,QAAQ;GACtC,UAAU;GACV,YAAY,OAAO,OAAO;GAC1B,eAAe;GACf,YAAY;EACT,GAAA,KACL;EACW;CACP,GAAA,cAAA,GACA,SAAA,GAAA,CAAA,GAAA,EAEH,SAAA,CACQ,CAAA;AAEf"}