@wordpress/block-library
Version:
Block library for the WordPress editor.
28 lines (27 loc) • 680 B
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
// 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 === "%";
}
exports.MIN_WIDTH = MIN_WIDTH;
exports.PC_WIDTH_DEFAULT = PC_WIDTH_DEFAULT;
exports.PX_WIDTH_DEFAULT = PX_WIDTH_DEFAULT;
exports.isPercentageUnit = isPercentageUnit;
//# sourceMappingURL=utils.cjs.map