{"version":3,"file":"ModalBaseTitle.cjs","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":["forwardRef","useModalTitle","useModalBaseContext","jsx","Box","cx","ModalBaseTitleStyle"],"mappings":";;;;;;;;;;;;;;;;;AASO,MAAM,cAAiB,GAAAA,gBAAA;AAAA,EAC5B,CAAC,EAAE,SAAA,EAAW,GAAG,MAAA,IAAU,GAAQ,KAAA;AACjC,IAAA,MAAM,KAAKC,6BAAc,EAAA;AACzB,IAAA,MAAM,MAAMC,qCAAoB,EAAA;AAChC,IACE,uBAAAC,cAAA;AAAA,MAACC,OAAA;AAAA,MAAA;AAAA,QACC,SAAU,EAAA,IAAA;AAAA,QACV,GAAA;AAAA,QACA,SAAA,EAAWC,mBAAG,CAAA,EAAE,CAACC,iCAAmB,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;;;;"}