{"version":3,"file":"Section.mjs","sources":["../../../packages/section/Section.tsx"],"sourcesContent":["import { ForwardedRef, forwardRef } from 'react'\nimport { SectionProps } from './types.js'\nimport {\n  SectionStyle,\n  SectionHeaderStyle,\n  SectionTitleStyle,\n  SectionHeaderDecoratorStyle,\n} from './SectionStyles.js'\n\nexport const Section = forwardRef(\n  (\n    { title, headerDecorator, children, ...rest }: SectionProps,\n    ref?: ForwardedRef<HTMLDivElement>,\n  ) => {\n    return (\n      <SectionStyle {...rest} ref={ref}>\n        {title && (\n          <SectionHeaderStyle>\n            <SectionTitleStyle>{title}</SectionTitleStyle>\n            {headerDecorator && (\n              <SectionHeaderDecoratorStyle>\n                {headerDecorator}\n              </SectionHeaderDecoratorStyle>\n            )}\n          </SectionHeaderStyle>\n        )}\n        {children}\n      </SectionStyle>\n    )\n  },\n)\nSection.displayName = 'Section'\n"],"names":["Section","forwardRef","_ref","ref","title","headerDecorator","children","rest","_jsxs","SectionStyle","SectionHeaderStyle","_jsx","SectionTitleStyle","SectionHeaderDecoratorStyle","displayName"],"mappings":";;;;AASO,MAAMA,OAAO,gBAAGC,UAAU,CAC/B,CAAAC,IAAA,EAEEC,GAAkC,KAC/B;EAAA,IAFH;IAAEC,KAAK;IAAEC,eAAe;IAAEC,QAAQ;IAAE,GAAGC,IAAAA;AAAmB,GAAC,GAAAL,IAAA,CAAA;EAG3D,oBACEM,IAAA,CAACC,YAAY,EAAA;AAAA,IAAA,GAAKF,IAAI;AAAEJ,IAAAA,GAAG,EAAEA,GAAI;AAAAG,IAAAA,QAAA,EAC9BF,CAAAA,KAAK,iBACJI,IAAA,CAACE,kBAAkB,EAAA;MAAAJ,QAAA,EAAA,cACjBK,GAAA,CAACC,iBAAiB,EAAA;AAAAN,QAAAA,QAAA,EAAEF,KAAAA;AAAK,OAAoB,CAAC,EAC7CC,eAAe,iBACdM,GAAA,CAACE,2BAA2B,EAAA;AAAAP,QAAAA,QAAA,EACzBD,eAAAA;AAAe,OACW,CAC9B,CAAA;KACiB,CACrB,EACAC,QAAQ,CAAA;AAAA,GACG,CAAC,CAAA;AAEnB,CACF,EAAC;AACDN,OAAO,CAACc,WAAW,GAAG,SAAS;;;;"}