@wordpress/block-library
Version:
Block library for the WordPress editor.
20 lines (19 loc) • 464 B
JavaScript
// packages/block-library/src/search/utils.js
/**
* Constants
*/
const PC_WIDTH_DEFAULT = 50;
const PX_WIDTH_DEFAULT = 350;
const MIN_WIDTH = 220;
/**
* Returns a boolean whether passed unit is percentage
*
* @param {string} unit Block width unit.
*
* @return {boolean} Whether unit is '%'.
*/
function isPercentageUnit(unit) {
return unit === "%";
}
export { MIN_WIDTH, PC_WIDTH_DEFAULT, PX_WIDTH_DEFAULT, isPercentageUnit };
//# sourceMappingURL=utils.mjs.map