@yandex/ui
Version:
Yandex UI components
14 lines (13 loc) • 595 B
JavaScript
import { __assign, __rest } from "tslib";
import './Text_weight_regular.css';
import { withBemMod } from '@bem-react/core';
import React from 'react';
import { cnText } from '../Text';
/**
* Модификатор, отвечающий за насыщенность текста.
* @param {ITextWeightRegularProps} props
*/
export var withWeightRegular = withBemMod(cnText(), { weight: 'regular' }, function (WrappedComponent) { return (function (_a) {
var weight = _a.weight, props = __rest(_a, ["weight"]);
return React.createElement(WrappedComponent, __assign({}, props));
}); });