/** * Curried function that ends with a BEM CSS Selector * * @param {String} block - the BEM Block you'd like to select. * @returns {Function} */ export const bem = block => /** * @param {String} [element] - the BEM Element within that block; if undefined, selects the block itself. * @returns {Function} */ element => /** * @param {?String} [modifier] - the BEM Modifier for the Block or Element; if undefined, selects the Block or Element unmodified. * @returns {String} */ modifier => [ ".", css(block), element ? `__${css(element)}` : "", modifier ? `--${css(modifier)}` : "" ].join(""); {info.item.widget.missingProp}} data={data} /> func(() => // comment a); func(() => () => // comment a); func(() => () => () => // comment a); func(() => // comment a ? b : c); func(() => () => // comment a ? b : c); func(() => () => () => // comment a ? b : c); func(() => // comment (a , b , c)) func(() => () => // comment (a , b , c)) func(() => () => () => // comment (a , b , c))