{"version":3,"file":"AxisTitle-Dn3e7u_c.cjs","names":[],"sources":["../src/Components/Elements/Axes/AxisTitle.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\n\r\ninterface Props {\r\n  text?: string;\r\n  y: number;\r\n  x: number;\r\n  className?: string;\r\n  style?: React.CSSProperties;\r\n  rotate90?: boolean;\r\n}\r\n\r\nexport function AxisTitle(props: Props) {\r\n  const { text, x, y, className, style, rotate90 } = props;\r\n  if (!text) return null;\r\n  return (\r\n    <text\r\n      transform={`translate(${x}, ${y})${rotate90 ? ' rotate(-90)' : ''}`}\r\n      style={{\r\n        textAnchor: 'middle',\r\n        ...(style || {}),\r\n      }}\r\n      className={cn('fill-content-primary text-xs', className)}\r\n    >\r\n      {text}\r\n    </text>\r\n  );\r\n}\r\n"],"mappings":"6EAWA,SAAgB,EAAU,EAAc,CACtC,GAAM,CAAE,OAAM,IAAG,IAAG,YAAW,QAAO,YAAa,EAEnD,OADK,GAEH,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,aAAa,EAAE,IAAI,EAAE,GAAG,EAAW,eAAiB,KAC/D,MAAO,CACL,WAAY,SACZ,GAAI,GAAS,CAAC,CAChB,EACA,WAAA,EAAA,EAAA,IAAc,+BAAgC,CAAS,WAEtD,CACG,CAAA,EAXU,IAapB"}