{"version":3,"file":"AppShellSection.cjs","sources":["../../../../src/components/AppShell/AppShellSection/AppShellSection.tsx"],"sourcesContent":["import {\n  Box,\n  BoxProps,\n  CompoundStylesApiProps,\n  polymorphicFactory,\n  PolymorphicFactory,\n  useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\n\nexport type AppShellSectionStylesNames = 'section';\n\nexport interface AppShellSectionProps\n  extends BoxProps,\n    CompoundStylesApiProps<AppShellSectionFactory> {\n  /** Determines whether the section should take all available space, `false` by default */\n  grow?: boolean;\n}\n\nexport type AppShellSectionFactory = PolymorphicFactory<{\n  props: AppShellSectionProps;\n  defaultRef: HTMLDivElement;\n  defaultComponent: 'div';\n  stylesNames: AppShellSectionStylesNames;\n  compound: true;\n}>;\n\nconst defaultProps: Partial<AppShellSectionProps> = {};\n\nexport const AppShellSection = polymorphicFactory<AppShellSectionFactory>((_props, ref) => {\n  const props = useProps('AppShellSection', defaultProps, _props);\n  const { classNames, className, style, styles, vars, grow, mod, ...others } = props;\n  const ctx = useAppShellContext();\n\n  return (\n    <Box\n      ref={ref}\n      mod={[{ grow }, mod]}\n      {...ctx.getStyles('section', { className, style, classNames, styles })}\n      {...others}\n    />\n  );\n});\n\nAppShellSection.displayName = '@raikou/core/AppShellSection';\n"],"names":["polymorphicFactory","useProps","useAppShellContext","jsx","Box"],"mappings":";;;;;;;;;;;;;AA2BA,MAAM,eAA8C,EAAC;AAE9C,MAAM,eAAkB,GAAAA,qCAAA,CAA2C,CAAC,MAAA,EAAQ,GAAQ,KAAA;AACzF,EAAA,MAAM,KAAQ,GAAAC,iBAAA,CAAS,iBAAmB,EAAA,YAAA,EAAc,MAAM,CAAA;AAC9D,EAAM,MAAA,EAAE,UAAY,EAAA,SAAA,EAAW,KAAO,EAAA,MAAA,EAAQ,MAAM,IAAM,EAAA,GAAA,EAAK,GAAG,MAAA,EAAW,GAAA,KAAA;AAC7E,EAAA,MAAM,MAAMC,mCAAmB,EAAA;AAE/B,EACE,uBAAAC,cAAA;AAAA,IAACC,OAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,GAAK,EAAA,CAAC,EAAE,IAAA,IAAQ,GAAG,CAAA;AAAA,MAClB,GAAG,IAAI,SAAU,CAAA,SAAA,EAAW,EAAE,SAAW,EAAA,KAAA,EAAO,UAAY,EAAA,MAAA,EAAQ,CAAA;AAAA,MACpE,GAAG;AAAA;AAAA,GACN;AAEJ,CAAC;AAED,eAAA,CAAgB,WAAc,GAAA,8BAAA;;;;"}