UNPKG

@redocly/theme

Version:

Shared UI components lib

22 lines (21 loc) 1.43 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GraphIcon = void 0; const react_1 = __importDefault(require("react")); const styled_components_1 = __importDefault(require("styled-components")); const utils_1 = require("../../core/utils"); const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 14 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), react_1.default.createElement("path", { d: "M13.125 4.25V0.75H9.625V2.0625H7.875C7.64302 2.06277 7.42061 2.15504 7.25658 2.31908C7.09254 2.48311 7.00027 2.70552 7 2.9375V5.5625H4.375V4.25H0.875V7.75H4.375V6.4375H7V9.0625C7.00027 9.29448 7.09254 9.51689 7.25658 9.68092C7.42061 9.84496 7.64302 9.93723 7.875 9.9375H9.625V11.25H13.125V7.75H9.625V9.0625H7.875V2.9375H9.625V4.25H13.125ZM3.5 6.875H1.75V5.125H3.5V6.875ZM10.5 8.625H12.25V10.375H10.5V8.625ZM10.5 1.625H12.25V3.375H10.5V1.625Z", fill: "#0E8450" }))); exports.GraphIcon = (0, styled_components_1.default)(Icon).attrs(() => ({ 'data-component-name': 'icons/GraphIcon/GraphIcon', })) ` path { fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)}; } height: ${({ size }) => size || '12px'}; width: ${({ size }) => size || '14px'}; `; //# sourceMappingURL=GraphIcon.js.map