{"version":3,"file":"/Users/anthonygubler/development/dojo-org/parade/src/ThemeTable.tsx","sourceRoot":"","sources":["ThemeTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,UAAU,MAAM,cAAc,CAAC;AAMtC,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,UAAU,EAAwB,CAAC;AAE5D,eAAe,OAAO,CAAC,SAAS,UAAU,CAAC,EAAE,UAAU,EAAE;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAAC;IAChC,IAAI,CAAC,MAAM,EAAE;QACZ,OAAO,IAAI,CAAC;KACZ;IACD,OAAO,CACN;QACC,IAAC,cAAc,OAAG;QAClB,YAAI,OAAO,EAAC,eAAe,YAAW;QACtC,IAAC,UAAU;YACV,eAAO,OAAO,EAAC,OAAO;gBACrB;oBACC;wBACC,YAAI,OAAO,EAAC,+GAA+G,WAEtH;wBACL,YAAI,OAAO,EAAC,sGAAsG,kBAE7G,CACD,CACE;gBACR,mBACE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;oBAChC,OAAO,CACN;wBACC,YAAI,OAAO,EAAC,mBAAmB,IAAE,GAAG,CAAM;wBAC1C,YAAI,OAAO,EAAC,mBAAmB,IAAE,MAAM,CAAC,GAAG,CAAC,CAAM,CAC9C,CACL,CAAC;gBACH,CAAC,CAAC,CACK,CACD,CACI,CACJ,CACV,CAAC;AACH,CAAC,CAAC,CAAC","sourcesContent":["import { create, tsx } from '@dojo/framework/core/vdom';\nimport HorizontalRule from './HorizontalRule';\nimport RoundedBox from './RoundedBox';\n\ninterface ThemeTableProperties {\n\tthemes?: { [index: string]: string };\n}\n\nconst factory = create().properties<ThemeTableProperties>();\n\nexport default factory(function ThemeTable({ properties }) {\n\tconst { themes } = properties();\n\tif (!themes) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<virtual>\n\t\t\t<HorizontalRule />\n\t\t\t<h2 classes=\"text-2xl mb-4\">Theme</h2>\n\t\t\t<RoundedBox>\n\t\t\t\t<table classes=\"table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th classes=\"px-4 py-2 border-r border-b border-gray-400 text-sm font-semibold text-gray-700 p-2 bg-gray-100 rounded-tl-lg\">\n\t\t\t\t\t\t\t\tName\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th classes=\"px-4 py-2 border-b border-gray-400 text-sm font-semibold text-gray-700 p-2 bg-gray-100 rounded-tr-lg\">\n\t\t\t\t\t\t\t\tDescription\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t{Object.keys(themes).map((key) => {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td classes=\"px-4 py-2 text-sm\">{key}</td>\n\t\t\t\t\t\t\t\t\t<td classes=\"px-4 py-2 text-sm\">{themes[key]}</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</RoundedBox>\n\t\t</virtual>\n\t);\n});\n"]}