@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 591 B
Source Map (JSON)
{"version":3,"file":"utils.mjs","names":[],"sources":["../../src/search/utils.js"],"sourcesContent":["/**\n * Constants\n */\nexport const PC_WIDTH_DEFAULT = 50;\nexport const PX_WIDTH_DEFAULT = 350;\nexport const MIN_WIDTH = 220;\n\n/**\n * Returns a boolean whether passed unit is percentage\n *\n * @param {string} unit Block width unit.\n *\n * @return {boolean} \tWhether unit is '%'.\n */\nexport function isPercentageUnit( unit ) {\n\treturn unit === '%';\n}\n"],"mappings":";;;;AAGA,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,YAAY;;;;;;;;AASzB,SAAgB,iBAAkB,MAAO;CACxC,OAAO,SAAS;AACjB"}