{"version":3,"file":"TreeViewTrail.mjs","names":[],"sources":["../../../src/tree-view/TreeViewTrail.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 { type CommonProps } from '../_common/types';\n\nexport type TrailProps = {\n  variant: 'straight' | 'curved' | 'straight-curved' | 'none';\n};\nexport const Trail = ({\n  variant,\n  htmlAttributes,\n  ...restProps\n}: CommonProps<'div', TrailProps>) => {\n  return (\n    <div className=\"ndl-trail\" {...restProps} {...htmlAttributes}>\n      {variant === 'straight' && (\n        <svg\n          className=\"ndl-trail-straight\"\n          aria-hidden={true}\n          width=\"2\"\n          height=\"24\"\n          viewBox=\"0 0 2 24\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path d=\"M1.00001 16.0005L1 -4.00049L1 28.0004\" stroke=\"#BBBEC3\" />\n        </svg>\n      )}\n      {variant === 'curved' && (\n        <svg\n          aria-hidden={true}\n          className=\"ndl-trail-curved\"\n          width=\"9\"\n          height=\"13\"\n          viewBox=\"0 0 9 13\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path\n            d=\"M1 -4L1 3.99988C1 8.41816 4.58172 11.9999 9 11.9999V11.9999\"\n            stroke=\"#BBBEC3\"\n          />\n        </svg>\n      )}\n      {variant === 'straight-curved' && (\n        <svg\n          aria-hidden={true}\n          className=\"ndl-trail-straight-curved\"\n          width=\"16\"\n          height=\"24\"\n          viewBox=\"0 0 16 24\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <g clipPath=\"url(#clip0_16990_133)\">\n            <path\n              d=\"M16 12V12C11.5817 12 8.00001 8.41828 8.00001 4L8.00001 -4L8 28\"\n              stroke=\"#BBBEC3\"\n            />\n          </g>\n          <defs>\n            <clipPath id=\"clip0_16990_133\">\n              <rect width=\"16\" height=\"24\" fill=\"white\" />\n            </clipPath>\n          </defs>\n        </svg>\n      )}\n    </div>\n  );\n};\n"],"mappings":";;;;AA2BE,MAAA,YAAA,CAAA,WACA,gBAAA;;;;;;;;;;;;;;;;;;;;;AAFF,MAAa,SAAS,SAIgB;CAJhB,IAAA,EACpB,SACA,mBAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAEH,OACE,qBAAC,OAAA,eAAA,eAAA,eAAA,EAAI,WAAU,YAAA,GAAgB,SAAA,GAAe,cAAA,GAAA,CAAA,GAAA,EAAA,UAA9C;EACG,YAAY,cACX,oBAAC,OAAD;GACE,WAAU;GACV,eAAa;GACb,OAAM;GACN,QAAO;GACP,SAAQ;GACR,MAAK;GACL,OAAM;GAEN,UAAA,oBAAC,QAAD;IAAM,GAAE;IAAwC,QAAO;GAAW,CAAA;EAC/D,CAAA;EAEN,YAAY,YACX,oBAAC,OAAD;GACE,eAAa;GACb,WAAU;GACV,OAAM;GACN,QAAO;GACP,SAAQ;GACR,MAAK;GACL,OAAM;GAEN,UAAA,oBAAC,QAAD;IACE,GAAE;IACF,QAAO;GACR,CAAA;EACE,CAAA;EAEN,YAAY,qBACX,qBAAC,OAAD;GACE,eAAa;GACb,WAAU;GACV,OAAM;GACN,QAAO;GACP,SAAQ;GACR,MAAK;GACL,OAAM;GAPR,UAAA,CASE,oBAAC,KAAD;IAAG,UAAS;IACV,UAAA,oBAAC,QAAD;KACE,GAAE;KACF,QAAO;IACR,CAAA;GACA,CAAA,GACH,oBAAC,QAAD,EAAA,UACE,oBAAC,YAAD;IAAU,IAAG;IACX,UAAA,oBAAC,QAAD;KAAM,OAAM;KAAK,QAAO;KAAK,MAAK;IAAS,CAAA;GACnC,CAAA,EACN,CAAA,CACH;;CAEJ,EAAA,CAAA,CAAA;AAET"}