{"version":3,"file":"Divider.mjs","names":[],"sources":["../../../src/divider/Divider.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 classNames from 'classnames';\nimport type React from 'react';\n\nimport { type PolymorphicCommonProps } from '../_common/types';\n\ntype DividerProps = {\n  orientation?: 'horizontal' | 'vertical';\n};\n\nexport const Divider = <T extends React.ElementType = 'div'>({\n  orientation = 'horizontal',\n  as,\n  style,\n  className,\n  htmlAttributes,\n  ref,\n  ...restProps\n}: PolymorphicCommonProps<T, DividerProps>) => {\n  const classes = classNames('ndl-divider', className, {\n    'ndl-divider-horizontal': orientation === 'horizontal',\n    'ndl-divider-vertical': orientation === 'vertical',\n  });\n\n  const Component: React.ElementType = as || 'div';\n\n  return (\n    <Component\n      className={classes}\n      style={style}\n      role=\"separator\"\n      aria-orientation={orientation}\n      ref={ref}\n      {...restProps}\n      {...htmlAttributes}\n    />\n  );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;CA8BE;CACA;CACA;CACA;CACA;CACA;;AANF,MAAa,WAAgD,SAQd;CARc,IAAA,EAC3D,cAAc,cACd,IACA,OACA,WACA,gBACA,QAAA,MACG,YAAA,yBAAA,MAAA,SAAA;CAEH,MAAM,UAAU,WAAW,eAAe,WAAW;EACnD,0BAA0B,gBAAgB;EAC1C,wBAAwB,gBAAgB;CAC1C,CAAC;CAID,OACE,oBAHmC,MAAM,OAAA,eAAA,eAAA;EAIvC,WAAW;EACJ;EACP,MAAK;EACL,oBAAkB;EACb;CACD,GAAA,SAAA,GACA,cACL,CAAA;AAEL"}