UNPKG

@yandex/ui

Version:

Yandex UI components

20 lines (19 loc) 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withGlyphXSign = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var core_1 = require("@bem-react/core"); var Icon_1 = require("../Icon"); require("./Icon_glyph.css"); require("./Icon_glyph_x-sign.css"); /** * Модификатор, отвечающий за символ иконки. * @param {IIconGlyphProps} props */ exports.withGlyphXSign = core_1.withBemMod(Icon_1.cnIcon(), { glyph: 'x-sign' }, function (Icon) { return function (_a) { var className = _a.className, props = tslib_1.__rest(_a, ["className"]); return (react_1.default.createElement(Icon, tslib_1.__assign({}, props, { className: Icon_1.cnIcon({ hasGlyph: true }, [className]) }), react_1.default.createElement("svg", { viewBox: "0 0 20 20" }, react_1.default.createElement("path", { focusable: "false", width: "0", height: "0", d: "M10,20 C4.5,20 0,15.5 0,10 C0,4.5 4.5,0 10,0 C15.5,0 20,4.5 20,10 C20,15.5 15.5,20 10,20 L10,20 L10,20 L10,20 Z M15,6.4 L13.6,5 L10,8.6 L6.4,5 L5,6.4 L8.6,10 L5,13.6 L6.4,15 L10,11.4 L13.6,15 L15,13.6 L11.4,10 L15,6.4 L15,6.4 L15,6.4 L15,6.4 Z" })))); }; });