@yandex/ui
Version:
Yandex UI components
17 lines (16 loc) • 756 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.withWeightMedium = void 0;
var tslib_1 = require("tslib");
require("./Text_weight_medium.css");
var core_1 = require("@bem-react/core");
var react_1 = tslib_1.__importDefault(require("react"));
var Text_1 = require("../Text");
/**
* Модификатор, отвечающий за насыщенность текста.
* @param {ITextWeightMediumProps} props
*/
exports.withWeightMedium = core_1.withBemMod(Text_1.cnText(), { weight: 'medium' }, function (WrappedComponent) { return (function (_a) {
var weight = _a.weight, props = tslib_1.__rest(_a, ["weight"]);
return react_1.default.createElement(WrappedComponent, tslib_1.__assign({}, props));
}); });