@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
21 lines • 913 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.typoClassNames = void 0;
const clsx_1 = __importDefault(require("clsx"));
const typoClassNames = (props) => {
/* Renaming to aksel-* prefix is done in components themselves */
return (0, clsx_1.default)({
"navds-typo--spacing": props.spacing,
"navds-typo--truncate": props.truncate,
"navds-typo--semibold": props.weight === "semibold",
[`navds-typo--align-${props.align}`]: props.align,
[`navds-typo--color-${props.textColor}`]: props.textColor,
"navds-typo--visually-hidden": props.visuallyHidden,
"navds-typo--uppercase": props.uppercase,
});
};
exports.typoClassNames = typoClassNames;
//# sourceMappingURL=util.js.map