{"version":3,"file":"AppShellMain.cjs","sources":["../../../../src/components/AppShell/AppShellMain/AppShellMain.tsx"],"sourcesContent":["import {\n  Box,\n  BoxProps,\n  CompoundStylesApiProps,\n  ElementProps,\n  factory,\n  Factory,\n  useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\n\nexport type AppShellMainStylesNames = 'main';\n\nexport interface AppShellMainProps\n  extends BoxProps,\n    CompoundStylesApiProps<AppShellMainFactory>,\n    ElementProps<'main'> {}\n\nexport type AppShellMainFactory = Factory<{\n  props: AppShellMainProps;\n  ref: HTMLElement;\n  stylesNames: AppShellMainStylesNames;\n  compound: true;\n}>;\n\nconst defaultProps: Partial<AppShellMainProps> = {};\n\nexport const AppShellMain = factory<AppShellMainFactory>((_props, ref) => {\n  const props = useProps('AppShellMain', defaultProps, _props);\n  const { classNames, className, style, styles, vars, ...others } = props;\n  const ctx = useAppShellContext();\n\n  return (\n    <Box\n      component=\"main\"\n      ref={ref}\n      {...ctx.getStyles('main', { className, style, classNames, styles })}\n      {...others}\n    />\n  );\n});\n\nAppShellMain.displayName = '@raikou/core/AppShellMain';\n"],"names":["factory","useProps","useAppShellContext","jsx","Box"],"mappings":";;;;;;;;;;;;;AAyBA,MAAM,eAA2C,EAAC;AAE3C,MAAM,YAAe,GAAAA,eAAA,CAA6B,CAAC,MAAA,EAAQ,GAAQ,KAAA;AACxE,EAAA,MAAM,KAAQ,GAAAC,iBAAA,CAAS,cAAgB,EAAA,YAAA,EAAc,MAAM,CAAA;AAC3D,EAAM,MAAA,EAAE,YAAY,SAAW,EAAA,KAAA,EAAO,QAAQ,IAAM,EAAA,GAAG,QAAW,GAAA,KAAA;AAClE,EAAA,MAAM,MAAMC,mCAAmB,EAAA;AAE/B,EACE,uBAAAC,cAAA;AAAA,IAACC,OAAA;AAAA,IAAA;AAAA,MACC,SAAU,EAAA,MAAA;AAAA,MACV,GAAA;AAAA,MACC,GAAG,IAAI,SAAU,CAAA,MAAA,EAAQ,EAAE,SAAW,EAAA,KAAA,EAAO,UAAY,EAAA,MAAA,EAAQ,CAAA;AAAA,MACjE,GAAG;AAAA;AAAA,GACN;AAEJ,CAAC;AAED,YAAA,CAAa,WAAc,GAAA,2BAAA;;;;"}