UNPKG

@yandex/ui

Version:

Yandex UI components

20 lines (19 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withGlyphCaretsV = 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_carets-v.css"); /** * Модификатор, отвечающий за символ иконки. * @param {IIconGlyphProps} props */ exports.withGlyphCaretsV = core_1.withBemMod(Icon_1.cnIcon(), { glyph: 'carets-v' }, 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", { focusable: "false", xmlns: "http://www.w3.org/2000/svg", width: "8", height: "14" }, react_1.default.createElement("path", { d: "M4 0l4 6H0l4-6zm0 14l4-6H0l4 6z" })))); }; });