{"version":3,"file":"ModalBaseTitle.mjs","sources":["../../../src/components/ModalBase/ModalBaseTitle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport cx from 'clsx';\nimport { Box, BoxProps, ElementProps } from '../../core';\nimport { useModalBaseContext } from './ModalBase.context';\nimport { useModalTitle } from './use-modal-title-id';\nimport { ModalBaseTitleStyle } from './ModalBase.css';\n\nexport interface ModalBaseTitleProps extends BoxProps, ElementProps<'h2'> {}\n\nexport const ModalBaseTitle = forwardRef<HTMLHeadingElement, ModalBaseTitleProps>(\n  ({ className, ...others }, ref) => {\n    const id = useModalTitle();\n    const ctx = useModalBaseContext();\n    return (\n      <Box\n        component=\"h2\"\n        ref={ref}\n        className={cx({ [ModalBaseTitleStyle]: !ctx.unstyled }, className)}\n        {...others}\n        id={id}\n      />\n    );\n  }\n);\n\nModalBaseTitle.displayName = '@raikou/core/ModalBaseTitle';\n"],"names":[],"mappings":";;;;;;;;;;;AASO,MAAM,cAAiB,GAAA,UAAA;AAAA,EAC5B,CAAC,EAAE,SAAA,EAAW,GAAG,MAAA,IAAU,GAAQ,KAAA;AACjC,IAAA,MAAM,KAAK,aAAc,EAAA;AACzB,IAAA,MAAM,MAAM,mBAAoB,EAAA;AAChC,IACE,uBAAA,GAAA;AAAA,MAAC,GAAA;AAAA,MAAA;AAAA,QACC,SAAU,EAAA,IAAA;AAAA,QACV,GAAA;AAAA,QACA,SAAA,EAAW,EAAG,CAAA,EAAE,CAAC,mBAAmB,GAAG,CAAC,GAAA,CAAI,QAAS,EAAA,EAAG,SAAS,CAAA;AAAA,QAChE,GAAG,MAAA;AAAA,QACJ;AAAA;AAAA,KACF;AAAA;AAGN;AAEA,cAAA,CAAe,WAAc,GAAA,6BAAA;;;;"}