UNPKG

@yandex/ui

Version:

Yandex UI components

18 lines (17 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ControlColor = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var bundle_1 = require("@yandex-lego/components/Text/bundle"); var ControlColor = function () { return (react_1.default.createElement(react_1.default.Fragment, null, [ 'control-primary', 'control-secondary', 'control-passive', 'control-ghost', 'control-faint', 'control-disable', 'control-link', 'control-error', ].map(function (color) { return (react_1.default.createElement(bundle_1.Text, { as: "div", key: color, typography: "control-xl", weight: "light", color: color, style: { backgroundColor: color === 'control-faint' ? '#000' : undefined } }, color + " color")); }))); }; exports.ControlColor = ControlColor;