{"version":3,"file":"TypographyStylesProvider.mjs","sources":["../../../src/components/TypographyStylesProvider/TypographyStylesProvider.tsx"],"sourcesContent":["import {\n  Box,\n  BoxProps,\n  ElementProps,\n  factory,\n  Factory,\n  StylesApiProps,\n  useProps,\n  useStyles,\n} from '../../core';\nimport { TypographyStylesProviderRootStyle } from './TypographyStylesProvider.css';\n\nexport type TypographyStylesProviderStylesNames = 'root';\n\nexport interface TypographyStylesProviderProps\n  extends BoxProps,\n    StylesApiProps<TypographyStylesProviderFactory>,\n    ElementProps<'div'> {}\n\nexport type TypographyStylesProviderFactory = Factory<{\n  props: TypographyStylesProviderProps;\n  ref: HTMLDivElement;\n  stylesNames: TypographyStylesProviderStylesNames;\n}>;\n\nconst defaultProps: Partial<TypographyStylesProviderProps> = {};\n\nexport const TypographyStylesProvider = factory<TypographyStylesProviderFactory>((_props, ref) => {\n  const props = useProps('TypographyStylesProvider', defaultProps, _props);\n  const { classNames, className, style, styles, unstyled, ...others } = props;\n\n  const getStyles = useStyles<TypographyStylesProviderFactory>({\n    name: 'TypographyStylesProvider',\n    classes: {\n      root: TypographyStylesProviderRootStyle,\n    },\n    props,\n    className,\n    style,\n    classNames,\n    styles,\n    unstyled,\n  });\n\n  return <Box ref={ref} {...getStyles('root')} {...others} />;\n});\n\nTypographyStylesProvider.displayName = '@raikou/core/TypographyStylesProvider';\n"],"names":[],"mappings":";;;;;;;;;;;AAyBA,MAAM,eAAuD,EAAC;AAEvD,MAAM,wBAA2B,GAAA,OAAA,CAAyC,CAAC,MAAA,EAAQ,GAAQ,KAAA;AAChG,EAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,0BAA4B,EAAA,YAAA,EAAc,MAAM,CAAA;AACvE,EAAM,MAAA,EAAE,YAAY,SAAW,EAAA,KAAA,EAAO,QAAQ,QAAU,EAAA,GAAG,QAAW,GAAA,KAAA;AAEtE,EAAA,MAAM,YAAY,SAA2C,CAAA;AAAA,IAC3D,IAAM,EAAA,0BAAA;AAAA,IACN,OAAS,EAAA;AAAA,MACP,IAAM,EAAA;AAAA,KACR;AAAA,IACA,KAAA;AAAA,IACA,SAAA;AAAA,IACA,KAAA;AAAA,IACA,UAAA;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACD,CAAA;AAED,EAAO,uBAAA,GAAA,CAAC,OAAI,GAAW,EAAA,GAAG,UAAU,MAAM,CAAA,EAAI,GAAG,MAAQ,EAAA,CAAA;AAC3D,CAAC;AAED,wBAAA,CAAyB,WAAc,GAAA,uCAAA;;;;"}