{"version":3,"sources":["Section.tsx"],"sourcesContent":["import { Tag } from \"../../elements/tag/Tag.tsx\";\n\nexport type SectionOptions = {\n\ttitle?: string | HTMLElement;\n\tdescription?: string | HTMLElement;\n\tbackgroundColor?: string;\n\tpos?: \"left\" | \"right\" | \"center\";\n\talign?: \"left\" | \"right\" | \"center\";\n\ttag?: string | HTMLElement;\n\tlarge?: boolean;\n\tmedium?: boolean;\n}\nexport const Section = blankTemplate<SectionOptions & {children?: any }>(({medium, description, backgroundColor, large, tag, pos, align, title, children, ...props}) => \n\t<section {...props} style={{\n\t\t\"--section-bg\": backgroundColor ?? \"transparent\",\n\t}} data-size={large ? \"large\" : medium ? \"medium\" : \"default\"} data-pos={pos ?? \"center\"} data-align={align ?? \"center\"} class={[\"unyt-section\", ...(props.class ? [props.class] : [])].join(\" \")} stylesheet=\"./Section.css?\">\n\t\t<div class=\"inner\">\n\t\t\t{tag ? <Tag>{tag}</Tag> : null}\n\t\t\t{title ? <h1 class={large ? \"large\" : \"\"}>{title}</h1> : null}\n\t\t\t{description ? <span class={\"description\"}>{description}</span> : null}\n\t\t\t<div class=\"content\">\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t</section>\n);"],"names":["Tag","Section","blankTemplate","medium","description","backgroundColor","large","tag","pos","align","title","children","props","section","style","data-size","data-pos","data-align","class","join","stylesheet","div","h1","span"],"mappings":";AAAA,SAASA,GAAG,QAAQ,6BAA6B;AAYjD,OAAO,MAAMC,UAAUC,cAAkD,CAAC,EAACC,MAAM,EAAEC,WAAW,EAAEC,eAAe,EAAEC,KAAK,EAAEC,GAAG,EAAEC,GAAG,EAAEC,KAAK,EAAEC,KAAK,EAAEC,QAAQ,EAAE,GAAGC,OAAM,iBAClK,KAACC;QAAS,GAAGD,KAAK;QAAEE,OAAO;YAC1B,gBAAgBT,mBAAmB;QACpC;QAAGU,aAAWT,QAAQ,UAAUH,SAAS,WAAW;QAAWa,YAAUR,OAAO;QAAUS,cAAYR,SAAS;QAAUS,OAAO;YAAC;eAAoBN,MAAMM,KAAK,GAAG;gBAACN,MAAMM,KAAK;aAAC,GAAG,EAAE;SAAE,CAACC,IAAI,CAAC;QAAMC,YAAW;kBAC7M,cAAA,MAACC;YAAIH,OAAM;;gBACTX,oBAAM,KAACP;8BAAKO;qBAAa;gBACzBG,sBAAQ,KAACY;oBAAGJ,OAAOZ,QAAQ,UAAU;8BAAKI;qBAAc;gBACxDN,4BAAc,KAACmB;oBAAKL,OAAO;8BAAgBd;qBAAsB;8BAClE,KAACiB;oBAAIH,OAAM;8BACTP;;;;QAIH","sourceRoot":"/lib/unyt-components-0.0.17/components/section/","file":"Section.tsx"}