@yandex/ui
Version:
Yandex UI components
18 lines (17 loc) • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Textinput = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var core_1 = require("@bem-react/core");
var di_1 = require("@bem-react/di");
var withControl_desktop_1 = require("../withControl/withControl@desktop");
var withAutoFocus_1 = require("../withAutoFocus/withAutoFocus");
var Textinput_1 = require("./Textinput");
var touch_pad_1 = require("./Textinput.registry/touch-pad");
var TextinputPresenter = function (_a) {
var className = _a.className, hovered = _a.hovered, props = tslib_1.__rest(_a, ["className", "hovered"]);
return (react_1.default.createElement(Textinput_1.Textinput, tslib_1.__assign({}, props, { className: Textinput_1.cnTextinput({ hovered: hovered }, [className]) })));
};
tslib_1.__exportStar(require("./Textinput"), exports);
exports.Textinput = core_1.compose(di_1.withRegistry(touch_pad_1.textinputRegistry), withControl_desktop_1.withControl, withAutoFocus_1.withAutoFocus)(TextinputPresenter);