@denali-design/react
Version:
React.JS component library for the Denali CSS Framework
34 lines • 1.21 kB
JavaScript
;
/**
* Copyright 2020, Verizon Media
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFontFamilyClassName = exports.getFontWeightClassName = exports.DnFontWeight = exports.DnFontFamily = void 0;
var DnFontFamily;
(function (DnFontFamily) {
DnFontFamily["default"] = "default";
DnFontFamily["mono"] = "mono";
})(DnFontFamily = exports.DnFontFamily || (exports.DnFontFamily = {}));
var DnFontWeight;
(function (DnFontWeight) {
DnFontWeight["default"] = "default";
DnFontWeight["light"] = "light";
DnFontWeight["bold"] = "bold";
DnFontWeight["italic"] = "italic";
})(DnFontWeight = exports.DnFontWeight || (exports.DnFontWeight = {}));
exports.getFontWeightClassName = function (_a) {
var fontWeight = _a.fontWeight;
if (fontWeight === DnFontWeight.default) {
return '';
}
return "is-" + fontWeight;
};
exports.getFontFamilyClassName = function (_a) {
var fontFamily = _a.fontFamily;
if (fontFamily === DnFontFamily.default) {
return '';
}
return "is-" + fontFamily;
};
//# sourceMappingURL=index.js.map