UNPKG

@wordpress/block-library

Version:
8 lines (7 loc) 998 B
{ "version": 3, "sources": ["../../src/list/save.js"], "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { InnerBlocks, useBlockProps } from '@wordpress/block-editor';\n\nexport default function save( { attributes } ) {\n\tconst { ordered, type, reversed, start } = attributes;\n\tconst TagName = ordered ? 'ol' : 'ul';\n\treturn (\n\t\t<TagName\n\t\t\t{ ...useBlockProps.save( {\n\t\t\t\treversed,\n\t\t\t\tstart,\n\t\t\t\tstyle: {\n\t\t\t\t\tlistStyleType:\n\t\t\t\t\t\tordered && type !== 'decimal' ? type : undefined,\n\t\t\t\t},\n\t\t\t} ) }\n\t\t>\n\t\t\t<InnerBlocks.Content />\n\t\t</TagName>\n\t);\n}\n"], "mappings": ";AAGA,SAAS,aAAa,qBAAqB;AAgBxC;AAdY,SAAR,KAAuB,EAAE,WAAW,GAAI;AAC9C,QAAM,EAAE,SAAS,MAAM,UAAU,MAAM,IAAI;AAC3C,QAAM,UAAU,UAAU,OAAO;AACjC,SACC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG,cAAc,KAAM;AAAA,QACxB;AAAA,QACA;AAAA,QACA,OAAO;AAAA,UACN,eACC,WAAW,SAAS,YAAY,OAAO;AAAA,QACzC;AAAA,MACD,CAAE;AAAA,MAEF,8BAAC,YAAY,SAAZ,EAAoB;AAAA;AAAA,EACtB;AAEF;", "names": [] }