{"version":3,"file":"/Users/anthonygubler/development/dojo-org/widgets/src/stack/Spacer.tsx","sourceRoot":"","sources":["Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,uBAAuB,CAAC;AAS/B,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,UAAU,EAAoB,CAAC;AAExE,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,MAAM,CAAC,EAC7C,QAAQ,EACR,UAAU,EAAE,EAAE,YAAY,EAAE,EAC5B,UAAU,EACV;IACA,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;QAC5C,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,EAAE,CAAC;AACnB,CAAC,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC","sourcesContent":["import { create, diffProperty } from '@dojo/framework/core/vdom';\nimport './styles/spacer.m.css';\n\ninterface SpacerProperties {\n\t/** The number of columns/rows that the spacer should span, defaults to 1 */\n\tspan?: number;\n\t/** callback used to return the span setting of the spacer */\n\tspanCallback?: (span: number) => void;\n}\n\nconst factory = create({ diffProperty }).properties<SpacerProperties>();\n\nexport const Spacer = factory(function Spacer({\n\tchildren,\n\tmiddleware: { diffProperty },\n\tproperties\n}) {\n\tdiffProperty('span', properties, (_, next) => {\n\t\tnext.spanCallback && next.spanCallback(next.span || 1);\n\t});\n\treturn children();\n});\n\nexport default Spacer;\n"]}