Source

style/classNameToSelector.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Get CSS selector string from a class name or class names separated by spaces.
 * .e.g. 'container squared' -> '.container.squared'
 *
 * @param className
 * @category style
 * @module classNameToSelector
 */
var classNameToSelector = function (className) { return ".".concat(className.trim().replace(/\s+/g, '.')); };
exports.default = classNameToSelector;